html { scroll-behavior: smooth; }
body {
  font-feature-settings: "ss01" on, "kern" on;
  background-color: #F2EDE4;
  background-image:
    radial-gradient(1100px 520px at 8% -12%, rgba(232, 163, 23, 0.11), transparent 52%),
    radial-gradient(900px 420px at 100% 0%, rgba(15, 23, 42, 0.045), transparent 48%),
    linear-gradient(180deg, #F6F1E8 0%, #F2EDE4 28%, #EFE8DC 100%);
}

.bar-fill { transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.bar-col { transition: height 800ms cubic-bezier(0.22, 1, 0.36, 1); }

.page-enter { animation: rise 420ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.toast-in { animation: toast 320ms ease-out; }
@keyframes toast {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}
.pulse-dot { animation: pulse-dot 1.6s ease-in-out infinite; }

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.surface {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 1px 2px rgba(15,23,42,0.04), 0 10px 28px rgba(15,23,42,0.05);
  border: 1px solid rgba(120, 100, 70, 0.1);
}

.surface-hover {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.surface-hover:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 12px 32px rgba(15,23,42,0.08);
  border-color: rgba(196, 132, 12, 0.22);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c4b8a4; border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

.modal-bg {
  background: rgba(7, 11, 20, 0.56);
  backdrop-filter: blur(8px);
}

/* Vertical process tank */
.silo {
  width: 42px;
  height: 168px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  filter: drop-shadow(0 8px 10px rgba(15, 23, 42, 0.08));
}
.silo-cap {
  height: 14px;
  border-radius: 21px 21px 3px 3px;
  background: linear-gradient(180deg, #d8d2c6, #c9c2b4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
.silo-body {
  flex: 1;
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(15,23,42,0.06), transparent 18%, transparent 82%, rgba(15,23,42,0.05)),
    #ebe6db;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.06);
}
.silo-fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  transition: height 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.silo-fill.feed {
  background: linear-gradient(180deg, #F5C451 0%, #C4840C 100%);
}
.silo-fill.product {
  background: linear-gradient(180deg, #34d399 0%, #0f766e 100%);
}
.silo-fill.maint {
  opacity: 0.35;
  background: repeating-linear-gradient(-45deg, #94a3b8, #94a3b8 4px, #cbd5e1 4px, #cbd5e1 8px);
}
.silo-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.28), transparent 28%);
  pointer-events: none;
}
.silo-foot {
  height: 7px;
  border-radius: 0 0 4px 4px;
  background: #c4bdb0;
}

.nav-active {
  background: linear-gradient(90deg, rgba(232,163,23,0.18), rgba(255,255,255,0.08));
  box-shadow: inset 3px 0 0 #E8A317;
}

.produce-panel {
  position: relative;
  isolation: isolate;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 1px 0 #fff inset,
    0 8px 24px rgba(15, 23, 42, 0.1),
    0 1px 3px rgba(15, 23, 42, 0.05);
}
.produce-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, #0f766e 0%, #14b8a6 42%, #E8A317 100%);
}
.produce-hero {
  border-radius: 1rem;
  padding: 1.1rem 1.15rem 1.2rem;
  background:
    radial-gradient(160px 80px at 90% 0%, rgba(13, 148, 136, 0.12), transparent 70%),
    #F3FAF8;
  border: 1px solid rgba(15, 118, 110, 0.12);
}
.produce-stat {
  border-radius: 0.9rem;
  padding: 0.85rem 0.95rem;
  background: #F7F4EE;
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.produce-stat-oil {
  background: #FFF8EB;
  border-color: rgba(196, 132, 12, 0.2);
}
.produce-list {
  border-radius: 1rem;
  padding: 0.85rem 1rem 0.55rem;
  background: #F7F4EE;
  border: 1px solid rgba(15, 23, 42, 0.05);
  min-height: 100%;
}
.produce-row + .produce-row {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
}
.meter > span { display: block; height: 100%; }

.account-pop { animation: rise 180ms cubic-bezier(0.22, 1, 0.36, 1); }

.chart-svg {
  height: 10rem;
  display: block;
}
.chart-line {
  fill: none;
  stroke-width: 1.1px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}
.chart-area {
  opacity: 0.06;
}
.chart-axis {
  stroke: #e7e0d4;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.chart-axis-mid {
  stroke: #efe8dc;
  stroke-dasharray: 3 4;
}
.chart-dot {
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.chart-div-half {
  height: 4.75rem;
}
.chart-div-bar {
  width: 72%;
  max-width: 10px;
  min-height: 0;
  transition: height 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
