:root {
  --orange: #e8651a;
  --orange-bright: #ff8a3d;
  --orange-dim: #7a3410;
  --orange-wash: rgba(232, 101, 26, 0.06);
  --navy: #0a0e1f;
  --navy-2: #131a33;
  --navy-glass: rgba(8, 12, 28, 0.65);
  --cyan: #3dd6ff;
  --cyan-dim: #0b4f6c;
  --cyan-soft: rgba(61, 214, 255, 0.12);
  --violet: #8b5cf6;
  --red: #ff3b3b;
  --text: #d9e7ff;
  --text-dim: #6b82a8;
  --glow: 0 0 10px rgba(232, 101, 26, 0.65), 0 0 24px rgba(232, 101, 26, 0.3);
  --glow-soft: 0 0 6px rgba(232, 101, 26, 0.4);
  --glow-cyan: 0 0 8px rgba(61, 214, 255, 0.5);
  --edge: 1px solid rgba(232, 101, 26, 0.4);
  --edge-dim: 1px solid rgba(232, 101, 26, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: radial-gradient(ellipse at center, #0f152b 0%, #04060d 75%);
  color: var(--text);
  font-family: 'Share Tech Mono', ui-monospace, monospace;
  overflow: hidden;
  user-select: none;
}

body {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  grid-template-rows: 56px 1fr 72px;
  grid-template-areas:
    "top top top"
    "left center right"
    "bottom bottom bottom";
  gap: 10px;
  padding: 10px;
}

/* ---------- Overlays ---------- */

.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    rgba(232, 101, 26, 0.035) 0px,
    rgba(232, 101, 26, 0.035) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 99;
  box-shadow: inset 0 0 240px 40px rgba(0, 0, 0, 0.9);
}

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 101;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: noise 0.4s steps(3) infinite;
}
@keyframes noise {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-5px, 3px); }
  66%  { transform: translate(4px, -2px); }
  100% { transform: translate(0, 0); }
}

/* ---------- Top bar ---------- */

.hud-top {
  grid-area: top;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  border: 1px solid var(--orange-dim);
  background: linear-gradient(90deg, rgba(232, 101, 26, 0.08), transparent 60%, rgba(232, 101, 26, 0.08));
  box-shadow: var(--glow);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 100%, 0 100%);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  color: var(--orange);
  font-size: 22px;
  text-shadow: var(--glow);
  animation: pulse 2.5s ease-in-out infinite;
}
.brand-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--orange);
  text-shadow: var(--glow);
}
.brand-sub { color: var(--text-dim); letter-spacing: 2px; font-size: 11px; }

.status {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 4px;
  font-size: 13px;
}
.stat-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-dim);
  box-shadow: 0 0 8px currentColor;
  transition: background .3s, box-shadow .3s;
}
.stat-dot.standby { background: var(--text-dim); }
.stat-dot.listening { background: var(--cyan); box-shadow: var(--glow-cyan); animation: pulse 1s ease-in-out infinite; }
.stat-dot.thinking { background: var(--orange-bright); box-shadow: var(--glow); animation: pulse 0.5s ease-in-out infinite; }
.stat-dot.speaking { background: var(--orange); box-shadow: var(--glow); }
.stat-dot.error { background: var(--red); }

.clock {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  color: var(--orange);
  letter-spacing: 2px;
  text-shadow: var(--glow);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.12); }
}

/* ---------- Side panels ---------- */

.hud-left  { grid-area: left;  display: flex; flex-direction: column; gap: 10px; }
.hud-right { grid-area: right; display: flex; flex-direction: column; gap: 10px; }

.panel {
  border: 1px solid var(--orange-dim);
  background: rgba(10, 14, 31, 0.7);
  padding: 10px 12px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  backdrop-filter: blur(4px);
}

.panel::before {
  content: "";
  position: absolute; inset: 0;
  border-left: 2px solid var(--orange);
  box-shadow: 2px 0 8px rgba(232, 101, 26, 0.4);
  pointer-events: none;
}

.panel-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--orange);
  text-shadow: var(--glow);
  border-bottom: 1px dashed var(--orange-dim);
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.metric {
  display: flex; justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
  color: var(--text);
}
.metric span:first-child { color: var(--text-dim); letter-spacing: 2px; }
.metric span:last-child  { color: var(--cyan); text-shadow: var(--glow-cyan); }

.bar {
  margin-top: 6px;
  height: 6px;
  background: rgba(61, 214, 255, 0.1);
  border: 1px solid var(--cyan-dim);
  overflow: hidden;
}
.bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--orange-bright), var(--red));
  box-shadow: var(--glow-cyan);
  transition: width .08s linear;
}

.loglist {
  list-style: none;
  font-size: 11px;
  max-height: 180px;
  overflow-y: auto;
}
.loglist li {
  padding: 3px 0;
  color: var(--text-dim);
  border-bottom: 1px dotted rgba(107, 130, 168, 0.15);
}
.loglist li .t { color: var(--orange); margin-right: 6px; }

.panel-conv { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.conv {
  flex: 1;
  overflow-y: auto;
  font-size: 12px;
  padding-right: 4px;
}
.conv .msg {
  margin: 6px 0;
  padding: 5px 8px;
  border-left: 2px solid;
  white-space: pre-wrap;
  line-height: 1.4;
  max-height: 140px;
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.conv .msg.user    { border-color: var(--cyan);   color: var(--cyan); }
.conv .msg.jarvis  { border-color: var(--orange); color: var(--text); }
.conv .msg .who {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.65;
  margin-bottom: 2px;
}

#waveform { width: 100%; display: block; }

/* ---------- Center stage ---------- */

.hud-center {
  grid-area: center;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--orange-dim);
  background:
    radial-gradient(circle at center, rgba(232, 101, 26, 0.08), transparent 65%),
    rgba(10, 14, 31, 0.4);
  overflow: hidden;
}
.hud-center::before, .hud-center::after {
  content: ""; position: absolute;
  width: 30px; height: 30px;
  border-color: var(--orange);
}
.hud-center::before { top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid; }
.hud-center::after { bottom: 8px; right: 8px; border-bottom: 2px solid; border-right: 2px solid; }

#reactor {
  position: absolute;
  width: 100%; height: 100%;
}

.reactor-overlay {
  position: absolute;
  width: 520px; height: 520px;
  max-width: 80%; max-height: 80%;
  pointer-events: none;
}
.reactor-overlay > div { position: absolute; inset: 0; border-radius: 50%; }

.ring-outer {
  border: 1px solid var(--orange);
  box-shadow: var(--glow), inset var(--glow);
  animation: spin 18s linear infinite;
}
.ring-outer::before, .ring-outer::after {
  content: ""; position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--orange);
  top: -2px; left: 50%;
  transform: translateX(-50%);
}
.ring-outer::after { top: auto; bottom: -2px; }

.ring-mid {
  inset: 40px;
  border: 1px dashed var(--cyan);
  opacity: 0.6;
  animation: spin 9s linear infinite reverse;
}
.ring-inner {
  inset: 90px;
  border: 2px solid var(--orange-bright);
  box-shadow: 0 0 20px rgba(255, 138, 61, 0.7);
  animation: spin 5s linear infinite;
}
.ring-inner::before {
  content: ""; position: absolute;
  inset: -8px;
  border: 1px dotted var(--orange);
  border-radius: 50%;
}

@keyframes spin { to { transform: rotate(360deg); } }

.center-caption {
  position: absolute;
  bottom: 30px;
  text-align: center;
  width: 100%;
  pointer-events: none;
}
.state-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px; letter-spacing: 10px;
  color: var(--orange);
  text-shadow: var(--glow);
}
.state-detail {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

/* ---------- Bottom dock ---------- */

.hud-bottom {
  grid-area: bottom;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--orange-dim);
  background: rgba(10, 14, 31, 0.7);
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 20px 100%);
}

.hud-btn {
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 3px;
  font-size: 12px;
  padding: 10px 18px;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all .15s;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.hud-btn:hover:not(:disabled) {
  background: rgba(232, 101, 26, 0.15);
  box-shadow: var(--glow);
}
.hud-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.hud-btn.primary {
  color: var(--navy);
  background: var(--orange);
  box-shadow: var(--glow);
}
.hud-btn.primary:hover:not(:disabled) { background: var(--orange-bright); }
.hud-btn.danger { border-color: var(--red); color: var(--red); }
.hud-btn.danger:hover:not(:disabled) { background: rgba(255, 59, 59, 0.15); box-shadow: 0 0 14px rgba(255, 59, 59, 0.55); }
.btn-glyph { font-size: 16px; }

#text-input {
  flex: 1;
  background: rgba(10, 14, 31, 0.8);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  padding: 10px 14px;
  letter-spacing: 1px;
  outline: none;
}
#text-input:focus { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
#text-input::placeholder { color: var(--text-dim); }

/* ---------- Boot overlay ---------- */

.boot {
  position: fixed; inset: 0; z-index: 200;
  background: #04060d;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s;
}
.boot.done { opacity: 0; visibility: hidden; }
#boot-log {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--orange);
  max-width: 700px;
  white-space: pre-wrap;
  text-shadow: var(--glow);
}
#boot-log .ok { color: var(--cyan); }
#boot-log .warn { color: var(--orange-bright); }

/* ---------- Lock screen ---------- */

.lock {
  position: fixed; inset: 0; z-index: 250;
  background: radial-gradient(ellipse at center, #0f152b 0%, #04060d 75%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s;
}
.lock.done { opacity: 0; visibility: hidden; }

.lock-panel {
  text-align: center;
  padding: 40px 60px;
  border: 1px solid var(--orange-dim);
  background: rgba(10, 14, 31, 0.85);
  box-shadow: var(--glow);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
  min-width: 420px;
}
.lock-logo {
  font-size: 52px; color: var(--orange);
  text-shadow: var(--glow);
  animation: pulse 2s ease-in-out infinite;
}
.lock-title {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  letter-spacing: 10px; font-size: 28px; color: var(--orange);
  text-shadow: var(--glow); margin-top: 8px;
}
.lock-sub { color: var(--text-dim); letter-spacing: 3px; font-size: 11px; margin-bottom: 30px; }
.lock-panel form { display: flex; flex-direction: column; gap: 12px; }
.lock-panel input {
  background: rgba(10, 14, 31, 0.9);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px; padding: 12px 16px; letter-spacing: 2px;
  outline: none; text-align: center;
}
.lock-panel input:focus { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.lock-panel button {
  background: var(--orange); border: 0; color: var(--navy);
  font-family: 'Orbitron', sans-serif; font-weight: 600;
  letter-spacing: 4px; font-size: 13px; padding: 12px;
  cursor: pointer; box-shadow: var(--glow);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.lock-panel button:hover { background: var(--orange-bright); }
.lock-error { margin-top: 14px; color: var(--red); font-size: 12px; letter-spacing: 2px; min-height: 16px; }

/* ---------- Whoosh / entry animations ---------- */

/* Panels and bars start hidden, slide into place when body gets .booted */
.hud-top, .hud-left, .hud-right, .hud-bottom, .hud-center {
  opacity: 0;
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.hud-top    { transform: translateY(-20px); }
.hud-left   { transform: translateX(-24px); }
.hud-right  { transform: translateX(24px); }
.hud-bottom { transform: translateY(20px); }
.hud-center { transform: scale(0.92); }

body.booted .hud-top,
body.booted .hud-left,
body.booted .hud-right,
body.booted .hud-bottom,
body.booted .hud-center {
  opacity: 1;
  transform: none;
}
body.booted .hud-left   { transition-delay: .08s; }
body.booted .hud-right  { transition-delay: .16s; }
body.booted .hud-bottom { transition-delay: .22s; }
body.booted .hud-center { transition-delay: .04s; }

/* Center flash on state change */
.hud-center.flash::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(232, 101, 26, 0.4) 0%, transparent 60%);
  animation: flashBurst .5s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}
@keyframes flashBurst {
  0%   { opacity: 0; transform: scale(0.6); }
  40%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* Reactor rings pulse harder on flash */
.hud-center.flash .ring-outer,
.hud-center.flash .ring-inner {
  animation-duration: 4s, 1.2s;
}

/* =======================================================
   POLISH LAYER — overrides earlier rules for a refined look
   ======================================================= */

body {
  gap: 12px;
  padding: 14px;
}

/* ---------- Refined panels: L-corner brackets on all 4 corners ---------- */
.panel {
  border: none;
  background: var(--navy-glass);
  padding: 12px 14px;
  clip-path: none;           /* drop old hex cut */
  backdrop-filter: blur(6px) saturate(1.1);
  box-shadow:
    inset 0 0 0 1px rgba(232, 101, 26, 0.22),
    0 0 0 1px rgba(4, 6, 13, 0.6),
    inset 0 1px 0 0 rgba(61, 214, 255, 0.08);
  position: relative;
}
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--orange);
  box-shadow: none;          /* kill old inner shadow */
  pointer-events: none;
  border-left: 0; border-right: 0; border-top: 0; border-bottom: 0;
}
/* top-left & bottom-right = ::before stacked via 2 elements trick:
   we instead paint 4 corners with the panel's corner-wraps via radial conic.
   Simpler: use box-shadow spread to mimic — but cleanest: use pseudo pair + utility class */
.panel::before {
  top: 4px; left: 4px;
  border-top: 1.5px solid var(--orange);
  border-left: 1.5px solid var(--orange);
  filter: drop-shadow(var(--glow-soft));
}
.panel::after {
  bottom: 4px; right: 4px;
  border-bottom: 1.5px solid var(--orange);
  border-right: 1.5px solid var(--orange);
  filter: drop-shadow(var(--glow-soft));
}

.panel-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px;
  letter-spacing: 4px;
  border-bottom: 1px solid rgba(232, 101, 26, 0.25);
  padding-bottom: 6px;
  margin-bottom: 10px;
  text-shadow: var(--glow-soft);
}
.panel-title::before {
  content: "▸";
  color: var(--cyan);
  font-size: 9px;
  text-shadow: var(--glow-cyan);
}

.metric {
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px dotted rgba(107, 130, 168, 0.08);
}
.metric:last-of-type { border-bottom: none; }

/* ---------- Top bar: tactical header ---------- */
.hud-top {
  background:
    linear-gradient(180deg, rgba(232, 101, 26, 0.14), transparent 80%),
    var(--navy-glass);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(232, 101, 26, 0.3),
    0 1px 0 0 rgba(232, 101, 26, 0.15);
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 100%, 0 100%);
  position: relative;
}
.hud-top::after {
  content: "";
  position: absolute;
  left: 40px; right: 40px;
  bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  box-shadow: var(--glow);
  animation: topSweep 6s ease-in-out infinite;
}
@keyframes topSweep { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

.brand-name {
  background: linear-gradient(180deg, var(--orange-bright), var(--orange));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(var(--glow-soft));
}

/* Status dot ripple */
.stat-dot { position: relative; }
.stat-dot::after {
  content: "";
  position: absolute; inset: -6px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0;
}
.stat-dot.listening::after,
.stat-dot.speaking::after,
.stat-dot.thinking::after {
  animation: ripple 1.6s ease-out infinite;
}
@keyframes ripple {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- Center stage ---------- */
.hud-center {
  background:
    radial-gradient(circle at center, rgba(232, 101, 26, 0.1) 0%, transparent 60%),
    linear-gradient(rgba(61, 214, 255, 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(61, 214, 255, 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    rgba(8, 12, 28, 0.55);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(232, 101, 26, 0.3),
    inset 0 0 80px rgba(232, 101, 26, 0.08);
  overflow: hidden;
}
/* kill old corner blocks */
.hud-center::before, .hud-center::after { all: unset; }

/* New L-corners (4 corners, larger, sharper) */
.hud-center .corner {
  position: absolute;
  width: 26px; height: 26px;
  border-color: var(--orange);
  pointer-events: none;
  filter: drop-shadow(var(--glow-soft));
}
.hud-center .corner.tl { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; }
.hud-center .corner.tr { top: 10px; right: 10px; border-top: 2px solid; border-right: 2px solid; }
.hud-center .corner.bl { bottom: 10px; left: 10px; border-bottom: 2px solid; border-left: 2px solid; }
.hud-center .corner.br { bottom: 10px; right: 10px; border-bottom: 2px solid; border-right: 2px solid; }

/* Scanning beam sweeping vertically */
.hud-center .scan-beam {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 14px var(--cyan);
  opacity: 0.65;
  animation: scanBeam 5s cubic-bezier(.4,0,.6,1) infinite;
  pointer-events: none;
}
@keyframes scanBeam {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* Tactical reticle around the reactor */
.reticle {
  position: absolute;
  width: 600px; height: 600px;
  max-width: 86%; max-height: 86%;
  pointer-events: none;
  border-radius: 50%;
  animation: spin 60s linear infinite reverse;
}
.reticle .tick {
  position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 10px;
  background: var(--orange);
  box-shadow: var(--glow-soft);
  transform-origin: 0 300px;  /* half of 600 */
}
.reticle .tick.major { height: 18px; background: var(--orange-bright); }
.reticle .tick.cyan  { background: var(--cyan); box-shadow: var(--glow-cyan); }

/* Coordinates overlay */
.coords {
  position: absolute;
  font-size: 9px; letter-spacing: 2px;
  color: var(--text-dim);
  pointer-events: none;
  opacity: 0.75;
}
.coords.tl { top: 16px; left: 44px; }
.coords.tr { top: 16px; right: 44px; text-align: right; }
.coords.bl { bottom: 16px; left: 44px; }
.coords.br { bottom: 16px; right: 44px; text-align: right; }
.coords .v { color: var(--cyan); text-shadow: var(--glow-cyan); }

.ring-outer { border-color: rgba(232, 101, 26, 0.85); }
.ring-mid   { opacity: 0.35; }
.ring-inner { border-width: 1.5px; box-shadow: 0 0 16px rgba(255, 138, 61, 0.5); }

.state-label {
  font-size: 30px; letter-spacing: 14px;
  font-weight: 900;
  position: relative;
}
/* Chromatic split */
.state-label::before,
.state-label::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.45;
}
.state-label::before { color: var(--cyan); transform: translate(-1px, 0); }
.state-label::after  { color: var(--red);  transform: translate(1px, 0); }

.state-detail {
  font-size: 11px; letter-spacing: 3px;
  margin-top: 10px;
  color: var(--text-dim);
  opacity: 0.85;
}

/* ---------- Data streams on page edges ---------- */
.data-stream {
  position: fixed;
  top: 70px; bottom: 88px;
  width: 12px;
  font-size: 9px;
  color: var(--orange-dim);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.45;
  z-index: 1;
}
.data-stream.left  { left: 2px; }
.data-stream.right { right: 2px; }
.data-stream span {
  display: block;
  writing-mode: vertical-rl;
  white-space: nowrap;
  animation: dataScroll 28s linear infinite;
}
.data-stream.right span { animation-duration: 34s; animation-direction: reverse; }
@keyframes dataScroll {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(50%); }
}

/* ---------- Buttons: sharp tactical look ---------- */
.hud-bottom {
  background:
    linear-gradient(0deg, rgba(232, 101, 26, 0.08), transparent 70%),
    var(--navy-glass);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(232, 101, 26, 0.3),
    0 -1px 0 0 rgba(232, 101, 26, 0.15);
  gap: 12px;
  padding: 0 18px;
}

.hud-btn {
  padding: 10px 22px;
  font-size: 11px;
  letter-spacing: 4px;
  position: relative;
  border: 1px solid var(--orange);
  background: linear-gradient(180deg, rgba(232, 101, 26, 0.08), transparent);
  transition: all .2s cubic-bezier(.2,.8,.2,1);
}
.hud-btn:not(:disabled):hover {
  background: linear-gradient(180deg, rgba(232, 101, 26, 0.25), rgba(232, 101, 26, 0.08));
  transform: translateY(-1px);
}
.hud-btn.primary {
  animation: btnPulse 2.4s ease-in-out infinite;
}
@keyframes btnPulse {
  0%,100% { box-shadow: 0 0 8px rgba(232, 101, 26, 0.5), 0 0 20px rgba(232, 101, 26, 0.2); }
  50%     { box-shadow: 0 0 14px rgba(232, 101, 26, 0.9), 0 0 34px rgba(232, 101, 26, 0.45); }
}
.btn-glyph { font-size: 12px; opacity: 0.9; }

#text-input {
  border: 1px solid rgba(61, 214, 255, 0.25);
  background: rgba(8, 12, 28, 0.7);
  font-size: 12px;
  letter-spacing: 1.5px;
}
#text-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(61, 214, 255, 0.4), inset 0 0 0 1px rgba(61, 214, 255, 0.15);
}

/* ---------- Side panels — softer side rails ---------- */
.loglist li {
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 3px 2px;
  border-bottom: 1px dotted rgba(107, 130, 168, 0.1);
}
.loglist li .t { color: var(--orange-bright); }

.bar {
  margin-top: 8px;
  height: 4px;
  background: rgba(61, 214, 255, 0.06);
  border: 1px solid rgba(61, 214, 255, 0.2);
  position: relative;
}
.bar::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 9px, rgba(0,0,0,0.5) 9px, rgba(0,0,0,0.5) 10px);
  pointer-events: none;
}

.conv .msg {
  font-size: 11px;
  padding: 6px 10px;
  background: rgba(10, 14, 31, 0.35);
}
.conv .msg.user    { border-left-width: 2px; background: rgba(61, 214, 255, 0.04); }
.conv .msg.jarvis  { border-left-width: 2px; background: rgba(232, 101, 26, 0.04); }
.conv .msg .who {
  display: block;
  font-size: 9px; letter-spacing: 3px;
  margin-bottom: 4px;
  opacity: 0.7;
}

/* ---------- Clock upgrade ---------- */
.clock {
  font-size: 18px;
  padding: 4px 12px;
  border-left: 1px solid rgba(232, 101, 26, 0.3);
  border-right: 1px solid rgba(232, 101, 26, 0.3);
}

/* ---------- Scrollbars ---------- */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--orange-dim); }
::-webkit-scrollbar-track { background: transparent; }
