/* Day/night control shared by both appearances of the final concept. */
.theme-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  flex: none;
  gap: 2px;
  padding: 3px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.theme-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: .875rem;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
}
.theme-choice .icon { width: 18px; height: 18px; }
html:not([data-theme="dark"]) .theme-day,
html[data-theme="dark"] .theme-night {
  background: var(--mint);
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--line);
}
.theme-toggle:hover { border-color: var(--green); }
.theme-toggle:focus-visible { outline: 3px solid var(--indigo); outline-offset: 4px; }
.mobile-auth { margin-top: 10px; width: 100%; }

@media (min-width: 1001px) and (max-width: 1280px) {
  .nav { gap: 19px; }
  .nav-links { gap: 20px; }
}
@media (max-width: 1000px) {
  .theme-toggle { margin-left: auto; }
  .nav-login { margin-left: 0; }
}
@media (max-width: 620px) {
  .nav { gap: 8px; }
  .nav .brand img { width: clamp(128px, 42vw, 165px); }
  .nav-login { display: none; }
  .theme-label { display: none; }
  .theme-choice { padding-inline: 8px; }
  .menu-button { width: 44px; height: 44px; flex: none; }
}
@media (min-width: 1900px) {
  .theme-toggle { min-height: 50px; padding: 4px; }
  .theme-choice { min-height: 40px; padding-inline: 12px; }
  .theme-choice .icon { width: 20px; height: 20px; }
}
@media (min-width: 3200px) {
  .theme-toggle { min-height: 58px; }
  .theme-choice { min-height: 48px; padding-inline: 15px; }
  .theme-choice .icon { width: 24px; height: 24px; }
}
