.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#flowModule {
  position: relative;
}

.flow-loader {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(252, 251, 248, 0.94);
  box-shadow: 0 14px 40px rgba(29, 29, 27, 0.12);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.flow-loader[hidden] {
  display: none;
}

.flow-loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  animation: flowPulse 0.9s ease-in-out infinite alternate;
}

.flow-module-loading #dayView,
.flow-module-loading #monthView {
  opacity: 0.42;
  pointer-events: none;
}

@keyframes flowPulse {
  from {
    transform: scale(0.7);
    opacity: 0.45;
  }

  to {
    transform: scale(1.15);
    opacity: 1;
  }
}

.tab-button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.tab-button-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.hourly-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 250px;
  padding: 12px 6px 22px;
  margin-bottom: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.hourly-bar {
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hourly-bar-max {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.hourly-bar-value {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-align: center;
  padding: 8px 4px 6px;
}

.hourly-bar-track {
  width: 100%;
  height: 180px;
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(165, 37, 58, 0.04), rgba(165, 37, 58, 0.01));
  border-radius: 16px;
}

.hourly-bar-fill {
  width: 100%;
  min-height: 10px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--brand), #d24761);
  box-shadow: 0 8px 18px rgba(165, 37, 58, 0.22);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.hourly-bar-marker {
  position: absolute;
  left: 12%;
  width: 76%;
  height: 3px;
  border-radius: 999px;
  background: #1d1d1b;
  box-shadow: 0 2px 6px rgba(29, 29, 27, 0.18);
}

.hourly-bar-label {
  font-weight: 700;
}

.hourly-bar-meta {
  font-size: 12px;
  color: var(--muted);
}

.live-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.live-number-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.live-number-chip {
  min-width: 78px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #f4e7ea;
  color: var(--brand);
  font-size: 30px;
  font-weight: 700;
}

.live-number-chip-ready {
  background: #e7f4ea;
  color: var(--accent);
}

@media (max-width: 720px) {
  .live-panel-grid {
    grid-template-columns: 1fr;
  }
}
