/* E-005 Firebase FX Production Cache */
.e004-fx-cache-card{border:1px solid rgba(20,184,166,.16);border-radius:26px;padding:16px;margin:0 0 14px;background:linear-gradient(135deg,#fff 0%,#f8fffd 100%);box-shadow:0 14px 34px rgba(15,23,42,.06)}
.e004-fx-cache-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}.e004-fx-cache-head b{display:block;color:#071b3a;font-size:17px;font-weight:950;letter-spacing:-.02em}.e004-fx-cache-head span{display:block;margin-top:3px;color:#64748b;font-size:12.5px;font-weight:760;line-height:1.25}.e004-fx-cache-badge{border:1px solid rgba(20,184,166,.18);background:#ecfdf5;color:#0f766e;border-radius:999px;padding:7px 9px;font-size:11.5px;font-weight:950;white-space:nowrap}.e004-fx-dates{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px}.e004-fx-dates label{display:flex;flex-direction:column;gap:5px;color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.e004-fx-dates input{width:100%;border:1px solid rgba(15,23,42,.09);border-radius:16px;background:#fff;padding:10px 10px;font-size:13px;font-weight:850;color:#071b3a}.e004-currency-picks{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.e004-currency-picks label{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(15,23,42,.08);background:#fff;border-radius:999px;padding:8px 10px;color:#334155;font-size:12px;font-weight:900}.e004-currency-picks input{accent-color:#0f766e}.e004-fx-cache-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px}.e004-fx-cache-actions button{border:0;border-radius:999px;padding:11px 12px;font-size:13px;font-weight:950}.e004-fx-cache-actions .primary{background:#0f766e;color:#fff;box-shadow:0 10px 22px rgba(15,118,110,.18)}.e004-fx-cache-actions .secondary{background:#ecfdf5;color:#0f766e;border:1px solid rgba(20,184,166,.18)}.e004-fx-cache-status{border:1px solid rgba(15,23,42,.07);border-radius:20px;padding:12px;background:rgba(255,255,255,.86);color:#64748b;font-size:12.5px;font-weight:800;line-height:1.35}.e004-fx-cache-status[data-mode="loading"]{background:#eff6ff;color:#2563eb;border-color:rgba(59,130,246,.16)}.e004-fx-cache-status[data-mode="ok"]{background:#ecfdf5;color:#0f766e;border-color:rgba(20,184,166,.18)}.e004-fx-cache-status[data-mode="warn"]{background:#fff7ed;color:#9a3412;border-color:rgba(251,146,60,.22)}.e004-fx-cache-status strong{display:block;color:#071b3a;font-size:16px;font-weight:950;margin-bottom:3px}@media(max-width:390px){.e004-fx-dates,.e004-fx-cache-actions{grid-template-columns:1fr}}


/* E-004a visible diagnostics */
.e004-global-fx-diag, .e005-global-fx-cache{
  position:fixed;
  right:18px;
  bottom:112px;
  z-index:9998;
  border:1px solid rgba(20,184,166,.28);
  background:linear-gradient(135deg,#fff7c2,#e7fff8);
  color:#0f766e;
  border-radius:999px;
  padding:12px 16px;
  font-weight:900;
  font-size:14px;
  box-shadow:0 18px 42px rgba(15,23,42,.18);
}
.e004-diag-modal{
  max-height:86vh;
  overflow:auto;
  padding-bottom:120px;
}
.e004-diag-copy{
  color:#64748b;
  font-size:17px;
  line-height:1.35;
  margin:0 0 18px;
}
.e004-diag-modal .e004-fx-cache-card{
  margin:0;
}
.e004-raw-debug{margin-top:12px;border:1px solid rgba(15,23,42,.08);border-radius:16px;background:#fff;padding:10px;color:#334155}.e004-raw-debug summary{font-size:12px;font-weight:950;color:#0f766e;cursor:pointer}.e004-raw-debug pre{white-space:pre-wrap;word-break:break-word;font-size:10.5px;line-height:1.35;margin:8px 0 0;color:#334155;max-height:220px;overflow:auto}
