/* ==========================================================
   Ops Console — HACKER theme (a flat theme on theme-kit.css): an intrusion console on a corrupted signal.
   Not the old CRT of SILO (pixel font, glow, scanlines, boxed titles): crisp JetBrains Mono on pure black, no glow, and
   an interface that reads like a shell. The navigation is a list of commands (./status, M-1), panel titles are prompts
   (~$ cpu_), buttons are [ bracketed ] words that invert on hover, fields are prompts (passphrase:), tables read like
   `ls -l` (# name size…), badges are <tags>, segmented choices are [ a | b ], gauges are [|||||....] bars, timeline events
   are square pixels, the tab strip is a tmux status bar (0:status 1:files*), the status line is a shell prompt with a
   blinking block, modals and the context menu are text-mode dialogs with their title on the frame. A faint field of
   binary digits sits behind everything; the name and the numbers split into red and cyan ghosts, the name glitches every
   few seconds and buttons jitter on hover (only without prefers-reduced-motion).
   Light = green-bar line-printer paper: green bands, sprocket holes along the panels, dark green ink.
   The two modes share the structure; the decorations that only one mode has go through variables (--matrix, --bars,
   --holes: none / transparent in the other one).
   ========================================================== */
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-400.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-700.woff2) format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-800.woff2) format('woff2'); font-weight: 800 900; font-display: swap; }

/* ---------- light: green-bar line-printer paper ---------- */
:root[data-theme="hacker"] {
  --cream: #eef2ea;
  --paper: #fbfcf8;
  --fg: #12301c;
  --hi: #04120a;
  --ink: #8aa592;
  --on: #ffffff;
  --y: #0a7a35;
  --blue: #1f5fbf; --red: #c8102e; --green: #0a7a35; --orange: #b86e00; --purple: #6b3fc9; --mint: #0b7f6e; --pink: #b8336f;
  --screen: #000000;
  --screen-fg: #33ff77;
  --gA: rgba(220, 20, 60, 0.5);
  --gB: rgba(0, 140, 190, 0.45);
  --matrix: none;
  --bars: rgba(26, 140, 60, 0.085);
  --holes: #d4ddd2;
  --k-bw-lg: 1px; --k-bw: 1px; --k-bw-sm: 1px; --k-bw-xs: 1px;
  --k-r: 0; --k-r-pill: 0; --k-move: 0;
  --sh-sm: none; --sh: none; --sh-lg: none; --sh-hover: none; --sh-hover-lg: none; --sh-press: none;
  --k-inset: none; --k-inset-on: none;
  --ui: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --mono: var(--ui);
  --chart-line: #0a7a35;
  --chart-alt: #c8102e;
  --chart-glow: 0;
  --chart-font: 500 11px 'JetBrains Mono', monospace;
  /* cursors: generated by tools/kit-cursors.mjs hacker */
  --cur-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='32' viewBox='0 0 26 32'%3E%3Cpath d='M0 7h2v2h-2zM6 7h2v2h-2zM0 9h2v2h-2zM8 9h2v2h-2zM0 11h2v2h-2zM10 11h2v2h-2zM0 13h2v2h-2zM12 13h2v2h-2zM0 15h2v2h-2zM14 15h2v2h-2zM0 17h2v2h-2zM16 17h2v2h-2z' fill='%23e0103c' opacity='0.85'/%3E%3Cpath d='M4 21h2v2h-2zM10 21h2v2h-2zM16 21h2v2h-2zM4 23h2v2h-2zM8 23h2v2h-2zM12 23h2v2h-2zM18 23h2v2h-2zM4 25h4v2h-4zM12 25h2v2h-2zM18 25h2v2h-2zM4 27h2v2h-2zM14 27h2v2h-2zM20 27h2v2h-2z' fill='%230090c0' opacity='0.8'/%3E%3Cpath d='M2 1h2v2h-2zM2 3h4v2h-4zM2 5h2v2h-2zM6 5h2v2h-2zM2 7h2v2h-2zM8 7h2v2h-2zM2 9h2v2h-2zM10 9h2v2h-2zM2 11h2v2h-2zM12 11h2v2h-2zM4 13h2v2h-2zM16 13h2v2h-2zM4 15h2v2h-2zM18 15h2v2h-2zM2 17h2v2h-2zM18 17h2v2h-2zM2 19h2v2h-2zM14 19h8v2h-8zM2 21h2v2h-2zM8 21h2v2h-2zM14 21h2v2h-2zM2 23h2v2h-2zM6 23h2v2h-2zM10 23h2v2h-2zM16 23h2v2h-2zM2 25h4v2h-4zM10 25h2v2h-2zM16 25h2v2h-2zM2 27h2v2h-2zM12 27h2v2h-2zM18 27h2v2h-2zM12 29h6v2h-6z' fill='%230b6b2e'/%3E%3Cpath d='M4 5h2v2h-2zM4 7h4v2h-4zM4 9h6v2h-6zM4 11h8v2h-8zM6 13h10v2h-10zM6 15h12v2h-12zM4 17h14v2h-14zM4 19h10v2h-10zM4 21h4v2h-4zM10 21h4v2h-4zM4 23h2v2h-2zM12 23h4v2h-4zM12 25h4v2h-4zM14 27h4v2h-4z' fill='%23ffffff'/%3E%3C/svg%3E") 4 1, default;
  --cur-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='32' viewBox='0 0 26 32'%3E%3Cpath d='M1 0h4v4h-4zM1 2h6v4h-6zM1 4h4v4h-4zM3 4h4v4h-4zM5 4h4v4h-4zM1 6h4v4h-4zM3 6h6v4h-6zM7 6h4v4h-4zM1 8h4v4h-4zM3 8h8v4h-8zM9 8h4v4h-4zM1 10h4v4h-4zM3 10h10v4h-10zM11 10h4v4h-4zM1 12h4v4h-4zM3 12h12v4h-12zM13 12h4v4h-4zM1 14h4v4h-4zM3 14h14v4h-14zM15 14h4v4h-4zM1 16h4v4h-4zM3 16h16v4h-16zM17 16h4v4h-4zM1 18h4v4h-4zM3 18h12v4h-12zM13 18h10v4h-10zM1 20h4v4h-4zM3 20h6v4h-6zM7 20h4v4h-4zM9 20h6v4h-6zM13 20h4v4h-4zM1 22h4v4h-4zM3 22h4v4h-4zM5 22h4v4h-4zM9 22h4v4h-4zM11 22h6v4h-6zM15 22h4v4h-4zM1 24h6v4h-6zM9 24h4v4h-4zM11 24h6v4h-6zM15 24h4v4h-4zM1 26h4v4h-4zM11 26h4v4h-4zM13 26h6v4h-6zM17 26h4v4h-4zM11 28h8v4h-8z' fill='%23ffffff'/%3E%3Cpath d='M2 1h2v2h-2zM2 3h4v2h-4zM2 5h2v2h-2zM4 5h2v2h-2zM6 5h2v2h-2zM2 7h2v2h-2zM4 7h4v2h-4zM8 7h2v2h-2zM2 9h2v2h-2zM4 9h6v2h-6zM10 9h2v2h-2zM2 11h2v2h-2zM4 11h8v2h-8zM12 11h2v2h-2zM2 13h2v2h-2zM4 13h10v2h-10zM14 13h2v2h-2zM2 15h2v2h-2zM4 15h12v2h-12zM16 15h2v2h-2zM2 17h2v2h-2zM4 17h14v2h-14zM18 17h2v2h-2zM2 19h2v2h-2zM4 19h10v2h-10zM14 19h8v2h-8zM2 21h2v2h-2zM4 21h4v2h-4zM8 21h2v2h-2zM10 21h4v2h-4zM14 21h2v2h-2zM2 23h2v2h-2zM4 23h2v2h-2zM6 23h2v2h-2zM10 23h2v2h-2zM12 23h4v2h-4zM16 23h2v2h-2zM2 25h4v2h-4zM10 25h2v2h-2zM12 25h4v2h-4zM16 25h2v2h-2zM2 27h2v2h-2zM12 27h2v2h-2zM14 27h4v2h-4zM18 27h2v2h-2zM12 29h6v2h-6z' fill='%230b6b2e'/%3E%3C/svg%3E") 2 1, default;
  --cur-hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 22 24'%3E%3Crect x='2' y='2' width='14' height='20' fill='%23e0103c' opacity='.85'/%3E%3Crect x='6' y='2' width='14' height='20' fill='%230090c0' opacity='.75'/%3E%3Crect x='4' y='2' width='14' height='20' fill='%230b6b2e' stroke='%23ffffff' stroke-width='1.5'/%3E%3Cpath d='M6 7h2v2h-2zM8 9h2v2h-2zM10 11h2v2h-2zM8 13h2v2h-2zM6 15h2v2h-2zM12 15h6v2h-6z' fill='%23ffffff'/%3E%3C/svg%3E") 11 12, pointer;
  --cur-hand-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 22 24'%3E%3Crect x='4' y='3' width='14' height='20' fill='%23ffffff' stroke='%230b6b2e' stroke-width='1.5'/%3E%3Cpath d='M6 8h2v2h-2zM8 10h2v2h-2zM10 12h2v2h-2zM8 14h2v2h-2zM6 16h2v2h-2zM12 16h6v2h-6z' fill='%230b6b2e'/%3E%3C/svg%3E") 11 13, pointer;
  --cur-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='30' viewBox='0 0 16 30'%3E%3Cpath d='M5 2h4v2h-4zM11 2h4v2h-4zM9 4h2v2h-2zM9 6h2v2h-2zM9 8h2v2h-2zM9 10h2v2h-2zM9 12h2v2h-2zM9 14h2v2h-2zM9 16h2v2h-2zM9 18h2v2h-2zM9 20h2v2h-2zM9 22h2v2h-2zM9 24h2v2h-2zM5 26h4v2h-4zM11 26h4v2h-4z' fill='%23e0103c' opacity='0.7'/%3E%3Cpath d='M2 1h6v4h-6zM8 1h6v4h-6zM6 3h4v4h-4zM6 5h4v4h-4zM6 7h4v4h-4zM6 9h4v4h-4zM6 11h4v4h-4zM6 13h4v4h-4zM6 15h4v4h-4zM6 17h4v4h-4zM6 19h4v4h-4zM6 21h4v4h-4zM6 23h4v4h-4zM2 25h6v4h-6zM8 25h6v4h-6z' fill='%23ffffff'/%3E%3Cpath d='M3 2h4v2h-4zM9 2h4v2h-4zM7 4h2v2h-2zM7 6h2v2h-2zM7 8h2v2h-2zM7 10h2v2h-2zM7 12h2v2h-2zM7 14h2v2h-2zM7 16h2v2h-2zM7 18h2v2h-2zM7 20h2v2h-2zM7 22h2v2h-2zM7 24h2v2h-2zM3 26h4v2h-4zM9 26h4v2h-4z' fill='%230b6b2e'/%3E%3C/svg%3E") 8 15, text;
  color-scheme: light;
}

/* ---------- dark: the intrusion console ---------- */
:root[data-theme="hacker"][data-mode="dark"] {
  --cream: #000000;
  --paper: #030603;
  --fg: #29f06a;
  --hi: #e9fff0;
  --ink: #145c2b;
  --on: #000000;
  --y: #00ff66;
  --blue: #3aa0ff; --red: #ff3355; --green: #00ff66; --orange: #ffb000; --purple: #b07cff; --mint: #00e0b0; --pink: #ff4fa3;
  --gA: rgba(255, 40, 80, 0.75);
  --gB: rgba(0, 210, 255, 0.65);
  --matrix: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='264'%20height='312'%3E%3Cg%20font-family='monospace'%20font-size='11'%20fill='%2300ff66'%3E%3Ctext%20x='6'%20y='232'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='6'%20y='245'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='6'%20y='258'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='6'%20y='271'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='6'%20y='284'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='6'%20y='297'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='6'%20y='11'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='6'%20y='24'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='6'%20y='37'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='6'%20y='50'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='6'%20y='63'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='6'%20y='76'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='6'%20y='89'%20fill-opacity='.13'%3E0%3C/text%3E%3Ctext%20x='32'%20y='297'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='32'%20y='310'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='32'%20y='11'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='32'%20y='37'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='32'%20y='50'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='32'%20y='63'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='32'%20y='76'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='32'%20y='102'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='32'%20y='115'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='32'%20y='128'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='32'%20y='141'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='32'%20y='154'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='32'%20y='167'%20fill-opacity='.13'%3E0%3C/text%3E%3Ctext%20x='48'%20y='297'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='48'%20y='310'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='48'%20y='11'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='48'%20y='24'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='48'%20y='37'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='48'%20y='50'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='48'%20y='63'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='48'%20y='76'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='48'%20y='89'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='48'%20y='102'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='48'%20y='115'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='81'%20y='167'%20fill-opacity='.035'%3E1%3C/text%3E%3Ctext%20x='81'%20y='180'%20fill-opacity='.035'%3E0%3C/text%3E%3Ctext%20x='81'%20y='193'%20fill-opacity='.035'%3E1%3C/text%3E%3Ctext%20x='81'%20y='206'%20fill-opacity='.035'%3E1%3C/text%3E%3Ctext%20x='81'%20y='219'%20fill-opacity='.035'%3E1%3C/text%3E%3Ctext%20x='81'%20y='232'%20fill-opacity='.035'%3E0%3C/text%3E%3Ctext%20x='81'%20y='245'%20fill-opacity='.035'%3E1%3C/text%3E%3Ctext%20x='81'%20y='258'%20fill-opacity='.035'%3E1%3C/text%3E%3Ctext%20x='81'%20y='271'%20fill-opacity='.035'%3E1%3C/text%3E%3Ctext%20x='121'%20y='89'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='121'%20y='102'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='121'%20y='115'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='121'%20y='128'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='121'%20y='141'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='121'%20y='154'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='121'%20y='167'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='121'%20y='180'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='121'%20y='193'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='121'%20y='206'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='121'%20y='219'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='121'%20y='232'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='121'%20y='245'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='121'%20y='258'%20fill-opacity='.13'%3E1%3C/text%3E%3Ctext%20x='137'%20y='115'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='137'%20y='128'%20fill-opacity='.045'%3E1%3C/text%3E%3Ctext%20x='137'%20y='141'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='137'%20y='154'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='137'%20y='167'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='137'%20y='180'%20fill-opacity='.045'%3E1%3C/text%3E%3Ctext%20x='137'%20y='193'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='137'%20y='206'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='137'%20y='219'%20fill-opacity='.045'%3E1%3C/text%3E%3Ctext%20x='137'%20y='232'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='137'%20y='245'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='137'%20y='258'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='137'%20y='271'%20fill-opacity='.045'%3E1%3C/text%3E%3Ctext%20x='137'%20y='284'%20fill-opacity='.13'%3E1%3C/text%3E%3Ctext%20x='163'%20y='11'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='163'%20y='24'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='163'%20y='37'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='163'%20y='50'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='163'%20y='63'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='163'%20y='89'%20fill-opacity='.055'%3E1%3C/text%3E%3Ctext%20x='163'%20y='102'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='163'%20y='115'%20fill-opacity='.055'%3E0%3C/text%3E%3Ctext%20x='163'%20y='128'%20fill-opacity='.13'%3E1%3C/text%3E%3Ctext%20x='189'%20y='193'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='189'%20y='219'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='189'%20y='232'%20fill-opacity='.045'%3E1%3C/text%3E%3Ctext%20x='189'%20y='258'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='189'%20y='284'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='189'%20y='297'%20fill-opacity='.045'%3E1%3C/text%3E%3Ctext%20x='189'%20y='310'%20fill-opacity='.045'%3E1%3C/text%3E%3Ctext%20x='189'%20y='11'%20fill-opacity='.045'%3E0%3C/text%3E%3Ctext%20x='189'%20y='24'%20fill-opacity='.045'%3E1%3C/text%3E%3Ctext%20x='189'%20y='37'%20fill-opacity='.13'%3E1%3C/text%3E%3Ctext%20x='205'%20y='141'%20fill-opacity='.035'%3E0%3C/text%3E%3Ctext%20x='205'%20y='167'%20fill-opacity='.035'%3E1%3C/text%3E%3Ctext%20x='205'%20y='180'%20fill-opacity='.035'%3E1%3C/text%3E%3Ctext%20x='205'%20y='193'%20fill-opacity='.035'%3E0%3C/text%3E%3Ctext%20x='205'%20y='219'%20fill-opacity='.035'%3E0%3C/text%3E%3Ctext%20x='205'%20y='232'%20fill-opacity='.035'%3E1%3C/text%3E%3Ctext%20x='205'%20y='245'%20fill-opacity='.035'%3E0%3C/text%3E%3Ctext%20x='205'%20y='258'%20fill-opacity='.035'%3E0%3C/text%3E%3Ctext%20x='205'%20y='271'%20fill-opacity='.035'%3E0%3C/text%3E%3Ctext%20x='205'%20y='284'%20fill-opacity='.035'%3E1%3C/text%3E%3Ctext%20x='205'%20y='297'%20fill-opacity='.035'%3E1%3C/text%3E%3Ctext%20x='205'%20y='11'%20fill-opacity='.13'%3E1%3C/text%3E%3Ctext%20x='231'%20y='297'%20fill-opacity='.045'%3E1%3C/text%3E%3Ctext%20x='231'%20y='11'%20fill-opacity='.045'%3E1%3C/text%3E%3Ctext%20x='231'%20y='24'%20fill-opacity='.045'%3E0%3C/text%3E%3C/g%3E%3C/svg%3E");
  --bars: transparent;
  --holes: transparent;
  --chart-line: #00ff66;
  --chart-alt: #ff3355;
  --cur-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='32' viewBox='0 0 26 32'%3E%3Cpath d='M0 7h2v2h-2zM6 7h2v2h-2zM0 9h2v2h-2zM8 9h2v2h-2zM0 11h2v2h-2zM10 11h2v2h-2zM0 13h2v2h-2zM12 13h2v2h-2zM0 15h2v2h-2zM14 15h2v2h-2zM0 17h2v2h-2zM16 17h2v2h-2z' fill='%23ff2e55' opacity='0.85'/%3E%3Cpath d='M4 21h2v2h-2zM10 21h2v2h-2zM16 21h2v2h-2zM4 23h2v2h-2zM8 23h2v2h-2zM12 23h2v2h-2zM18 23h2v2h-2zM4 25h4v2h-4zM12 25h2v2h-2zM18 25h2v2h-2zM4 27h2v2h-2zM14 27h2v2h-2zM20 27h2v2h-2z' fill='%2300c8ff' opacity='0.8'/%3E%3Cpath d='M2 1h2v2h-2zM2 3h4v2h-4zM2 5h2v2h-2zM6 5h2v2h-2zM2 7h2v2h-2zM8 7h2v2h-2zM2 9h2v2h-2zM10 9h2v2h-2zM2 11h2v2h-2zM12 11h2v2h-2zM4 13h2v2h-2zM16 13h2v2h-2zM4 15h2v2h-2zM18 15h2v2h-2zM2 17h2v2h-2zM18 17h2v2h-2zM2 19h2v2h-2zM14 19h8v2h-8zM2 21h2v2h-2zM8 21h2v2h-2zM14 21h2v2h-2zM2 23h2v2h-2zM6 23h2v2h-2zM10 23h2v2h-2zM16 23h2v2h-2zM2 25h4v2h-4zM10 25h2v2h-2zM16 25h2v2h-2zM2 27h2v2h-2zM12 27h2v2h-2zM18 27h2v2h-2zM12 29h6v2h-6z' fill='%2300ff66'/%3E%3Cpath d='M4 5h2v2h-2zM4 7h4v2h-4zM4 9h6v2h-6zM4 11h8v2h-8zM6 13h10v2h-10zM6 15h12v2h-12zM4 17h14v2h-14zM4 19h10v2h-10zM4 21h4v2h-4zM10 21h4v2h-4zM4 23h2v2h-2zM12 23h4v2h-4zM12 25h4v2h-4zM14 27h4v2h-4z' fill='%23000000'/%3E%3C/svg%3E") 4 1, default;
  --cur-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='32' viewBox='0 0 26 32'%3E%3Cpath d='M1 0h4v4h-4zM1 2h6v4h-6zM1 4h4v4h-4zM3 4h4v4h-4zM5 4h4v4h-4zM1 6h4v4h-4zM3 6h6v4h-6zM7 6h4v4h-4zM1 8h4v4h-4zM3 8h8v4h-8zM9 8h4v4h-4zM1 10h4v4h-4zM3 10h10v4h-10zM11 10h4v4h-4zM1 12h4v4h-4zM3 12h12v4h-12zM13 12h4v4h-4zM1 14h4v4h-4zM3 14h14v4h-14zM15 14h4v4h-4zM1 16h4v4h-4zM3 16h16v4h-16zM17 16h4v4h-4zM1 18h4v4h-4zM3 18h12v4h-12zM13 18h10v4h-10zM1 20h4v4h-4zM3 20h6v4h-6zM7 20h4v4h-4zM9 20h6v4h-6zM13 20h4v4h-4zM1 22h4v4h-4zM3 22h4v4h-4zM5 22h4v4h-4zM9 22h4v4h-4zM11 22h6v4h-6zM15 22h4v4h-4zM1 24h6v4h-6zM9 24h4v4h-4zM11 24h6v4h-6zM15 24h4v4h-4zM1 26h4v4h-4zM11 26h4v4h-4zM13 26h6v4h-6zM17 26h4v4h-4zM11 28h8v4h-8z' fill='%23000000'/%3E%3Cpath d='M2 1h2v2h-2zM2 3h4v2h-4zM2 5h2v2h-2zM6 5h2v2h-2zM2 7h2v2h-2zM8 7h2v2h-2zM2 9h2v2h-2zM10 9h2v2h-2zM2 11h2v2h-2zM12 11h2v2h-2zM2 13h2v2h-2zM14 13h2v2h-2zM2 15h2v2h-2zM16 15h2v2h-2zM2 17h2v2h-2zM18 17h2v2h-2zM2 19h2v2h-2zM14 19h8v2h-8zM2 21h2v2h-2zM8 21h2v2h-2zM14 21h2v2h-2zM2 23h2v2h-2zM6 23h2v2h-2zM10 23h2v2h-2zM16 23h2v2h-2zM2 25h4v2h-4zM10 25h2v2h-2zM16 25h2v2h-2zM2 27h2v2h-2zM12 27h2v2h-2zM18 27h2v2h-2zM12 29h6v2h-6z' fill='%23000000'/%3E%3Cpath d='M4 5h2v2h-2zM4 7h4v2h-4zM4 9h6v2h-6zM4 11h8v2h-8zM4 13h10v2h-10zM4 15h12v2h-12zM4 17h14v2h-14zM4 19h10v2h-10zM4 21h4v2h-4zM10 21h4v2h-4zM4 23h2v2h-2zM12 23h4v2h-4zM12 25h4v2h-4zM14 27h4v2h-4z' fill='%2300ff66'/%3E%3C/svg%3E") 2 1, default;
  --cur-hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 22 24'%3E%3Crect x='2' y='2' width='14' height='20' fill='%23ff2e55' opacity='.85'/%3E%3Crect x='6' y='2' width='14' height='20' fill='%2300c8ff' opacity='.75'/%3E%3Crect x='4' y='2' width='14' height='20' fill='%2300ff66' stroke='%23000000' stroke-width='1.5'/%3E%3Cpath d='M6 7h2v2h-2zM8 9h2v2h-2zM10 11h2v2h-2zM8 13h2v2h-2zM6 15h2v2h-2zM12 15h6v2h-6z' fill='%23000000'/%3E%3C/svg%3E") 11 12, pointer;
  --cur-hand-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='24' viewBox='0 0 22 24'%3E%3Crect x='4' y='3' width='14' height='20' fill='%23000000' stroke='%2300ff66' stroke-width='1.5'/%3E%3Cpath d='M6 8h2v2h-2zM8 10h2v2h-2zM10 12h2v2h-2zM8 14h2v2h-2zM6 16h2v2h-2zM12 16h6v2h-6z' fill='%2300ff66'/%3E%3C/svg%3E") 11 13, pointer;
  --cur-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='30' viewBox='0 0 16 30'%3E%3Cpath d='M5 2h4v2h-4zM11 2h4v2h-4zM9 4h2v2h-2zM9 6h2v2h-2zM9 8h2v2h-2zM9 10h2v2h-2zM9 12h2v2h-2zM9 14h2v2h-2zM9 16h2v2h-2zM9 18h2v2h-2zM9 20h2v2h-2zM9 22h2v2h-2zM9 24h2v2h-2zM5 26h4v2h-4zM11 26h4v2h-4z' fill='%23ff2e55' opacity='0.7'/%3E%3Cpath d='M2 1h6v4h-6zM8 1h6v4h-6zM6 3h4v4h-4zM6 5h4v4h-4zM6 7h4v4h-4zM6 9h4v4h-4zM6 11h4v4h-4zM6 13h4v4h-4zM6 15h4v4h-4zM6 17h4v4h-4zM6 19h4v4h-4zM6 21h4v4h-4zM6 23h4v4h-4zM2 25h6v4h-6zM8 25h6v4h-6z' fill='%23000000'/%3E%3Cpath d='M3 2h4v2h-4zM9 2h4v2h-4zM7 4h2v2h-2zM7 6h2v2h-2zM7 8h2v2h-2zM7 10h2v2h-2zM7 12h2v2h-2zM7 14h2v2h-2zM7 16h2v2h-2zM7 18h2v2h-2zM7 20h2v2h-2zM7 22h2v2h-2zM7 24h2v2h-2zM3 26h4v2h-4zM9 26h4v2h-4z' fill='%2300ff66'/%3E%3C/svg%3E") 8 15, text;
  color-scheme: dark;
}

[data-theme="hacker"] {
  & body { font: 400 13px/1.5 var(--ui); letter-spacing: 0; }
  --split: -1px 0 var(--gA), 1px 0 var(--gB); /* the corrupted signal: a red ghost on the left, a cyan one on the right */

  /* ---------- page: binary digits (dark) or green bands (light) ---------- */
  .crt { background: var(--matrix) 0 0 / 264px 312px, repeating-linear-gradient(180deg, var(--bars) 0 44px, transparent 44px 88px), var(--cream); }
  & code, .code-inline { font: 12px var(--ui); color: var(--y); background: none; border: 0; border-radius: 0; padding: 0; }
  & code::before, .code-inline::before { content: '`'; color: var(--muted); }
  & code::after, .code-inline::after { content: '`'; color: var(--muted); }
  .link { color: var(--y); text-decoration: underline dashed 1px; text-underline-offset: 3px; }
  & input, & textarea { caret-color: var(--y); }
  & * { scrollbar-color: var(--ink) transparent; scrollbar-width: thin; }
  & ::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 0; }

  /* ---------- top bar: root@name:~# ---------- */
  .topbar { background: var(--paper); border-bottom: 1px solid var(--ink); }
  .brand { gap: 0; font: 700 15px/1 var(--ui); letter-spacing: 0; text-transform: lowercase; color: var(--hi); text-shadow: var(--gl, var(--split)) !important; }
  .brand::before {
    content: 'root@'; display: inline; width: auto; height: auto; font: inherit; color: var(--y);
    background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .brand::after { content: ':~#'; color: var(--muted); }
  .clock { font: 400 13px/1 var(--ui); letter-spacing: 0; color: var(--fg); background: none; padding: 0; border-radius: 0; }
  .clock::before { content: '['; color: var(--muted); }
  .clock::after { content: ']'; color: var(--muted); }
  .top-info { text-transform: lowercase; }
  .top-info span b { color: var(--hi); }

  /* ---------- status line: a shell prompt with a blinking block ---------- */
  .statusline { background: var(--paper); border-top: 1px solid var(--ink); font: 400 12px var(--ui); letter-spacing: 0; color: var(--fg); }
  .statusline .prompt { background: none; padding: 0; color: var(--y); font-weight: 700; border-radius: 0; }
  .statusline .cursor { display: inline; color: var(--y); }
  #status-msg.ok, #link-state { color: var(--y); }

  /* ---------- navigation: commands ---------- */
  .nav { background: var(--paper); border-right: 1px solid var(--ink); padding: 16px 10px; gap: 2px; }
  .nav a { gap: 0; padding: 7px 8px; font: 400 13px/1 var(--ui); letter-spacing: 0; text-transform: lowercase; color: var(--fg); border: 0; border-radius: 0; }
  .nav a .nav-label::before { content: './'; color: var(--muted); }
  .nav a kbd { order: 2; margin-left: auto; min-width: 0; padding: 0; font: 400 11px/1 var(--ui); color: var(--muted); background: none; border: 0; border-radius: 0; text-transform: none; }
  .nav a kbd::before { content: 'M-'; } /* Meta = Alt */
  .nav a:hover { background: color-mix(in srgb, var(--y) 10%, transparent); color: var(--hi); border: 0; box-shadow: none; }
  .nav a.active { background: color-mix(in srgb, var(--y) 14%, transparent); color: var(--hi); font-weight: 700; border: 0; box-shadow: inset 2px 0 0 var(--y); }
  .nav a.active .nav-label::after { content: '█'; margin-left: 2px; color: var(--y); font-weight: 400; }
  .nav a.active kbd { color: var(--y); }
  .nav-gauges { border-top: 1px dashed var(--ink); }
  .gauge { font: 400 11px var(--ui); letter-spacing: 0; text-transform: lowercase; }
  .nav-foot { font: 400 10px var(--ui); letter-spacing: 0; text-transform: lowercase; color: var(--muted); }

  /* ---------- panels: panes titled by a prompt; on paper, green bands and sprocket holes ---------- */
  .panel, .panel.agent-card.live {
    background: repeating-linear-gradient(180deg, var(--bars) 0 22px, transparent 22px 44px), var(--paper);
    border: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: 12px 18px 14px;
  }
  .panel::before, .panel::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 6px; height: auto; border: 0; pointer-events: none;
    background: radial-gradient(circle at 3px 7px, var(--holes) 2px, transparent 2.6px) 0 0 / 6px 14px repeat-y;
  }
  .panel::before { left: 4px; }
  .panel::after { right: 4px; }
  .panel > h2 {
    display: flex; align-items: baseline; margin: 0 0 12px; padding: 0 0 7px;
    font: 700 13px/1.25 var(--ui); letter-spacing: 0; text-transform: lowercase; color: var(--hi); border-bottom: 1px dashed var(--ink);
  }
  .panel > h2::before { content: '~$\00a0'; color: var(--y); }
  .panel > h2::after { content: '_'; margin-left: 1px; color: var(--y); }
  .panel-flush > h2 { margin: 0; padding: 12px 18px 7px; }
  .panel-flush > .table-wrap { border-radius: 0; }
  .panel.agent-card.live { border-color: var(--y); box-shadow: inset 2px 0 0 var(--y); }
  .panel.agent-card.live > h2::before { content: '~#\00a0'; }
  .panel.term-stage { padding: 0; background: var(--screen); border-color: var(--ink); }
  .panel.term-stage::before, .panel.term-stage::after { content: none; }

  /* ---------- numbers: heavy, split into ghosts ---------- */
  .bignum, .sum-item .n, .an-val, .hx-tile .n, .pj-amount, .net-rates b { text-shadow: var(--split) !important; }
  .bignum { font: 800 46px/0.95 var(--ui); letter-spacing: -0.04em; color: var(--hi); }
  .bignum small { font: 400 16px var(--ui); letter-spacing: 0; color: var(--y); }
  .an-panel .bignum { font-size: 40px; }
  .sum-item .n { font: 800 28px/1 var(--ui); letter-spacing: -0.03em; }
  .sum-item .n small { font: 400 12px var(--ui); color: var(--muted); }
  .an-val { font: 800 22px/1 var(--ui); letter-spacing: -0.02em; }
  .net-rates { font: 700 20px/1 var(--ui); letter-spacing: -0.02em; }
  .kv dt, .kv .k { text-transform: lowercase; letter-spacing: 0; }

  /* ---------- buttons: [ bracketed ] words that invert ---------- */
  .btn { padding: 3px 4px; background: none; color: var(--fg); border: 0; border-radius: 0; box-shadow: none; font: 700 12px/1.25 var(--ui); letter-spacing: 0; text-transform: lowercase; }
  .btn::before { content: '[\00a0'; color: var(--muted); font-weight: 400; }
  .btn::after { content: '\00a0]'; color: var(--muted); font-weight: 400; }
  .btn:hover, .btn:focus-visible { background: var(--y); color: var(--on); box-shadow: none; outline: none; text-shadow: var(--gl, none) !important; }
  .btn:hover::before, .btn:hover::after, .btn:focus-visible::before, .btn:focus-visible::after { color: var(--on); }
  .btn:active { transform: translate(1px, 1px); }
  .btn-primary { color: var(--hi); background: color-mix(in srgb, var(--y) 16%, transparent); }
  .btn-primary::before, .btn-primary::after { color: var(--y); }
  .btn-primary:hover, .btn-primary:focus-visible { background: var(--y); color: var(--on); }
  .btn-danger { color: var(--red-text); background: none; }
  .btn-danger::before, .btn-danger::after { color: color-mix(in srgb, var(--red) 60%, transparent); }
  .btn-danger:hover, .btn-danger:focus-visible { background: var(--red); color: var(--on); }
  .btn-warn { color: var(--orange-text); background: none; }
  .btn-warn:hover, .btn-warn:focus-visible { background: var(--orange); color: var(--on); }
  .btn.on { background: var(--y); color: var(--on); }
  .btn.on::before, .btn.on::after { color: var(--on); }
  .btn-sm { padding: 1px 2px; font-size: 11px; }
  /* the big buttons carry their brackets in their text ([ AUTHENTICATE ]) */
  .btn-wide { padding: 10px; font-size: 14px; border: 1px solid var(--y); text-transform: lowercase; }
  .btn-wide::before, .btn-wide::after { content: none; }
  .btn-wide.btn-danger { border-color: var(--red); }
  .btn:disabled { opacity: 0.4; }

  .term-tab { padding: 4px 6px 3px 8px; background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; font: 400 12px var(--ui); letter-spacing: 0; }
  .term-tab:hover { background: none; color: var(--hi); }
  .term-tab.active { color: var(--hi); border-bottom-color: var(--y); background: color-mix(in srgb, var(--y) 10%, transparent); }
  .term-tab:not(.active) { color: var(--muted); }
  .term-tab .kind { border-radius: 0; font: 400 9.5px/1.4 var(--ui); text-transform: lowercase; }
  .term-kill { background: none; color: var(--red-text); border: 0; border-radius: 0; box-shadow: none; font: 700 12px var(--ui); text-transform: lowercase; }
  .term-kill::before { content: '[\00a0'; }
  .term-kill::after { content: '\00a0]'; }
  .term-kill:hover, .term-kill:focus-visible { background: var(--red); color: var(--on); box-shadow: none; }
  .term-zoom { background: none; border: 1px solid var(--ink); border-radius: 0; box-shadow: none; }
  .term-zoom button { font: 400 12px var(--ui); }
  .term-zoom button + button { border-left: 1px solid var(--ink); }
  .term-zoom button:hover, .term-zoom button:focus-visible { background: var(--y); color: var(--on); }
  .term-keys button { background: none; color: var(--fg); border: 1px solid var(--ink); border-radius: 0; box-shadow: none; font: 700 12px var(--ui); }
  .term-keys button:active, .term-keys button.on { background: var(--y); color: var(--on); }

  /* segmented choices: [ running | failed | all ] */
  .seg { align-items: center; gap: 0; background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--muted); }
  .seg::before { content: '['; padding-right: 2px; }
  .seg::after { content: ']'; padding-left: 2px; }
  .seg button { padding: 3px 7px; font: 400 12px var(--ui); letter-spacing: 0; text-transform: lowercase; color: var(--muted); border: 0; }
  .seg button + button { border-left: 1px solid var(--ink); }
  .seg button:hover { background: none; color: var(--hi); }
  .seg button.on { background: var(--y); color: var(--on); font-weight: 700; box-shadow: none; }
  .hx-tabs { gap: 2px; border-bottom: 1px dashed var(--ink); }
  .hx-tabs button { padding: 4px 8px; background: none; color: var(--muted); border: 0; border-radius: 0; box-shadow: none; font: 400 12px var(--ui); letter-spacing: 0; text-transform: lowercase; }
  .hx-tabs button:hover { background: none; color: var(--hi); }
  .hx-tabs button.on { background: var(--y); color: var(--on); transform: none; }
  .chip { padding: 2px 8px; border: 1px dashed var(--ink); border-radius: 0; font: 400 11px var(--ui); color: var(--fg); }
  .chip:hover { background: var(--y); color: var(--on); border: 1px solid var(--y); }

  /* ---------- fields: prompts ---------- */
  .field, .search { padding: 6px 2px; background: none; border: 0; border-bottom: 1px dashed var(--ink); border-radius: 0; box-shadow: none; }
  .field:focus-within, .search:focus-within { background: color-mix(in srgb, var(--y) 6%, transparent); border-bottom: 1px solid var(--y); box-shadow: none; transform: none; }
  .field span, .search span { color: var(--y); font: 700 11px var(--ui); letter-spacing: 0; text-transform: lowercase; }
  .field span::after { content: ':'; }
  .field input, .search input { font-family: var(--ui); color: var(--hi); }
  .field input { font: 400 16px/1.1 var(--ui); letter-spacing: 0.04em; }
  .modal input[type=text], .hx-field input, .hx-field select, .launch input, .launch select, .hx-ask-side input,
  .pj-rem-form input, .sess-send input, .term-compose textarea, .hx-area, .hx-editor, & select {
    background: var(--paper); color: var(--hi); border: 1px solid var(--ink); border-radius: 0; box-shadow: none; font-family: var(--ui);
  }
  .modal input[type=text]:focus, .hx-field input:focus, .hx-area:focus, .hx-editor:focus, .pj-rem-form input:focus,
  .sess-send input:focus, .term-compose textarea:focus, & select:focus { border-color: var(--y); box-shadow: none; outline: none; }
  .hx-field > span { font: 700 11px var(--ui); letter-spacing: 0; text-transform: lowercase; color: var(--y); }
  .switch { width: 40px; height: 18px; background: none; border: 1px solid var(--ink); border-radius: 0; }
  .switch i { top: 2px; left: 2px; width: 12px; height: 12px; background: var(--muted); border: 0; border-radius: 0; }
  .switch.on { background: color-mix(in srgb, var(--y) 18%, transparent); border-color: var(--y); }
  .switch.on i { left: 24px; background: var(--y); }

  /* ---------- tables: ls -l ---------- */
  .table th { background: none; color: var(--muted); font: 400 11px var(--ui); letter-spacing: 0; text-transform: lowercase; border-bottom: 1px dashed var(--ink); }
  .table thead th:first-child::before { content: '#\00a0'; color: var(--y); }
  .table th.sortable:hover { color: var(--y); }
  .table td { border-bottom: 0; }
  .table tbody tr:nth-child(even) td { background: var(--bars); }
  .table tbody tr:hover td { background: color-mix(in srgb, var(--y) 12%, transparent); }
  .table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--y); }
  .table tbody tr.sel td { background: var(--y); color: var(--on); }
  .group-row td { font: 700 11px/1 var(--ui); letter-spacing: 0; text-transform: lowercase; color: var(--y); }

  /* ---------- gauges: [|||||....] ---------- */
  .bar {
    height: 10px; padding: 1px 3px; border: 0; border-left: 2px solid var(--fg); border-right: 2px solid var(--fg); border-radius: 0;
    background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--fg) 16%, transparent) 0 4px, transparent 4px 6px) content-box;
  }
  .bar > i { background: repeating-linear-gradient(90deg, var(--y) 0 4px, transparent 4px 6px); box-shadow: none; filter: none; }
  .bar.warn > i { background: repeating-linear-gradient(90deg, var(--orange) 0 4px, transparent 4px 6px); }
  .bar.alert > i { background: repeating-linear-gradient(90deg, var(--red) 0 4px, transparent 4px 6px); }
  .bar-sm { height: 8px; }
  .minibars { border-bottom: 1px solid var(--ink); }
  .minibars i { background: var(--y); border: 0; border-radius: 0; filter: none; }

  /* ---------- badges: <tags> ---------- */
  .badge, .b-claude, .b-codex, .b-opencode, .b-hermes, .b-shell, .b-db, .badge.warn {
    padding: 0; background: none; border: 0; border-radius: 0; font: 400 11px/1.4 var(--ui); letter-spacing: 0; text-transform: lowercase;
  }
  .badge { color: var(--fg); }
  .badge::before { content: '<'; color: var(--muted); }
  .badge::after { content: '>'; color: var(--muted); }
  .b-claude { color: var(--orange-text); }
  .b-codex { color: var(--teal-text); }
  .b-opencode, .b-db { color: var(--link); }
  .b-hermes { color: var(--purple-text); }
  .b-shell { color: var(--fg); }
  .badge.warn { color: var(--orange-text); }

  /* ---------- cards ---------- */
  .sum-item, .hx-tile, .pj-card, .pj-bm-link, .theme-card, .sess-card, .alert-state { background: var(--paper); border: 1px solid var(--ink); border-radius: 0; box-shadow: none; }
  .sum-item:hover, .pj-card:hover, .pj-card:focus-visible, .pj-bm-link:hover, .pj-bm-link:focus-visible, .theme-card:hover, .theme-card:focus-visible {
    background: color-mix(in srgb, var(--y) 6%, var(--paper)); border-color: var(--y); box-shadow: none; transform: none;
  }
  .sum-item:active, .pj-card:active, .pj-bm-link:active, .theme-card:active { transform: translate(1px, 1px); box-shadow: none; }
  .sum-item .l, .hx-tile .l, .pj-lines dt, .pj-hist-head, .an-label, .set-label, .pj-pick-group, .pj-ev-date, .ag-vendor {
    font: 400 10.5px var(--ui); letter-spacing: 0; text-transform: lowercase; color: var(--muted);
  }
  .sum-item.bad, .hx-tile.bad { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--paper)); }
  .hx-tile.warn { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 8%, var(--paper)); }
  .sess-card.busy { border-color: var(--orange); background: var(--paper); box-shadow: inset 2px 0 0 var(--orange); }
  .theme-card.on { background: var(--paper); border-color: var(--y); box-shadow: inset 0 0 0 1px var(--y); transform: none; }
  .theme-card.on .tc-state { color: var(--y); }
  .tc-name { font: 700 16px/1 var(--ui); letter-spacing: 0; text-transform: lowercase; }
  .tc-name::before { content: './'; color: var(--muted); font-weight: 400; }
  .tc-state { font: 400 10.5px var(--ui); letter-spacing: 0; text-transform: lowercase; }
  .pj-card.warn { border-color: var(--orange); background: var(--paper); }
  .pj-card.alert { border-color: var(--red); background: var(--paper); box-shadow: inset 3px 0 0 var(--red); }
  .pj-name { font: 700 17px/1.15 var(--ui); letter-spacing: -0.01em; }
  .pj-colhead, .pj-fs-title { letter-spacing: 0; text-transform: lowercase; color: var(--y); border-bottom: 1px dashed var(--ink); }
  .pj-group-title { font: 700 14px/1 var(--ui); letter-spacing: 0; text-transform: lowercase; color: var(--hi); }
  .pj-group-title::before { content: '##\00a0'; color: var(--y); }
  .pj-group-count { padding: 0; background: none; color: var(--y); border: 0; border-radius: 0; font: 400 12px var(--ui); }
  .pj-group-count::before { content: '('; }
  .pj-group-count::after { content: ')'; }
  .pj-group-rule { height: 0; border-top: 1px dashed var(--ink); background: none; border-radius: 0; }
  .pj-bm-mono { border: 0; border-radius: 0; box-shadow: none; font-family: var(--ui); }
  .pj-bm-add { border: 1px dashed var(--ink); border-radius: 0; }
  .pj-pick, .pj-rem-off { border-radius: 0; }
  /* timeline: a dashed line of square pixels */
  .pj-ev::before { top: 32px; height: 1px; background: repeating-linear-gradient(90deg, var(--fg) 0 4px, transparent 4px 7px); }
  .pj-ev.future::before { background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 7px); }
  .pj-tl-today::before { background: linear-gradient(90deg, var(--fg) 0 50%, transparent 50%), repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 7px); }
  .pj-ev-dot { width: 10px; height: 10px; border: 0; border-radius: 0; background: var(--y); box-shadow: none; }
  .pj-ev.future .pj-ev-dot { background: var(--paper); border: 1px solid var(--y); box-shadow: none; }
  .pj-ev:hover .pj-ev-dot, .pj-ev:focus-visible .pj-ev-dot { transform: scale(1.4); background: var(--hi); box-shadow: none; }
  .pj-ev:active .pj-ev-dot { transform: scale(1.1); }
  .pj-tl-today .pj-ev-dot { width: 2px; height: 22px; background: var(--red); border: 0; }
  .pj-tl-today .pj-ev-title { padding: 1px 6px; background: var(--red); color: var(--on); border: 0; border-radius: 0; font: 700 10px var(--ui); letter-spacing: 0; text-transform: lowercase; }
  .pj-tl-pop, .an-tip { background: var(--paper); border: 1px solid var(--y); border-radius: 0; box-shadow: none; font-family: var(--ui); }

  /* ---------- agents, hermes, files ---------- */
  .ag-glyph { background: none; color: var(--y); border: 1px solid var(--ink); border-radius: 0; box-shadow: none; font: 700 22px/1 var(--ui); text-shadow: var(--split) !important; }
  .ag-ver { font: 700 15px/1.15 var(--ui); letter-spacing: 0; }
  .sess-preview { border: 1px solid var(--ink); border-radius: 0; }
  .sess-preview-wrap:hover .sess-preview { border-color: var(--y); box-shadow: none; }
  .chat, .logs, & pre.cli, .cli-table, .hx-tool, .hx-cmd, .hx-banner, .ag-updstate { border-radius: 0; }
  .msg { border-left: 2px solid var(--ink); border-radius: 0; }
  .msg.user { border-left-color: var(--y); background: color-mix(in srgb, var(--y) 6%, transparent); }
  .msg .who { font: 700 10.5px/1 var(--ui); letter-spacing: 0; text-transform: lowercase; color: var(--y); }
  .msg.user .who::before { content: '>\00a0'; }
  .hx-title { font: 700 20px/1 var(--ui); letter-spacing: 0; text-transform: lowercase; }
  .f-dir .f-icon { color: var(--y); }
  .dropzone { border: 1px dashed var(--y); border-radius: 0; text-transform: lowercase; letter-spacing: 0.04em; }
  .pv-head { background: var(--paper); border-bottom: 1px dashed var(--ink); }
  .pv-media img, .pv-media video { border-radius: 0; box-shadow: none; }

  /* ---------- modal, login: text-mode dialogs ---------- */
  .modal, .login-box { background: var(--paper); border: 1px solid var(--y); border-radius: 0; box-shadow: none; }
  .modal h3 { letter-spacing: 0; text-transform: lowercase; }
  .modal h3::before { content: '~$\00a0'; color: var(--y); }
  .modal h3.danger::before { content: '~#\00a0'; color: var(--red); }
  .login-head { border-bottom: 1px dashed var(--ink); }
  .login-head::before { display: none; }
  .login-title { font: 800 26px/1 var(--ui); letter-spacing: -0.02em; text-transform: lowercase; text-shadow: var(--gl, var(--split)) !important; }
  .login-title::before { content: 'root@'; color: var(--y); }
  .login-title::after { content: '_'; color: var(--y); }
  .login-sub { font: 400 10.5px/1.3 var(--ui); letter-spacing: 0.06em; color: var(--muted); }
  .login-msg { font: 400 12px var(--ui); letter-spacing: 0; }

  /* ---------- tabs: a tmux status bar (0:status 1:files*) ---------- */
  .tabstrip { counter-reset: hk-tab -1; gap: 0; padding: 0; align-items: stretch; background: var(--y); border-bottom: 0; }
  .tab { counter-increment: hk-tab; height: 24px; padding: 0 4px 0 8px; background: none; color: var(--on); border: 0; border-radius: 0; font: 400 12px/1 var(--ui); letter-spacing: 0; }
  .tab::before, .tab.active::before { content: counter(hk-tab) ':'; margin: 0; }
  .tab .tl-view { text-transform: lowercase; }
  .tab:hover { background: color-mix(in srgb, var(--on) 14%, transparent); color: var(--on); border: 0; }
  .tab.active { height: 24px; margin-bottom: 0; background: var(--paper); color: var(--y); font-weight: 700; border: 0; }
  .tab.active .tab-title::after { content: '*'; }
  .tab:focus-visible { outline: 1px dashed var(--on); outline-offset: -3px; }
  .tab-x { color: inherit; font: 400 13px/1 var(--ui); }
  .tab-x:hover { background: color-mix(in srgb, var(--on) 25%, transparent); color: inherit; }
  .tab-new { align-self: stretch; width: auto; height: auto; margin: 0 0 0 4px; padding: 0 8px; background: none; color: var(--on); border: 0; border-radius: 0; font: 700 13px/1 var(--ui); }
  .tab-new:hover, .tab-new:focus-visible { background: var(--paper); color: var(--y); border: 0; }
  .tab.drop-before { box-shadow: inset 2px 0 0 var(--on); }
  .tab.drop-after { box-shadow: inset -2px 0 0 var(--on); }
  @keyframes tab-flash { 0%, 30% { background: var(--paper); color: var(--y); } }

  /* ---------- context menu: a text-mode dialog, its title on the frame ---------- */
  .ctx-menu { padding: 14px 4px 4px; background: var(--paper); color: var(--fg); border: 1px solid var(--y); border-radius: 0; box-shadow: none; font: 400 12.5px/1.2 var(--ui); letter-spacing: 0; }
  .ctx-menu:not(:has(.ctx-head)) { padding-top: 4px; }
  .ctx-head { position: absolute; top: -8px; left: 10px; max-width: calc(100% - 20px); margin: 0; padding: 0 6px; background: var(--paper); color: var(--hi); border: 0; font: 700 12px/16px var(--ui); letter-spacing: 0; }
  .ctx-head::before { content: '[\00a0'; color: var(--y); }
  .ctx-head::after { content: '\00a0]'; color: var(--y); }
  .ctx-item { gap: 16px; padding: 5px 8px 5px 4px; border-radius: 0; }
  .ctx-label::before { content: '\00a0\00a0'; }
  .ctx-item:hover, .ctx-item:focus { background: var(--y); color: var(--on); }
  .ctx-item:hover .ctx-label::before, .ctx-item:focus .ctx-label::before { content: '>\00a0'; }
  .ctx-item.danger { color: var(--red-text); }
  .ctx-item.danger:hover, .ctx-item.danger:focus { background: var(--red); color: var(--on); }
  .ctx-kbd { font: 400 11px var(--ui); color: var(--muted); }
  .ctx-item:hover .ctx-kbd, .ctx-item:focus .ctx-kbd { color: var(--on); }
  .ctx-sep { height: 0; margin: 4px 6px; background: none; border-top: 1px dashed var(--ink); }
  .ctx-foot { border-top: 1px dashed var(--ink); color: var(--muted); font: 400 10.5px var(--ui); }
  .more-count { border-radius: 0; background: var(--y); color: var(--on); font: 700 10px/16px var(--ui); }

  /* ---------- phones ---------- */
  @media (max-width: 900px) {
    .brand { font-size: 13.5px; }
    .tabbar { background: var(--paper); border-top: 1px solid var(--ink); }
    .tabbar a, .tabbar button { font: 400 10px/1 var(--ui); letter-spacing: 0; text-transform: lowercase; color: var(--muted); }
    .tabbar b { border: 0; border-radius: 0; font: 700 15px/1 var(--ui); }
    .tabbar .active { color: var(--hi); }
    .tabbar .active b { background: var(--y); color: var(--on); box-shadow: none; }
    .statusline { background: var(--paper); border: 1px solid var(--y); border-radius: 0; box-shadow: none; }
    .statusline .cursor { display: none; }
    .sheet { background: var(--paper); border-top: 1px solid var(--y); border-radius: 0; }
    .sheet a { padding: 12px 6px; background: none; border: 0; border-bottom: 1px dashed var(--ink); border-radius: 0; box-shadow: none; font: 400 17px/1 var(--ui); letter-spacing: 0; text-transform: lowercase; }
    .sheet a .nav-label::before { content: './'; color: var(--muted); }
    .sheet a.active { background: color-mix(in srgb, var(--y) 14%, transparent); color: var(--hi); box-shadow: inset 2px 0 0 var(--y); }
    .sheet-tabs { counter-reset: hk-tab -1; border-bottom: 1px dashed var(--ink); }
    .sheet-tabs-head { color: var(--muted); font: 400 11px var(--ui); letter-spacing: 0; text-transform: lowercase; }
    .sheet-tab { counter-increment: hk-tab; background: var(--paper); color: var(--fg); border: 1px solid var(--ink); border-radius: 0; font: 400 14px/1 var(--ui); letter-spacing: 0; }
    .sheet-tab::before { content: counter(hk-tab) ':'; color: var(--muted); }
    .sheet-tab .tl-view { text-transform: lowercase; }
    .sheet-tab.active { background: var(--y); color: var(--on); box-shadow: none; }
    .sheet-tab.active::before { color: var(--on); }
    .panel { padding: 12px 16px 14px; }
    .bignum { font-size: 40px; }
  }
}

/* the corrupted signal: the name glitches every few seconds, buttons, links and tabs jitter on hover, prompts blink.
   --gl is what text-shadow reads (the kit forces text-shadow with !important, which an animation cannot override, but
   it can animate a variable) */
@keyframes hk-glitch {
  0%, 89%, 100% { --gl: var(--split); transform: none; }
  90% { --gl: -3px 0 var(--gA), 3px 0 var(--gB); transform: translateX(3px); }
  91.5% { --gl: 2px 0 var(--gA), -2px 0 var(--gB); transform: translateX(-2px) skewX(-8deg); }
  93% { --gl: -1px 0 var(--gA), 4px 0 var(--gB); transform: translate(1px, -1px); }
  94.5% { --gl: var(--split); transform: none; }
}
@keyframes hk-jitter {
  0% { --gl: -2px 0 var(--gA), 2px 0 var(--gB); transform: translate(-1px, 0); }
  25% { --gl: 2px 0 var(--gA), -2px 0 var(--gB); transform: translate(2px, 0); }
  50% { transform: translate(-1px, 1px); }
  75% { --gl: -1px 0 var(--gA), 1px 0 var(--gB); transform: translate(1px, 0); }
  100% { --gl: none; transform: none; }
}
@keyframes hk-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  [data-theme="hacker"] :is(.brand, .login-title) { animation: hk-glitch 7s steps(1, end) infinite; }
  [data-theme="hacker"] :is(.btn, .nav a, .term-tab, .hx-tabs button, .chip):hover { animation: hk-jitter 0.28s steps(1, end) 1; }
  [data-theme="hacker"] .statusline .cursor,
  [data-theme="hacker"] .login-title::after,
  [data-theme="hacker"] .nav a.active .nav-label::after { animation: hk-blink 1.1s steps(1, end) infinite; }
}

/* pressed: the arrow fills, the block inverts (:active matches the pressed element and its ancestors) */
[data-theme="hacker"] :active { --cur-arrow: var(--cur-arrow-down); --cur-hand: var(--cur-hand-down); }

/* ---------- SETTINGS preview (shown in every theme) ---------- */
.tc-hacker { background: #000000; border: 1px solid #145c2b; border-radius: 0; }
.tc-hacker b { background: #e9fff0; }
.tc-hacker i { background: #0e3a1c; }
.tc-hacker .tcp-top { background: #00ff66; margin: -9px -9px 0; padding: 0 9px; height: 14px; }
.tc-hacker .tcp-top b { background: #000000; width: 20%; height: 6px; }
.tc-hacker .tcp-top i { background: #000000; width: 10%; height: 6px; }
.tc-hacker .tcp-side i { background: transparent; border-bottom: 1px dashed #145c2b; height: 8px; }
.tc-hacker .tcp-side i.on { background: #0e3a1c; box-shadow: inset 2px 0 0 #00ff66; }
.tc-hacker .tcp-panel { background: #030603; border: 1px solid #145c2b; }
.tc-hacker .tcp-panel b { background: #00ff66; width: 42%; }
.tc-hacker .tcp-btn { background: #0e3a1c; box-shadow: inset 2px 0 0 #00ff66, inset -2px 0 0 #00ff66; }
.tc-hacker.light { background: repeating-linear-gradient(180deg, rgba(26, 140, 60, 0.13) 0 9px, #fbfcf8 9px 18px); border-color: #8aa592; }
.tc-hacker.light b { background: #04120a; }
.tc-hacker.light i { background: #c4d3c7; }
.tc-hacker.light .tcp-top { background: #0a7a35; }
.tc-hacker.light .tcp-top b, .tc-hacker.light .tcp-top i { background: #ffffff; }
.tc-hacker.light .tcp-side i { border-bottom-color: #8aa592; background: transparent; }
.tc-hacker.light .tcp-side i.on { background: #d7e6da; box-shadow: inset 2px 0 0 #0a7a35; }
.tc-hacker.light .tcp-panel { background: #fbfcf8; border-color: #8aa592; }
.tc-hacker.light .tcp-panel b { background: #0a7a35; }
.tc-hacker.light .tcp-btn { background: #d7e6da; box-shadow: inset 2px 0 0 #0a7a35, inset -2px 0 0 #0a7a35; }
