/** Shared site chrome — hub and game pages. */

/* --- Top bar ------------------------------------------------------------ */

.pd-chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  flex-shrink: 0;
  align-self: stretch;
  border-bottom: 1px solid color-mix(in srgb, var(--pd-colour-heading, #161613) 10%, transparent);
  background: var(--pd-colour-background, #fff);
  font-family: "Baloo 2", system-ui, -apple-system, sans-serif;
  color: var(--pd-colour-text, #1a1a1a);
  text-align: left;
}

.pd-chrome-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--pd-content-width);
  margin: 0 auto;
  min-height: 58px;
  padding: 10px 20px;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .pd-chrome-inner {
    min-height: 64px;
    padding: 12px 48px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .pd-chrome-inner {
    padding-left: 28px;
    padding-right: 28px;
  }
}

.pd-chrome-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  z-index: 1;
}

.pd-chrome-brand {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  padding: 0;
  line-height: 1;
  color: var(--pd-colour-heading, #161613);
  text-decoration: none;
  white-space: nowrap;
}

.pd-chrome-brand:hover {
  opacity: 0.85;
}

.pd-chrome-brand:focus,
.pd-chrome-brand:focus-visible {
  outline: none;
}

.pd-chrome-brand-pzl {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.pd-chrome-brand-games {
  margin-left: 0.2em;
  font-family: var(--pd-font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--pd-colour-muted, #6b6b66);
}

@media (max-width: 768px) {
  .pd-chrome-brand-games {
    display: none;
  }
}

.pd-chrome-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--pd-colour-heading, #161613);
  cursor: pointer;
  transition: background 0.15s ease;
}

.pd-chrome-burger:hover,
body.pd-drawer-open .pd-chrome-burger {
  background: rgba(22, 22, 19, 0.04);
}

.pd-chrome-burger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}

.pd-chrome-burger-lines span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

/* Welcome / home screens: hide game tools */
body.pd-welcome #pd-chrome-tools {
  display: none !important;
}

/* Pause icon retired — ? opens the Game paused menu instead */
#pd-chrome-tools #pauseBtnTop,
#pauseBtnTop {
  display: none !important;
}

.pd-chrome-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
  margin-left: auto;
  z-index: 1;
}

.pd-chrome-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.pd-chrome-tools:empty {
  display: none;
}

/* Shared sizing for game control icons once adopted into chrome */
.pd-chrome-tools .top-icon,
.pd-chrome-tools .w18-help,
.pd-chrome-tools .help-btn,
.pd-chrome-tools .rotate-btn,
.pd-chrome-tools .hint-btn,
.pd-chrome-tools .menu-btn,
.pd-chrome-tools .hl-icon-btn,
.pd-chrome-tools .hls-icon-btn,
.pd-chrome-tools .pd-chrome-archive,
.pd-chrome-tools .pd-chrome-settings {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--pd-colour-heading, #161613);
  cursor: pointer;
  text-decoration: none;
}

/* Tools live outside each game root, so game :focus rules never reach them.
   Suppress the global black focus box (it flashes when typing moves focus here). */
.pd-chrome-tools button:focus,
.pd-chrome-tools button:focus-visible,
.pd-chrome-tools a:focus,
.pd-chrome-tools a:focus-visible {
  outline: none;
}

.pd-chrome-tools svg {
  width: 30px;
  height: 30px;
  display: block;
}

.pd-chrome-tools .play-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.pd-chrome-tools .play-tools[hidden] {
  display: none !important;
}

/* Hint-count badges (tools live outside game roots, so styles live here) */
.pd-chrome-tools .hint-badge,
.pd-chrome-tools .hl-hint-badge,
.pd-chrome-tools .icon-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  z-index: 1;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #e0524a;
  color: #fff;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.pd-chrome-tools .icon-badge {
  top: 0;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e8b028;
  font-size: 0.82rem;
  line-height: 20px;
}

/* Log in / Sign up / Account — text links in the top-right chrome */
.pd-game-login,
.pd-game-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 8px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--pd-font-ui);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--pd-colour-heading, #161613);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.pd-game-signup[hidden] {
  display: none !important;
}

body.pd-game:not(.pd-welcome) .pd-game-login,
body.pd-game:not(.pd-welcome) .pd-game-signup {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .pd-game-login:hover,
  .pd-game-signup:hover {
    opacity: 0.7;
  }
}

.pd-game-login:focus,
.pd-game-login:focus-visible,
.pd-game-signup:focus,
.pd-game-signup:focus-visible {
  outline: none;
}

/* --- Drawer ------------------------------------------------------------- */

.pd-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--pd-colour-backdrop-solid, rgba(22, 22, 19, 0.55));
  opacity: 0;
  transition: opacity 0.22s ease;
}

/*
  Safari 26+ ignores theme-color and tints the status / home bars from fixed
  layers near the viewport edges. These strips are mostly under the browser
  chrome; we recreate them in JS whenever the page/overlay colour changes so
  Safari re-samples instead of getting stuck on a stale dim.
*/
.pd-edge-tint {
  position: fixed;
  left: 0;
  width: 100%;
  height: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  z-index: 2147483000;
  display: none;
  background: var(--pd-colour-background, #fff);
}

.pd-edge-tint-top {
  top: -8px;
}

.pd-edge-tint-bottom {
  bottom: -8px;
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .pd-edge-tint {
      display: block;
    }
  }
}

.pd-drawer-backdrop:not([hidden]) {
  opacity: 1;
}

.pd-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(340px, calc(100vw - 48px));
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--pd-colour-surface, #fff);
  box-shadow: 12px 0 40px rgba(22, 22, 19, 0.14);
  text-align: left;
  /* Shell stays put; only .pd-drawer-scroll moves — keeps rubber-band on white. */
  overflow: hidden;
  overscroll-behavior: none;
  transform: translateX(-104%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
  font-family: "Baloo 2", system-ui, -apple-system, sans-serif;
  color: var(--pd-colour-heading, #161613);
}

.pd-drawer:not([hidden]) {
  transform: translateX(0);
}

.pd-drawer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  background: var(--pd-colour-surface, #fff);
  /* Room for the last links above the home-indicator */
  padding-bottom: 4px;
}

body.pd-drawer-open,
html:has(body.pd-drawer-open) {
  overflow: hidden;
  overscroll-behavior: none;
}

.pd-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 16px 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(22, 22, 19, 0.1);
}

.pd-drawer-head-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.pd-drawer-brand {
  display: inline-block;
  margin: 0;
  min-width: 0;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.pd-drawer-brand:hover {
  opacity: 0.85;
}

.pd-drawer-brand:focus,
.pd-drawer-brand:focus-visible {
  outline: none;
}

.pd-drawer-brand-pzl {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.pd-drawer-brand-games {
  margin-left: 0.2em;
  font-family: var(--pd-font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--pd-colour-muted, #6b6b66);
}

.pd-drawer-theme {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 26px;
  margin: 0 2px 0 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--pd-colour-heading, #161613) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--pd-colour-heading, #161613) 6%, transparent);
  color: var(--pd-colour-muted, #6b6b66);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pd-drawer-theme-sun,
.pd-drawer-theme-moon {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.pd-drawer-theme-sun {
  left: 5px;
  color: #c4922a;
  opacity: 1;
}

.pd-drawer-theme-moon {
  right: 5px;
}

.pd-drawer-theme-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pd-colour-surface, #fff);
  box-shadow: 0 1px 3px rgba(22, 22, 19, 0.18);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease;
}

.pd-drawer-theme.is-on {
  background: color-mix(in srgb, var(--pd-colour-heading, #161613) 88%, #3a4560);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.45);
}

.pd-drawer-theme.is-on .pd-drawer-theme-sun {
  opacity: 0.35;
  color: inherit;
}

.pd-drawer-theme.is-on .pd-drawer-theme-moon {
  opacity: 1;
  color: #d7e0ff;
}

.pd-drawer-theme.is-on .pd-drawer-theme-knob {
  transform: translateX(22px);
  background: #f5f4ed;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.pd-drawer-theme:hover {
  border-color: color-mix(in srgb, var(--pd-colour-heading, #161613) 28%, transparent);
}

.pd-drawer-theme.is-on:hover {
  border-color: transparent;
}

.pd-drawer-theme:focus,
.pd-drawer-theme:focus-visible {
  outline: none;
}

.pd-drawer-close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.pd-drawer-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.pd-drawer-close:hover {
  background: var(--pd-colour-press);
}

.pd-drawer-games {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 22px;
}

.pd-drawer-game {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.15s ease;
}

.pd-drawer-game:hover,
.pd-drawer-game:focus-visible {
  background: var(--pd-colour-press);
}

.pd-drawer-game.is-current {
  background: var(--pd-colour-press);
}

.pd-drawer-game-icon {
  width: 36px;
  height: 36px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: none;
}

.pd-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(22, 22, 19, 0.08);
}

.pd-drawer-link[hidden] {
  display: none !important;
}

.pd-drawer-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pd-colour-muted, #6b6b66);
  font-family: var(--pd-font-ui);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.pd-drawer-link:hover,
.pd-drawer-link:focus-visible {
  background: rgba(22, 22, 19, 0.04);
  color: var(--pd-colour-heading, #161613);
}

.pd-drawer-link.is-current {
  background: rgba(22, 22, 19, 0.04);
  color: var(--pd-colour-heading, #161613);
  font-weight: 600;
}

.pd-drawer-link:focus,
.pd-drawer-link:focus-visible {
  outline: none;
}

#pd-drawer-privacy {
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .pd-drawer,
  .pd-drawer-backdrop {
    transition: none;
  }
}

/* --- Layout hooks ------------------------------------------------------- */

body.pd-game .pd-chrome {
  flex-shrink: 0;
  align-self: stretch;
}

body.pd-game .pd-game-root {
  flex: 1 1 auto;
  min-height: 0;
}

body.pd-game:has(.is-done) .pd-game-root {
  flex: none;
  min-height: auto;
  height: auto;
}

/* --- Account dialog ----------------------------------------------------- */
/* Opened from the header Log in / Sign up controls and the drawer rows.
   Markup is built in platform/account.js. */

.pd-account {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 24rem;
}

.pd-account-compose {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pd-account-compose[hidden] {
  display: none !important;
}

.pd-account-intro {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500; /* match how-to-play modal body */
  line-height: 1.55;
  text-align: center;
  color: var(--pd-colour-text);
}

.pd-account-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pd-account-input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS Safari from zooming on focus */
  color: var(--pd-colour-text);
  background: var(--pd-colour-surface);
  border: 2px solid var(--pd-colour-border);
  border-radius: var(--pd-radius-small);
  box-sizing: border-box;
}

.pd-account-input:focus-visible {
  outline: none;
  border-color: var(--pd-colour-border-strong);
}

.pd-account-submit {
  margin-top: 0.25rem;
  width: 100%;
}

.pd-account-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.pd-account-status:empty {
  display: none;
}

.pd-account-status {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
  color: var(--pd-colour-muted);
}

.pd-account-status.is-error {
  color: var(--pd-colour-danger);
}

.pd-account-switch {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
  color: var(--pd-colour-muted);
}

.pd-account-switch-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--pd-colour-accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pd-account-switch-btn:hover {
  color: var(--pd-colour-accent-hover, var(--pd-colour-accent));
}

/* Same success treatment as the feedback modal. */
.pd-account-sent {
  text-align: center;
  padding: 18px 6px 6px;
}

.pd-account-sent[hidden] {
  display: none !important;
}

.pd-account-sent-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--pd-colour-accent);
  color: #fff;
  font-size: 34px;
  line-height: 60px;
  font-weight: 800;
}

.pd-account-sent-title {
  margin: 0 0 8px;
  font-family: var(--pd-font-ui);
  font-size: 17px;
  font-weight: 700;
  color: var(--pd-colour-text);
}

.pd-account-sent-detail {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--pd-colour-text);
  overflow-wrap: anywhere;
}

.pd-account-sent-dev {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--pd-colour-muted);
}

.pd-account-sent-dev[hidden] {
  display: none !important;
}

.pd-account-email {
  overflow-wrap: anywhere;
}

.pd-account-modal .pd-modal-card {
  max-width: 380px;
  max-height: min(86dvh, calc(100dvh - 40px));
}

.pd-account-modal .pd-modal-title {
  font-size: 28px;
  line-height: 1.15;
  text-align: left;
  padding: 0 40px 0 0;
  margin-bottom: 10px;
}

.pd-account-panel {
  max-width: none;
  gap: 0.75rem;
}

.pd-account-panel-intro {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pd-colour-muted, #6b6b66);
}

.pd-account-panel-intro .pd-account-email {
  font-weight: 700;
  color: var(--pd-colour-heading, #161613);
}

.pd-account-games {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-account-game {
  --pd-account-tone: var(--pd-colour-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 8px;
  border: 1px solid color-mix(in srgb, var(--pd-colour-heading, #161613) 12%, transparent);
  border-radius: 12px;
  background: var(--pd-account-tone);
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.pd-account-game:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--pd-colour-heading, #161613) 10%, transparent);
}

.pd-account-game:focus,
.pd-account-game:focus-visible {
  outline: none;
}

.pd-account-game--18words { --pd-account-tone: var(--pd-tone-18words); }
.pd-account-game--wordsnake { --pd-account-tone: var(--pd-tone-wordsnake); }
.pd-account-game--themiddle { --pd-account-tone: var(--pd-tone-themiddle); }
.pd-account-game--zanagrams { --pd-account-tone: var(--pd-tone-zanagrams); }
.pd-account-game--sunflowers { --pd-account-tone: var(--pd-tone-sunflowers); }

.pd-account-game-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  text-align: left;
}

.pd-account-game-icon {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
  order: 2;
}

.pd-account-game-name {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--pd-font-heading);
  font-size: 1.2rem;
  font-weight: var(--pd-weight-black);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--pd-colour-heading, #161613);
  order: 1;
}

.pd-account-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding: 6px 4px 2px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--pd-colour-surface) 72%, transparent);
}

.pd-account-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 2px;
}

.pd-account-stat-value {
  font-family: var(--pd-font-body);
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: var(--pd-weight-black);
  line-height: 1.1;
  color: var(--pd-colour-heading, #161613);
  font-variant-numeric: tabular-nums;
}

.pd-account-stat-label {
  font-family: var(--pd-font-ui);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pd-colour-muted, #6b6b66);
  letter-spacing: 0.01em;
  text-align: center;
}

.pd-account-signout {
  width: 100%;
  margin-top: 0.35rem;
}

/* --- Settings modal ----------------------------------------------------- */

.pd-settings {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}

.pd-settings-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.pd-settings-label {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pd-colour-heading, #161613);
}

.pd-settings-hint {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--pd-colour-muted, #6b6b66);
}

.pd-settings-switch {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--pd-colour-border-strong, #1a1a1a);
  border-radius: 999px;
  background: var(--pd-colour-press, rgba(26, 26, 26, 0.08));
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pd-settings-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pd-colour-heading, #161613);
  transition: transform 0.15s ease, background 0.15s ease;
}

.pd-settings-switch.is-on {
  background: var(--pd-colour-heading, #161613);
  border-color: var(--pd-colour-heading, #161613);
}

.pd-settings-switch.is-on .pd-settings-switch-knob {
  transform: translateX(20px);
  background: var(--pd-colour-surface, #fff);
}

.pd-settings-switch:focus,
.pd-settings-switch:focus-visible {
  outline: none;
}
