:root {
  --bg: #0b0e14;
  --fg: #c8d3e0;
  --accent: #61afef;
  --glow: rgba(97, 175, 239, 0.3);
  --bar-border: rgba(97, 175, 239, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

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

#app {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100vh;
  padding: 18px 22px 14px;
}

#bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#bar button {
  font: inherit;
  font-size: 13px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--bar-border);
  border-radius: 6px;
  padding: 3px 12px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

#bar button:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: 0 0 8px var(--glow);
}

#term-host {
  flex: 1;
  min-height: 0;
}

#term-screen {
  height: 100%;
}

#term-screen .xterm {
  height: 100%;
}

/* Faint CRT scanlines over the whole page. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0 1px,
    transparent 1px 3px
  );
}
