:root {
  font-size: 16px;
  --font-stack: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  font-family: var(--font-stack);
  line-height: 1.5;
  color: #222;
  margin: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-size: inherit;
}

/* ---------- color swatch picker (shared: registration + waiting-room) ---------- */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s, border-color 0.1s;
}
.swatch:hover { transform: scale(1.15); border-color: #fff; }
.swatch.is-selected { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4); }

/* Picker layout: label on its own line above, then a row of
   [swatch block] | divider | [Custom + well]. */
.color-field {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
/* 70/30 split: the swatch palette takes ~70% (wrapping into rows), the Custom
   control takes the remaining ~30%, with a divider between. */
.color-field .color-swatches {
  flex: 0 0 68%;
}
.color-field .color-custom {
  flex: 1 1 auto;
}
.color-divider {
  align-self: stretch;
  width: 2px;
  min-height: 44px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 1px;
}
.color-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  opacity: 0.85;
}
.color-custom input[type="color"] {
  width: 40px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  padding: 2px;
}
/* Make the color well actually fill the control so the picked color shows. */
.color-custom input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-custom input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }
.color-custom input[type="color"]::-moz-color-swatch { border: none; border-radius: 4px; }

/* ===== Light theme tweaks (shared) ===== */
html[data-theme="light"] .swatch { border-color: rgba(0, 0, 0, 0.2); }
html[data-theme="light"] .swatch:hover,
html[data-theme="light"] .swatch.is-selected { border-color: #111; }
html[data-theme="light"] .color-divider { background: rgba(0, 0, 0, 0.14); }
