/* Opptfine look (Gerb 10-07: "what Tapebook just made, that color UI, but for Opptfine"). Every page of the app
   (index.html sets html.opptfine). Monochrome on black, hairlines, 2px corners, Geist + Geist Mono; green/red
   stay for numbers only. Dark by default, light via the theme button. */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap");

html.opptfine:not([data-theme="light"]){
  color-scheme:dark;
  --bg:#000; --bg2:#050505; --panel:#080808; --panel2:#0d0d0d; --raise:#111;
  --ink:#f4f4f4; --soft:#8c8c8c; --faint:#5a5a5a;
  --edge:#1f1f1f; --edge2:#2e2e2e;
  --accent:#fff; --accent-dim:#8c8c8c; --chartlab:#8c8c8c;
  --good:#8ee3b1; --good-bg:rgba(142,227,177,.06);
  --warn:#d9d9d9; --warn-bg:rgba(255,255,255,.05);
  --bad:#f08a8a;  --bad-bg:rgba(240,138,138,.06);
  --info:#d9d9d9; --info-bg:rgba(255,255,255,.04);
  --shadow:none;
  --font-display:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-ui:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:"Geist Mono",ui-monospace,"SFMono-Regular",Consolas,monospace;
}
/* light: same look inverted (Gerb 10-07: "change from black to white"), via the dashboard's theme button */
html.opptfine[data-theme="light"]{
  color-scheme:light;
  --bg:#fff; --bg2:#fafafa; --panel:#fff; --panel2:#f5f5f5; --raise:#fff;
  --ink:#0a0a0a; --soft:#5c5c5c; --faint:#8a8a8a;
  --edge:#e5e5e5; --edge2:#d4d4d4;
  --accent:#000; --accent-dim:#5c5c5c; --chartlab:#5c5c5c;
  --good:#15803d; --good-bg:rgba(21,128,61,.07);
  --warn:#404040; --warn-bg:rgba(0,0,0,.04);
  --bad:#b91c1c;  --bad-bg:rgba(185,28,28,.06);
  --info:#404040; --info-bg:rgba(0,0,0,.04);
  --shadow:none;
  --font-display:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-ui:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:"Geist Mono",ui-monospace,"SFMono-Regular",Consolas,monospace;
}
html.opptfine body{background:var(--bg);color:var(--ink);font-family:var(--font-ui)}
/* 2px corners everywhere; real dots stay round */
html.opptfine *, html.opptfine *::before, html.opptfine *::after{border-radius:2px !important}
html.opptfine [class*="dot"], html.opptfine .pg-eye, html.opptfine .hub-eye, html.opptfine .bz::before{border-radius:50% !important}
html.opptfine .card, html.opptfine .kpi, html.opptfine .tm-lead{box-shadow:none;border:1px solid var(--edge)}
/* labels: small mono caps, like Tapebook */
html.opptfine .kpi .k, html.opptfine .card .k, html.opptfine .tm-h, html.opptfine .tm-hq, html.opptfine th{
  font-family:var(--font-mono);font-size:10.5px;font-weight:500;letter-spacing:.09em;text-transform:uppercase;color:var(--soft)}
html.opptfine .num, html.opptfine .kpi .num{font-family:var(--font-mono);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
/* brand + current nav item: white, inset rule instead of a gold fill */
html.opptfine .brand, html.opptfine .brand b{color:var(--ink);letter-spacing:.02em}
html.opptfine .brand b{color:var(--soft)}
html.opptfine .sn[aria-current="page"]{background:var(--panel2);color:var(--ink);box-shadow:inset 2px 0 0 var(--ink)}
html.opptfine .sn[aria-current="page"]::before{display:none}
html.opptfine :focus-visible{outline:2px solid var(--good);outline-offset:2px}
