.theme-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  color: inherit;
  background: var(--surface, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.18));
  border-radius: 8px;
  cursor: pointer;
}

.theme-toggle:hover { border-color: var(--accent, #41d9bd); }
.theme-toggle [data-theme-icon] { font-size: 18px; line-height: 1; }
.theme-toggle-standalone { position: fixed; top: 16px; left: 16px; z-index: 20; }

.theme-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.theme-setting-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--surface, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.18));
  border-radius: 10px;
}

.theme-setting-card h3,
.theme-setting-card p { margin: 0; }
.theme-setting-card select { width: 100%; }
.theme-local-controls { margin-top: 18px; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 700px) {
  .theme-settings-grid { grid-template-columns: 1fr; }
  .theme-toggle [data-theme-label] { display: none; }
  .theme-toggle-standalone { top: 10px; left: 10px; }
}
