/* App shell: fixed chrome, absolutely-stacked scrollable views, HUD atmosphere. */

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

html, body { height: 100%; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.45;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 56px cyan graph paper, faded by a radial mask */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 214, 245, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 214, 245, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 88%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 88%);
}

/* CRT scanlines over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

#topbar { flex: none; position: relative; z-index: 20; }
#main { flex: 1; position: relative; overflow: hidden; }

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 18px 22px 30px;
  display: none;
}
.view.on { display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h3.ct {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
h3.ct::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(53, 214, 245, 0.7);
}

p.cs { font-style: italic; color: var(--ink2); font-size: 12px; }

.lbl {
  font-family: var(--hud);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.num, td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.good { color: var(--pos); }
.bad { color: var(--neg); }
.warn { color: var(--st-serious); }
.dim { color: var(--muted); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-track { background: transparent; }

svg text { font-family: var(--mono); }
