/* Floating design-direction switcher. Review surfaces only.
   Deliberately neutral grey rather than branded: it is scaffolding, and it
   must not read as part of the design being judged. */

.tp-switch {
  position: fixed; right: 14px; bottom: 14px; z-index: 9999;
  width: 216px; padding: 12px 13px 10px;
  background: #ffffff; border: 1px solid #d9dde3; border-radius: 14px;
  box-shadow: 0 8px 28px rgba(20, 26, 34, 0.16);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1b2129;
  /* Six options across two groups overflows a short phone viewport. */
  max-height: min(72vh, 560px); overflow-y: auto;
}
.tp-switch-t {
  margin: 0 0 8px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: #6b7280;
}
/* Must follow .tp-switch-t: same specificity, and that rule's margin
   shorthand would otherwise reset the top margin set here. */
.tp-switch-t2 { margin: 12px 0 8px; padding-top: 10px; border-top: 1px solid #eceff3; }
.tp-switch-o {
  display: block; padding: 7px 9px; margin-bottom: 4px; border-radius: 9px;
  border: 1px solid transparent; cursor: pointer; min-height: 44px;
}
.tp-switch-o:hover { background: #f4f6f8; }
.tp-switch-o.on { background: #eef4ff; border-color: #b9d0f5; }
.tp-switch-o input { position: absolute; opacity: 0; pointer-events: none; }
.tp-switch-o input:focus-visible + .tp-sw-row { outline: 3px solid #3A6EA4; outline-offset: 2px; border-radius: 4px; }
.tp-sw-row { display: flex; align-items: center; gap: 8px; }
.tp-switch-l { font-size: 13px; font-weight: 600; line-height: 1.3; }
.tp-switch-n { display: block; font-size: 11px; line-height: 1.35; color: #6b7280; margin-top: 2px; }

/* Swatch: outer square is the canvas field, inner square is the card, so the
   chip shows at a glance which family a scheme belongs to (tinted field with
   white cards, versus white field with tinted cards). */
.tp-chip {
  width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0;
  border: 1px solid rgba(20,26,34,.18); position: relative;
}
.tp-chip::after {
  content: ""; position: absolute; inset: 4px 4px 0 4px;
  border-radius: 2px 2px 0 0; border: 1px solid rgba(20,26,34,.10); border-bottom: 0;
}
.tp-chip-cream { background: #fff8ed; } .tp-chip-cream::after { background: #ffffff; }
.tp-chip-stone { background: #ffffff; } .tp-chip-stone::after { background: #f5f3ee; }
.tp-chip-paper { background: #ffffff; } .tp-chip-paper::after { background: #f4f6f8; }
.tp-chip-blue  { background: #e9eef6; } .tp-chip-blue::after  { background: #ffffff; }
.tp-chip-dark  { background: #14171c; } .tp-chip-dark::after  { background: #1c2027; border-color: rgba(255,255,255,.16); }
.tp-switch-f {
  margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #eceff3;
  font-size: 10px; line-height: 1.35; color: #9aa2ad;
}

@media print { .tp-switch { display: none; } }
@media (max-width: 640px) {
  .tp-switch { right: 8px; bottom: 8px; width: 190px; padding: 10px 11px 8px; }
}
