#ticketSystemContainer {
  width: 100%;
  color: var(--white);
  font-family: var(--font-family);
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.tickets-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--black-muted);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-lg);
  overflow: visible;
  margin-top: 35px;
  margin-bottom: 35px;
}

.tickets-panelView {
  display: flex;
  flex-direction: column;
}

.tickets-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  gap: var(--space-md);
}

.tickets-loading .spinner-border {
  width: 32px;
  height: 32px;
  border: 3px solid var(--white-faint);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.tickets-loading p {
  color: var(--white-dim);
  font-size: 0.875rem;
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tickets-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  color: var(--danger);
  gap: var(--space-md);
}

.tickets-error i {
  font-size: 40px;
  opacity: 0.6;
}

.tickets-error p {
  margin: 0;
  color: var(--white-dim);
  font-size: 0.875rem;
}

.tickets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--black-light);
  border-bottom: 2px solid var(--white-faint);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.tickets-titleContainer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tickets-titleContainer--list {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.tickets-titleMain {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tickets-titleContainer--list .roleReward-limitLabel {
  font-size: var(--font-xs);
  color: var(--white-dim);
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  font-weight: var(--font-weight-semibold);
}

.tickets-titleContainer h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  background: linear-gradient(90deg, var(--white) 0%, var(--white-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tickets-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tickets-header--editor {
  border-bottom: none;
}

.tickets-header--editor .tickets-titleContainer {
  flex: 1 1 auto;
  min-width: 0;
}

.tickets-controls--editor {
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.tickets-searchWrapper {
  position: relative;
  width: 240px;
}

.tickets-searchWrapper::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23ffffff60"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /></svg>') center/contain no-repeat;
  pointer-events: none;
}

.tickets-searchInput {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  background: var(--black-light);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.8125rem;
  font-family: var(--font-family);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tickets-searchInput::placeholder {
  color: var(--white-dim);
}

.tickets-searchInput:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-faint);
}

.tickets-addPanelButton, .tickets-btnAdd {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--btn-padding-md);
  font-size: var(--font-sm);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-family);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  background: var(--black-lighter);
  color: var(--white);
  border: var(--border-normal) solid var(--pink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md) var(--pink-darker);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.tickets-addPanelButton:hover, .tickets-btnAdd:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-xl) var(--pink-darker);
}

.tickets-addPanelButton:active, .tickets-btnAdd:active {
  transform: translate(0, 0);
  box-shadow: var(--shadow-xs) var(--pink-darker);
}

.tickets-addPanelButton:disabled, .tickets-btnAdd:disabled {
  background: var(--black-muted);
  color: var(--white-dim);
  border-color: var(--white-faint);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.tickets-addPanelButton--secondary {
  border-color: var(--blue);
  box-shadow: var(--shadow-md) var(--blue-dark);
}

.tickets-addPanelButton--secondary:hover {
  box-shadow: var(--shadow-xl) var(--blue-dark);
}

.tickets-addPanelButton--secondary:active {
  box-shadow: var(--shadow-xs) var(--blue-dark);
}

.tickets-btnSecondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--btn-padding-md);
  font-size: var(--font-sm);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-family);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  background: var(--black-lighter);
  color: var(--white);
  border: var(--border-normal) solid var(--white-dim);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md) var(--white-faint);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tickets-btnSecondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-xl) var(--white-a20);
}

.tickets-btnSecondary:active {
  transform: translate(0, 0);
  box-shadow: var(--shadow-xs) var(--white-faint);
}

.tickets-btnIcon {
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--black-lighter);
  border: 1px solid var(--white-dim);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--white-a10);
  transition: all var(--transition-fast);
}

.tickets-btnIcon:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--white-faint);
  border-color: var(--white);
}

.tickets-btnIcon:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 var(--white-a10);
}

.tickets-btnIcon.tickets-btnDanger {
  border-color: var(--danger);
  box-shadow: 2px 2px 0 var(--danger-dark);
}

.tickets-btnIcon.tickets-btnDanger:hover {
  box-shadow: 3px 3px 0 var(--danger-dark);
  border-color: var(--danger-light);
}

.tickets-panelsContainer {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-lg);
}

.tickets-panel {
  background: var(--black-muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--border-normal) solid var(--white-a08);
  border-radius: var(--radius-md);
  box-shadow: 2px 2px 0 var(--white-ghost), inset 0 1px 0 var(--white-a10);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.tickets-panelHeader {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.tickets-panelInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.tickets-panelTitle {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.tickets-statusBadge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-family: var(--font-family);
  font-size: var(--font-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--white-dim);
  line-height: 1;
  vertical-align: middle;
}

.tickets-statusBadge i {
  font-size: 0.9em;
  opacity: 0.8;
}

.tickets-statusBadge.active {
  color: var(--success);
}

.tickets-statusBadge.draft {
  color: var(--white-muted);
}

.tickets-statusBadge.inactive {
  color: var(--white-dim);
}

.tickets-panelMeta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.tickets-panelChannelTag, .tickets-panelButtonCount {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--white-dim);
}

.tickets-panelChannelTag i, .tickets-panelButtonCount i {
  font-size: 11px;
  opacity: 0.7;
}

.tickets-panelActions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-self: flex-start;
}

.tickets-panelEditButton, .tickets-panelDuplicateButton, .tickets-panelDeleteButton {
  flex: 0 0 auto;
  padding: var(--btn-padding-sm);
  font-family: var(--font-family);
  font-size: var(--font-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  white-space: nowrap;
}

.tickets-panelEditButton .dashboardList-icon, .tickets-panelDeleteButton .dashboardList-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.tickets-panelEditButton {
  background: var(--black-lighter);
  color: var(--white);
  border: var(--border-normal) solid var(--blue);
  box-shadow: 2px 2px 0 var(--blue-dark);
}

.tickets-panelEditButton:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--blue-dark);
  border-color: var(--blue-light);
}

.tickets-panelEditButton:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 var(--blue-dark);
}

.tickets-panelDuplicateButton {
  background: var(--black-lighter);
  color: var(--white);
  border: var(--border-normal) solid var(--white-dim);
  box-shadow: 2px 2px 0 var(--white-faint);
}

.tickets-panelDuplicateButton:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--white-a20);
  border-color: var(--white);
}

.tickets-panelDuplicateButton:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 var(--white-faint);
}

.tickets-panelDeleteButton {
  background: var(--black-lighter);
  color: var(--white);
  border: var(--border-normal) solid var(--danger);
  box-shadow: 2px 2px 0 var(--danger-dark);
}

.tickets-panelDeleteButton:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--danger-dark);
  border-color: var(--danger-light);
}

.tickets-panelDeleteButton:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 var(--danger-dark);
}

.tickets-emptyState {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  text-align: center;
}

.tickets-emptyStateIcon {
  width: 56px;
  height: 56px;
  background: var(--black-lighter);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white-dim);
  margin-bottom: var(--space-md);
}

.tickets-emptyStateTitle {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  margin: 0 0 6px 0;
}

.tickets-emptyStateDescription {
  font-size: 0.8125rem;
  color: var(--white-dim);
  max-width: 300px;
  line-height: 1.5;
  margin: 0;
}

.noPanelsIcon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.4;
  display: block;
  margin: 0;
}

.tickets-editorView {
  display: flex;
  flex-direction: column;
}

.tickets-editorContent {
  display: flex;
  flex-direction: column;
}

.tickets-panelMessage, .tickets-styleSelector, .tickets-typesSection, .tickets-settingsSection {
  border-top: 1px solid var(--white-faint);
}

.tickets-editorContent > :first-child {
  border-top: none;
}

.tickets-settingsSection > h3, .tickets-panelMessage > h3, .tickets-styleSelector > h3 {
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--black-light);
  border-bottom: 1px solid var(--white-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tickets-hint {
  font-size: 0.75rem;
  color: var(--white-dim);
  margin: 0;
  padding: var(--space-sm) var(--space-lg) 0;
}

.tickets-settingsSection > .tickets-settingsGrid, .tickets-panelMessage > .embed-builder-wrapper, .tickets-styleSelector > .tickets-styleButtons {
  padding: var(--space-lg);
}

.tickets-typesSection {
  border-top: 1px solid var(--white-faint);
}

.tickets-sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  background: var(--black-light);
  border-bottom: 1px solid var(--white-faint);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.tickets-sectionHeaderLeft {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.tickets-sectionHeader h3 {
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  margin: 0;
}

.tickets-styleToggle {
  display: inline-flex;
  gap: 2px;
  border-bottom: 1px solid var(--white-faint);
}

.tickets-styleToggleBtn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px var(--space-md);
  background: transparent;
  border: none;
  color: var(--white-dim);
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tickets-styleToggleBtn:hover {
  color: var(--white);
  background: var(--white-ghost);
}

.tickets-styleToggleBtn.active {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

.tickets-typesList {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
}

.tickets-emptyMessage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: var(--black-light);
  border: 1px dashed var(--white-faint);
  border-radius: var(--radius-md);
}

.tickets-emptyMessage i {
  font-size: 32px;
  color: var(--white-dim);
  margin-bottom: var(--space-sm);
  opacity: 0.4;
}

.tickets-emptyMessage p {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--white-dim);
  margin: 0 0 4px 0;
}

.tickets-emptyMessage small {
  font-size: 0.75rem;
  color: var(--white-dim);
  opacity: 0.7;
}

.tickets-typeItem {
  background: var(--black-light);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: border-color 0.15s ease;
}

.tickets-typeItem:hover {
  border-color: var(--pink-dim);
}

.tickets-typeItemLeft {
  flex-shrink: 0;
}

.tickets-typePreviewButton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  color: white;
}

.tickets-typePreviewEmoji {
  font-size: 14px;
}

.tickets-typePreviewText {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tickets-typePreview {
  flex: 1;
  min-width: 0;
}

.tickets-typeControls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.tickets-typeInputGroup {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tickets-typeInputLabel, .tickets-typeColorLabel {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tickets-typeInput {
  padding: 0.4rem 0.625rem;
  font-size: 0.8125rem;
  font-family: var(--font-family);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
  background: var(--black-muted);
  color: var(--white);
  min-width: 100px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tickets-typeInput:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-faint);
}

.tickets-typeInput::placeholder {
  color: var(--white-dim);
}

.tickets-typeColorSelector {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tickets-typeColorOptions {
  display: flex;
  gap: 6px;
}

.tickets-typeColorOption {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.tickets-typeColorOption:hover {
  transform: scale(1.1);
}

.tickets-typeColorOption.active {
  border-color: var(--white);
}

.tickets-typeActions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tickets-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.tickets-modalBackdrop {
  position: absolute;
  inset: 0;
  background: var(--black-a70);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tickets-modalContent {
  position: relative;
  background: var(--black-muted);
  border: 2px solid var(--white-faint);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 8px 0 var(--pink-darker);
}

.tickets-modalHeader {
  padding: var(--space-md) var(--space-lg);
  background: var(--black-light);
  border-bottom: 1px solid var(--white-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.tickets-modalHeader h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.tickets-modalClose {
  width: 34px;
  height: 34px;
  border: 1px solid var(--white-faint);
  background: var(--black-muted);
  color: var(--white-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: all 0.15s ease;
  padding: 0;
}

.tickets-modalClose svg {
  pointer-events: none;
}

.tickets-modalClose:hover {
  color: var(--white);
  border-color: var(--white-dim);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--white-faint);
}

.tickets-modalBody {
  padding: var(--space-lg);
  overflow-y: auto;
  flex: 1;
}

.tickets-modalFooter {
  padding: var(--space-md) var(--space-lg);
  background: var(--black-light);
  border-top: 1px solid var(--white-faint);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tickets-confirmModal {
  z-index: 10000;
}

.tickets-confirmModalContent {
  width: min(440px, calc(100vw - (var(--space-md) * 2)));
  background: var(--black-lighter);
  border-color: var(--white-dim);
  animation: slideInDown 0.2s ease;
}

.tickets-confirmModalContent--danger {
  box-shadow: 8px 8px 0 var(--danger-dark, rgba(237, 66, 69, 0.45));
}

.tickets-confirmModalContent--success {
  box-shadow: 8px 8px 0 var(--success-dark, rgba(59, 165, 93, 0.45));
}

.tickets-confirmModalContent--primary {
  box-shadow: 8px 8px 0 var(--blue-dark, rgba(88, 101, 242, 0.45));
}

.tickets-confirmModalTitle {
  margin: 0;
}

.tickets-confirmModalBody {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.tickets-confirmModalMessage {
  margin: 0;
  color: var(--white-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tickets-confirmModalFooter .btn, .tickets-confirmModalFooter .tickets-btnSecondary {
  min-width: 112px;
  justify-content: center;
}

.tickets-typeConfigView {
  display: flex;
  flex-direction: column;
}

.tickets-typeConfigContent {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tickets-settingsSection.tickets-collapsible {
  overflow: visible;
  border: 2px solid var(--white-faint);
  border-radius: 0;
}

.tickets-collapsibleHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--black-muted);
  cursor: pointer;
  transition: background 0.1s ease;
  user-select: none;
  border-bottom: 2px solid transparent;
}

.tickets-collapsibleHeader:hover {
  background: var(--white-a08);
}

.tickets-collapsibleHeader h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tickets-collapseIcon {
  color: var(--white);
  font-size: 12px;
  transition: transform 0.15s ease;
}

.tickets-collapsibleHeader[data-expanded="true"] .tickets-collapseIcon {
  transform: rotate(180deg);
}

.tickets-collapsibleHeader[data-expanded="true"] {
  border-bottom: 2px solid var(--white-faint);
}

.tickets-collapsibleContent {
  padding: var(--space-lg);
  background: var(--black-muted);
}

.tickets-settingsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.tickets-mt-6 {
  margin-top: var(--space-lg);
}

.tickets-channelNaming {
  grid-column: 1 / -1;
  background: var(--black-light);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.tickets-channelNaming .dashboardInput-text-label {
  margin-bottom: var(--space-md);
}

.tickets-channelNaming-controls {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.tickets-channelNaming-inputGroup {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tickets-channelNaming-label {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tickets-channelNaming-input {
  min-width: 180px;
  max-width: 280px;
}

.tickets-paddingSelector {
  display: inline-flex;
  background: var(--black-muted);
  border: 2px solid var(--white-dim);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 2px 2px 0 var(--white-a10);
}

.tickets-paddingOption {
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--white-dim);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-mono, monospace);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  min-width: 50px;
  text-align: center;
}

.tickets-paddingOption:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--white-faint);
}

.tickets-paddingOption:hover:not(.active) {
  color: var(--white);
  background: var(--white-a08);
}

.tickets-paddingOption.active {
  background: var(--black-lighter);
  color: var(--white);
  font-weight: var(--font-weight-bold);
  box-shadow: inset 0 1px 0 var(--white-faint);
}

.tickets-paddingOption.active::after, .tickets-paddingOption:has( + .active)::after {
  display: none;
}

.tickets-channelNaming-preview {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--white-faint);
}

.tickets-channelNaming-previewLabel {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: var(--white-dim);
}

.tickets-channelNaming-previewValue {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-mono, monospace);
  color: var(--white);
  background: var(--black-lighter);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--white-faint);
}

.tickets-channelNaming-charCount {
  font-size: 0.6875rem;
  color: var(--white-dim);
  margin-left: auto;
}

.tickets-channelNaming-charCount.warning {
  color: var(--warning);
}

.tickets-channelNaming-charCount.error {
  color: var(--danger);
}

.tickets-channelNaming-inputGroup--wide {
  flex: 1;
  min-width: 280px;
}

.tickets-channelNaming-hint {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.6875rem;
  font-family: var(--font-mono, monospace);
  color: var(--white-dim);
}

.tickets-formSection {
  background: var(--black-muted);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.tickets-formSection h4 {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  margin: 0 0 var(--space-md) 0;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--white-faint);
}

.tickets-permissionItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--white-faint);
}

.tickets-permissionItem:last-child {
  border-bottom: none;
}

.tickets-permissionLabel {
  font-size: 0.8125rem;
  color: var(--white);
}

.tickets-permissionToggle {
  display: flex;
  gap: 4px;
}

.tickets-permissionBtn {
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
  background: var(--black-light);
  color: var(--white-dim);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tickets-permissionBtn:hover {
  border-color: var(--white-dim);
}

.tickets-permissionBtn.active {
  background: var(--pink-faint);
  border-color: var(--pink);
  color: var(--pink);
}

.btn-editor-permission-settings {
  background: var(--black-muted);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.btn-editor-permission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--black-light);
  border-bottom: 1px solid var(--white-faint);
  gap: var(--space-sm);
  flex-wrap: wrap;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: -1px -1px 0 -1px;
  border: 1px solid var(--white-faint);
  border-bottom: 1px solid var(--white-faint);
}

.btn-editor-permission-content-wrapper {
  padding: var(--space-sm);
  padding-bottom: 40px !important;
  overflow: visible;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.btn-editor-permission-content-wrapper.hidden {
  max-height: 0 !important;
  opacity: 0 !important;
  padding: 0 var(--space-sm) !important;
  overflow: hidden !important;
}

.btn-editor-permission-category {
  background: var(--black-light);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
  overflow: visible;
  position: relative;
}

.btn-editor-permission-category:last-child {
  margin-bottom: 0;
}

.btn-editor-category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--black-lighter);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: var(--white);
  transition: background 0.15s ease;
}

.btn-editor-category-title:hover {
  background: var(--black-muted);
}

.btn-editor-category-title i {
  font-size: 10px;
  color: var(--white-dim);
  transition: transform 0.15s ease;
}

.btn-editor-category-content {
  overflow: visible !important;
  max-height: none !important;
  padding-bottom: 15px;
}

.btn-editor-permission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--white-faint);
  gap: var(--space-sm);
}

.btn-editor-permission-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.btn-editor-permission-info {
  flex: 1;
  min-width: 0;
}

.btn-editor-permission-name {
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: var(--white);
  margin-bottom: 2px;
}

.btn-editor-permission-desc {
  font-size: 0.6875rem;
  color: var(--white-dim);
}

.btn-editor-permission-toggle {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.btn-editor-toggle-btn {
  width: 32px;
  height: 32px;
  border: 2px solid var(--white-dim);
  border-radius: 6px;
  background: var(--black-lighter);
  color: var(--white-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.15s ease;
  font-weight: bold;
  box-shadow: 2px 2px 0 var(--white-a08);
}

.btn-editor-toggle-btn:hover {
  background: var(--white-a10);
  border-color: var(--white);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--white-a12);
}

.btn-editor-toggle-btn.allow.active {
  background: #66bb6a;
  border-color: #81c784;
  color: #ffffff;
  box-shadow: 3px 3px 0 #388e3c;
}

.btn-editor-toggle-btn.neutral.active {
  background: #9e9e9e;
  border-color: #bdbdbd;
  color: #ffffff;
  box-shadow: 3px 3px 0 #616161;
}

.btn-editor-toggle-btn.deny.active {
  background: #e57373;
  border-color: #ef9a9a;
  color: #ffffff;
  box-shadow: 3px 3px 0 #c62828;
}

.btn-editor-toggle-btn.neutral i {
  transform: rotate(20deg);
}

.btn-editor-action-buttons {
  padding: var(--space-sm);
  display: flex;
  gap: var(--space-xs);
}

.btn-editor-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  font-family: var(--font-family);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-editor-btn-secondary {
  background: var(--black-lighter);
  color: var(--white);
  border: 1px solid var(--white-faint);
}

.btn-editor-btn-secondary:hover {
  border-color: var(--white-dim);
}

.toggle-permissions-btn {
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-family);
  background: var(--black-lighter);
  border: 2px solid var(--white-dim);
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 3px 3px 0 var(--white-a10);
}

.toggle-permissions-btn:hover {
  background: var(--white-a08);
  border-color: var(--white);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--white-faint);
}

.toggle-permissions-btn i {
  font-size: 10px;
  transition: transform 0.15s ease;
}

.tickets-preview-container {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--white-faint);
}

.tickets-preview-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tickets-preview-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--discord);
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
}

.tickets-preview-dropdown {
  background: var(--black-lighter);
  border-radius: 3px;
}

.tickets-preview-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: var(--white-dim);
  font-size: 13px;
}

.tickets-styleToggle {
  display: inline-flex;
  gap: 2px;
  border-bottom: 1px solid var(--white-faint);
}

.tickets-styleToggleBtn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px var(--space-md);
  background: transparent;
  border: none;
  color: var(--white-dim);
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tickets-styleToggleBtn i {
  font-size: 0.7rem;
}

.tickets-styleToggleBtn span {
  white-space: nowrap;
}

.tickets-styleToggleBtn:hover:not(.active) {
  color: var(--white);
  background: var(--white-ghost);
}

.tickets-styleToggleBtn.active {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

.btn-editor-card {
  background: var(--black-light);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-md);
}

.btn-editor-card .dashboardInput-dropdown-label {
  padding: var(--space-sm) var(--space-md);
  background: var(--black-lighter);
  border-bottom: 1px solid var(--white-faint);
}

.btn-editor-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.btn-editor-controls {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-editor-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.btn-editor-input-label, .btn-editor-color-label {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-editor-form-input {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-family: var(--font-family);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
  background: var(--black-muted);
  color: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-editor-form-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-faint);
}

.btn-editor-form-input::placeholder {
  color: var(--white-dim);
}

.btn-editor-color-selector {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-editor-color-options {
  display: flex;
  gap: 6px;
}

.btn-editor-color-option {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.btn-editor-color-option:hover {
  transform: scale(1.1);
}

.btn-editor-color-option.active {
  border-color: var(--white);
}

.btn-editor-preview-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--white-faint);
}

.btn-editor-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--discord);
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
}

.btn-editor-preview .emoji {
  font-size: 16px;
}

.btn-editor-preview .text {
  white-space: nowrap;
}

.btn-editor-form-settings {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-top: var(--space-sm);
}

.btn-editor-form-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.btn-editor-form-content .dashboardInput-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.btn-editor-form-content .dashboardInput-text-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-editor-form-content .dashboardInput-text-title {
  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white);
}

.btn-editor-form-content .dashboardInput-text-subtitle {
  font-size: 0.75rem;
  color: var(--white-dim);
}

.btn-editor-form-content .dashboardInput-text-field {
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: var(--font-family);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
  background: var(--black-muted);
  color: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-editor-form-content .dashboardInput-text-field:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-faint);
}

.btn-editor-form-content .dashboardInput-text-field::placeholder {
  color: var(--white-dim);
}

.btn-editor-form-questions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.btn-editor-question-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.btn-editor-question-item {
  background: var(--black-muted);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color 0.15s ease;
}

.btn-editor-question-item:hover {
  border-color: var(--pink-dim);
}

.btn-editor-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.btn-editor-question-number {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--pink);
  background: var(--pink-faint);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-editor-question-actions {
  display: flex;
  gap: 4px;
}

.btn-editor-question-actions button {
  width: 24px;
  height: 24px;
  padding: 0;
  background: var(--black-lighter);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
  color: var(--white-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all 0.15s ease;
}

.btn-editor-question-actions button:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.btn-editor-question-actions button.delete:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-editor-question-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.btn-editor-question-input {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-family: var(--font-family);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
  background: var(--black-light);
  color: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-editor-question-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-faint);
}

.btn-editor-question-input::placeholder {
  color: var(--white-dim);
}

.btn-editor-question-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
  align-items: center;
}

.btn-editor-question-type-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-family: var(--font-family);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
  background: var(--black-light);
  color: var(--white);
  cursor: pointer;
  min-width: 120px;
  transition: border-color 0.15s ease;
}

.btn-editor-question-type-select:focus {
  outline: none;
  border-color: var(--pink);
}

.btn-editor-add-question-container {
  margin-top: var(--space-sm);
}

.btn-editor-add-question-btn {
  width: 100%;
  padding: var(--space-md);
  background: transparent;
  border: 2px dashed var(--white-faint);
  border-radius: var(--radius-sm);
  color: var(--white-dim);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  font-family: var(--font-family);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: all 0.15s ease;
}

.btn-editor-add-question-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: var(--pink-faint);
}

.btn-editor-add-question-btn i {
  font-size: 11px;
}

.btn-editor-add-text {
  font-weight: var(--font-weight-medium);
}

.btn-editor-question-list:empty + .btn-editor-add-question-container .btn-editor-add-question-btn {
  border-style: dashed;
  background: var(--black-muted);
}

.ticketForm-componentPicker {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.ticketForm-componentPicker.open {
  display: flex;
}

.ticketForm-componentGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.ticketForm-componentItem {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--black-light);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ticketForm-componentItem:hover {
  background: var(--black-lighter);
  border-color: var(--pink);
  transform: translateY(-2px);
}

.ticketForm-componentItem.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.ticketForm-componentIcon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-faint);
  border-radius: var(--radius-sm);
  color: var(--pink);
  font-size: 16px;
  flex-shrink: 0;
}

.ticketForm-componentInfo {
  flex: 1;
  min-width: 0;
}

.ticketForm-componentName {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  margin-bottom: 2px;
}

.ticketForm-componentDesc {
  font-size: 0.75rem;
  color: var(--white-dim);
  line-height: 1.3;
}

/* Form header - simplified (card removed) */

.btn-editor-form-header {
  display: none;
}

.btn-editor-add-question-container {
  padding: var(--space-md);
  padding-top: var(--space-sm);
}

.btn-editor-add-question-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px dashed var(--white-faint);
  border-radius: var(--radius-sm);
  color: var(--white-dim);
  font-size: 0.8125rem;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-editor-add-question-btn:hover:not(.disabled) {
  border-color: var(--pink);
  color: var(--pink);
  background: var(--pink-faint);
}

.btn-editor-add-question-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-editor-add-question-btn i {
  font-size: 10px;
}

.btn-editor-form-header .dashboardInput-dropdown-label {
  flex: 1;
}

.btn-editor-form-header .dashboardInput-text-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  margin-bottom: 4px;
}

.btn-editor-form-header .dashboardInput-dropdown-subtext {
  display: block;
  font-size: 0.75rem;
  color: var(--white-dim);
  line-height: 1.4;
}

/* Limit indicator - relocated into preview */

.ticketForm-limitIndicator {
  display: none;
}

.ticketForm-previewCounter {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #4e5058;
  margin-left: auto;
  flex-shrink: 0;
}

.ticketForm-previewCounter.at-limit {
  color: #f23f43;
}

/* Inline label editing */

.ticketForm-inlineLabelRow {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.ticketForm-inlineFieldWrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.ticketForm-inlineFieldWrap--stacked {
  align-items: flex-start;
}

.ticketForm-inlineLabel {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 6px;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b5bac1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-family: var(--font-family);
  outline: none;
  width: 100%;
  min-height: 36px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ticketForm-inlineLabel::placeholder {
  color: #6b6f78;
}

.ticketForm-inlineLabel:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.ticketForm-inlineLabel:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.ticketForm-wysiwygCard.editing .ticketForm-inlineLabel {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.12);
}

.ticketForm-wysiwygCard.editing .ticketForm-inlineLabel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 105, 180, 0.45);
}

.ticketForm-wysiwygCard.editing .ticketForm-inlineLabel:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.12);
}

.ticketForm-inlineRequired {
  color: #f23f43;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 2px;
}

/* Inline placeholder editing */

.ticketForm-inlinePlaceholder {
  display: block;
  width: 100%;
  box-sizing: border-box;
  cursor: text !important;
  background: #1e1f22;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 10px 12px;
  color: #dbdee1;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ticketForm-wysiwygCard:not(.editing) .ticketForm-inlinePlaceholder {
  background: #1e1f22;
  border-color: transparent;
  color: #dbdee1;
}

.ticketForm-inlinePlaceholder:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.ticketForm-wysiwygCard.editing .ticketForm-inlinePlaceholder {
  background: #1e1f22;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.12);
}

.ticketForm-wysiwygCard.editing .ticketForm-inlinePlaceholder:hover {
  border-color: rgba(255, 105, 180, 0.45);
}

.ticketForm-inlineEditHint {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #8f949c;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  opacity: 0.85;
  z-index: 2;
}

.ticketForm-inlineFieldWrap--stacked .ticketForm-inlineEditHint {
  top: 10px;
  transform: none;
}

.ticketForm-inlineEditHint:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #dbdee1;
}

.ticketForm-wysiwygCard.editing .ticketForm-inlineEditHint {
  color: var(--pink);
  background: rgba(255, 105, 180, 0.12);
}

.ticketForm-inlinePlaceholder::placeholder {
  color: #6b7280;
}

/* Inline content editing (text display) */

.ticketForm-inlineContent {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 8px 36px 8px 8px;
  color: #b5bac1;
  font-size: 0.875rem;
  line-height: 1.5;
  font-family: var(--font-family);
  resize: vertical;
  min-height: 40px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}

.ticketForm-inlineContent::placeholder {
  color: #4e5058;
}

.ticketForm-inlineContent:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.ticketForm-inlineContent:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.ticketForm-wysiwygCard.editing .ticketForm-inlineContent {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--pink);
}

.ticketForm-wysiwygCard.editing .ticketForm-inlineContent:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pink);
}

.ticketForm-dragHandle {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  cursor: grab;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.ticketForm-questionCard:hover .ticketForm-dragHandle {
  opacity: 0.7;
}

.ticketForm-dragHandle span {
  width: 12px;
  height: 2px;
  background: var(--white-dim);
  border-radius: 1px;
}

.ticketForm-questionNumber {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-faint);
  border-radius: var(--radius-sm);
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.ticketForm-questionInfo {
  flex: 1;
  min-width: 0;
}

.ticketForm-questionLabel {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--white);
  margin: 0 0 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticketForm-questionMeta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.ticketForm-questionType {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  color: var(--white-dim);
}

.ticketForm-questionType i {
  font-size: 10px;
  opacity: 0.7;
}

.ticketForm-requiredBadge {
  font-size: 0.625rem;
  font-weight: var(--font-weight-semibold);
  color: var(--danger);
  background: var(--danger-faint);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ticketForm-questionActions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ticketForm-questionCard:hover .ticketForm-questionActions {
  opacity: 1;
}

.ticketForm-questionBtn {
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--black-lighter);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
  color: var(--white-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.15s ease;
}

.ticketForm-questionBtn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.ticketForm-questionBtn.delete:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.ticketForm-questionEditor {
  display: none;
  padding: var(--space-md);
  background: var(--black-light);
  border-top: 1px solid var(--white-faint);
}

.ticketForm-questionCard.editing .ticketForm-questionEditor {
  display: block;
}

.ticketForm-editorGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.ticketForm-editorField {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticketForm-editorField.full-width {
  grid-column: 1 / -1;
}

.ticketForm-editorLabel {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b5bac1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ticketForm-editorInput {
  padding: 10px;
  font-size: 0.875rem;
  font-family: var(--font-family);
  border: none;
  border-radius: 3px;
  background: #1e1f22;
  color: #dbdee1;
  transition: outline 0.15s ease;
}

.ticketForm-editorInput:focus {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
}

.ticketForm-editorInput::placeholder {
  color: #4e5058;
}

.ticketForm-editorTextarea {
  min-height: 60px;
  resize: vertical;
}

.ticketForm-editorSwitch {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.ticketForm-editorSwitch input {
  display: none;
}

.ticketForm-switchTrack {
  width: 36px;
  height: 20px;
  background: #4e5058;
  border: none;
  border-radius: var(--radius-full);
  position: relative;
  transition: all 0.15s ease;
}

.ticketForm-switchThumb {
  width: 16px;
  height: 16px;
  background: #f2f3f5;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.15s ease;
}

.ticketForm-editorSwitch input:checked + .ticketForm-switchTrack {
  background: var(--pink);
  border-color: var(--pink);
}

.ticketForm-editorSwitch input:checked + .ticketForm-switchTrack .ticketForm-switchThumb {
  background: #f2f3f5;
  left: 18px;
}

.ticketForm-switchLabel {
  font-size: 0.8125rem;
  color: #dbdee1;
}

.ticketForm-optionsEditor {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ticketForm-optionsList {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.ticketForm-optionItem {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.ticketForm-optionItem i {
  color: var(--white-dim);
  font-size: 12px;
  width: 16px;
}

.ticketForm-optionInput {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-family: var(--font-family);
  border: none;
  border-radius: 3px;
  background: #1e1f22;
  color: #dbdee1;
  transition: outline 0.15s ease;
}

.ticketForm-optionInput:focus {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
}

.ticketForm-optionRemove {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--white-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.ticketForm-optionRemove:hover {
  background: var(--danger-faint);
  color: var(--danger);
}

.ticketForm-addOption {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px dashed #4e5058;
  border-radius: 3px;
  color: #b5bac1;
  font-size: 0.75rem;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ticketForm-addOption:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.ticketForm-addOption i {
  font-size: 10px;
}

.ticketForm-editorFooter {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--white-faint);
}

.ticketForm-editorDone {
  padding: 8px 16px;
  background: #5865f2;
  border: none;
  border-radius: 3px;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.ticketForm-editorDone:hover {
  background: #4752c4;
}

.ticketForm-wysiwygWrapper {
  position: relative;
  margin-top: var(--space-md);
}

.ticketForm-previewWrapper {
  position: relative;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
}

.ticketForm-previewWrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-faint), transparent);
}

/* (label/badge removed — WYSIWYG is self-evident) */

/* WYSIWYG question card within preview */

.ticketForm-wysiwygCard {
  position: relative;
  border-radius: 4px;
  transition: outline 0.15s ease;
  outline: 2px solid transparent;
  background: transparent;
  border: none;
  margin-bottom: 0;
  overflow: visible;
}

.ticketForm-wysiwygCard:hover {
  outline-color: var(--pink-dim);
}

.ticketForm-wysiwygCard.editing {
  outline-color: #5865f2;
  border: none;
  box-shadow: none;
}

.ticketForm-wysiwygCard.dragging {
  opacity: 0.5;
  outline-style: dashed;
  outline-color: var(--pink);
}

.ticketForm-wysiwygPreview {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
  cursor: pointer;
}

.ticketForm-wysiwygOverlay {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
  background: #2b2d31;
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.ticketForm-wysiwygCard:hover .ticketForm-wysiwygOverlay {
  opacity: 1;
}

.ticketForm-wysiwygOverlay .ticketForm-dragHandle {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 4px;
  cursor: grab;
  opacity: 0.5;
}

.ticketForm-wysiwygOverlay .ticketForm-dragHandle:hover {
  opacity: 1;
}

.ticketForm-wysiwygOverlay .ticketForm-dragHandle span {
  width: 10px;
  height: 1.5px;
  background: #b5bac1;
  border-radius: 1px;
}

.ticketForm-wysiwygActions {
  display: flex;
  gap: 2px;
}

.ticketForm-wysiwygActions .ticketForm-questionBtn {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: #b5bac1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all 0.15s ease;
}

.ticketForm-wysiwygActions .ticketForm-questionBtn:hover {
  background: var(--white-a08);
  color: var(--pink);
}

.ticketForm-wysiwygActions .ticketForm-questionBtn.delete:hover {
  color: var(--danger);
}

/* WYSIWYG inline editor - appears below question within preview */

.ticketForm-wysiwygCard .ticketForm-questionEditor {
  display: none;
  padding: 12px;
  background: #2b2d31;
  border: 1px solid #3f4147;
  border-radius: 4px;
  margin-top: 8px;
}

.ticketForm-wysiwygCard.editing .ticketForm-questionEditor {
  display: block;
}

.ticketForm-wysiwygCard .ticketForm-editorFooter {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #3f4147;
}

/* Add Component button inside preview */

.ticketForm-previewAddRow {
  padding: 8px 16px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticketForm-previewAddBtn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px dashed #4e5058;
  border-radius: 4px;
  color: #b5bac1;
  font-size: 0.8125rem;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ticketForm-previewAddBtn:hover:not(:disabled) {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(255, 93, 208, 0.05);
}

.ticketForm-previewAddBtn:disabled, .ticketForm-previewAddBtn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ticketForm-previewAddBtn i {
  font-size: 11px;
}

/* Empty state within WYSIWYG preview */

.ticketForm-previewBody .ticketForm-emptyState {
  padding: 24px 16px;
  text-align: center;
  background: transparent;
  border: none;
}

.ticketForm-previewBody .ticketForm-emptyIcon {
  background: #1e1f22;
  color: #4e5058;
  margin: 0 auto var(--space-sm);
}

.ticketForm-previewBody .ticketForm-emptyText {
  color: #4e5058;
  font-size: 0.8125rem;
}

.ticketForm-preview {
  background: #313338;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.ticketForm-previewHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #2b2d31;
  border-bottom: 1px solid var(--white-a06);
}

.ticketForm-previewTitleRow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.ticketForm-previewTitle {
  font-size: 1rem;
  font-weight: 600;
  color: #f2f3f5;
  outline: none;
  border: 1px solid var(--white-a06);
  border-radius: 4px;
  padding: 4px 8px;
  background: var(--white-a04, rgba(255,255,255,0.04));
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: text;
  min-width: 60px;
}

.ticketForm-previewTitleRow .ticketForm-editHintBtn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

.ticketForm-previewTitleRow .ticketForm-editHintBtn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.ticketForm-previewTitleRow .ticketForm-editHintBtn img {
  width: 13px;
  height: 13px;
  display: block;
  object-fit: contain;
}

.ticketForm-previewTitle:hover {
  border-color: var(--white-a20);
  background: var(--white-a06, rgba(255,255,255,0.06));
}

.ticketForm-previewTitle:focus {
  border-color: var(--pink);
  background: var(--white-a06, rgba(255,255,255,0.06));
}

.ticketForm-previewTitle:empty::before {
  content: 'Enter form title...';
  color: #4e5058;
}

.ticketForm-previewClose {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5bac1;
  font-size: 18px;
}

.ticketForm-previewBody {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: none;
  overflow-y: visible;
}

.ticketForm-previewQuestion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticketForm-previewLabel {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b5bac1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ticketForm-previewLabel .required {
  color: #f23f43;
  margin-left: 4px;
}

.ticketForm-previewInput {
  padding: 10px;
  background: #1e1f22;
  border: none;
  border-radius: 3px;
  color: #dbdee1;
  font-size: 1rem;
}

.ticketForm-previewInput::placeholder {
  color: #4e5058;
}

.ticketForm-previewTextarea {
  min-height: 72px;
  resize: none;
}

.ticketForm-previewSelect {
  padding: 10px;
  background: #1e1f22;
  border: none;
  border-radius: 3px;
  color: #dbdee1;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
}

.ticketForm-previewTextDisplay {
  padding: 8px 0;
}

.ticketForm-previewContent {
  color: #b5bac1;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ticketForm-previewFileUpload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: #1e1f22;
  border: 2px dashed #4e5058;
  border-radius: 4px;
  color: #b5bac1;
  font-size: 0.875rem;
}

.ticketForm-previewFileUpload i {
  font-size: 24px;
  color: var(--discord);
}

.ticketForm-editorTextarea {
  width: 100%;
  padding: 10px;
  font-size: 0.875rem;
  font-family: var(--font-family);
  border: none;
  border-radius: 3px;
  background: #1e1f22;
  color: #dbdee1;
  resize: vertical;
  min-height: 80px;
  transition: outline 0.15s ease;
}

.ticketForm-editorTextarea:focus {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
}

.ticketForm-previewFooter {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  background: #2b2d31;
  border-top: 1px solid var(--white-a06);
}

.ticketForm-previewBtn {
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ticketForm-previewBtn.cancel {
  background: transparent;
  color: #f2f3f5;
}

.ticketForm-previewBtn.cancel:hover {
  text-decoration: underline;
}

.ticketForm-previewBtn.submit {
  background: var(--discord);
  color: white;
}

.ticketForm-previewBtn.submit:hover {
  background: var(--discord-hover);
}

.ticketForm-emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.ticketForm-emptyIcon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-lighter);
  border-radius: var(--radius-md);
  color: var(--white-dim);
  font-size: 20px;
  margin-bottom: var(--space-md);
}

.ticketForm-emptyText {
  font-size: 0.875rem;
  color: var(--white-dim);
  margin: 0;
}

.btn-editor-add-question-btn:disabled, .btn-editor-add-question-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .tickets-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }
}

@media (max-width: 768px) {
  .tickets-header--editor {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .tickets-controls--editor {
    margin-left: auto;
    width: auto;
  }
}

@media (max-width: 768px) {
  .tickets-searchWrapper {
    width: 100%;
    order: 3;
  }
}

@media (max-width: 768px) {
  .tickets-panelsContainer {
    display: block;
  }
}

@media (max-width: 768px) {
  .tickets-typeItem {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .tickets-panelActions {
    flex-direction: row;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .tickets-styleButtons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tickets-settingsGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tickets-panel {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .tickets-modalContent {
    width: 95%;
  }
}

.btn-editor-schedule-settings {
  margin-top: var(--space-lg);
}

.btn-editor-schedule-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--black-muted);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.btn-editor-schedule-header .dashboardInput-text-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  margin-bottom: 4px;
}

.btn-editor-schedule-header .dashboardInput-dropdown-subtext {
  display: block;
  font-size: 0.75rem;
  color: var(--white-dim);
  line-height: 1.4;
}

.btn-editor-schedule-content {
  padding: var(--space-md);
  background: var(--black-light);
  border: 1px solid var(--white-faint);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.btn-editor-schedule-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--white-a03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--white-a08);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-size: 0.75rem;
  color: var(--white-dim);
  line-height: 1.5;
}

.btn-editor-schedule-notice i {
  color: var(--white-dim);
  margin-top: 2px;
  flex-shrink: 0;
  opacity: 0.7;
}

.btn-editor-schedule-notice strong {
  color: var(--white);
  font-weight: var(--font-weight-semibold);
}

.btn-editor-schedule-timezone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.btn-editor-schedule-timezone .btn-editor-input-label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white-dim);
  white-space: nowrap;
}

.btn-editor-schedule-timezone .btn-editor-form-input {
  flex: 1;
  max-width: 300px;
  padding: 6px 10px;
  font-size: 0.8125rem;
  font-family: var(--font-family);
  background: var(--black-muted);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
}

.btn-editor-schedule-timezone .btn-editor-form-input:focus {
  outline: none;
  border-color: var(--pink);
}

.btn-editor-schedule-table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-md);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-sm);
}

.btn-editor-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6875rem;
  user-select: none;
}

.btn-editor-schedule-table th, .btn-editor-schedule-table td {
  text-align: center;
  border: 1px solid var(--white-a08);
  padding: 0;
}

.btn-editor-schedule-hours-label {
  background: var(--black-muted);
  color: var(--white-dim);
  font-weight: var(--font-weight-semibold);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  min-width: 80px;
  text-align: left;
  border: 1px solid var(--white-a08) !important;
}

.btn-editor-schedule-period {
  font-weight: var(--font-weight-semibold);
  font-size: 0.75rem;
  padding: 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-editor-schedule-table thead tr:first-child th:nth-child(2) {
  background: var(--white-a04);
  color: var(--white-dim);
}

.btn-editor-schedule-table thead tr:first-child th:nth-child(3) {
  background: var(--white-a06);
  color: var(--white-dim);
}

.btn-editor-schedule-hour-header {
  background: var(--black-muted);
  color: var(--white-dim);
  font-weight: var(--font-weight-medium);
  padding: 8px 4px;
  min-width: 24px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-editor-schedule-hour-header:hover {
  background: var(--white-a08);
  color: var(--white);
}

.btn-editor-schedule-day-header {
  background: var(--black-muted);
  color: var(--white-dim);
  font-weight: var(--font-weight-medium);
  font-size: 0.75rem;
  padding: 10px 12px;
  text-align: left;
  min-width: 80px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-editor-schedule-day-header:hover {
  background: var(--white-a08);
  color: var(--white);
}

.btn-editor-schedule-cell, td.btn-editor-schedule-cell, .btn-editor-schedule-table td.btn-editor-schedule-cell {
  width: 26px;
  height: 26px;
  cursor: pointer;
  position: relative;
  background: var(--white-a02) !important;
  border: 1px solid var(--white-a10) !important;
  border-radius: 0;
  transition: all 0.1s ease;
}

.btn-editor-schedule-cell:hover, td.btn-editor-schedule-cell:hover, .btn-editor-schedule-table td.btn-editor-schedule-cell:hover {
  border-color: var(--white-a20) !important;
  background: var(--white-a06) !important;
}

.btn-editor-schedule-cell::before, td.btn-editor-schedule-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #30cb30;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.btn-editor-schedule-cell.active::before, td.btn-editor-schedule-cell.active::before, .btn-editor-schedule-table td.btn-editor-schedule-cell.active::before {
  clip-path: circle(75% at 50% 50%);
}

.btn-editor-schedule-cell.active, td.btn-editor-schedule-cell.active, .btn-editor-schedule-table td.btn-editor-schedule-cell.active, .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell.active {
  background: transparent !important;
  border-color: #30cb30 !important;
  overflow: hidden;
}

.btn-editor-schedule-cell.active::after, td.btn-editor-schedule-cell.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 11px;
  color: white;
  z-index: 2;
  animation: checkmarkBounce 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

@keyframes checkmarkBounce {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.btn-editor-schedule-cell.active:hover::before, td.btn-editor-schedule-cell.active:hover::before {
  background: #28a828;
}

.btn-editor-schedule-mobile {
  display: none;
}

.btn-editor-schedule-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--white-faint);
}

.btn-editor-schedule-actions-left {
  display: flex;
  gap: var(--space-sm);
}

.btn-editor-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-editor-btn-secondary {
  background: var(--black-lighter);
  border: 1px solid var(--white-faint);
  color: var(--white-dim);
}

.btn-editor-btn-secondary:hover {
  background: var(--black-muted);
  border-color: #30cb30;
  color: #30cb30;
}

.btn-editor-schedule-stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.btn-editor-schedule-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
}

.btn-editor-schedule-stat-label {
  color: var(--white-dim);
}

.btn-editor-schedule-stat-value {
  font-weight: var(--font-weight-bold);
  color: #30cb30;
  min-width: 24px;
}

@media (max-width: 900px) {
  .btn-editor-schedule-table thead {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table-wrapper {
    overflow: visible !important;
    border: none !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table {
    display: block !important;
    width: 100% !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-md) !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr {
    display: flex !important;
    flex-wrap: wrap !important;
    background: var(--black-light) !important;
    border: 1px solid var(--white-faint) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-day-header {
    flex: 0 0 100% !important;
    order: -1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--black-muted);
    border-bottom: 1px solid var(--white-faint);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--white);
    min-width: unset;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-day-header:hover {
    background: var(--white-a08);
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr::before {
    content: 'AM';
    flex: 0 0 100% !important;
    order: 0 !important;
    display: flex !important;
    align-items: center;
    padding: 6px 12px;
    background: var(--white-a03);
    color: var(--white-dim);
    font-size: 0.625rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--white-ghost);
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr::after {
    content: 'PM';
    flex: 0 0 100% !important;
    order: 100 !important;
    display: flex !important;
    align-items: center;
    padding: 6px 12px;
    background: var(--white-ghost);
    color: var(--white-dim);
    font-size: 0.625rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid var(--white-faint);
    border-bottom: 1px solid var(--white-ghost);
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-cell, td.btn-editor-schedule-cell, .btn-editor-schedule-table td.btn-editor-schedule-cell {
    display: block !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    padding: 0 !important;
    position: relative;
    border-radius: 2px;
    margin: 2px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="0"] {
    order: 1 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="1"] {
    order: 2 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="2"] {
    order: 3 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="3"] {
    order: 4 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="4"] {
    order: 5 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="5"] {
    order: 6 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="6"] {
    order: 7 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="7"] {
    order: 8 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="8"] {
    order: 9 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="9"] {
    order: 10 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="10"] {
    order: 11 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="11"] {
    order: 12 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="12"] {
    order: 101 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="13"] {
    order: 102 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="14"] {
    order: 103 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="15"] {
    order: 104 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="16"] {
    order: 105 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="17"] {
    order: 106 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="18"] {
    order: 107 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="19"] {
    order: 108 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="20"] {
    order: 109 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="21"] {
    order: 110 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="22"] {
    order: 111 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell[data-hour="23"] {
    order: 112 !important;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell:not(.active)::after {
    content: attr(data-hour);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6875rem;
    font-weight: var(--font-weight-medium);
    color: var(--white-dim);
    opacity: 0.7;
    z-index: 1;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-cell::before, td.btn-editor-schedule-cell::before {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    width: auto;
    height: auto;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-cell.active::after, td.btn-editor-schedule-cell.active::after {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-mobile {
    display: none;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-actions-left {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-stats {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .btn-editor-btn {
    padding: 10px 12px;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-notice {
    font-size: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-timezone {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 900px) {
  .btn-editor-schedule-timezone .btn-editor-form-input {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .btn-editor-schedule-cell, td.btn-editor-schedule-cell, .btn-editor-schedule-table td.btn-editor-schedule-cell {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
  }
}

@media (max-width: 600px) {
  .btn-editor-schedule-cell.active::after, td.btn-editor-schedule-cell.active::after {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell:not(.active)::after {
    font-size: 0.625rem;
  }
}

@media (max-width: 600px) {
  .btn-editor-schedule-table tbody tr::before, .btn-editor-schedule-table tbody tr::after {
    padding: 4px 10px;
    font-size: 0.5625rem;
  }
}

@media (max-width: 600px) {
  .btn-editor-schedule-day-header {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
  }
}

@media (max-width: 600px) {
  .btn-editor-schedule-notice {
    font-size: 0.6875rem;
    padding: var(--space-xs) var(--space-sm);
  }
}

@media (max-width: 600px) {
  .btn-editor-schedule-stat {
    font-size: 0.6875rem;
  }
}

@media (max-width: 400px) {
  .btn-editor-schedule-cell, td.btn-editor-schedule-cell, .btn-editor-schedule-table td.btn-editor-schedule-cell {
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    margin: 1px !important;
  }
}

@media (max-width: 400px) {
  .btn-editor-schedule-cell.active::after, td.btn-editor-schedule-cell.active::after {
    font-size: 9px;
  }
}

@media (max-width: 400px) {
  .btn-editor-schedule-table tbody tr td.btn-editor-schedule-cell:not(.active)::after {
    font-size: 0.5625rem;
  }
}

@media (max-width: 400px) {
  .btn-editor-schedule-table tbody tr::before, .btn-editor-schedule-table tbody tr::after {
    padding: 3px 8px;
    font-size: 0.5rem;
  }
}

@media (max-width: 400px) {
  .btn-editor-schedule-day-header {
    font-size: 0.6875rem;
    padding: 6px 8px;
  }
}

