.dashboard-refresh-form {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 14px;
}

.dashboard-refresh-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.dashboard-refresh-control .input {
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  margin: 0;
  flex: 0 0 82px;
  padding: 9px 10px;
}

.dashboard-refresh-control .btn {
  flex: 0 0 auto;
  min-height: 40px;
}

@media (max-width: 640px) {
  .dashboard-refresh-form {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-refresh-control {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr auto auto;
    white-space: normal;
  }

  .dashboard-refresh-control .input {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex-basis: auto;
  }
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.panel-card--fixed-height {
  min-height: 340px;
  max-height: 340px;
}

.panel-card--wide {
  grid-column: 1 / -1;
  min-height: 420px;
}

.chart-wrap {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  padding: 18px;
}

.usage-summary {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.usage-stat-card {
  border: 1px solid #e8eef8;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.usage-stat-card__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.usage-stat-card__value {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.usage-stat-card__hint {
  font-size: 12px;
  color: var(--muted);
}

.line-chart {
  width: 100%;
  height: 100%;
}

.line-chart__grid {
  fill: none;
  stroke: #d9e3f0;
  stroke-width: 1;
}

.line-chart__line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chart__points circle {
  fill: var(--secondary);
}

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

  .usage-summary {
    grid-template-columns: 1fr;
  }
}
