/* Dark mode: the same design, darker tokens. "system" follows the OS; the toggle pins light or dark. */
:root[data-theme="dark"] {
  --label: rgb(236 238 245); --label-2: rgb(236 238 245 / .66); --label-3: rgb(236 238 245 / .44);
  --sep: rgb(255 255 255 / .09); --fill: rgb(255 255 255 / .06); --fill-2: rgb(255 255 255 / .11);
  --bg: #0e1016; --surface: #1c1f2b; --surface-hover: #252938; --field: rgb(255 255 255 / .07); --card: rgb(255 255 255 / .05);
  --glass-bg: rgb(26 29 41 / .6); --glass-edge: rgb(255 255 255 / .08); --ring: #1c1f2b;
  --warn: #f5b84a; --ok: #4ad38a; --flash: #4a3b10; --blob: .4;
  --e1: 0 1px 2px rgb(0 0 0 / .3), 0 2px 8px rgb(0 0 0 / .25);
  --e2: inset 0 1px 0 rgb(255 255 255 / .06), 0 8px 28px rgb(0 0 0 / .45);
  --e3: 0 12px 36px rgb(0 0 0 / .55);
  color-scheme: dark;
}
:root[data-theme="dark"] #tip { background: rgb(44 48 64 / .96); border: 1px solid rgb(255 255 255 / .08); }
:root[data-theme="dark"] .rooms-dialog::backdrop { background: rgb(0 0 0 / .4); }

/* the toggle: first page top left; in the room it sits in the header */
.theme-corner { position: fixed; top: 20px; left: 20px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--label); }
body:not(.joining) .theme-corner { display: none; }
