.dashboard-refresh {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 20px 28px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.dashboard-refresh-setting { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.dashboard-refresh-setting label { color: var(--muted); font-size: 12px; font-weight: 700; }
.dashboard-refresh-setting select {
  max-width: 100%;
  min-height: 38px;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--panel-soft);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.dashboard-refresh-setting select:focus-visible, .dashboard-refresh button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.dashboard-refresh-status { margin-left: auto; color: var(--muted); font-size: 12px; }
.dashboard-refresh-status time { color: var(--text); font-variant-numeric: tabular-nums; }
.dashboard-refresh-error { display: block; margin-top: 3px; color: var(--red); }
.dashboard-refresh-error:empty { display: none; }
.dashboard-refresh button { min-height: 38px; white-space: nowrap; }
.dashboard-refresh button:disabled { cursor: wait; opacity: .65; }
.dashboard-refresh button.is-refreshing svg { animation: dashboard-refresh-spin 1.1s linear infinite; }
@keyframes dashboard-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dashboard-refresh button.is-refreshing svg { animation: none; }
}
@media (max-width: 760px) {
  .dashboard-refresh { margin: 14px 14px 0; padding: 12px; gap: 12px; }
  .dashboard-refresh-setting { width: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
  .dashboard-refresh-setting select { width: 100%; }
  .dashboard-refresh-status { margin-left: 0; flex: 1; }
}
