/* Selector de colores para quien visita la página. Usa colores propios, fijos, para leerse sobre cualquier combinación. */

.tp { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-family: var(--f-body); word-spacing: normal; }

.tp__toggle {
  height: 42px; padding: 0 18px; border-radius: 21px;
  background: #16171a; color: #f4f2ec; border: 1px solid #5d5f63;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .38);
}
.tp__toggle:hover { background: #24262a; }
.tp__toggle { display: inline-flex; align-items: center; gap: 10px; padding-left: 12px; }
/* la combinación que se está viendo, superpuesta como fichas: cambia sola con los colores */
.tp__dots { display: inline-flex; }
.tp__dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1.5px #16171a, inset 0 0 0 1px rgba(255, 255, 255, .35); transition: background .3s; }
.tp__dot + .tp__dot { margin-left: -5px; }
.tp__dot--ink { background: var(--ink); }
.tp__dot--paper { background: var(--paper); }
.tp__dot--accent { background: var(--accent); }

.tp__panel {
  width: min(348px, calc(100vw - 36px)); max-height: min(84vh, 760px); overflow-y: auto;
  padding: 16px 16px 14px; border-radius: 12px;
  background: #16171a; color: #f4f2ec; border: 1px solid #5d5f63;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .5);
}
.tp__panel[hidden] { display: none; }

.tp__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.tp__note { margin: 4px 0 16px; font-size: 12.5px; line-height: 1.4; color: #a9aaad; }
.tp__group + .tp__group { margin-top: 14px; }
.tp__group.is-off { opacity: .35; }
.tp__label { margin: 0 0 7px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a9aaad; }

.tp__modes { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #5d5f63; border-radius: 6px; overflow: hidden; }
.tp__modes button { padding: 8px 4px; font-size: 12.5px; font-weight: 600; color: #c9cacc; }
.tp__modes button + button { border-left: 1px solid #5d5f63; }
.tp__modes button[aria-pressed='true'] { background: #f4f2ec; color: #16171a; }

.tp__presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.tp__presets button {
  position: relative; padding: 7px 8px 7px 40px; border: 1px solid #44464a; border-radius: 6px;
  font-size: 12px; font-weight: 600; line-height: 1.2; text-align: left; color: #e4e3df;
}
.tp__presets button:hover { border-color: #f4f2ec; }
/* muestra de la combinación: fondo oscuro, fondo claro y color clave */
.tp__presets button::before {
  content: ''; position: absolute; left: 7px; top: 50%; width: 26px; height: 18px; margin-top: -9px; border-radius: 3px;
  background: linear-gradient(90deg, var(--tp-a) 0 40%, var(--tp-b) 40% 70%, var(--tp-c) 70% 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28);
}

.tp__swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.tp__swatch { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.tp__swatch[aria-pressed='true'] { box-shadow: 0 0 0 2px #16171a, 0 0 0 4px #f4f2ec; }
.tp__custom { width: 34px; height: 26px; padding: 0; border: 1px solid #5d5f63; border-radius: 6px; background: none; cursor: pointer; }

@media (max-width: 520px) {
  .tp { right: 12px; bottom: 12px; }
}
