/* fichrs: Gokapi admin overlay (snow-trail).
 *
 * Drop into Gokapi's customDir alongside admin.js. This styles a single overlay:
 * the download-safe hover preview. It is a self-contained DARK HUD on purpose, so
 * it reads intentionally on top of ANY Gokapi base theme (light or dark) without
 * coupling to Gokapi's own CSS. The values below mirror tokens.css (dark stage);
 * they are inlined here so the overlay themes correctly regardless of load order.
 *
 * z-index: kept below Bootstrap's modal (1050). Preview is transient + click-through.
 */
#fichrs-preview {
  --fichrs-panel: oklch(0.215 0.013 252);
  --fichrs-line:  oklch(0.30 0.015 250);
  --fichrs-ink:   oklch(0.885 0.008 250);
  --fichrs-muted: oklch(0.66 0.012 250);

  display: none;
  position: fixed;
  z-index: 1080;
  pointer-events: none;            /* never intercepts a click on the row beneath */
  max-width: 300px;
  padding: 6px;
  background: var(--fichrs-panel);
  border: 1px solid var(--fichrs-line);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  color: var(--fichrs-ink);
  font-size: 0.85rem;
  line-height: 1.35;
}
#fichrs-preview.fichrs-note {
  max-width: 260px;
  padding: 8px 10px;
  color: var(--fichrs-muted);
}
#fichrs-preview img {
  display: block;
  max-width: 288px;
  max-height: 288px;
  border-radius: 6px;
}
