.main-content.cr-active > :not(.topbar):not(#sls-channel-rules-page):not(footer) {
  display: none !important;
}

.cr-page {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  color: #f5f3f5;
}

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

.cr-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 32px;
  border: 1px solid #ffffff12;
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 20%, #e82d4930, transparent 34%),
    linear-gradient(125deg, #171820, #121319);
  box-shadow: 0 18px 54px #00000024;
}

.cr-kicker,
.cr-card-heading > div > span {
  color: #ff526d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.cr-hero h2 {
  max-width: 900px;
  margin: 9px 0 8px;
  font-size: clamp(29px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.cr-hero p,
.cr-card-heading p {
  margin: 0;
  color: #a0a2ad;
  font-size: 15px;
  line-height: 1.65;
}

.cr-hero-stat {
  flex: 0 0 auto;
  display: grid;
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid #ff49672c;
  border-radius: 14px;
  background: #e62c4510;
}

.cr-hero-stat strong {
  font-size: 30px;
  line-height: 1;
}

.cr-hero-stat span {
  margin-top: 6px;
  color: #b5a6aa;
  font-size: 12px;
}

.cr-alert {
  display: grid;
  gap: 4px;
  padding: 16px 19px;
  border: 1px solid #e9ad3d4a;
  border-radius: 13px;
  background: #6f4b0e22;
  color: #f3cb75;
}

.cr-alert span {
  color: #cdb888;
  font-size: 13px;
  line-height: 1.55;
}

.cr-workspace {
  display: grid;
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.cr-channel-panel,
.cr-card,
.cr-state-card {
  border: 1px solid #ffffff12;
  border-radius: 16px;
  background: #14151c;
  box-shadow: 0 14px 48px #0000001e;
}

.cr-channel-panel {
  position: sticky;
  top: 20px;
  overflow: hidden;
}

.cr-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #ffffff0e;
}

.cr-panel-heading > div {
  display: grid;
  gap: 4px;
}

.cr-panel-heading span {
  color: #858892;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cr-panel-heading strong {
  font-size: 16px;
}

.cr-panel-heading b {
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #e82d4818;
  color: #ff506a;
  font-size: 12px;
}

.cr-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px;
  padding: 0 12px;
  border: 1px solid #ffffff13;
  border-radius: 10px;
  background: #0e0f14;
  color: #747680;
}

.cr-search input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f3f2f4;
  font: inherit;
}

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

.cr-channel-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 60px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #b8bac3;
  text-align: left;
  cursor: pointer;
}

.cr-channel-row:hover,
.cr-channel-row.active {
  border-color: #f02e4b42;
  background: #ea2d4613;
  color: #fff;
}

.cr-channel-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #ffffff08;
  color: #7e808a;
  font-size: 19px;
  font-weight: 500;
}

.cr-channel-row.active .cr-channel-icon {
  background: #e92e4921;
  color: #ff526c;
}

.cr-channel-row > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cr-channel-row strong,
.cr-channel-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-channel-row strong {
  font-size: 13px;
}

.cr-channel-row small {
  color: #777984;
  font-size: 11px;
}

.cr-channel-row > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7b7d86;
}

.cr-channel-row > i.online {
  background: #37d394;
  box-shadow: 0 0 10px #37d39480;
}

.cr-channel-row > i.paused {
  background: #e4ad48;
}

.cr-editor-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.cr-card {
  overflow: hidden;
}

.cr-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  padding: 24px 26px;
  border-bottom: 1px solid #ffffff0f;
}

.cr-card-heading h3 {
  margin: 7px 0 6px;
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -.02em;
}

.cr-switch {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 11px;
  border: 1px solid #ffffff10;
  border-radius: 11px;
  background: #0f1015;
  color: #c8cad0;
  cursor: pointer;
}

.cr-switch input,
.cr-choice input,
.cr-role input,
.cr-event input,
.cr-check-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cr-switch i {
  position: relative;
  width: 39px;
  height: 22px;
  border-radius: 999px;
  background: #343640;
  transition: .18s ease;
}

.cr-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d5d6db;
  transition: .18s ease;
}

.cr-switch input:checked + i {
  background: #dd2743;
}

.cr-switch input:checked + i::after {
  transform: translateX(17px);
  background: white;
}

.cr-switch span {
  font-size: 12px;
  font-weight: 700;
}

.cr-section {
  display: grid;
  gap: 17px;
  padding: 24px 26px;
  border-bottom: 1px solid #ffffff0d;
}

.cr-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cr-section-heading > div {
  display: grid;
  gap: 4px;
}

.cr-section-heading strong {
  font-size: 15px;
}

.cr-section-heading small,
.cr-help,
.cr-field small,
.cr-empty,
.cr-empty-editor span {
  color: #858893;
  font-size: 12px;
  line-height: 1.55;
}

.cr-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: #e92c481a;
  color: #ff526d;
  font-size: 12px;
  font-weight: 800;
}

.cr-emoji-list {
  display: grid;
  gap: 9px;
}

.cr-emoji-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 9px;
}

.cr-emoji-row > span {
  color: #777984;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.cr-emoji-row input,
.cr-field input,
.cr-field select,
.cr-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #ffffff16;
  border-radius: 10px;
  outline: none;
  background: #0e0f14;
  color: #f3f2f5;
  font: inherit;
}

.cr-emoji-row input:focus,
.cr-field input:focus,
.cr-field select:focus,
.cr-field textarea:focus {
  border-color: #f139557d;
  box-shadow: 0 0 0 3px #f1395519;
}

.cr-emoji-row button,
.cr-inline-button {
  min-height: 38px;
  border: 1px solid #ffffff14;
  border-radius: 9px;
  background: #ffffff06;
  color: #b8bac2;
  cursor: pointer;
}

.cr-emoji-row button {
  font-size: 20px;
}

.cr-emoji-row button:hover:not(:disabled),
.cr-inline-button:hover:not(:disabled) {
  border-color: #ef375151;
  background: #ed2f4814;
  color: #ff7184;
}

.cr-inline-button {
  justify-self: start;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
}

.cr-inline-button small {
  margin-left: 6px;
  color: #777a84;
}

.cr-help {
  margin: -5px 0 0 37px;
}

.cr-help code {
  color: #d5b2b8;
}

.cr-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cr-choice,
.cr-event {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid #ffffff11;
  border-radius: 11px;
  background: #101117;
  cursor: pointer;
  transition: .16s ease;
}

.cr-choice:hover,
.cr-choice.selected,
.cr-event:hover,
.cr-event.selected {
  border-color: #ee34504e;
  background: #e92e4810;
}

.cr-choice > i,
.cr-event > i,
.cr-check-row > i {
  position: relative;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border: 1px solid #555862;
  border-radius: 6px;
  background: #0c0d12;
}

.cr-choice > i {
  border-radius: 50%;
}

.cr-choice.selected > i,
.cr-event.selected > i,
.cr-check-row input:checked + i {
  border-color: #ef3651;
  background: #e82d48;
}

.cr-choice.selected > i::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.cr-event.selected > i::after,
.cr-check-row input:checked + i::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.cr-choice > span,
.cr-event > span,
.cr-check-row > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cr-choice strong,
.cr-event strong,
.cr-check-row strong {
  color: #e7e6e9;
  font-size: 13px;
}

.cr-choice small,
.cr-event small,
.cr-check-row small {
  color: #7f818b;
  font-size: 11px;
  line-height: 1.45;
}

.cr-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cr-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cr-field > span {
  color: #c9c9cf;
  font-size: 12px;
  font-weight: 700;
}

.cr-input-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #ffffff16;
  border-radius: 10px;
  background: #0e0f14;
  overflow: hidden;
}

.cr-input-suffix input {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}

.cr-input-suffix b {
  padding: 0 13px;
  color: #777984;
  font-size: 11px;
}

.cr-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.cr-role {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #ffffff10;
  border-radius: 9px;
  background: #0f1015;
  color: #a7a9b1;
  cursor: pointer;
}

.cr-role:hover,
.cr-role.selected {
  border-color: #e9345047;
  background: #e92e4810;
  color: #f3f2f4;
}

.cr-role i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--role-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--role-color) 60%, transparent);
}

.cr-role span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}

.cr-compact-section {
  padding-block: 18px;
}

.cr-check-row {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
}

.cr-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  min-height: 76px;
  padding: 15px 22px;
  background: #101117;
}

.cr-status {
  flex: 1 1 auto;
  min-width: 0;
  color: #898b94;
  font-size: 12px;
  line-height: 1.45;
}

.cr-status.pending {
  color: #dfb85f;
}

.cr-status.success {
  color: #4bd39c;
}

.cr-status.error {
  color: #ff6d81;
}

.cr-button {
  min-height: 43px;
  padding: 9px 16px;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  color: #e9e8eb;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cr-button-primary {
  border-color: #eb2b47;
  background: linear-gradient(135deg, #ed2f4a, #ce1936);
  box-shadow: 0 9px 24px #e72b4631;
}

.cr-button-danger {
  border-color: #f1495e3d;
  background: #e6294010;
  color: #ff7081;
}

.cr-button:hover:not(:disabled) {
  filter: brightness(1.09);
  transform: translateY(-1px);
}

.cr-button:disabled,
.cr-inline-button:disabled,
.cr-emoji-row button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.cr-privacy-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #42ce9640;
  border-radius: 999px;
  background: #2bc78712;
  color: #58d9a5;
  font-size: 11px;
  font-weight: 750;
}

.cr-log-layout {
  display: grid;
  gap: 20px;
  padding: 24px 26px;
}

.cr-bundle-layout {
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
  min-height: 580px;
}

.cr-bundle-list {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 18px;
  border-right: 1px solid #ffffff0f;
  background: #101117;
}

.cr-bundle-list-heading,
.cr-bundle-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cr-bundle-list-heading {
  margin-bottom: 7px;
}

.cr-bundle-list-heading strong {
  font-size: 13px;
}

.cr-bundle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #ffffff10;
  border-radius: 10px;
  background: #14151c;
  color: #b8bac3;
  text-align: left;
  cursor: pointer;
}

.cr-bundle-row:hover,
.cr-bundle-row.active {
  border-color: #ef34504e;
  background: #e92e4810;
  color: #fff;
}

.cr-bundle-row > span,
.cr-bundle-form-head > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cr-bundle-row strong,
.cr-bundle-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-bundle-row strong {
  font-size: 12px;
}

.cr-bundle-row small,
.cr-bundle-form-head small {
  color: #7f818b;
  font-size: 10px;
}

.cr-bundle-row > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7b7d86;
}

.cr-bundle-row > i.online {
  background: #37d394;
  box-shadow: 0 0 9px #37d39470;
}

.cr-bundle-row > i.paused {
  background: #e4ad48;
}

.cr-bundle-form {
  display: grid;
  align-content: start;
  min-width: 0;
}

.cr-bundle-form-head,
.cr-log-fields,
.cr-log-all,
.cr-action-groups,
.cr-exempt-field {
  margin: 0;
  padding: 20px 22px;
  border-bottom: 1px solid #ffffff0d;
}

.cr-bundle-form-head > div > strong {
  font-size: 18px;
}

.cr-log-fields {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(220px, 1.2fr);
  gap: 12px;
}

.cr-log-all {
  background: #0f1015;
}

.cr-action-groups {
  display: grid;
  gap: 18px;
  transition: opacity .16s ease;
}

.cr-action-groups.disabled {
  opacity: .42;
}

.cr-action-groups fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cr-action-groups legend {
  margin-bottom: 9px;
  color: #ff526d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cr-exempt-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.cr-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.cr-event:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.cr-empty-editor {
  display: grid;
  gap: 8px;
  min-height: 190px;
  place-content: center;
  padding: 30px;
  text-align: center;
}

.cr-state-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-height: 280px;
  padding: 38px;
  place-content: center;
  text-align: center;
}

.cr-state-card small {
  max-width: 540px;
  color: #898b95;
  line-height: 1.55;
}

.cr-state-card .cr-button {
  margin-top: 10px;
}

.cr-state-error strong,
.cr-state-error small {
  color: #ff7083;
}

.cr-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #ffffff18;
  border-top-color: #ef3550;
  border-radius: 50%;
  animation: cr-spin .8s linear infinite;
}

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

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

  .cr-choice-grid {
    grid-template-columns: 1fr;
  }

  .cr-choice {
    min-height: 64px;
  }
}

@media (max-width: 920px) {
  .cr-workspace {
    grid-template-columns: 1fr;
  }

  .cr-channel-panel {
    position: static;
  }

  .cr-channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 300px;
  }

  .cr-event-grid,
  .cr-field-grid,
  .cr-log-fields {
    grid-template-columns: 1fr;
  }

  .cr-bundle-layout {
    grid-template-columns: 1fr;
  }

  .cr-bundle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid #ffffff0f;
  }

  .cr-bundle-list-heading,
  .cr-bundle-list .cr-empty {
    grid-column: 1 / -1;
  }

  .cr-event:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .cr-page {
    gap: 14px;
  }

  .cr-hero,
  .cr-card-heading,
  .cr-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cr-hero,
  .cr-card-heading,
  .cr-section,
  .cr-log-layout {
    padding: 20px;
  }

  .cr-hero-stat {
    min-width: 0;
  }

  .cr-channel-list {
    grid-template-columns: 1fr;
  }

  .cr-switch,
  .cr-privacy-badge {
    align-self: flex-start;
  }

  .cr-form-footer .cr-button {
    width: 100%;
  }

  .cr-role-grid {
    grid-template-columns: 1fr;
  }

  .cr-bundle-list {
    grid-template-columns: 1fr;
  }

  .cr-bundle-list-heading,
  .cr-bundle-form-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cr-bundle-form-head,
  .cr-log-fields,
  .cr-log-all,
  .cr-action-groups,
  .cr-exempt-field {
    padding: 18px;
  }

  .cr-help {
    margin-left: 0;
  }
}
