.design-switcher,
.design-switcher * { box-sizing: border-box; }
.design-switcher {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  flex-direction: column-reverse;
  width: min(330px, calc(100vw - 30px));
  color: #fff;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.design-switcher-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
  margin-left: auto;
  padding: 10px 14px 10px 11px;
  color: inherit;
  background: rgba(3, 14, 24, .96);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 2px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .26);
  cursor: pointer;
  pointer-events: auto;
  text-align: left;
  backdrop-filter: blur(14px);
}
.design-switcher-toggle > span:nth-child(2) { display: grid; gap: 2px; }
.design-switcher-mobile-label { display: none; }
.design-switcher-toggle small { color: rgba(255, 255, 255, .56); font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.design-switcher-toggle strong { font-size: 14px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.design-switcher-icon { position: relative; display: grid; width: 31px; height: 31px; overflow: hidden; background: #1268e8; place-items: center; }
.design-switcher-icon::after { content: ''; position: absolute; width: 34px; height: 8px; background: #ffc51b; transform: rotate(-42deg); }
.design-switcher-icon i { position: absolute; width: 18px; height: 1px; background: white; }
.design-switcher-icon i:first-child { transform: translateY(-5px); }
.design-switcher-icon i:last-child { transform: translateY(5px); }
.design-switcher-panel { width: 100%; max-height: min(560px, calc(100svh - 86px)); margin-bottom: 8px; padding: 12px; overflow-y: auto; background: #061724; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 22px 60px rgba(0, 0, 0, .38); pointer-events: auto; }
.design-switcher-panel[hidden] { display: none; }
.design-switcher-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 4px 11px; }
.design-switcher-heading span { font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.design-switcher-heading small { color: rgba(255, 255, 255, .5); font-size: 9px; }
.design-switcher-options { display: grid; gap: 6px; }
.design-switcher-options button { display: grid; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 10px; width: 100%; padding: 10px; color: white; background: rgba(255, 255, 255, .045); border: 1px solid transparent; cursor: pointer; font: inherit; text-align: left; }
.design-switcher-options button:hover { background: rgba(255, 255, 255, .09); }
.design-switcher-options button[aria-pressed='true'] { border-color: #ffc51b; background: rgba(255, 197, 27, .1); }
.design-switcher-options button > span:nth-child(2) { display: grid; gap: 3px; }
.design-switcher-options strong { font-size: 12px; }
.design-switcher-options em { color: rgba(255, 255, 255, .5); font-size: 8px; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.design-switcher-options small { color: rgba(255, 255, 255, .62); font-size: 10px; line-height: 1.35; }
.design-switcher-options b { visibility: hidden; color: #ffc51b; }
.design-switcher-options button[aria-pressed='true'] b { visibility: visible; }
.design-option-swatch { display: block; width: 42px; height: 32px; background: linear-gradient(135deg, var(--swatch-a) 0 49%, var(--swatch-b) 49% 76%, var(--swatch-c, var(--swatch-b)) 76%); border: 1px solid rgba(255, 255, 255, .2); }
.design-switcher-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 11px; padding: 11px 4px 2px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .5); font-size: 10px; }
.design-switcher-foot a { color: rgba(255, 255, 255, .76); text-decoration: underline; }
.design-switcher-foot a:hover { color: #ffc51b; }
.design-switcher button:focus-visible { outline: 3px solid #ffc51b; outline-offset: 3px; }
body.nav-open .design-switcher,
body:has(.lightbox[open]) .design-switcher { visibility: hidden; opacity: 0; transform: translateY(8px); }

@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }
}

@media (max-width: 600px) {
  .design-switcher { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .design-switcher-toggle { min-width: 0; padding: 7px 11px 7px 7px; }
  .design-switcher-toggle > span:nth-child(2) { display: none; }
  .design-switcher-mobile-label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .design-switcher-icon { width: 28px; height: 28px; }
  .design-switcher-panel { max-height: min(520px, calc(100svh - 72px)); }
}

@media print { .design-switcher { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .design-switcher,
  .design-switcher * { transition-duration: .01ms !important; }
}
