/* Shared theme tokens for every tool on nevarios.com. Served directly by
   nginx (see nginx.conf's per-subdomain `location = /shared-theme.css`
   blocks) so every tool links this ONE file instead of hardcoding the same
   ~15 variables into its own repo. Introduced 2026-09-14 restyling every
   tool to match Invenno's dark mode - see daily-notes for that date.

   Dark is `:root` (the default); light is the `[data-theme="light"]`
   override, toggled per-tool by each tool's own existing toggle JS/
   localStorage key - that logic stays local to each tool, only the color
   values live here.

   Accent is Dan's Cybersole teal (#37de8f) everywhere, deliberately - not
   Invenno's own purple. "Match Invenno" (2026-09-14 restyle) turned out to
   mean the near-black surfaces/layout/type feel, not its literal purple
   CTA color; teal is the one accent across the whole suite, no per-tool
   exceptions (superseded an earlier per-tool purple/teal/navy split the
   same day - see daily-notes). The static Nevarios brand-mark logo stays
   #7F77DD, untouched - that's a separate thing from this accent.

   2026-09-14 (later same day): Dan flagged the dark surfaces as reading
   "navy" rather than Invenno's true black/grey. Pixel-sampled Invenno's own
   screenshots (Add Purchase modal, Settings/Account page) directly - every
   dark surface there is neutral (R=G=B, e.g. page bg #000000-#0a0a0a, panel
   #141414, modal body #171717, input well #262626, muted text #a2a2a2) -
   NOT navy. The previous values below all had blue > red/green by 5-15,
   which is exactly the cast Dan was seeing. Recalibrated to neutral grey. */

:root{
  --bg:#0a0a0a;
  --panel:#141414;
  --panel2:#1a1a1a;
  --well:#222222;
  --border:#2c2c2c;
  --text:#e8e8e8;
  --muted:#a2a2a2;

  --radius-card:12px;
  --radius-btn:8px;
  --radius-input:6px;
  --radius-pill:20px;
  --radius-modal:14px;

  --accent:#37de8f;
  --accent-secondary:#1c5c40;
  --accent-pale:#123b2c;

  --good:#34d399; --good-pale:#12312a;
  --warn:#f5a623; --warn-pale:#3a2e14;
  --danger:#f8717a; --danger-pale:#3a1b1f;
  --cyan:#2dd4c8;
}

[data-theme="light"]{
  --bg:#FAF9F7;
  --panel:#ffffff;
  --panel2:#F5F4F1;
  --well:#F0EEE7;
  --border:#E0DDD6;
  --text:#1A1A1A;
  --muted:#666666;

  --accent:#37de8f;
  --accent-secondary:#1f8f5f;
  --accent-pale:#dcf5e8;

  --good:#1f9d6e; --good-pale:#e2f3ea;
  --warn:#a15f0a; --warn-pale:#faf0df;
  --danger:#c23a44; --danger-pale:#fbe8e9;
  --cyan:#1f8f7c;
}

/* Field-level info icons (2026-09-14) - a small "i" badge next to a label
   that shows an explanatory tooltip on hover (desktop, pure CSS) or tap
   (mobile - JS toggles an `.open` class, since `:hover` alone never fires
   on a touchscreen). Mechanism lifted directly from kickplate's own
   `.p4-qty-badge`, which had already solved this same problem for one
   specific badge - reused here as the one shared component instead of
   leaving 3 different tooltip implementations across the suite (kickplate
   alone had two: `.tooltip-wrap`, hover-only, and `.p4-qty-badge`, tap+
   hover). Each tool's base.html adds ONE document-level click listener
   (see the shared snippet in project memory) that closes any `.open`
   wrapper when a click lands outside it - closing on outside-click, not
   just re-tapping the same icon, is what makes tap-to-open usable when a
   page has more than one icon. */
.info-icon-wrap{position:relative;display:inline-block}
.info-icon{display:inline-flex;align-items:center;justify-content:center;
  width:15px;height:15px;border-radius:50%;background:var(--muted);
  color:var(--panel);font-size:10px;font-weight:bold;line-height:1;
  border:none;padding:0;cursor:help;vertical-align:middle;margin-left:4px}
.info-icon-tip{visibility:hidden;opacity:0;position:absolute;z-index:999;
  background:var(--panel2);color:var(--text);border:1px solid var(--border);
  font-size:11.5px;font-weight:normal;text-transform:none;letter-spacing:normal;
  text-align:left;white-space:normal;border-radius:6px;padding:8px 10px;
  width:max-content;max-width:240px;left:0;top:calc(100% + 6px);
  line-height:1.45;transition:opacity .15s;pointer-events:none}
.info-icon-wrap:hover .info-icon-tip,
.info-icon-wrap.open .info-icon-tip{visibility:visible;opacity:1}
