/* ===== AppCss Migrated: ButtonBadge ===== */
.base-button {
  align-items: center;
  background: var(--btn-gradient);
  border-color: transparent;
  border-style: solid;
  border-radius: 1rem;
  border-width: 1px;
  box-shadow: 0 18px 34px color-mix(in srgb, var(--primary) 20%, transparent 80%);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  line-height: 1.25rem;
  min-height: 46px;
  padding: 0.75rem 1rem;
  transition-duration: 0.15s;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
.base-button:hover {
  --tw-translate-y: -0.125rem;
  filter: saturate(1.05);
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewx(var(--tw-skew-x)) skewy(var(--tw-skew-y)) scalex(var(--tw-scale-x)) scaley(var(--tw-scale-y));
  }
.base-button.base-button-plain {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  color: var(--text-main);
  }
.base-button.base-button-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.18);
  }
.base-button-icon {
  min-height: 0;
  padding-left: 0;
  padding-right: 0;
  }
.base-button-icon-compact {
  border-radius: 0.75rem;
  height: 2.5rem;
  width: 2.5rem;
  }
.base-button-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  }
.base-badge {
  align-items: center;
  background: color-mix(in srgb, var(--primary) 8%, transparent 92%);
  border-radius: 9999px;
  border: 0;
  color: color-mix(in srgb, var(--primary) 72%, #16335c 28%);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  font-synthesis: none;
  gap: 0.5rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  min-height: 28px;
  padding: 0.375rem 0.75rem;
  text-transform: uppercase;
  width: -moz-fit-content;
  width: fit-content;
  }

/* ===== AppCss Migrated: Switches ===== */
.u-switch-row {
  align-items: center;
  background: color-mix(in srgb, var(--primary) 4%, var(--surface-soft) 96%);
  border-color: var(--line);
  border-radius: 18px;
  border-width: 1px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.u-switch-row > span {
  align-items: center;
  color: var(--text-main);
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 500;
  gap: 0.5rem;
  line-height: 1.25rem;
}

#sectionModal .base-modal-switch-panel {
  align-items: center;
  background: color-mix(in srgb, var(--surface) 84%, var(--primary) 16%);
  border-color: var(--line);
  border-radius: 18px;
  border-width: 1px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

#sectionModal .base-modal-switch-copy {
  color: var(--text-main);
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.ios-switch {
  align-items: center;
  border-radius: 9999px;
  display: inline-flex;
  height: 1.75rem;
  position: relative;
  width: 3.5rem;
}

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

.ios-switch .slider {
  background: #cbd5e1;
  border-radius: 9999px;
  inset: 0;
  position: absolute;
  transition-duration: 0.15s;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-switch .slider:before {
  content: "";
  border-radius: 9999px;
  height: 1.25rem;
  left: 0.25rem;
  position: absolute;
  top: 0.25rem;
  width: 1.25rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
  transition: transform 0.2s ease;
}

.ios-switch input:checked + .slider {
  background: var(--primary);
}

.ios-switch input:checked + .slider:before {
  transform: translatex(28px);
}

.base-modal-inline,
.base-modal-inline-between,
.base-modal-switch-panel,
.video-source-switch-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.base-modal-switch-panel {
  background: var(--surface-soft);
  border-color: var(--line);
  border-radius: 22px;
  border-width: 1px;
  justify-content: space-between;
  padding: 1rem;
}

.base-modal-switch-copy {
  color: var(--text-main);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

#pg-settings .s-switch-box .ios-switch {
  flex: 0 0 auto;
}

