:root {
  --bg-deep: #162235;
  --bg-card: rgba(30, 48, 76, 0.82);
  --accent-cyan: #00e5ff;
  --accent-blue: #2979ff;
  --text-primary: #f6f9fc;
  --text-secondary: #a9bbc8;
  --border-glow: rgba(0, 229, 255, 0.24);
  --line-soft: rgba(255, 255, 255, 0.12);

  --ok-glow: 0 0 12px rgba(0, 255, 149, 0.4);
  --warning-glow: 0 0 12px rgba(255, 183, 77, 0.4);
  --error-glow: 0 0 12px rgba(255, 82, 82, 0.4);
  
  --error-color: #ff5252;
  --night-color: #9fa8da;
  --ok-color: #00ff88;
  --warning-color: #ffb74d;

  --ok-glow: 0 0 12px rgba(0, 255, 149, 0.4);
  --warning-glow: 0 0 12px rgba(255, 183, 77, 0.4);
  --error-glow: 0 0 12px rgba(255, 82, 82, 0.4);
  --night-glow: 0 0 12px rgba(159, 168, 218, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(41, 121, 255, 0.12) 0%, transparent 42%);
}

/* Background animated elements to prevent burn-in & add depth */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: 
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  opacity: 0.4;
  animation: bg-move 60s linear infinite;
}

@keyframes bg-move {
  from { background-position: 0 0; }
  to { background-position: 50px 50px; }
}

.shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(0.75rem, 1.4vw, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100vh;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease;
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.3);
}

/* Header & Topbar */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}


.title-wrap h1 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 1.9vw, 1.85rem);
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #fff, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}


.eyebrow {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.15rem;
}


.clock-module {
  text-align: center;
  justify-self: center;
}

#digitalClock {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
}


#digitalDate {
  font-size: 0.74rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.12rem;
}


.logo-box {
  justify-self: end;
  position: relative;
  width: 100%;
  max-width: 280px;
  min-width: 160px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}


.logo-dynamic {
  position: absolute;
  right: 0;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.2));
  display: none;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.logo-dynamic.is-visible {
  opacity: 1;
}

.logo-dynamic.is-fading {
  opacity: 0;
}

.logo-empty {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* KPIs */
.kpi-inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.kpi {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.kpi-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.85rem 0.75rem 0.95rem;
}

.kpi p {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kpi strong {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  margin-top: 0.35rem;
  color: #fff;
  line-height: 1;
}

.kpi strong span {
  font-size: 1.05rem;
  color: var(--accent-cyan);
  margin-left: 0.25rem;
}

#kpiEnergy {
  font-size: clamp(2.35rem, 3.5vw, 3.35rem);
  color: #fff;
}

#kpiConsumption {
  font-size: clamp(2.35rem, 3.5vw, 3.35rem);
  color: #fff;
}

#kpiEnergy + span {
  font-size: 1.1rem;
  color: #67f5a8;
}

#kpiConsumption + span {
  font-size: 1.1rem;
  color: #ffb454;
}

/* Table / Main List */
.table-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
  gap: 1rem;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.table-head {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 0.95fr) minmax(112px, 1fr) minmax(112px, 1fr) minmax(112px, 1fr) minmax(120px, 1fr);
  column-gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-secondary);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.table-head > span:not(:first-child) {
  text-align: center;
}

.rows {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-height: 0;
}

.plant-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 0.95fr) minmax(112px, 1fr) minmax(112px, 1fr) minmax(112px, 1fr) minmax(120px, 1fr);
  column-gap: 0.35rem;
  align-items: center;
  padding: 0.62rem 0.55rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
  flex: 1 1 0;
  min-height: 86px;
}

.plant-row > div:not(:first-child) {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

.plant-row:hover {
  background: rgba(0, 229, 255, 0.03);
  border-color: rgba(0, 229, 255, 0.1);
  transform: translateX(4px);
}

.plant-name {
  font-weight: 600;
  font-size: 1rem;
  min-width: 0;
}

.plant-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plant-meta {
  font-size: 0.68rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.plant-last-indicator {
  margin-top: 0.1rem;
  font-size: 0.64rem;
  color: #8fb3c7;
  white-space: normal;
  line-height: 1.1;
  overflow: visible;
}

.plant-message {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.energy {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #67f5a8;
  min-width: 0;
  white-space: nowrap;
}

.consumption {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ff5e57;
  min-width: 0;
  white-space: nowrap;
}

.feedin {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #7fb7ff;
  min-width: 0;
  white-space: nowrap;
}

.plant-consumption {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffb454;
  min-width: 0;
  white-space: nowrap;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.ok {
  color: var(--ok-color);
  background: rgba(0, 255, 165, 0.1);
  box-shadow: var(--ok-glow);
}

.night {
  color: var(--night-color);
  background: rgba(159, 168, 218, 0.1);
  box-shadow: var(--night-glow);
}

.no_data {
  color: var(--warning-color);
  background: rgba(255, 183, 77, 0.1);
  box-shadow: var(--warning-glow);
}

.zero_output, .error {
  color: var(--error-color);
  background: rgba(255, 82, 82, 0.1);
  box-shadow: var(--error-glow);
}

/* Last Update / Live Pulse */
.subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.2);
  animation: pulse-ring 2s infinite;
}

.pulse::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok-color);
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(0, 255, 165, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 165, 0); }
  100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(0, 255, 165, 0); }
}

.portal-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.75rem;
  margin-top: 4px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 1rem;
  margin-top: auto;
}

.slideshow-card {
  display: flex;
  flex-direction: column;
  padding: 0.7rem;
  min-height: 0;
  height: 100%;
}

.slideshow-viewport {
  flex: 1 1 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  min-height: 100%;
}

#slideshowImage {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: none;
  opacity: 0;
  transition: opacity 0.85s ease-in-out;
}

#slideshowImage.is-visible {
  opacity: 1;
}

#slideshowImage.is-fading {
  opacity: 0;
}

.slideshow-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}


.flow-card {
  padding: 0.9rem 1rem;
  overflow: hidden;
}

.flow-grid-list {
  display: grid;
  --flow-count: 1;
  --flow-scale: 1;
  grid-template-columns: repeat(var(--flow-count), minmax(0, 1fr));
  gap: 0.7rem;
  align-items: stretch;
  min-width: 0;
}

.flow-empty {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.flow-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #d6e8f5;
  margin-bottom: 0.55rem;
}

.flow-layout {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  min-height: calc(240px * var(--flow-scale));
  overflow: hidden;
}

.flow-plant-head {
  position: absolute;
  top: calc(12px * var(--flow-scale));
  left: calc(12px * var(--flow-scale));
  right: calc(12px * var(--flow-scale));
  display: flex;
  justify-content: space-between;
  gap: calc(0.5rem * var(--flow-scale));
}

.flow-plant-name {
  font-size: clamp(0.7rem, calc(0.9rem * var(--flow-scale)), 0.9rem);
  font-weight: 600;
  color: #e9f5ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-plant-provider {
  font-size: clamp(0.54rem, calc(0.66rem * var(--flow-scale)), 0.66rem);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
}

.flow-node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(0.12rem * var(--flow-scale));
  min-width: calc(128px * var(--flow-scale));
}

.flow-pv {
  top: calc(40px * var(--flow-scale));
  left: 50%;
  transform: translateX(-50%);
}

.flow-grid {
  left: calc(28px * var(--flow-scale));
  bottom: calc(26px * var(--flow-scale));
}

.flow-home {
  right: calc(28px * var(--flow-scale));
  bottom: calc(26px * var(--flow-scale));
}

.flow-icon {
  width: calc(42px * var(--flow-scale));
  height: calc(42px * var(--flow-scale));
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.flow-node-label {
  font-size: clamp(0.52rem, calc(0.68rem * var(--flow-scale)), 0.68rem);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}

.flow-node-value {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.05rem, calc(1.8rem * var(--flow-scale)), 1.8rem);
  font-weight: 700;
  line-height: 1;
  color: #e6f3ff;
  white-space: nowrap;
}

.flow-node-value.is-prod { color: #67f5a8; }
.flow-node-value.is-grid-in { color: #ff6f6f; }
.flow-node-value.is-grid-out { color: #7fb7ff; }
.flow-node-value.is-cons { color: #ffb454; }
.flow-home-solar-value { display: none; }

.flow-link {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  --line-color: #dbe7f3;
  opacity: 0.95;
}

.flow-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--line-color) 22%, var(--line-color) 78%, transparent 100%);
  background-size: 56px 100%;
}

.flow-link.is-active::before { animation: flow-link-move 1.15s linear infinite; }
.flow-link.is-idle { opacity: 0.25; }
.flow-link.is-idle::before {
  animation: none;
  background: linear-gradient(90deg, transparent 0%, var(--line-color) 30%, var(--line-color) 70%, transparent 100%);
}

.flow-link::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-color);
  box-shadow: 0 0 8px color-mix(in oklab, var(--line-color) 70%, white 30%);
  display: none;
}

.flow-link-horizontal {
  bottom: calc(86px * var(--flow-scale));
  height: 3px;
}

.flow-link-grid {
  --line-color: #7fb7ff;
  left: calc(146px * var(--flow-scale));
  right: calc(50% - 2px);
}

.flow-link-home {
  --line-color: #ffb454;
  left: calc(50% - 2px);
  right: calc(146px * var(--flow-scale));
}

.flow-link-pv,
.flow-link-solar {
  --line-color: #67f5a8;
}

.flow-link-solar {
  left: 33%;
  right: 33%;
  top: calc(142px * var(--flow-scale));
  bottom: auto;
}

.flow-link-vertical {
  top: calc(132px * var(--flow-scale));
  bottom: calc(58px * var(--flow-scale));
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
}

.flow-link-vertical::before {
  background: linear-gradient(180deg, transparent 0%, var(--line-color) 10%, var(--line-color) 90%, transparent 100%);
  background-size: 100% 44px;
}

.flow-link-vertical.is-active::before { animation-name: flow-link-move-v; }

.flow-link-horizontal.is-active.dir-right::after,
.flow-link-horizontal.is-active.dir-left::after,
.flow-link-vertical.is-active.dir-down::after {
  display: block;
}

.flow-link-horizontal.is-active.dir-right::after {
  left: 0;
  top: -2px;
  animation: flow-dot-right 1.15s linear infinite;
}

.flow-link-horizontal.is-active.dir-left::after {
  left: calc(100% - 8px);
  top: -2px;
  animation: flow-dot-left 1.15s linear infinite;
}

.flow-link-vertical.is-active.dir-down::after {
  left: -2.5px;
  top: 0;
  animation: flow-dot-down 1.15s linear infinite;
}

.flow-junction-meter {
  position: absolute;
  left: calc(50% + (6px * var(--flow-scale)));
  bottom: calc(42px * var(--flow-scale));
  width: calc(64px * var(--flow-scale));
  height: calc(64px * var(--flow-scale));
  object-fit: contain;
  transform: translateX(-50%) rotate(-6deg);
  z-index: 3;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.flow-layout-solaredge .flow-pv {
  left: 28%;
  top: calc(108px * var(--flow-scale));
}

.flow-layout-solaronly .flow-pv {
  left: 28%;
  top: calc(108px * var(--flow-scale));
}

.flow-home-solar {
  right: calc(44px * var(--flow-scale));
  top: calc(120px * var(--flow-scale));
  bottom: auto;
}

.flow-layout-solaronly .flow-home-solar {
  left: 72%;
  right: auto;
  transform: translateX(-50%);
}

@keyframes flow-link-move {
  from { background-position: 0 0; }
  to { background-position: 56px 0; }
}

@keyframes flow-link-move-v {
  from { background-position: 0 0; }
  to { background-position: 0 44px; }
}

@keyframes flow-dot-right {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

@keyframes flow-dot-left {
  0% { left: calc(100% - 8px); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 0; opacity: 0; }
}

@keyframes flow-dot-down {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}

@media (max-width: 768px) {
  .flow-layout { min-height: calc(220px * var(--flow-scale)); }
  .flow-node { min-width: calc(104px * var(--flow-scale)); }
  .flow-grid { left: calc(10px * var(--flow-scale)); }
  .flow-home { right: calc(10px * var(--flow-scale)); }
  .flow-link-horizontal { bottom: calc(82px * var(--flow-scale)); }
  .flow-link-grid { left: calc(108px * var(--flow-scale)); right: calc(50% - 2px); }
  .flow-link-home { left: calc(50% - 2px); right: calc(108px * var(--flow-scale)); }
  .flow-link-vertical { top: calc(132px * var(--flow-scale)); bottom: calc(56px * var(--flow-scale)); }
  .flow-layout-solaredge .flow-pv { left: 28%; top: calc(112px * var(--flow-scale)); }
  .flow-layout-solaronly .flow-pv { left: 28%; top: calc(112px * var(--flow-scale)); }
  .flow-home-solar { right: calc(30px * var(--flow-scale)); top: calc(122px * var(--flow-scale)); bottom: auto; }
  .flow-layout-solaronly .flow-home-solar { left: 72%; right: auto; transform: translateX(-50%); }
  .flow-link-solar { left: 33%; right: 33%; top: calc(142px * var(--flow-scale)); }
  .flow-junction-meter { left: calc(50% + (5px * var(--flow-scale))); width: calc(58px * var(--flow-scale)); height: calc(58px * var(--flow-scale)); bottom: calc(42px * var(--flow-scale)); transform: translateX(-50%) rotate(-6deg); }
}


/* Responsive */
@media (max-width: 1024px) {
  .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

  .clock-module {
    grid-column: span 2;
    order: -1;
  }
  .main-grid {
    grid-template-columns: 1fr;
  }
  .kpi-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .slideshow-viewport,
  #slideshowImage {
    min-height: 260px;
  }
}


/* Flow texture direction aligned with dot direction */
.flow-link-horizontal.is-active.dir-right::before {
  animation-direction: normal;
}

.flow-link-horizontal.is-active.dir-left::before {
  animation-direction: reverse;
}

.flow-link-vertical.is-active.dir-down::before {
  animation-direction: normal;
}













/* Compact one-page layout */
.shell {
  padding: clamp(0.45rem, 0.9vw, 0.8rem);
  gap: 0.55rem;
}

.card {
  border-radius: 16px;
  padding: 1rem;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}


.logo-box {
  justify-self: end;
  position: relative;
  width: 100%;
  max-width: 280px;
  min-width: 160px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}


.logo-dynamic {
  max-height: 48px;
}

.subtitle {
  margin-top: 0.3rem;
}

.main-grid {
  gap: 0.7rem;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}

.kpi-inline {
  gap: 0.7rem;
  padding: 0.65rem;
}

.kpi-box {
  padding: 0.55rem 0.6rem 0.65rem;
}

.kpi strong {
  margin-top: 0.2rem;
}

.table-head {
  padding: 0.42rem 0.6rem;
}

.rows {
  padding: 0.35rem;
  gap: 0.28rem;
}

.plant-row {
  min-height: 72px;
  padding: 0.46rem 0.45rem;
}

.plant-name {
  font-size: 0.95rem;
}

.plant-meta {
  font-size: 0.64rem;
}

.plant-last-indicator {
  font-size: 0.6rem;
}

.energy {
  font-size: 1.55rem;
}

.consumption,
.feedin,
.plant-consumption {
  font-size: 1.2rem;
}

.badge {
  padding: 4px 10px;
  font-size: 0.76rem;
}

.slideshow-card {
  padding: 0.5rem;
}

.flow-card {
  padding: 0.65rem 0.8rem;
}

.flow-title {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.flow-grid-list {
  gap: 0.45rem;
}

.flow-layout {
  min-height: 280px;
}

.footer {
  padding: 0.45rem;
  font-size: 0.68rem;
}

@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}




.topbar.card {
  padding: 0.75rem 1rem;
}

