























.tag-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
}



@media (max-width: 60rem) {
  .tag-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  


  

  .tag-checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .tag-checks > .tag-check { flex: 0 1 auto; max-width: 100%; padding: 0.6875rem 0.875rem; gap: 0.5rem; }
  .tag-checks > .tag-check .tag-check-dot { width: 1rem; height: 1rem; border-radius: 0.3125rem; }
  .tag-checks > .tag-check .tag-check-label { flex: 0 1 auto; font-size: var(--fs-body); }
}

.tag-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  



  padding: 0.8125rem;
  border: none;
  border-radius: var(--r-md); 
  

  background: var(--input-fill);
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
  user-select: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}



.tag-check:hover:not(.is-disabled):not(.on) {
  background: color-mix(in srgb, var(--text) 4%, var(--input-fill));
}


.tag-check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.tag-check-dot {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.3125rem;
  background:
    var(--cat-grad,
      radial-gradient(130% 130% at 80% 12%, #e4dcec 0%, transparent 55%),
      linear-gradient(120deg, #a6c0b4, #aeabde));
}

[data-theme="dark"] .tag-check-dot { filter: saturate(0.94) brightness(0.82); }




@keyframes pb-tagdot-spin {
  0%   { transform: rotate(0deg) scale(1); }
  18%  { transform: rotate(-40deg) scale(0.88); }
  75%  { transform: rotate(378deg) scale(1.14); }
  100% { transform: rotate(360deg) scale(1); }
}
.tag-check-dot.spin {
  animation: pb-tagdot-spin 0.62s cubic-bezier(0.5, 0.05, 0.3, 1.1);
}
@media (prefers-reduced-motion: reduce) {
  .tag-check-dot.spin { animation: none; }
}

.tag-check-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.125rem; 
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-soft);
  transition: color var(--dur) var(--ease);
}



.tag-check-ct {
  flex: none;
  font-size: var(--fs-sm);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}


.tag-check.on { background: var(--primary); }
.tag-check.on:hover:not(.is-disabled) { background: var(--primary-hover); }
.tag-check.on .tag-check-label { color: var(--primary-text); }
.tag-check.on .tag-check-ct { color: color-mix(in srgb, var(--primary-text) 60%, transparent); }
.tag-check:hover:not(.is-disabled):not(.on) .tag-check-label { color: var(--text); }



.tag-check:focus-visible,
.tag-check:has(.tag-check-input:focus-visible) {
  outline: 0.125rem solid var(--brand);
  outline-offset: -0.125rem;
}




.tag-check.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}



.tag-check.is-none .tag-check-label { color: var(--text-faint); }
.tag-check.is-none .tag-check-dot { opacity: 0.45; }










.tag-check-sw {
  flex: none;
  position: relative;
  display: block;
  width: 1.5rem;
  height: 0.875rem;
  border-radius: var(--r-pill);
  background: var(--primary);
  transition: background var(--dur) var(--ease);
}
.tag-check-sw-knob {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--surface-bright);
  transform: translateX(0.625rem);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tag-check-sw.is-off { background: var(--surface-3); }
.tag-check-sw.is-off .tag-check-sw-knob { transform: translateX(0); }
.tag-check:not(.is-disabled):hover .tag-check-sw.is-off { background: color-mix(in srgb, var(--text) 10%, var(--surface-3)); }
.tag-check:not(.is-disabled):hover .tag-check-sw:not(.is-off) { background: var(--primary-hover); }
[data-theme="dark"] .tag-check-sw-knob { background: #181818; }
[data-theme="dark"] .tag-check-sw.is-off .tag-check-sw-knob { background: #b9b9b0; }
