/* FORM IDENTITY (submission-hub 3d). A form hue arrives as --fi-h on the element (public/assets/form-identity.js sets it);
   everything else is this one formula, so every form icon on its tint reads by the same rule. Light: a pale tint, a dark ink.
   Dark: a deep tint, a light ink. scripts/submissions-tests/form-identity.mjs reads these numbers and checks 3:1 for every hue. */
:root { --fi-tint-s: 85%; --fi-tint-l: 92%; --fi-ink-s: 70%; --fi-ink-l: 28%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fi-tint-s: 40%; --fi-tint-l: 22%; --fi-ink-s: 85%; --fi-ink-l: 78%; }
}
:root[data-theme="dark"] { --fi-tint-s: 40%; --fi-tint-l: 22%; --fi-ink-s: 85%; --fi-ink-l: 78%; }
.fi-chip, .fi-ring, .fi-tint {
  --fi-tint: hsl(var(--fi-h, 215) var(--fi-tint-s) var(--fi-tint-l));
  --fi-ink: hsl(var(--fi-h, 215) var(--fi-ink-s) var(--fi-ink-l));
}
.fi-chip {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.75rem; height: 1.75rem; border-radius: 8px; background: var(--fi-tint); color: var(--fi-ink);
}
.fi-chip svg { width: 1.05rem; height: 1.05rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fi-chip.fi-sm { width: 1.3rem; height: 1.3rem; border-radius: 6px; }
.fi-chip.fi-sm svg { width: .8rem; height: .8rem; }
/* Toolbox and Home tiles: form-identity.js paint() adds .fi-tint and --fi-h to the tile's icon holder (.tb-ic, .fi-ic). The tile
   keeps its own size and href; only the tint and the icon color come from here. A holder carrying data-form outranks the page's
   own .tb-ic and .hero-quick svg rules, so no page carries a color of its own. Tiles without data-form stay neutral. */
.fi-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 9px; }
[data-form].fi-tint { background: var(--fi-tint); color: var(--fi-ink); }
[data-form].fi-tint svg { stroke: currentColor; fill: none; }
