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

:root {
  --bg: #0b0e11;
  --panel: #11151a;
  --border: #232b33;
  --fg: #c8d3dc;
  --accent: #7ee787;
  --dim: #6b7681;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, monospace;
}

body {
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

header .title {
  color: var(--accent);
  font-weight: bold;
  letter-spacing: 0.2em;
}

header .tagline { color: var(--dim); font-size: 0.85rem; }

header .status {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--dim);
}

header .status.connected { color: var(--accent); }
header .status.disconnected { color: #ff7b72; }

main {
  flex: 1;
  min-height: 0;
  padding: 0.75rem;
  position: relative;
}

/* faint CRT scanlines, because we contain multitudes */
main::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
}

#terminal {
  height: 100%;
  width: 100%;
}

footer {
  padding: 0.4rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--panel);
  color: var(--dim);
  font-size: 0.8rem;
}

footer code { color: var(--fg); }
