.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 28px;
}

.btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-start {
  background: #2f8f3a;
  border-color: #24722d;
}

.btn-start:hover {
  background: #277730;
}

.btn-stop {
  background: #b64545;
  border-color: #933636;
}

.btn-stop:hover {
  background: #993a3a;
}

.action-row {
  align-items: center;
}

.action-row .btn {
  min-width: 170px;
  justify-content: center;
}

.dashboard-top {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: stretch;
}

.dashboard-left,
.dashboard-right,
.dashboard-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  border-radius: 28px;
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.data-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row span {
  color: var(--muted);
}

.data-row strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.pulse-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pulse-stats-row {
  display: grid;
  grid-template-columns: 240px minmax(220px, 420px);
  justify-content: center;
  gap: 28px;
  align-items: center;
}

.pulse-max-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
}

.enden-block {
  align-items: center;
  justify-self: center;
}

.pulse-max-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.pulse-max-row strong {
  min-width: 3ch;
  text-align: right;
}

.pulse-max-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.pulse-max-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pulse-max-row span {
  color: var(--muted);
}

.pulse-max-row strong {
  font-size: 1.15rem;
}

.counter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.counter-label,
.enden-label {
  color: var(--muted);
}

.odometer {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.odometer-digit {
  width: 40px;
  height: 56px;
  border-radius: 10px;
  background: #111;
  color: #f5f5f5;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -8px 16px rgba(0, 0, 0, 0.22);
}

.enden-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.enden-value {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  border: 6px solid var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.compact .data-row {
  min-height: 40px;
  padding: 8px 0;
}

.meteo-panel {
  min-height: 100%;
}

.meteo-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(260px, 0.65fr);
  grid-template-rows: auto auto;
  gap: 20px;
  align-items: start;
}

.card-inner {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 88%, var(--bg));
  padding: 18px 20px;
}

.wind-visual {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 470px;
  gap: 18px;
}

.wind-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.summary-box {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.summary-title {
  color: var(--muted);
}

.summary-value {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
}

.summary-sub {
  color: var(--muted);
  font-size: 1.1rem;
}

.meteo-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.meteo-details .data-row {
  min-height: 52px;
}

.wind-rose {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  border: 5px solid var(--text);
  background: transparent;
}

.wind-n,
.wind-e,
.wind-s,
.wind-w {
  position: absolute;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.wind-n { top: -28px; left: 50%; transform: translateX(-50%); }
.wind-s { bottom: -30px; left: 50%; transform: translateX(-50%); }
.wind-w { left: -24px; top: 50%; transform: translateY(-50%); }
.wind-e { right: -24px; top: 50%; transform: translateY(-50%); }

.wind-no,
.wind-zo,
.wind-zw,
.wind-nw {
  position: absolute;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.wind-no { top: 32px; right: 42px; }
.wind-zo { bottom: 32px; right: 42px; }
.wind-zw { bottom: 32px; left: 42px; }
.wind-nw { top: 32px; left: 42px; }

.wind-rose::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  border: 3px solid color-mix(in srgb, var(--text) 40%, transparent);
}

.wind-shadow,
.wind-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 100%;
  border-radius: 999px;
}

.wind-shadow {
  width: 4px;
  height: 108px;
  margin-left: -2px;
  margin-top: -108px;
  background: rgba(80, 80, 80, 0.28);
  z-index: 1;
  transition: transform 0.25s ease;
}

.wind-shadow-1,
.wind-shadow-2 {
  transform: rotate(0deg);
}

.wind-needle {
  width: 7px;
  height: 118px;
  margin-left: -3.5px;
  margin-top: -118px;
  background: #b64545;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease;
}

.wind-center {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--text);
  border-radius: 999px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wind-trend-block {
  text-align: center;
  margin-top: 14px;
}

.wind-trend-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.wind-trend-value.is-krimpt {
  color: #b64545;
}

.wind-trend-value.is-stabiel {
  color: #60a5fa;
}

.wind-trend-value.is-ruimt {
  color: #2f8f3a;
}

.wind-trend-note {
  color: var(--muted);
}

.meteo-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.meteo-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.meteo-data-row {
  align-items: center;
}

.meteo-update-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}

.meteo-update-label {
  white-space: nowrap;
}

.graph-panel canvas {
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 90%, var(--bg));
  padding: 10px;
}

@media (max-width: 1180px) {
  .dashboard-top {
    grid-template-columns: 1fr;
  }

  .meteo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .wind-visual {
    grid-row: auto;
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .wind-summary-row {
    grid-template-columns: 1fr;
  }

  .wind-rose {
    width: 220px;
    height: 220px;
  }

  .odometer-digit {
    width: 34px;
    height: 50px;
    font-size: 1.7rem;
  }

  .enden-value {
    width: 112px;
    height: 112px;
    font-size: 2.4rem;
  }

.pulse-stats-row {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 20px;
}

.pulse-max-block {
  width: min(100%, 420px);
}

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .action-row .btn,
  .action-row strong {
    width: 100%;
    text-align: left;
  }
}

.dashboard-molen {
  padding: 20px 24px;
  border-radius: 28px;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dashboard-molen-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-molen-subtitle {
  margin-top: 4px;
  font-size: 1rem;
  color: var(--text-muted, #666);
}

.dashboard-molen-subtitle::before {
  content: "–";
  margin-right: 6px;
}
