#settings-btn {
  position: fixed;
  top: 12px;
  right: 16px;
  font-size: 1.4rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 4px;
}
#settings-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
}
#settings-content {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
}
#location-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#location-form .ts-wrapper {
  width: 260px;
}
#load-btn {
  align-self: flex-end;
}
#month-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 12px;
}
#view-modes {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 0 16px 12px;
}
#view-modes button {
  padding: 4px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}
#view-modes button.active {
  background: #333;
  color: #fff;
  border-color: #333;
}
#month-nav button {
  font-size: 1.4rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
}
#current-month {
  min-width: 140px;
  text-align: center;
}
#chart-container {
  position: relative;
}
#chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
}
#chart-loading::after {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid #ddd;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
