:root { color-scheme: light; --link: #215ac0; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14181f;
  --card: #202630;
  --text: #edf1f7;
  --muted: #b1bccd;
  --line: #384251;
  --blue-soft: #243655;
  --link: #98bcff;
}
#theme-toggle {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
#theme-toggle span::before { content: '☾'; font: 24px/1 system-ui; }
[data-theme="dark"] #theme-toggle span::before { content: '☀'; }
#theme-toggle:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
body.auth-mode .workspace-bar:has(#theme-toggle) {
  display: flex;
  justify-content: flex-end;
  background: var(--bg);
  border: 0;
}
body.auth-mode .workspace-bar > :not(#theme-toggle) { display: none; }
body.auth-mode .auth-screen { background: var(--bg); }
