.card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 8px 20px -12px var(--color-shadow);
}

.card .card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-production-soft);
  color: var(--color-accent-production);
}

.card .card-title {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.card .card-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.card .card-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.form-field label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.form-field input, .form-field select {
  padding: 9px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
}

.primary-button {
  padding: 11px 22px;
  border-radius: 6px;
  border: none;
  background: var(--color-accent-production);
  color: var(--color-bg-elevated);
  font-family: var(--font-body);
  font-weight: 600;
}

.saved-note {
  margin-left: 12px;
  color: var(--color-accent-production);
  font-size: 13px;
  font-weight: 600;
}

.section-panel {
  display: none;
}

.section-panel.active {
  display: block;
}

/* Energy flow signature diagram */
.energy-flow {
  width: 100%;
  height: auto;
  overflow: visible;
}

.flow-node-circle {
  fill: var(--color-accent-production);
}

.flow-node-circle-warm {
  fill: var(--color-accent-consumption);
}

.flow-node-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--color-text-muted);
}

.flow-line {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 2;
}

.flow-line-current {
  fill: none;
  stroke: var(--color-accent-production);
  stroke-width: 2;
  stroke-dasharray: 6 10;
  animation: flow-current 1.6s linear infinite;
}

.flow-line-current-warm {
  stroke: var(--color-accent-consumption);
}

.energy-flow-compact .flow-node-label {
  display: none;
}

@keyframes flow-current {
  to { stroke-dashoffset: -32; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-line-current {
    animation: none;
  }
}
