/* Offline read-only banner (spa/platform/offline/offline-mode.js). Dark is the default theme; body.light is
   the app's light theme. Amber = a state to notice, not an error: the data shown is real, only older. */
.cof-banner {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2147483000;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 32px); padding: 7px 14px;
  border-radius: 8px; border: 1px solid #8A6A2A;
  background: #2A2113; color: #F6E3BC;
  font: 500 13px/1.35 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-shadow: 0 8px 24px rgb(0 0 0 / .4);
  pointer-events: none;
}
.cof-banner .cof-dot { width: 8px; height: 8px; border-radius: 50%; background: #F4BA55; flex: none; }
.cof-banner .cof-msg {
  flex-basis: 100%; text-align: center; font-weight: 600; color: #FFB4B9;
}
.cof-banner.cof-blocked { border-color: #C2545D; }

body.light .cof-banner {
  border-color: #D9B36A; background: #FFF6E3; color: #5A3A05; box-shadow: 0 8px 24px rgb(0 0 0 / .15);
}
body.light .cof-banner .cof-dot { background: #B7791F; }
body.light .cof-banner .cof-msg { color: #A11F2C; }
body.light .cof-banner.cof-blocked { border-color: #C2303F; }

@media (max-width: 600px) {
  .cof-banner { bottom: 12px; font-size: 12px; }
}
@media print { .cof-banner { display: none; } }
