/* Fuel gauge (site/assets/fuel.js): a dark instrument panel on every theme, like a car's cluster. */
.fuel {
  --fuel-ink: #e8eef8;
  --fuel-muted: #93a3bd;
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  color: var(--fuel-ink);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(90% 70% at 50% 110%, rgba(34, 197, 94, 0.10), transparent 70%),
    linear-gradient(180deg, #111b2f 0%, #0a1222 100%);
  border-radius: 24px;
  padding: 22px 20px 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 48px -28px rgba(2, 6, 23, 0.75);
  overflow: hidden;
}
.fuel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, transparent 32%);
}
.fuel-dial { width: 100%; max-width: 280px; }
.fuel-svg { display: block; width: 100%; height: auto; overflow: visible; }
.fuel-seg { fill: none; stroke-width: 10; transition: opacity 0.25s ease; }
.fuel-seg.off { opacity: 0.14; }
.fuel-seg:not(.off) { filter: drop-shadow(0 0 3px currentColor); }
.fuel-tick { stroke: rgba(232, 238, 248, 0.35); stroke-width: 1.6; stroke-linecap: round; }
.fuel-mark { fill: var(--fuel-muted); font: 700 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-anchor: middle; }
.fuel-needle path { fill: #f8fafc; filter: drop-shadow(0 0 4px rgba(248, 250, 252, 0.55)); }
.fuel-hub { fill: #0a1222; stroke: #f8fafc; stroke-width: 2.5; }
.fuel-hub-dot { fill: #f8fafc; }
.fuel-pct {
  fill: #fff;
  font: 800 34px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
  text-anchor: middle;
  font-variant-numeric: tabular-nums;
}
.fuel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fuel-muted);
}
.fuel-title svg { color: #4ade80; }
.fuel-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: fuel-pulse 2.4s ease-out infinite;
}
.fuel[data-state="low"] .fuel-live { background: #fbbf24; }
.fuel[data-state="empty"] .fuel-live, .fuel[data-state="error"] .fuel-live { background: #f87171; animation: none; }
@keyframes fuel-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .fuel-live { animation: none; } }
.fuel-state { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--fuel-ink); }
.fuel-state[data-state="low"] { color: #fcd34d; }
.fuel-state[data-state="empty"] { color: #fca5a5; }
.fuel-state[data-state="error"] { color: var(--fuel-muted); font-weight: 500; }
.fuel-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fuel-muted); }
.fuel-note strong { color: var(--fuel-ink); font-weight: 600; }

/* Side by side (dashboard): dial left, text right; stacks on a phone. */
.fuel.compact { grid-template-columns: minmax(150px, 200px) 1fr; justify-items: start; text-align: left; align-items: center; gap: 4px 20px; padding: 16px 20px; }
.fuel.compact .fuel-dial { grid-row: span 4; max-width: 200px; }
.fuel.compact .fuel-pct { font-size: 32px; }
@media (max-width: 520px) {
  .fuel.compact { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .fuel.compact .fuel-dial { grid-row: auto; max-width: 220px; }
}
