.theme-setting {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 12px;
}

.theme-control {
  width: 100%;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid rgba(30, 39, 54, 0.12);
  border-radius: 8px;
  background: rgba(30, 39, 54, 0.045);
}

.theme-control button {
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #778296;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.theme-control button:hover {
  color: #252c38;
  background: rgba(255, 255, 255, 0.55);
}

.theme-control button.is-active {
  border-color: rgba(203, 33, 127, 0.16);
  color: #a51d68;
  background: white;
  box-shadow: 0 6px 14px rgba(25, 34, 48, 0.08);
}

.theme-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: block;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.theme-system-icon { mask-image: url("/assets/icons/monitor.svg"); }
.theme-light-icon { mask-image: url("/assets/icons/sun.svg"); }
.theme-dark-icon { mask-image: url("/assets/icons/moon.svg"); }

.auth-theme-control {
  margin: -2px 0 16px;
}

html[data-resolved-theme="dark"] .theme-setting {
  color: #94a29e;
}

html[data-resolved-theme="dark"] .theme-control {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

html[data-resolved-theme="dark"] .theme-control button {
  color: #7f8d89;
}

html[data-resolved-theme="dark"] .theme-control button:hover {
  color: #e8efec;
  background: rgba(255, 255, 255, 0.065);
}

html[data-resolved-theme="dark"] .theme-control button.is-active {
  border-color: rgba(230, 72, 155, 0.22);
  color: #f08fbe;
  background: rgba(215, 48, 132, 0.12);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

@media (max-width: 620px) {
  .auth-theme-control button span:last-child {
    display: none;
  }
}
