.chip.wide {
  grid-column: 1/-1;
}
.chips.langs {
  max-width: 420px;
}
.chips.langs .chip {
  flex: 0 1 auto;
  font-size: 12.5px;
  min-height: 28px;
}
/* popups */
.pop {
  position: fixed;
  z-index: 50;
  background: #fff;
  color: var(--p);
  border-radius: 8px;
  box-shadow:
    0 10px 32px #29123d4d,
    0 0 0 1px #29123d14;
  padding: 6px;
  overflow: auto;
  overscroll-behavior: contain;
}
.pop h4 {
  margin: 8px 8px 6px;
  font: 700 12px Ubuntu;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
}
.pop h4:first-child {
  margin-top: 4px;
}
.opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  padding: 8px 10px;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  min-height: 40px;
}
.opt:hover,
.opt:focus-visible {
  background: var(--tint);
  outline: 0;
}
.opt.on {
  background: #29123d14;
}
.opt .grow {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.opt .grow small {
  opacity: 0.7;
  font-size: 12.5px;
}
.opt .meta {
  font-size: 12.5px;
  opacity: 0.6;
  white-space: nowrap;
}
.opt .chk {
  color: var(--p);
  font-size: 22px;
  visibility: hidden;
}
.opt.on .chk {
  visibility: visible;
}
.opt .lead {
  color: var(--pl);
  font-size: 24px;
  width: 30px;
  display: grid;
  place-items: center;
  flex: none;
}
.opt .lead svg {
  max-width: 30px;
  max-height: 34px;
}
.sizeprev {
  line-height: 1;
  white-space: nowrap;
  color: var(--p);
}
.cgrid {
  display: grid;
  grid-template-columns: repeat(6, 34px);
  gap: 6px;
  padding: 4px 6px 6px;
}
.cgrid .lbl {
  grid-column: 1/-1;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}
.sw {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px #29123d22;
}
.sw.on {
  outline: 3px solid var(--pd);
  outline-offset: 2px;
}
.sw .ms {
  font-size: 20px;
}
.sw {
  position: relative;
  transition: transform 0.15s;
}
.sw:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: scale(0.55);
  box-shadow: none;
}
.sw:disabled::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -12%;
  width: 2px;
  height: 124%;
  margin-left: -1px;
  background: #29123d;
  transform: rotate(45deg);
  border-radius: 1px;
}
.chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.chip {
  grid-column: span 3;
  border: 2px solid var(--pl);
  background: #fff;
  color: var(--p);
  border-radius: 5px;
  font-size: 13px;
  min-height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  white-space: nowrap;
}
.chip .ms {
  font-size: 18px;
}
.chip .sw {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #29123d40;
  flex: none;
}
.chip.on {
  background: var(--pd);
  border-color: var(--pd);
  color: #fff;
}
.cnote {
  grid-column: 1/-1;
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.3;
  margin-top: 2px;
  max-width: 234px;
}
.bgrid {
  display: grid;
  grid-template-columns: repeat(4, 64px);
  gap: 8px;
  padding: 4px 6px 6px;
}
.bsw {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
}
.bsw i {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #29123d22;
  background: center/cover;
}
.bsw.on i {
  outline: 3px solid var(--pd);
  outline-offset: 2px;
}
.bsw .ms {
  font-size: 24px;
}
.bsw.up i {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--pl);
  color: var(--pl);
}
.igrid {
  display: grid;
  grid-template-columns: repeat(6, 48px);
  gap: 6px;
  padding: 4px 6px 6px;
}
.igrid button,
.igrid label {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--tint);
  color: var(--p);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 8px;
}
.igrid svg,
.igrid i {
  width: 100%;
  height: 100%;
  display: block;
}
.igrid i {
  background: currentColor;
  -webkit-mask: center/contain no-repeat;
  mask: center/contain no-repeat;
}
.igrid .on {
  background: var(--p);
  color: #fff;
}
.igrid label {
  border: 2px dashed var(--pl);
  background: #fff;
  padding: 0;
}
.igrid label .ms {
  font-size: 24px;
  color: var(--pl);
}
.chips {
  display: flex;
  gap: 6px;
  padding: 4px 6px 8px;
  flex-wrap: wrap;
}
.chips .chip {
  grid-column: auto;
  flex: 1 1 auto;
  justify-content: center;
}
