/* Tech look: same content, new skin. Loaded after app.css. */
:root {
  --bg: #07080a; --surface: #0d0f12; --surface2: #13161a; --line: #1d2127; --line2: #2a2f37;
  --text: #e7e9ec; --muted: #9aa1ab; --dim: #69707a;
  --r: 6px;
  --mono-f: "JetBrains Mono", "DejaVu Sans Mono", ui-monospace, Consolas, monospace;
}
html, body { background-color: var(--bg); }
body {
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px; background-attachment: fixed;
}
.mono { font-family: var(--mono-f); }

/* top bar: terminal-like */
.top { background: rgba(7,8,10,.82); border-bottom-color: var(--line); }
.brand .cup { border-radius: 5px; background: transparent; border-color: var(--violet); box-shadow: 0 0 14px rgba(167,139,250,.25); }
.brand small { font-family: var(--mono-f); font-size: 10px; letter-spacing: .02em; }
nav a { border-radius: 0; padding: 6px 11px; }
nav a:hover { background: transparent; }
nav a.on { background: transparent; box-shadow: inset 0 -2px 0 var(--violet); color: var(--text); }
.pill { border-radius: 4px; font-family: var(--mono-f); font-size: 10.5px; background: var(--surface); }
.pill.live { background: rgba(142,224,181,.06); }
.pill.live .dot { box-shadow: 0 0 8px var(--green); }
#clock { font-family: var(--mono-f); }
select, input[type=text] { border-radius: 4px !important; }

/* page title and paragraphs */
.pagehead h1 { font-size: 22px; letter-spacing: -.02em; }
.pagehead h1::before { content: '> '; color: var(--violet); font-family: var(--mono-f); font-weight: 500; }

/* panels */
.card { background: var(--surface); border-color: var(--line); border-radius: var(--r); }
.card .hd { border-bottom-color: var(--line); }

/* key numbers: readouts */
.kpis { gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.kpi { border: 0; border-radius: 0; border-left: 1px solid var(--line); background: transparent; padding: 13px 16px; position: relative; }
.kpi:first-child { border-left: 0; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--violet), transparent 70%); opacity: .7; }
.kpi .lbl { font-family: var(--mono-f); font-size: 10.5px; color: var(--dim); }
.kpi .val { font-size: 21px; letter-spacing: -.02em; }
.kpi .sub { font-family: var(--mono-f); font-size: 10.5px; }

/* section titles */
h2.sect { font-size: 14px; display: flex; align-items: center; gap: 10px; }
h2.sect::before { content: '//'; color: var(--violet); font-family: var(--mono-f); font-weight: 500; font-size: 12px; }
h2.sect::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }

/* realism cards: modules */
.realgrid .card { position: relative; }
.realgrid .card .hd { padding-top: 11px; padding-bottom: 11px; }
.realgrid .card .hd h2 { font-family: var(--mono-f); font-size: 12px; font-weight: 500; color: var(--violet); }
.realgrid .card:hover { border-color: var(--violet-line); }
ul.facts { list-style: none; padding-left: 0; gap: 8px; font-size: 12px; }
ul.facts li { position: relative; padding-left: 16px; }
ul.facts li::before { content: '›'; position: absolute; left: 2px; top: -1px; color: var(--violet); font-family: var(--mono-f); }

/* tabs and search */
.seg { border-radius: 4px; background: var(--surface); }
.seg button { font-family: var(--mono-f); font-size: 11px; }
.seg button.on { background: rgba(167,139,250,.12); box-shadow: inset 0 -2px 0 var(--violet); }
.btn { border-radius: 4px; font-family: var(--mono-f); font-size: 11px; }
.field > span { font-family: var(--mono-f); font-size: 10.5px; }

/* tables: data grid */
th { font-family: var(--mono-f); font-size: 10px; letter-spacing: .02em; background: var(--surface2); }
tbody tr:hover td { background: rgba(167,139,250,.04); }
td.mono { color: var(--violet) !important; font-size: 11px; }
.tag { border-radius: 3px; font-family: var(--mono-f); font-size: 10px; }

/* About: numbers as a 2 × 2 readout beside the event stream */
.abouttop .kpis .kpi:nth-child(3) { border-left: 0; }
.abouttop .kpis .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
.abouttop .kpis .kpi:nth-child(n+3)::before { display: none; }
.evp { background: var(--surface); }

/* Developer-style menu: code font, key numbers, a path for the open page */
nav a { font-family: var(--mono-f); font-size: 11.5px; }
nav a:hover kbd { color: var(--muted); }
nav a { padding-left: 8px; padding-right: 8px; }

/* While a report reloads after a filter change: dim the old numbers until the new ones arrive */
#app.busy { opacity: .45; pointer-events: none; transition: opacity .12s; }

/* company switcher (shared with the Stivel Computers pages) */
.coswitch { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; padding: 2px; background: var(--surface); }
.coswitch a { padding: 3px 11px; border-radius: 999px; color: var(--muted); font-size: 11px; text-decoration: none; white-space: nowrap; }
.coswitch a:hover { color: var(--text); }
.coswitch a.on { background: var(--violet); color: var(--on-violet); font-weight: 600; }

/* ---------- Sidebar layout (same structure as the Stivel Computers pages, in Kape's violet) ---------- */
.shell { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; width: 216px; flex: none; display: flex; flex-direction: column; gap: 0;
  background: #050607; border-right: 1px solid var(--line); padding: 12px 10px; z-index: 35; }
.col { flex: 1; min-width: 0; }
.side .brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.side .brand b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -.015em; }
.side .brand small { margin-top: -1px; }
.side nav { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 1px; flex: 1; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 5px; border: 1px solid transparent;
  font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif; font-size: 12.5px; color: var(--muted); box-shadow: none; }
.side nav a svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.side nav a:hover { color: var(--text); background: var(--surface2); }
.side nav a.on { color: var(--text); background: var(--surface2); border-color: var(--line2); box-shadow: none; }
.side nav a.on svg { color: var(--violet); opacity: 1; }
.sidefoot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 4px 2px; border-top: 1px solid var(--line); }
.sidefoot .pill { max-width: 100%; }
.top { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 14px; padding: 9px 22px; }
.crumb { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 12.5px; white-space: nowrap; }
.crumb b { font-weight: 500; }
.crumb .slash { color: var(--line2); }
.topright { flex-wrap: nowrap; }
.mswitch { display: none !important; }
main { max-width: 1340px; margin: 0; padding: 20px 22px 60px; }
@media (max-width: 1500px) { #clock { display: inline-flex; } }
@media (max-width: 1240px) { #clock { display: none; } }
@media print { .side { display: none !important; } }
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: sticky; top: 0; height: auto; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .brand { border-bottom: 0; margin: 0; padding: 0 0 6px; }
  .mswitch { display: inline-flex !important; margin: 0 0 6px auto; }
  .side nav { order: 3; flex-basis: 100%; flex-direction: row; overflow-x: auto; margin: 0 -16px; padding: 0 10px 6px; gap: 2px; }
  .side nav a { white-space: nowrap; padding: 5px 9px; }
  .side nav a svg { display: none; }
  .sidefoot { display: none; }
  .top { display: none; }
  main { padding: 14px 16px 50px; }
}

/* company switcher sits at the left of the top bar */
.top > .coswitch { margin-right: auto; }
