:root {
  --map-viewport: #eef4ed;
  --map-frame: #a6b7a8;
  --map-wire: #919c94;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --theme-bg: #151a1e;
  --theme-panel: #20272c;
  --theme-raised: #293238;
  --theme-text: #eef3f2;
  --theme-muted: #b5c1c1;
  --theme-line: #45545a;
  --theme-accent: #82d9c3;
  --map-viewport: #2d393c;
  --map-frame: #788d91;
  --map-wire: #a4b5b4;
}

.swatch { background-color: var(--swatch-light); }
html[data-theme="dark"] .swatch { background-color: var(--swatch-dark); color: var(--swatch-ink); }

whiteboard-appearance {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--muted);
  border-radius: 6px;
}
.welcome-masthead whiteboard-appearance { margin-inline-start: auto; }
whiteboard-appearance svg { position: absolute; left: 7px; pointer-events: none; }
whiteboard-appearance select {
  min-height: 34px;
  padding: 3px 3px 3px 29px;
  border: 1px solid transparent;
  border-radius: inherit;
  background-color: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
whiteboard-appearance:hover { background-color: var(--hover); color: var(--ink); }
whiteboard-appearance:has(select:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
whiteboard-appearance select:focus-visible { outline: none; }
whiteboard-appearance option { background-color: Canvas; color: CanvasText; }
@media (max-width: 890px) {
  .topbar whiteboard-appearance, .sh-bar whiteboard-appearance { width: 34px; height: 34px; justify-content: center; }
  .topbar whiteboard-appearance svg, .sh-bar whiteboard-appearance svg { position: static; }
  .topbar whiteboard-appearance select, .sh-bar whiteboard-appearance select { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; }
}
