/* css/components/mode-switch.css */
#mode-switch-slot {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 200;
}

#mode-switch-slot:empty { display: none; }

body.is-auth-page #mode-switch-slot {
  display: none;
}

@media (max-width: 430px) {
  #mode-switch-slot {
    top: 8px;
    right: 8px;
  }
}

.mode-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px 5px 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  user-select: none;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.mode-pill:hover { border-color: var(--accent); }

.mode-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.mode-pill__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  overflow: hidden;
}

.mode-pill__menu.hidden { display: none; }

.mode-opt {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-ui);
  text-align: left;
  gap: 1px;
  transition: background 0.1s;
}

.mode-opt:last-child { border-bottom: none; }
.mode-opt:hover,
.mode-opt--active { background: var(--accent-subtle); }

.mode-opt__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  display: block;
}

.mode-opt--active .mode-opt__label { color: var(--accent); }

.mode-opt__desc {
  font-size: 11px;
  color: var(--text-2);
  display: block;
}
