.mode-toggle {
  position: relative;
}

.mode-btn {
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.mode-btn:focus,
.mode-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.mode-btn::after {
  display: none;
}

.mode-btn img {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  display: block;
}

.appearance-card.dropdown-menu {
  border-radius: 12px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 10px 12px;
  width: 254px;
  z-index: 999;
}

.appearance-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 7px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.theme-option:active {
  transform: scale(0.99);
}

.theme-option .thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  gap: 4px;
  padding: 4px;
  overflow: hidden;
}

.theme-option .thumb .line,
.theme-option .thumb .middle-bar,
.theme-option .thumb .accent-bar {
  display: block;
  flex: 0 0 auto;
  height: 8px;
  width: 100%;
  margin: 0;
  opacity: 1;
  transform: none;
  border-radius: 4px;
}

.theme-option .thumb .middle-bar {
  width: 65%;
}

.theme-option .option-name {
  font-size: 14px;
  font-weight: 400;
}

.thumb.light { background: #F4F5F7; }
body .theme-option .thumb .line { background: #fff; }
body .theme-option .thumb .middle-bar { background: #E5E7EB; }
body .theme-option .thumb .accent-bar.blue { background: #487DBC; }
body .theme-option .thumb .accent-bar.teal { background: #3A7F81; }
body .theme-option .thumb.dark .line { background: #181F28; }
body .theme-option .thumb.dark .middle-bar { background: #2B3542; }
body .theme-option .thumb.dark .accent-bar.blue { background: #519DF7; }
body .theme-option .thumb.dark .accent-bar.teal { background: #60C4C7; }

body.light .mode-btn img { filter: brightness(1) invert(0); }
body.light .appearance-card.dropdown-menu {
  background: rgba(72, 125, 188, 0.13);
  border: 1px solid #FFF;
}
body.light .appearance-title { color: #171717; }
body.light .group-label { color: #52596F; }
body.light .theme-option { background: rgba(255, 255, 255, 0.80); }
body.light .thumb.dark { background: #0F1419; }
body.light .theme-option .option-name { color: #626262; }
body.light .theme-option.selected,
body.light .theme-option:hover { background: #487DBC; }
body.light .theme-option.selected .option-name,
body.light .theme-option:hover .option-name { color: #fff; }

body.dark .mode-btn img,
body.blue-dark .mode-btn img { filter: brightness(1) invert(1); }

body.dark .appearance-card.dropdown-menu,
body.blue-dark .appearance-card.dropdown-menu {
  background: rgba(72, 125, 188, 0.20);
  border: 1px solid rgba(190, 196, 211, 0.10);
}

body.dark .appearance-card.dropdown-menu {
  background: rgba(96, 196, 199, 0.20);
}

body.dark .appearance-title,
body.blue-dark .appearance-title { color: #fff; }

body.dark .group-label,
body.blue-dark .group-label { color: rgba(190, 196, 211, 0.60); }

body.dark .theme-option,
body.blue-dark .theme-option { background: rgba(190, 196, 211, 0.10); }

body.dark .thumb.dark,
body.blue-dark .thumb.dark { background: #141823; }

body.dark .theme-option .option-name,
body.blue-dark .theme-option .option-name { color: #BEC4D3; }

body.dark .theme-option.selected,
body.dark .theme-option:hover { background: rgba(96, 196, 199, 0.60); }

body.blue-dark .theme-option.selected,
body.blue-dark .theme-option:hover { background: #487DBC; }

body.dark .theme-option.selected .option-name,
body.dark .theme-option:hover .option-name,
body.blue-dark .theme-option.selected .option-name,
body.blue-dark .theme-option:hover .option-name { color: #fff; }

body.dark .group-label img,
body.blue-dark .group-label img {
  filter: none;
  opacity: 1;
}
