/* ── TYPOLOGY PRESETS DRAWER ── */
#typo-preset-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 230px;
  background: var(--card);
  z-index: 10;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  border-right: 1px solid var(--bd);
  box-shadow: 4px 0 16px rgba(0, 0, 0, .12)
}

#typo-preset-drawer.open {
  transform: translateX(0)
}

.typo-preset-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid var(--bd);
  border-radius: 7px;
  cursor: pointer;
  transition: all .12s;
  margin-bottom: 5px;
  background: var(--paper)
}

.typo-preset-item:hover {
  border-color: var(--mid);
  background: var(--card)
}

.typo-preset-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--bd);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(30, 30, 40, .45)
}

.typo-preset-lbl {
  font-size: 11px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink)
}

.typo-preset-del {
  background: none;
  border: 1px solid rgba(200, 75, 47, .3);
  border-radius: 4px;
  cursor: pointer;
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
  padding: 2px 6px;
  flex-shrink: 0;
  transition: all .12s;
  font-family: var(--font-ui)
}

.typo-preset-del:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

.typo-preset-warn {
  font-size: 10px;
  color: var(--amber);
  background: #fffbeb;
  border: 1px solid #f0d080;
  border-radius: 5px;
  padding: 5px 8px;
  margin: 4px 0;
  line-height: 1.5
}

#typo-open-presets-btn.has-presets {
  border-color: var(--teal);
  color: var(--teal)
}

.te-reverse-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 4px;
  border-top: 1px solid var(--bd);
  margin-top: 4px;
  gap: 10px
}

.te-reverse-lbl-wrap {
  flex: 1
}

.te-reverse-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink)
}

.te-reverse-sub {
  font-size: 10px;
  color: var(--light);
  margin-top: 1px;
  line-height: 1.4
}

.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 40, .14);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
  display: block
}

.toggle-switch input:checked+.toggle-track {
  background: var(--accent)
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
  transition: transform .2s;
  pointer-events: none
}

.toggle-switch input:checked~.toggle-thumb {
  transform: translateX(16px)
}

#te-save-preset-btn {
  padding: 5px 14px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  color: var(--teal);
  background: none;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all .15s
}

#te-save-preset-btn:hover {
  background: var(--teal);
  color: #fff
}

.typo-temp-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--amber);
  background: rgba(184, 115, 32, .08);
  border: 1px solid rgba(184, 115, 32, .25);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle
}

/* ═══════════════════════════════════════════════════════════════
 *  DISEENI BRAND OVERRIDE  ·  Design System v5 applied
 * ══════════════════════════════════════════════════════════════ */
