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

.dl-nav-item > svg {
  flex: 0 0 20px;
  color: #92949e;
}

.dl-nav-item:hover > svg,
.dl-nav-item.active > svg {
  color: #ff526c;
}

.dl-page {
  --dl-red: #f02b48;
  --dl-red-bright: #ff526c;
  --dl-panel: #14151c;
  --dl-panel-soft: #101117;
  --dl-border: #ffffff13;
  --dl-muted: #92949e;
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  color: #f7f5f7;
}

.dl-page *, .dl-page *::before, .dl-page *::after { box-sizing: border-box; }
.dl-page button, .dl-page input, .dl-page select { font: inherit; }

.dl-hero {
  display: flex;
  min-height: 190px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 34px;
  overflow: hidden;
  border: 1px solid var(--dl-border);
  border-radius: 20px;
  background: radial-gradient(circle at 88% 8%, #ed29483b, transparent 35%), linear-gradient(122deg, #191a22f7, #101117f7);
  box-shadow: 0 22px 64px #00000035;
}

.dl-hero > div:first-child { max-width: 920px; }
.dl-hero > div > span, .dl-card-heading > div > span, .dl-list-head span, .dl-editor-head > div > span, .dl-preview > div > span {
  color: var(--dl-red-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}
.dl-hero h2 { max-width: 900px; margin: 9px 0 10px; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.02; letter-spacing: -.045em; }
.dl-hero p, .dl-card-heading p, .dl-preview > div p { margin: 0; color: var(--dl-muted); font-size: 14px; line-height: 1.65; }
.dl-coverage { display: grid; min-width: 225px; gap: 2px; padding: 20px; border: 1px solid #ff496331; border-radius: 15px; background: #280f17a8; }
.dl-coverage strong { color: #fff; font-size: 34px; }
.dl-coverage span { font-weight: 800; }
.dl-coverage small { max-width: 235px; margin-top: 8px; color: #aaa4aa; line-height: 1.45; }

.dl-quick-card, .dl-bundle-list, .dl-editor-card, .dl-preview, .dl-privacy-note {
  border: 1px solid var(--dl-border);
  border-radius: 18px;
  background: var(--dl-panel);
  box-shadow: 0 16px 46px #00000022;
}
.dl-quick-card { padding: 24px; }
.dl-card-heading, .dl-editor-head, .dl-list-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.dl-card-heading h3, .dl-editor-head h3, .dl-preview h3 { margin: 5px 0 6px; font-size: 22px; }
.dl-card-heading > b { padding: 7px 10px; border: 1px solid #ffffff12; border-radius: 999px; color: #888b95; font-size: 11px; }
.dl-card-heading > b.online { border-color: #32d89635; background: #0d3527; color: #61e5ae; }
.dl-quick-card form { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, .8fr) auto; align-items: end; gap: 14px; margin-top: 20px; }
.dl-quick-status { grid-column: 1 / -1; min-height: 16px; color: #9698a2; font-size: 12px; }
.dl-quick-status.success { color: #62dda9; }
.dl-quick-status.error { color: #ff7488; }
.dl-quick-status.pending { color: #e6ba65; }
.dl-page label > span:first-child, .dl-page label:not(.dl-switch):not(.dl-action):not(.dl-all-choice) { color: #d9d7dc; font-size: 12px; font-weight: 800; }
.dl-page input[type="text"], .dl-page input:not([type]), .dl-page select { width: 100%; min-height: 46px; margin-top: 7px; padding: 0 13px; border: 1px solid #30323c; border-radius: 10px; outline: none; background: #0d0e13; color: #f7f6f8; }
.dl-page input:focus, .dl-page select:focus { border-color: #f02b48; box-shadow: 0 0 0 3px #f02b4818; }
.dl-page label small { display: block; margin-top: 6px; color: #7f818c; font-weight: 500; line-height: 1.4; }

.dl-switch { position: relative; display: flex; align-items: center; gap: 11px; cursor: pointer; }
.dl-switch input, .dl-all-choice input, .dl-action input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.dl-switch > i { position: relative; flex: 0 0 42px; width: 42px; height: 24px; border-radius: 99px; background: #343640; transition: .18s; }
.dl-switch > i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: #a7a9b1; transition: .18s; }
.dl-switch input:checked + i { background: var(--dl-red); }
.dl-switch input:checked + i::after { left: 22px; background: #fff; }
.dl-switch span strong, .dl-switch span small { display: block; }
.dl-switch span strong { font-size: 13px; }
.dl-switch span small { margin: 3px 0 0; }
.dl-switch.compact b { font-size: 12px; }

.dl-button, .dl-icon-button { min-height: 43px; padding: 0 16px; border: 1px solid #343641; border-radius: 10px; background: #191a22; color: #f7f5f7; font-weight: 800; cursor: pointer; }
.dl-button:hover:not(:disabled), .dl-icon-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #ff506c72; }
.dl-button.primary { border-color: #f02b48; background: linear-gradient(135deg, #f63250, #d81438); box-shadow: 0 10px 26px #ed294829; }
.dl-button.secondary { background: #22242e; }
.dl-button.danger { border-color: #d942573a; background: #34131b; color: #ff7a8d; }
.dl-button:disabled, .dl-icon-button:disabled { opacity: .5; cursor: wait; transform: none; }
.dl-icon-button { width: 38px; min-height: 38px; padding: 0; font-size: 20px; }

.dl-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 18px; align-items: start; }
.dl-bundle-list { position: sticky; top: 18px; overflow: hidden; }
.dl-list-head { padding: 20px 20px 12px; }
.dl-list-head strong { display: block; margin-top: 4px; font-size: 17px; }
.dl-bundle-list > p { margin: 0; padding: 0 20px 17px; border-bottom: 1px solid #ffffff0e; color: #858893; font-size: 12px; line-height: 1.55; }
.dl-bundle-list > div:last-child { display: grid; gap: 5px; padding: 10px; }
.dl-bundle-row { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #e9e7ea; text-align: left; cursor: pointer; }
.dl-bundle-row:hover, .dl-bundle-row.active { border-color: #f02b4841; background: #2a1119; }
.dl-bundle-row > i { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #555761; }
.dl-bundle-row > i.online { background: #45d79e; box-shadow: 0 0 12px #45d79e77; }
.dl-bundle-row span { min-width: 0; }
.dl-bundle-row strong, .dl-bundle-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-bundle-row strong { font-size: 13px; }
.dl-bundle-row small { margin-top: 4px; color: #858793; font-size: 10px; }
.dl-empty { padding: 25px 14px; color: #7f818b; text-align: center; font-size: 12px; }

.dl-editor-card { overflow: hidden; }
.dl-editor-card form > * { padding-inline: 24px; }
.dl-editor-head { padding-block: 22px; border-bottom: 1px solid #ffffff0e; }
.dl-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-block: 22px 12px; }
.dl-all-choice { position: relative; display: flex; align-items: center; gap: 12px; margin: 8px 24px 20px; padding: 15px !important; border: 1px solid #f02b4835; border-radius: 12px; background: #2a1018; cursor: pointer; }
.dl-all-choice > i, .dl-action > i { display: grid; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; border: 1px solid #484a55; border-radius: 6px; background: #0e0f14; }
.dl-all-choice input:checked + i, .dl-action input:checked + i { border-color: var(--dl-red); background: var(--dl-red); }
.dl-all-choice input:checked + i::after, .dl-action input:checked + i::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 900; }
.dl-all-choice span strong, .dl-all-choice span small { display: block; }
.dl-all-choice span strong { font-size: 13px; }
.dl-all-choice span small { margin-top: 3px; }
.dl-action-groups { max-height: 700px; padding-block: 0 22px; overflow-y: auto; scrollbar-color: #692332 transparent; }
.dl-action-groups.disabled { opacity: .38; }
.dl-action-groups fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.dl-action-groups legend { width: 100%; padding: 10px 0; border-bottom: 1px solid #ffffff0d; color: #abaeb7; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dl-action-groups fieldset > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 10px; }
.dl-action { position: relative; display: flex; min-width: 0; gap: 10px; padding: 12px; border: 1px solid #292b34; border-radius: 10px; background: var(--dl-panel-soft); cursor: pointer; }
.dl-switch input:focus-visible + i, .dl-all-choice input:focus-visible + i, .dl-action input:focus-visible + i { outline: 2px solid #ff526c; outline-offset: 3px; }
.dl-action:hover, .dl-action.selected { border-color: #f02b4850; background: #251118; }
.dl-action span { min-width: 0; }
.dl-action strong, .dl-action small { display: block; }
.dl-action strong { color: #e8e6ea; font-size: 12px; }
.dl-action small { margin-top: 4px; color: #80828d; font-size: 10px; line-height: 1.4; }
.dl-editor-footer { display: flex; min-height: 72px; align-items: center; justify-content: flex-end; gap: 9px; border-top: 1px solid #ffffff0e; background: #111218; }
.dl-editor-footer > span { margin-right: auto; color: #9698a2; font-size: 12px; }
.dl-editor-footer > span.success, .dl-notice.success { color: #62dda9; }
.dl-editor-footer > span.error, .dl-notice.error { color: #ff7488; }
.dl-editor-footer > span.pending { color: #e6ba65; }

.dl-preview { display: grid; grid-template-columns: .6fr 1fr; gap: 24px; padding: 25px; align-items: center; }
.dl-preview article { padding: 15px; border: 1px solid #2d3039; border-radius: 12px; background: #111218; }
.dl-preview article > header { display: flex; align-items: center; gap: 10px; }
.dl-preview article > header > i { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #d71939, #460b16); font-style: normal; font-weight: 900; }
.dl-preview article header strong, .dl-preview article header span { display: block; }
.dl-preview article header span { margin-top: 2px; color: #888b95; font-size: 10px; }
.dl-embed { margin: 13px 0 0 48px; padding: 14px 16px; border-left: 4px solid #ef2949; border-radius: 4px 9px 9px 4px; background: #17191f; box-shadow: inset 14px 0 34px #ef29490a; }
.dl-embed > b { font-size: 14px; }
.dl-embed > p { margin: 5px 0 11px; color: #bbbcc3; font-size: 12px; }
.dl-embed dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.dl-embed dl div { min-width: 0; }
.dl-embed dt { color: #fff; font-size: 11px; font-weight: 800; }
.dl-embed dd { margin: 3px 0 0; overflow: hidden; color: #b8bac2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dl-embed footer { margin-top: 12px; color: #71737c; font-size: 9px; }
.dl-privacy-note { display: flex; gap: 15px; padding: 18px 21px; border-color: #5865f23b; background: #14172a; }
.dl-privacy-note strong { flex: 0 0 auto; color: #d8dcff; }
.dl-privacy-note span { color: #a7aac4; font-size: 12px; line-height: 1.55; }
.dl-notice { padding: 13px 16px; border: 1px solid currentColor; border-radius: 10px; background: #101117; font-size: 12px; }
.dl-state { display: grid; min-height: 380px; place-items: center; align-content: center; gap: 9px; color: #9698a2; }
.dl-state > i { width: 26px; height: 26px; border: 3px solid #ffffff1a; border-top-color: var(--dl-red); border-radius: 50%; animation: dl-spin .8s linear infinite; }
.dl-state strong { color: #f3f1f4; }
.dl-state.error { color: #ff7488; }
@keyframes dl-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .dl-layout, .dl-preview { grid-template-columns: 1fr; }
  .dl-bundle-list { position: static; }
  .dl-quick-card form { grid-template-columns: 1fr 1fr; }
  .dl-quick-card form .dl-button { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .dl-hero { align-items: stretch; flex-direction: column; padding: 23px; }
  .dl-coverage { min-width: 0; }
  .dl-quick-card form, .dl-field-grid, .dl-action-groups fieldset > div { grid-template-columns: 1fr; }
  .dl-editor-footer { align-items: stretch; flex-direction: column; padding-block: 14px; }
  .dl-editor-footer > span { margin: 0 0 5px; }
  .dl-embed { margin-left: 0; }
  .dl-embed dl { grid-template-columns: 1fr; }
  .dl-privacy-note { flex-direction: column; }
}
