.sidebar nav[aria-label="Hauptnavigation"] {
  flex: 1 1 auto;
  min-height: 0;
  margin: 22px -5px 12px 0;
  padding-right: 5px;
  overflow-y: auto;
  scrollbar-color: #5f202b transparent;
  scrollbar-width: thin;
}

.dm-navigation {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.dm-nav-heading {
  padding-top: 9px;
}

.dm-nav-item {
  text-decoration: none;
}

.dm-nav-item > i {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  color: #92949e;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.dm-nav-item:hover > i,
.dm-nav-item.active > i {
  color: #ff526c;
}

.main-content.dm-active > :not(.topbar):not(#sls-discord-management):not(footer) {
  display: none !important;
}

.main-content.dm-active > footer {
  margin-top: 20px;
}

.dm-page {
  --dm-red: #f02b42;
  --dm-red-bright: #ff4962;
  --dm-panel: #14151c;
  --dm-border: #ffffff12;
  --dm-muted: #8d909b;
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  color: #f5f3f5;
}

.dm-page *,
.dm-page *::before,
.dm-page *::after {
  box-sizing: border-box;
}

.dm-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  min-height: 176px;
  padding: 29px 32px;
  overflow: hidden;
  border: 1px solid var(--dm-border);
  border-radius: 19px;
  background:
    radial-gradient(circle at 86% 18%, #ee304a32, transparent 34%),
    linear-gradient(122deg, #191a22f5, #111218f5);
  box-shadow: 0 22px 64px #00000032;
}

.dm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 58%, #f02b4208);
}

.dm-hero > * {
  position: relative;
  z-index: 1;
}

.dm-kicker,
.dm-operation-form header > div > span {
  color: var(--dm-red-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.dm-hero h2 {
  margin: 8px 0 7px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.dm-hero p,
.dm-operation-form header p {
  max-width: 800px;
  margin: 0;
  color: #9b9da7;
  font-size: 14px;
  line-height: 1.6;
}

.dm-access-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 205px;
  padding: 13px 15px;
  border: 1px solid #39d19529;
  border-radius: 12px;
  background: #36ce9010;
}

.dm-access-badge > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #43d89c;
  box-shadow: 0 0 12px #43d89c99;
}

.dm-access-badge strong,
.dm-access-badge small {
  display: block;
}

.dm-access-badge strong {
  color: #a8ecd0;
  font-size: 11px;
}

.dm-access-badge small {
  margin-top: 4px;
  color: #6f9987;
  font-size: 9px;
}

.dm-workspace {
  display: grid;
  grid-template-columns: minmax(245px, 310px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.dm-operation-panel,
.dm-card,
.dm-state-card {
  border: 1px solid var(--dm-border);
  border-radius: 16px;
  background: var(--dm-panel);
  box-shadow: 0 16px 52px #00000024;
}

.dm-operation-panel {
  position: sticky;
  top: 20px;
  overflow: hidden;
}

.dm-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 13px;
}

.dm-panel-title span {
  font-size: 12px;
  font-weight: 750;
}

.dm-panel-title b {
  min-width: 27px;
  padding: 5px 7px;
  border-radius: 8px;
  background: #f02b4216;
  color: #ff6075;
  font-size: 10px;
  text-align: center;
}

.dm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 10px;
  padding: 0 11px;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  background: #0b0c11;
  color: #696b76;
}

.dm-search input {
  width: 100%;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f3f2f4;
  font: inherit;
  font-size: 11px;
}

.dm-operation-list {
  display: grid;
  gap: 5px;
  max-height: min(650px, calc(100vh - 330px));
  padding: 0 10px 12px;
  overflow: auto;
}

.dm-operation {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 61px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #a0a2ad;
  text-align: left;
  cursor: pointer;
}

.dm-operation:hover,
.dm-operation.active {
  border-color: #f02b4238;
  background: #f02b4211;
  color: #fff;
}

.dm-operation > i {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #ffffff07;
  color: #858791;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.dm-operation.active > i {
  background: #f02b421d;
  color: #ff536b;
}

.dm-operation strong,
.dm-operation small {
  display: block;
}

.dm-operation strong {
  font-size: 10.5px;
}

.dm-operation small {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #666873;
  font-size: 8px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dm-editor {
  min-width: 0;
}

.dm-operation-form {
  overflow: hidden;
}

.dm-operation-form > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 25px;
  border-bottom: 1px solid var(--dm-border);
  background: #0b0c104f;
}

.dm-operation-form h3 {
  margin: 7px 0 6px;
  font-size: clamp(20px, 2vw, 27px);
  letter-spacing: -.025em;
}

.dm-operation-form header p {
  max-width: 700px;
  font-size: 12px;
}

.dm-safe-badge,
.dm-danger-badge {
  flex: none;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 8px;
  letter-spacing: .03em;
}

.dm-safe-badge {
  border: 1px solid #38d19524;
  background: #38d1950c;
  color: #65dbaa;
}

.dm-danger-badge {
  border: 1px solid #ff5a7035;
  background: #f02b4215;
  color: #ff6c80;
}

.dm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 25px 28px;
}

.dm-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.dm-field-shell {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

fieldset.dm-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.dm-field legend {
  margin-bottom: 7px;
  color: #c0c2c9;
  font-size: 9.5px;
  font-weight: 700;
}

.dm-field-wide,
.dm-no-fields,
.dm-toggle-field {
  grid-column: 1 / -1;
}

.dm-field > span,
.dm-toggle-field strong {
  color: #c0c2c9;
  font-size: 9.5px;
  font-weight: 700;
}

.dm-field input,
.dm-field select,
.dm-field textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid #ffffff13;
  border-radius: 10px;
  outline: 0;
  background: #0b0c11;
  color: #f2f1f3;
  font: inherit;
  font-size: 11px;
}

.dm-field input,
.dm-field select {
  padding: 0 12px;
}

.dm-field input[type="color"] {
  padding: 6px;
}

.dm-field select[multiple] {
  min-height: 126px;
  padding: 7px;
}

.dm-field select[multiple] option {
  padding: 7px 8px;
  border-radius: 6px;
}

.dm-field textarea {
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.55;
}

.dm-field input:focus,
.dm-field select:focus,
.dm-field textarea:focus {
  border-color: #f02b4268;
  box-shadow: 0 0 0 3px #f02b420e;
}

.dm-field-invalid,
.dm-field-invalid:focus {
  border-color: #ff536b !important;
  box-shadow: 0 0 0 3px #f02b4218 !important;
}

.dm-field-error {
  color: #ff7184 !important;
  font-weight: 700;
}

.dm-field small,
.dm-toggle-field small {
  color: #646670;
  font-size: 8px;
  line-height: 1.45;
}

.dm-toggle-field {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 57px;
  padding: 10px 13px;
  border: 1px solid #ffffff0e;
  border-radius: 11px;
  background: #0b0c1066;
  cursor: pointer;
}

.dm-toggle-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dm-toggle-field > i {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #353740;
  transition: .16s;
}

.dm-toggle-field > i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8c8e98;
  transition: .16s;
}

.dm-toggle-field input:checked + i {
  background: #b81930;
}

.dm-toggle-field input:checked + i::after {
  left: 19px;
  background: #fff;
}

.dm-toggle-field span {
  display: grid;
  gap: 4px;
}

.dm-clear-field,
.dm-multi-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #868993;
  font-size: 9px;
  cursor: pointer;
}

.dm-clear-field input,
.dm-multi-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dm-clear-field > i,
.dm-multi-mode > i {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid #555862;
  border-radius: 5px;
  background: #0b0c11;
}

.dm-clear-field input:checked + i,
.dm-multi-mode input:checked + i {
  border-color: #f2445b;
  background: #d9213a;
}

.dm-clear-field input:checked + i::after,
.dm-multi-mode input:checked + i::after {
  content: "✓";
  position: absolute;
  inset: -1px 0 0;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.dm-clear-field:has(input:disabled),
.dm-multi-mode:has(input:disabled) {
  cursor: not-allowed;
  opacity: .5;
}

.dm-multi-mode > span {
  display: grid;
  gap: 2px;
}

.dm-multi-mode strong {
  color: #c0c2c9;
  font-size: 9px;
}

.dm-multi-mode small {
  color: #666974;
  font-size: 8px;
}

.dm-multi-field[data-multi-active="false"] .dm-multi-search,
.dm-multi-field[data-multi-active="false"] .dm-multi-options {
  opacity: .48;
}

.dm-field [data-field-key]:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.dm-multi-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #ffffff12;
  border-radius: 9px;
  background: #0b0c11;
  color: #696b76;
}

.dm-multi-search input {
  width: 100%;
  height: 38px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f2f1f3;
  font: inherit;
  font-size: 10px;
}

.dm-multi-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: 230px;
  padding: 8px;
  overflow: auto;
  border: 1px solid #ffffff0e;
  border-radius: 10px;
  background: #090a0e73;
}

.dm-multi-options > label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid #ffffff0d;
  border-radius: 8px;
  background: #ffffff04;
  color: #a6a8b1;
  font-size: 9px;
  cursor: pointer;
}

.dm-multi-options > label:hover,
.dm-multi-options > label:has(input:checked) {
  border-color: #f02b423c;
  background: #f02b4210;
  color: #fff;
}

.dm-multi-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dm-multi-options i {
  position: relative;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  border: 1px solid #5e606a;
  border-radius: 4px;
}

.dm-multi-options input:checked + i {
  border-color: #f2445b;
  background: #d9213a;
}

.dm-multi-options input:checked + i::after {
  content: "✓";
  position: absolute;
  inset: -2px 0 0;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.dm-multi-options span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-no-fields,
.dm-empty {
  color: #737681;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.dm-no-fields {
  padding: 22px;
  border: 1px dashed #ffffff12;
  border-radius: 11px;
}

.dm-empty {
  padding: 24px 12px;
}

.dm-operation-form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px 14px 25px;
  border-top: 1px solid var(--dm-border);
  background: #090a0e5c;
}

.dm-operation-form > footer > span {
  max-width: 610px;
  color: #62646e;
  font-size: 8.5px;
  line-height: 1.5;
}

.dm-execute,
.dm-state-card button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #f02b42, #b7162c);
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 9px 26px #dc1b3433;
}

.dm-execute.dangerous {
  background: linear-gradient(135deg, #cc1830, #821021);
}

.dm-execute:disabled {
  cursor: wait;
  opacity: .55;
}

.dm-form-notice {
  display: none;
  margin: 0 25px 20px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.5;
}

.dm-form-notice:not(:empty) {
  display: block;
}

.dm-form-notice.loading {
  border: 1px solid #5275dc31;
  background: #5275dc11;
  color: #aebeff;
}

.dm-form-notice.success {
  border: 1px solid #3bd4992b;
  background: #3bd4990e;
  color: #85e2bd;
}

.dm-form-notice.error,
.dm-state-card.error {
  border-color: #ef40573b;
  background: #ef405711;
  color: #ff8b99;
}

.dm-state-card {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 300px;
  padding: 38px;
  text-align: center;
}

.dm-state-card strong {
  font-size: 18px;
}

.dm-state-card span {
  max-width: 560px;
  color: #858792;
  font-size: 11px;
  line-height: 1.6;
}

.dm-state-card button {
  margin-top: 8px;
}

.dm-spinner {
  width: 27px;
  height: 27px;
  border: 3px solid #f02b4230;
  border-top-color: #f34a60;
  border-radius: 50%;
  animation: dm-spin .75s linear infinite;
}

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

@media (max-width: 1180px) {
  .dm-workspace {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .dm-form-grid {
    grid-template-columns: 1fr;
  }

  .dm-field-wide,
  .dm-no-fields,
  .dm-toggle-field {
    grid-column: auto;
  }

  .dm-multi-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dm-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .dm-access-badge {
    width: 100%;
  }

  .dm-workspace {
    grid-template-columns: 1fr;
  }

  .dm-operation-panel {
    position: static;
  }

  .dm-operation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 620px) {
  .dm-hero,
  .dm-operation-form > header,
  .dm-operation-form > footer {
    padding: 20px;
  }

  .dm-operation-form > header,
  .dm-operation-form > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .dm-form-grid {
    padding: 20px;
  }

  .dm-operation-list {
    grid-template-columns: 1fr;
  }

  .dm-multi-options {
    grid-template-columns: 1fr;
  }

  .dm-form-notice {
    margin-inline: 20px;
  }

  .dm-execute {
    width: 100%;
  }
}
