.eg-page,
.eg-settings-shortcuts {
  --eg-red: #ed293f;
  --eg-red-bright: #ff4a61;
  --eg-blue: #5865f2;
  --eg-green: #31d899;
  --eg-amber: #f0b84b;
  --eg-bg: #101117;
  --eg-card: #15161e;
  --eg-card-soft: #12131a;
  --eg-input: #0d0e13;
  --eg-border: #ffffff14;
  --eg-border-strong: #ffffff22;
  --eg-text: #f5f3f6;
  --eg-muted: #9799a4;
  --eg-dim: #6f727e;
  color: var(--eg-text);
}

.eg-sidebar-systems {
  display: grid;
}

.eg-sidebar-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8d8f99;
  text-align: left;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.eg-sidebar-item:hover,
.eg-sidebar-item:focus-visible {
  background: #ffffff09;
  color: #fff;
  outline: none;
}

.eg-sidebar-item.active {
  background: linear-gradient(90deg, #f02b422e, #f02b420a);
  color: #fff;
  box-shadow: inset 2px 0 #f02b42;
}

.sidebar nav .nav-item.eg-system-parent-open.active {
  background: transparent;
  color: #8d8f99;
  box-shadow: none;
}

.sidebar nav .nav-item.eg-system-parent-open.active:hover,
.sidebar nav .nav-item.eg-system-parent-open.active:focus-visible {
  background: #ffffff09;
  color: #fff;
}

.eg-sidebar-item svg {
  flex: 0 0 auto;
}

.eg-sidebar-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .eg-sidebar-item {
    justify-content: center;
    padding: 0;
  }

  .eg-sidebar-item span {
    display: none;
  }
}

@media (max-width: 820px) {
  .eg-sidebar-systems {
    display: contents;
  }

  .sidebar nav .eg-sidebar-item {
    position: relative;
    display: flex;
    flex: 0 0 88px;
    flex-direction: column;
    justify-content: center;
    width: 88px;
    min-height: 70px;
    gap: 5px;
    padding: 6px 5px;
    text-align: center;
  }

  .sidebar nav .eg-sidebar-item span {
    display: block;
    flex: none;
    width: 100%;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 450px) {
  .sidebar nav .eg-sidebar-item {
    flex-basis: 78px;
    width: 78px;
  }
}

.eg-page {
  display: grid;
  gap: 24px;
  width: min(100%, 1720px);
  margin: 24px auto 8px;
  font-size: 15px;
}

main.main-content.eg-system-active > :not(header.topbar):not(#sls-engagement-system):not(footer) {
  display: none !important;
}

.eg-settings-shortcuts {
  margin: 0 0 22px;
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid var(--eg-border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 10%, rgba(225, 29, 72, 0.13), transparent 34%),
    var(--eg-card);
}

.eg-shortcut-heading h2 {
  margin: 5px 0 7px;
  font-size: clamp(21px, 2vw, 30px);
}

.eg-shortcut-heading p {
  margin: 0;
  color: var(--eg-muted);
}

.eg-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 19px;
}

.eg-shortcut {
  display: flex;
  min-height: 162px;
  flex-direction: column;
  gap: 7px;
  padding: 17px;
  border: 1px solid var(--eg-border);
  border-radius: 15px;
  background: rgba(8, 9, 14, 0.72);
  color: var(--eg-text);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.eg-shortcut:hover,
.eg-shortcut:focus-visible {
  border-color: rgba(244, 63, 94, 0.7);
  background: rgba(38, 12, 22, 0.86);
  transform: translateY(-2px);
  outline: none;
}

.eg-shortcut > span {
  color: var(--eg-red-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.eg-shortcut > strong {
  font-size: 17px;
}

.eg-shortcut > small {
  flex: 1;
  color: var(--eg-muted);
  line-height: 1.45;
}

.eg-shortcut > b {
  color: #fb7185;
  font-size: 12px;
}

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

.eg-page button,
.eg-page input,
.eg-page select,
.eg-page textarea {
  font: inherit;
}

.eg-page button,
.eg-page a,
.eg-page input,
.eg-page select,
.eg-page textarea,
.eg-page summary {
  outline: none;
}

.eg-page button:focus-visible,
.eg-page a:focus-visible,
.eg-page input:focus-visible,
.eg-page select:focus-visible,
.eg-page textarea:focus-visible,
.eg-page summary:focus-visible {
  box-shadow: 0 0 0 3px #5865f245;
}

.eg-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  overflow: hidden;
  min-height: 224px;
  padding: 38px 40px;
  border: 1px solid var(--eg-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 89% 8%, #e92d493d, transparent 35%),
    radial-gradient(circle at 73% 112%, #5865f21f, transparent 36%),
    linear-gradient(128deg, #181922, #111218 74%);
  box-shadow: 0 24px 70px #00000032;
}

.eg-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
  content: "";
}

.eg-hero-copy {
  max-width: 970px;
}

.eg-kicker,
.eg-list-heading span,
.eg-card-heading > div > span {
  display: block;
  color: #ff536b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1.3;
}

.eg-hero h2,
.eg-section-heading h3 {
  margin: 10px 0 10px;
  color: var(--eg-text);
  font-size: clamp(31px, 3.4vw, 54px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.eg-hero h2 em {
  display: block;
  color: var(--eg-red-bright);
  font-style: normal;
}

.eg-hero p,
.eg-section-heading p,
.eg-card-heading p {
  margin: 0;
  color: var(--eg-muted);
  font-size: 15px;
  line-height: 1.65;
}

.eg-hero-badges {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  min-width: 240px;
}

.eg-hero-badges > span,
.eg-hero-badges > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid var(--eg-border-strong);
  border-radius: 12px;
  background: #0b0c11a6;
  color: #d9d9de;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.eg-hero-badges > span {
  justify-content: flex-start;
}

.eg-hero-badges > span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--eg-green);
  box-shadow: 0 0 13px #31d899a8;
}

.eg-hero-badges > a {
  border-color: #5865f23d;
  color: #c8ccff;
}

.eg-hero-badges > a:hover {
  border-color: #7180ff;
  background: #5865f21c;
  transform: translateY(-1px);
}

.eg-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--eg-border);
  border-radius: 17px;
  background: #0f1016;
}

.eg-tab {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 17px 18px 16px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--eg-muted);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.eg-tab:hover {
  border-color: var(--eg-border);
  background: #ffffff06;
  color: #c8c9cf;
}

.eg-tab.active {
  border-color: #ed293f44;
  background:
    radial-gradient(circle at 88% 25%, #ed293f25, transparent 40%),
    #1a141b;
  color: var(--eg-text);
  box-shadow: inset 0 -2px var(--eg-red);
}

.eg-tab > span {
  color: #ff536b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
}

.eg-tab > strong {
  font-size: 16px;
}

.eg-tab > small {
  overflow: hidden;
  color: var(--eg-dim);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.eg-content {
  min-width: 0;
}

.eg-form {
  display: grid;
  gap: 20px;
}

.eg-form.busy {
  opacity: .72;
}

.eg-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 8px 3px 4px;
}

.eg-section-heading > div:first-child {
  max-width: 980px;
}

.eg-section-heading h3 {
  max-width: 1040px;
  font-size: clamp(28px, 3vw, 43px);
}

.eg-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.eg-grid {
  display: grid;
  align-items: start;
  gap: 20px;
  min-width: 0;
}

.eg-grid-two {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
}

.eg-grid-level-bottom {
  grid-template-columns: minmax(360px, .72fr) minmax(0, 1.28fr);
}

.eg-grid-status {
  grid-template-columns: minmax(0, 1.3fr) minmax(350px, .7fr);
}

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

.eg-card,
.eg-state-card,
.eg-giveaway-list {
  min-width: 0;
  border: 1px solid var(--eg-border);
  border-radius: 17px;
  background: var(--eg-card);
  box-shadow: 0 17px 52px #00000020;
}

.eg-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.eg-card-grow {
  min-height: 560px;
}

.eg-card-heading,
.eg-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eg-card-heading > div,
.eg-list-heading > div {
  display: grid;
  gap: 5px;
}

.eg-card-heading strong,
.eg-list-heading strong {
  font-size: 18px;
  line-height: 1.25;
}

.eg-card-heading p {
  max-width: 760px;
  font-size: 12px;
}

.eg-count,
.eg-list-heading > b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 38px;
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 10px;
  background: #ed293f17;
  color: #ff536b;
  font-size: 11px;
}

.eg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--eg-border-strong);
  border-radius: 11px;
  background: #1a1b23;
  color: #e8e7ea;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.eg-button:hover:not(:disabled) {
  border-color: #ffffff3b;
  transform: translateY(-1px);
}

.eg-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.eg-button-primary {
  min-width: 190px;
  border-color: #ed293f;
  background: linear-gradient(135deg, #f02b44, #cb1731);
  color: #fff;
  box-shadow: 0 11px 27px #ed293f28;
}

.eg-button-primary:hover:not(:disabled) {
  border-color: #ff6175;
  background: linear-gradient(135deg, #ff4058, #d71834);
  box-shadow: 0 13px 32px #ed293f3c;
}

.eg-button-secondary {
  background: #171820;
}

.eg-button-small {
  min-height: 37px;
  padding: 7px 12px;
  font-size: 11px;
}

.eg-button-wide {
  width: 100%;
}

.eg-form-footer {
  position: sticky;
  z-index: 5;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 16px 14px 21px;
  border: 1px solid #ffffff18;
  border-radius: 15px;
  background: #101117e8;
  box-shadow: 0 18px 50px #0000005c;
  backdrop-filter: blur(18px);
}

.eg-giveaway-footer {
  position: static;
}

.eg-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.eg-notice {
  min-width: 0;
  color: var(--eg-muted);
  font-size: 13px;
  line-height: 1.45;
}

.eg-notice.pending {
  color: #c8ccff;
}

.eg-notice.success {
  color: #78e9bd;
}

.eg-notice.error {
  color: #ff7487;
}

.eg-switch,
.eg-mini-switch {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--eg-border-strong);
  border-radius: 12px;
  background: #101117c7;
  cursor: pointer;
}

.eg-switch input,
.eg-mini-switch input,
.eg-factor-toggle input,
.eg-role-choice input,
.eg-compact-choice input,
.eg-check-row input,
.eg-inline-check input,
.eg-theme-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.eg-switch > span,
.eg-mini-switch > span,
.eg-factor-toggle > span {
  position: relative;
  width: 42px;
  height: 23px;
  border-radius: 999px;
  background: #343640;
  transition: background .18s ease;
}

.eg-switch > span::after,
.eg-mini-switch > span::after,
.eg-factor-toggle > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #b4b5bc;
  content: "";
  transition: transform .18s ease, background .18s ease;
}

.eg-switch input:checked + span,
.eg-mini-switch input:checked + span,
.eg-factor-toggle input:checked + span {
  background: var(--eg-red);
}

.eg-switch input:checked + span::after,
.eg-mini-switch input:checked + span::after,
.eg-factor-toggle input:checked + span::after {
  background: #fff;
  transform: translateX(19px);
}

.eg-switch b {
  max-width: 150px;
  font-size: 12px;
  line-height: 1.35;
}

.eg-mini-switch {
  min-height: 38px;
  padding: 6px 8px;
}

.eg-picker {
  display: grid;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #ffffff0f;
  border-radius: 13px;
  background: var(--eg-card-soft);
}

.eg-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin: 10px;
  padding: 0 13px;
  border: 1px solid var(--eg-border);
  border-radius: 10px;
  background: var(--eg-input);
  color: var(--eg-dim);
}

.eg-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--eg-text);
  font-size: 13px;
}

.eg-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 7px;
  max-height: 380px;
  padding: 0 10px 10px;
  overflow: auto;
}

.eg-giveaway-editor .eg-role-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.eg-role-choice {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid var(--eg-border);
  border-radius: 9px;
  background: #14151c;
  color: #a5a7b0;
  cursor: pointer;
}

.eg-role-choice:hover {
  border-color: #ffffff2f;
  color: #d5d5da;
}

.eg-role-choice.selected {
  border-color: #ed293f63;
  background: #ed293f11;
  color: #fff;
}

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

.eg-role-choice > span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eg-role-choice > b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #3a3b44;
  color: transparent;
  font-size: 10px;
}

.eg-role-choice.selected > b {
  background: var(--eg-red);
  color: #fff;
}

.eg-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 23px;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 13px 14px;
  border: 1px solid var(--eg-border);
  border-radius: 11px;
  background: var(--eg-card-soft);
  cursor: pointer;
}

.eg-check-row > span {
  display: grid;
  gap: 4px;
}

.eg-check-row strong {
  font-size: 13px;
}

.eg-check-row small {
  color: var(--eg-dim);
  font-size: 10px;
  line-height: 1.45;
}

.eg-check-row > i {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: #343640;
  color: transparent;
  font-size: 12px;
  font-style: normal;
}

.eg-check-row:has(input:checked) {
  border-color: #ed293f4c;
  background: #ed293f0d;
}

.eg-check-row input:checked ~ i {
  background: var(--eg-red);
  color: #fff;
}

.eg-check-compact {
  min-height: 56px;
}

.eg-info-box {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid #5865f22e;
  border-radius: 11px;
  background: #5865f20d;
}

.eg-info-box b {
  color: #c8ccff;
  font-size: 12px;
}

.eg-info-box span {
  color: #8489ad;
  font-size: 10px;
  line-height: 1.55;
}

.eg-job {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid #31d8992e;
  border-radius: 11px;
  background: #31d8990b;
}

.eg-job-idle {
  border-color: var(--eg-border);
  background: var(--eg-card-soft);
}

.eg-job-error {
  border-color: #ed293f4a;
  background: #ed293f0c;
}

.eg-job > strong {
  font-size: 12px;
}

.eg-job > span,
.eg-job-message {
  color: var(--eg-dim);
  font-size: 10px;
  line-height: 1.5;
}

.eg-job-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.eg-job-heading span {
  color: #73e4b8;
  font-weight: 800;
}

.eg-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #08090d;
}

.eg-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #27b987, #53e5b3);
  box-shadow: 0 0 15px #31d8996b;
  transition: width .25s ease;
}

.eg-job-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.eg-job-stats span {
  padding: 7px 8px;
  border-radius: 7px;
  background: #090a0f70;
  color: #858893;
  font-size: 9px;
}

.eg-job-stats b {
  color: #dcdce0;
  font-size: 11px;
}

.eg-job-stats .danger,
.eg-job-stats .danger b {
  color: #ff7184;
}

.eg-level-history-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: 18px;
}

.eg-level-history-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.eg-level-history .eg-job {
  align-content: start;
  min-height: 100%;
}

.eg-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.eg-field-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.eg-field > span,
.eg-theme-field > legend {
  color: #b4b5bd;
  font-size: 10px;
  font-weight: 750;
}

.eg-field input,
.eg-field select,
.eg-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--eg-border);
  border-radius: 9px;
  background: var(--eg-input);
  color: var(--eg-text);
  font-size: 12px;
}

.eg-field textarea {
  min-height: 106px;
  line-height: 1.55;
  resize: vertical;
}

.eg-field input:hover,
.eg-field select:hover,
.eg-field textarea:hover {
  border-color: #ffffff2a;
}

.eg-field input:focus,
.eg-field select:focus,
.eg-field textarea:focus {
  border-color: #5865f286;
}

.eg-field input::placeholder,
.eg-field textarea::placeholder {
  color: #555862;
}

.eg-exclusion-field {
  display: grid;
  gap: 7px;
}

.eg-exclusion-field textarea {
  min-height: 132px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.eg-exclusion-field small {
  color: #727580;
  font-size: 9px;
  line-height: 1.5;
}

.eg-field select {
  color-scheme: dark;
}

.eg-field-small {
  min-width: 115px;
}

.eg-field-narrow {
  max-width: 360px;
}

.eg-field-span-two {
  grid-column: span 2;
}

.eg-check-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.eg-inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--eg-border);
  border-radius: 9px;
  background: var(--eg-card-soft);
  color: #a4a6af;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.eg-inline-check > i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #33353e;
  color: transparent;
  font-size: 9px;
  font-style: normal;
}

.eg-inline-check:has(input:checked) {
  border-color: #ed293f51;
  color: #fff;
}

.eg-inline-check input:checked + i {
  background: var(--eg-red);
  color: #fff;
}

.eg-details {
  overflow: hidden;
  border: 1px solid var(--eg-border);
  border-radius: 11px;
  background: var(--eg-card-soft);
}

.eg-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 11px 13px;
  color: #b5b7bf;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.eg-details summary::-webkit-details-marker {
  display: none;
}

.eg-details summary::after {
  margin-left: auto;
  color: #777985;
  content: "⌄";
}

.eg-details[open] summary {
  border-bottom: 1px solid var(--eg-border);
}

.eg-details[open] summary::after {
  transform: rotate(180deg);
}

.eg-details summary b {
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ed293f16;
  color: #ff566e;
  font-size: 9px;
}

.eg-details-body {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.eg-details-body + .eg-details-body {
  padding-top: 0;
}

.eg-details-body > strong {
  color: #a8aab4;
  font-size: 10px;
}

.eg-details .eg-role-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 260px;
}

.eg-compact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 210px;
  overflow: auto;
}

.eg-compact-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--eg-border);
  border-radius: 8px;
  background: #101117;
  color: #90929c;
  cursor: pointer;
}

.eg-compact-choice span {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eg-compact-choice i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #30323b;
  color: transparent;
  font-size: 9px;
  font-style: normal;
}

.eg-compact-choice.selected {
  border-color: #ed293f4a;
  color: #fff;
}

.eg-compact-choice.selected i {
  background: var(--eg-red);
  color: #fff;
}

.eg-curve {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr) auto minmax(110px, 1fr);
  align-items: end;
  gap: 8px;
}

.eg-curve > b {
  padding-bottom: 13px;
  color: #686b76;
  font-size: 12px;
}

.eg-level-preview-control {
  max-width: 240px;
}

.eg-level-preview-help {
  margin-top: -10px;
  color: var(--eg-dim);
  font-size: 10px;
  line-height: 1.5;
}

.eg-level-preview {
  display: grid;
  gap: 12px;
}

.eg-level-preview-metrics {
  display: grid;
  grid-template-columns: minmax(120px, .55fr) repeat(2, minmax(180px, 1fr));
  gap: 9px;
}

.eg-level-preview-metric {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 78px;
  padding: 12px 13px;
  border: 1px solid #5865f22e;
  border-radius: 11px;
  background: linear-gradient(145deg, #5865f211, #0d0e1300);
}

.eg-level-preview-metric span {
  color: var(--eg-dim);
  font-size: 9px;
  line-height: 1.4;
}

.eg-level-preview-metric strong {
  color: #daddff;
  font-size: 18px;
  line-height: 1.2;
}

.eg-level-preview-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--eg-border);
  border-radius: 11px;
  background: #0d0e13;
}

.eg-level-preview-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: #a9abb5;
  font-size: 10px;
}

.eg-level-preview-table th,
.eg-level-preview-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--eg-border);
  text-align: right;
  white-space: nowrap;
}

.eg-level-preview-table th:first-child {
  text-align: left;
}

.eg-level-preview-table thead th {
  background: #14151c;
  color: #777a86;
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eg-level-preview-table tbody tr:last-child > * {
  border-bottom: 0;
}

.eg-level-preview-table tbody tr.selected > * {
  background: #5865f216;
  color: #dce0ff;
  font-weight: 800;
}

.eg-curve-details .eg-details-body {
  gap: 14px;
}

.eg-formula-preview {
  padding: 12px 13px;
  border-radius: 9px;
  background: #0d0e13;
  color: #727580;
  font-size: 10px;
}

.eg-formula-preview strong {
  color: #b7bac5;
}

.eg-inline-fields {
  display: grid;
  grid-template-columns: minmax(200px, .65fr) minmax(280px, 1.35fr);
  gap: 12px;
}

.eg-repeat-list {
  display: grid;
  gap: 9px;
}

.eg-repeat-row {
  display: grid;
  grid-template-columns: 130px minmax(220px, 1fr) 38px;
  align-items: end;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--eg-border);
  border-radius: 11px;
  background: var(--eg-card-soft);
}

.eg-boost-row {
  grid-template-columns: minmax(220px, 1fr) 125px minmax(200px, .8fr) 38px;
}

.eg-icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 3px;
  border: 1px solid #ed293f33;
  border-radius: 9px;
  background: #ed293f0d;
  color: #ff6177;
  font-size: 22px;
  cursor: pointer;
}

.eg-icon-button:hover {
  border-color: #ed293f77;
  background: #ed293f18;
}

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

.eg-giveaway-list {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  padding: 15px;
  overflow: auto;
}

.eg-list-heading {
  align-items: center;
  padding: 4px 3px 14px;
}

.eg-new-button,
.eg-giveaway-item {
  display: grid;
  align-items: center;
  width: 100%;
  border: 1px solid var(--eg-border);
  border-radius: 11px;
  background: var(--eg-card-soft);
  color: #a6a8b1;
  text-align: left;
  cursor: pointer;
}

.eg-new-button {
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
}

.eg-new-button > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ed293f19;
  color: #ff536b;
  font-size: 19px;
}

.eg-new-button strong {
  color: #eeeef1;
  font-size: 12px;
}

.eg-new-button small {
  color: var(--eg-dim);
  font-size: 9px;
}

.eg-new-button:hover,
.eg-new-button.active {
  border-color: #ed293f58;
  background: #ed293f0d;
}

.eg-giveaway-items {
  display: grid;
  gap: 7px;
}

.eg-giveaway-item {
  grid-template-columns: 5px minmax(0, 1fr) 16px;
  gap: 10px;
  min-height: 66px;
  padding: 10px;
}

.eg-giveaway-item > i {
  width: 5px;
  height: 38px;
  border-radius: 999px;
  background: var(--eg-red);
}

.eg-giveaway-item > i.blue {
  background: var(--eg-blue);
}

.eg-giveaway-item > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.eg-giveaway-item strong {
  overflow: hidden;
  color: #d7d7dc;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eg-giveaway-item small {
  color: var(--eg-dim);
  font-size: 9px;
}

.eg-giveaway-item > b {
  color: #555863;
}

.eg-giveaway-item:hover,
.eg-giveaway-item.active {
  border-color: #ffffff2f;
  background: #1a1b23;
}

.eg-giveaway-item.active {
  border-color: #ed293f55;
}

.eg-giveaway-editor {
  min-width: 0;
}

.eg-editor-heading {
  padding-top: 4px;
}

.eg-editor-heading h3 {
  font-size: clamp(26px, 2.5vw, 39px);
}

.eg-theme-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid #ed293f3d;
  border-radius: 12px;
  background: #ed293f0d;
  color: #ff8292;
  font-size: 11px;
  font-weight: 750;
}

.eg-theme-preview.blue {
  border-color: #5865f25c;
  background: #5865f210;
  color: #a9b1ff;
}

.eg-theme-preview i {
  width: 13px;
  height: 13px;
  border-radius: 5px;
  background: var(--eg-red);
  box-shadow: 0 0 17px #ed293f87;
}

.eg-theme-preview.blue i {
  background: var(--eg-blue);
  box-shadow: 0 0 17px #5865f287;
}

.eg-theme-field {
  display: flex;
  align-items: end;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.eg-theme-field legend {
  width: 100%;
  margin-bottom: 7px;
}

.eg-theme-choice {
  display: flex;
  flex: 1 1 150px;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--eg-border);
  border-radius: 9px;
  background: var(--eg-input);
  color: #989aa5;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.eg-theme-choice i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--eg-red);
}

.eg-theme-choice.blue i {
  background: var(--eg-blue);
}

.eg-theme-choice.selected.red {
  border-color: #ed293f6b;
  background: #ed293f11;
  color: #ff9aa7;
}

.eg-theme-choice.selected.blue {
  border-color: #5865f270;
  background: #5865f212;
  color: #bbc0ff;
}

.eg-factor-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--eg-border);
  border-radius: 12px;
}

.eg-factor-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 92px 120px 120px 92px 120px;
  align-items: end;
  gap: 9px;
  padding: 12px;
  background: var(--eg-card-soft);
}

.eg-factor-row + .eg-factor-row {
  border-top: 1px solid var(--eg-border);
}

.eg-factor-copy {
  align-self: center;
  display: grid;
  gap: 4px;
}

.eg-factor-copy strong {
  font-size: 12px;
}

.eg-factor-copy small {
  color: var(--eg-dim);
  font-size: 9px;
  line-height: 1.4;
}

.eg-factor-row-tiered {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: start;
  padding: 16px;
  background:
    radial-gradient(circle at 0 0, #ed293f14, transparent 34%),
    var(--eg-card-soft);
  box-shadow: inset 3px 0 #ed293f8f;
}

.eg-factor-row-tiered > .eg-factor-copy {
  align-self: start;
  gap: 5px;
  padding: 3px 0;
}

.eg-factor-row-tiered > .eg-factor-copy strong {
  color: #f1f1f4;
  font-size: 14px;
}

.eg-factor-copy em {
  max-width: 680px;
  color: #8f929e;
  font-size: 10px;
  font-style: normal;
  line-height: 1.55;
}

.eg-factor-tier-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.eg-factor-tier-builder {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  margin-top: 3px;
  padding: 13px;
  border: 1px solid #ffffff18;
  border-radius: 11px;
  background: #0d0e13b8;
}

.eg-factor-tier-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eg-factor-tier-heading > div {
  display: grid;
  gap: 3px;
}

.eg-factor-tier-heading strong,
.eg-factor-tier-requirement strong {
  color: #d8d9df;
  font-size: 11px;
}

.eg-factor-tier-heading small,
.eg-factor-tier-requirement small {
  color: var(--eg-dim);
  font-size: 9px;
  line-height: 1.45;
}

.eg-factor-tier-list {
  gap: 7px;
}

.eg-factor-tier-row {
  grid-template-columns: minmax(170px, .7fr) minmax(150px, .55fr) 38px;
  padding: 9px;
  border-color: #ffffff14;
  background: #15161d;
}

.eg-factor-tier-requirement {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 92px 120px;
  grid-column: 1 / -1;
  align-items: end;
  gap: 9px;
  padding-top: 4px;
}

.eg-factor-tier-requirement > div {
  align-self: center;
  display: grid;
  gap: 3px;
}

.eg-factor-toggle {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--eg-border);
  border-radius: 9px;
  background: var(--eg-input);
  cursor: pointer;
}

.eg-factor-toggle > span {
  width: 33px;
  height: 19px;
}

.eg-factor-toggle > span::after {
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
}

.eg-factor-toggle input:checked + span::after {
  transform: translateX(14px);
}

.eg-factor-toggle b {
  color: #9d9fa9;
  font-size: 9px;
}

.eg-state-card {
  display: grid;
  place-items: center;
  gap: 9px;
  min-height: 280px;
  padding: 36px;
  text-align: center;
}

.eg-state-card strong {
  font-size: 17px;
}

.eg-state-card small {
  max-width: 560px;
  color: var(--eg-muted);
  line-height: 1.55;
}

.eg-state-error {
  border-color: #ed293f40;
}

.eg-state-error strong {
  color: #ff6479;
}

.eg-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #ed293f20;
  border-top-color: var(--eg-red);
  border-radius: 50%;
  animation: eg-spin .8s linear infinite;
}

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

.eg-empty {
  grid-column: 1 / -1;
  padding: 20px;
  color: var(--eg-dim);
  font-size: 11px;
  text-align: center;
}

.eg-empty-list {
  border: 1px dashed var(--eg-border-strong);
  border-radius: 10px;
}

.eg-status-card {
  align-content: start;
}

.eg-status-preview {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 15px;
  border: 1px solid var(--eg-border);
  border-radius: 12px;
  background: var(--eg-card-soft);
}

.eg-status-preview > div {
  display: grid;
  gap: 5px;
}

.eg-status-preview strong {
  font-size: 13px;
}

.eg-status-preview small,
.eg-status-preview time {
  color: var(--eg-dim);
  font-size: 10px;
  line-height: 1.4;
}

.eg-status-preview time {
  grid-column: 2;
}

.eg-status-orb {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border: 12px solid #ed293f1e;
  border-radius: 50%;
  background: var(--eg-red);
  box-shadow: 0 0 22px #ed293f4f;
}

.eg-status-online .eg-status-orb {
  border-color: #31d8991f;
  background: var(--eg-green);
  box-shadow: 0 0 22px #31d89952;
}

.eg-invite-dashboard {
  display: grid;
  gap: 20px;
}

.eg-invite-public-link {
  flex: 0 0 auto;
  border-color: #5865f24d;
  color: #d7d9ff;
}

.eg-invite-status {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 13px 17px;
  border: 1px solid var(--eg-border);
  border-radius: 14px;
  background: linear-gradient(90deg, #ffffff08, #ffffff02);
}

.eg-invite-status > i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--eg-dim);
  box-shadow: 0 0 14px #6f727e70;
}

.eg-invite-status > span {
  display: grid;
  gap: 2px;
}

.eg-invite-status strong {
  font-size: 13px;
}

.eg-invite-status small,
.eg-invite-status time {
  color: var(--eg-muted);
  font-size: 10px;
  line-height: 1.45;
}

.eg-invite-status time {
  color: var(--eg-dim);
  text-align: right;
}

.eg-invite-status-ready {
  border-color: #31d8993a;
  background: linear-gradient(90deg, #31d89912, #31d89903);
}

.eg-invite-status-ready > i {
  background: var(--eg-green);
  box-shadow: 0 0 16px #31d899a6;
}

.eg-invite-status-warning {
  border-color: #f0b84b42;
  background: linear-gradient(90deg, #f0b84b13, #f0b84b03);
}

.eg-invite-status-warning > i {
  background: var(--eg-amber);
  box-shadow: 0 0 16px #f0b84b8c;
}

.eg-invite-status-danger {
  border-color: #ed293f4a;
  background: linear-gradient(90deg, #ed293f16, #ed293f03);
}

.eg-invite-status-danger > i {
  background: var(--eg-red-bright);
  box-shadow: 0 0 16px #ed293fa1;
}

.eg-invite-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.eg-invite-metrics > article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid var(--eg-border);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, #ed293f16, transparent 52%),
    var(--eg-card-soft);
}

.eg-invite-metrics span,
.eg-invite-metrics small {
  color: var(--eg-muted);
  font-size: 10px;
}

.eg-invite-metrics span {
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eg-invite-metrics strong {
  color: var(--eg-text);
  font-size: 29px;
  line-height: 1.15;
}

.eg-invite-metrics small {
  overflow: hidden;
  color: var(--eg-dim);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eg-invite-overview {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.eg-invite-leaderboard,
.eg-invite-relations {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eg-invite-leaderboard > li {
  display: grid;
  grid-template-columns: 28px 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #0f1016;
}

.eg-invite-leaderboard > li:first-child {
  border-color: #f0b84b39;
  background: linear-gradient(90deg, #f0b84b10, #0f1016 52%);
}

.eg-invite-rank {
  color: var(--eg-dim);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.eg-invite-leaderboard > li:first-child .eg-invite-rank {
  color: var(--eg-amber);
}

.eg-invite-initial {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #ed293f33;
  border-radius: 50%;
  background: linear-gradient(145deg, #ed293f2c, #5865f21a);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.eg-invite-leader-copy,
.eg-invite-leader-total,
.eg-invite-member > span:last-child,
.eg-invite-inviter,
.eg-invite-code {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.eg-invite-leader-copy strong,
.eg-invite-member strong,
.eg-invite-inviter strong {
  overflow: hidden;
  color: #eeeef1;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eg-invite-leader-copy small,
.eg-invite-member small,
.eg-invite-inviter small,
.eg-invite-code small {
  overflow: hidden;
  color: var(--eg-dim);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eg-invite-leader-total {
  justify-items: end;
}

.eg-invite-leader-total b {
  color: #fff;
  font-size: 17px;
}

.eg-invite-leader-total small {
  color: var(--eg-dim);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eg-invite-leader-avatar {
  width: 39px;
  height: 39px;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  background: linear-gradient(145deg, #ed293f2c, #5865f21a);
  object-fit: cover;
}

.eg-invite-avatar {
  width: 39px;
  height: 39px;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  background: linear-gradient(145deg, #ed293f2c, #5865f21a);
  object-fit: cover;
}

.eg-invite-leader-id {
  color: var(--eg-dim);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  overflow-wrap: anywhere;
}

.eg-invite-leader-copy > small {
  overflow: visible;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.eg-invite-leader-codes {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  min-width: 0;
  gap: 6px;
  flex-wrap: wrap;
}

.eg-invite-code-chip,
.eg-invite-leader-codes > code {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 25px;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #ed293f32;
  border-radius: 8px;
  background: #ed293f0c;
  color: #d9a7af;
  font-size: 9px;
  line-height: 1.35;
}

.eg-invite-code-chip code,
.eg-invite-leader-codes > code {
  color: #f0b6bf;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}

.eg-invite-code-chip small {
  color: var(--eg-dim);
  font-size: 8px;
}

.eg-invite-code-chip b {
  min-width: 18px;
  margin-left: 2px;
  padding-left: 6px;
  border-left: 1px solid #ffffff17;
  color: #fff;
  font-size: 9px;
  text-align: right;
}

.eg-invite-quality dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.eg-invite-quality dl > div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--eg-border);
  border-radius: 11px;
  background: #0f1016;
}

.eg-invite-quality dt {
  color: var(--eg-dim);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eg-invite-quality dd {
  margin: 0;
  color: var(--eg-text);
  font-size: 22px;
  font-weight: 850;
}

.eg-invite-quality > p {
  margin: 0;
  padding: 13px;
  border-left: 2px solid #5865f2a3;
  background: #5865f20b;
  color: var(--eg-muted);
  font-size: 10px;
  line-height: 1.65;
}

.eg-invite-relationships {
  overflow: hidden;
}

.eg-invite-relationships > .eg-card-heading {
  align-items: flex-end;
}

.eg-invite-search {
  display: flex;
  align-items: center;
  flex: 0 1 330px;
  min-width: 240px;
  min-height: 42px;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--eg-border-strong);
  border-radius: 11px;
  background: var(--eg-input);
  color: var(--eg-dim);
}

.eg-invite-search:focus-within {
  border-color: #ed293f80;
  box-shadow: 0 0 0 3px #ed293f12;
}

.eg-invite-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--eg-text);
  font: inherit;
  font-size: 11px;
}

.eg-invite-search input::placeholder {
  color: #676a75;
}

.eg-invite-relations {
  max-height: 680px;
  overflow: auto;
  scrollbar-color: #343642 transparent;
  scrollbar-width: thin;
}

.eg-invite-relation {
  display: grid;
  grid-template-columns: minmax(160px, 1.05fr) 20px minmax(150px, .9fr) minmax(165px, .95fr) 92px 116px;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--eg-border);
  border-radius: 12px;
  background: #101117;
}

.eg-invite-relation:hover {
  border-color: #ffffff24;
  background: #12131a;
}

.eg-invite-relation[hidden],
.eg-invite-no-results[hidden] {
  display: none;
}

.eg-invite-member {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.eg-invite-arrow {
  color: #4e515c;
  font-size: 15px;
  text-align: center;
}

.eg-invite-code code {
  overflow: hidden;
  color: #f0b6bf;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eg-invite-candidates {
  color: #aaadba !important;
}

.eg-invite-attribution {
  justify-self: start;
  padding: 6px 8px;
  border: 1px solid var(--eg-border);
  border-radius: 999px;
  background: #ffffff08;
  color: #b7b9c2;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.eg-invite-attribution-exact {
  border-color: #31d8994a;
  background: #31d89912;
  color: #72e8bc;
}

.eg-invite-attribution-likely {
  border-color: #5865f255;
  background: #5865f215;
  color: #aeb5ff;
}

.eg-invite-attribution-vanity,
.eg-invite-attribution-ambiguous {
  border-color: #f0b84b4f;
  background: #f0b84b13;
  color: #f7ce7a;
}

.eg-invite-attribution-unknown {
  color: #979aa6;
}

.eg-invite-relation > time {
  color: var(--eg-dim);
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
}

.eg-invite-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 110px;
  padding: 20px;
  border: 1px dashed var(--eg-border-strong);
  border-radius: 12px;
  color: var(--eg-muted);
  text-align: center;
}

.eg-invite-empty strong {
  color: #d7d7dd;
  font-size: 12px;
}

.eg-invite-empty span,
.eg-invite-no-results {
  color: var(--eg-dim);
  font-size: 10px;
  line-height: 1.5;
}

.eg-invite-no-results {
  margin: 0;
  padding: 16px;
  text-align: center;
}

/* Protected Invite Tracker: recent member -> invite -> inviter relationships. */
.eg-invite-recent {
  display: grid;
  min-width: 0;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.eg-invite-recent > .eg-card-heading,
.eg-invite-recent-head {
  align-items: flex-end;
  padding: 22px;
  border-bottom: 1px solid var(--eg-border);
  background: linear-gradient(180deg, #ffffff04, transparent);
}

.eg-invite-recent-copy {
  min-width: 0;
}

.eg-invite-table-wrap {
  max-width: 100%;
  max-height: min(72vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #3b3e49 transparent;
  scrollbar-width: thin;
}

.eg-invite-table-wrap:focus-visible {
  outline: 2px solid #ed293fa6;
  outline-offset: -3px;
}

.eg-invite-table {
  width: 100%;
  min-width: 920px;
  border-spacing: 0;
  color: var(--eg-text);
  font-variant-numeric: tabular-nums;
  table-layout: fixed;
}

.eg-invite-table th,
.eg-invite-table td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

.eg-invite-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--eg-border-strong);
  background: #15161ef2;
  color: var(--eg-dim);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.eg-invite-table td {
  border-bottom: 1px solid var(--eg-border);
  background: #101117;
  color: var(--eg-muted);
  font-size: 11px;
  transition: background 150ms ease;
}

.eg-invite-table tbody tr:last-child td {
  border-bottom: 0;
}

.eg-invite-table tbody tr:hover td,
.eg-invite-table tbody tr:focus-within td {
  background: #14151d;
}

.eg-invite-table tbody tr[hidden],
.eg-invite-table-empty[hidden] {
  display: none;
}

.eg-invite-table tbody.eg-invite-relations {
  display: table-row-group;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.eg-invite-table .eg-invite-relation {
  display: table-row;
  min-height: 0;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.eg-invite-table .eg-invite-identity.eg-invite-inviter,
.eg-invite-table .eg-invite-method.eg-invite-code {
  padding-left: 0;
}

.eg-invite-table td .eg-invite-attribution {
  grid-column: auto;
  grid-row: auto;
  justify-self: start;
}

.eg-invite-table th:first-child {
  width: 25%;
}

.eg-invite-table th:nth-child(2) {
  width: 15%;
}

.eg-invite-table th:nth-child(3) {
  width: 20%;
}

.eg-invite-table th:nth-child(4) {
  width: 19%;
}

.eg-invite-table th:nth-child(5) {
  width: 10%;
}

.eg-invite-table th:nth-child(6) {
  width: 11%;
}

.eg-invite-identity {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.eg-invite-identity > img,
.eg-invite-identity > .eg-invite-avatar,
.eg-invite-identity-avatar,
.eg-invite-identity > .eg-invite-identity-fallback {
  grid-column: 1;
  grid-row: 1;
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  background: linear-gradient(145deg, #ed293f2c, #5865f21a);
  object-fit: cover;
}

.eg-invite-identity-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.eg-invite-identity > span:last-child,
.eg-invite-identity-copy {
  display: grid;
  grid-column: 2;
  min-width: 0;
  gap: 3px;
}

.eg-invite-identity > .eg-invite-initial {
  grid-column: 1;
  grid-row: 1;
}

.eg-invite-identity strong {
  color: #f1f1f4;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.eg-invite-identity small {
  overflow: hidden;
  color: var(--eg-dim);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eg-invite-method {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.eg-invite-method code {
  display: block;
  max-width: 100%;
  color: #f0b6bf;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.eg-invite-method small,
.eg-invite-method-channel,
.eg-invite-joined small {
  overflow: hidden;
  color: var(--eg-dim);
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eg-invite-joined time,
.eg-invite-joined > small {
  display: block;
}

.eg-invite-joined time {
  color: #d8d8de;
  font-size: 10px;
  line-height: 1.45;
}

.eg-invite-table td:nth-child(2) > time {
  display: block;
  color: #d8d8de;
  font-size: 10px;
  line-height: 1.45;
}

.eg-invite-table td:nth-child(2) > small,
.eg-invite-table td:nth-child(5) > small {
  display: block;
  margin-top: 4px;
  color: var(--eg-dim);
  font-size: 9px;
  line-height: 1.45;
}

.eg-invite-status-pill,
.eg-invite-membership {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--eg-border);
  border-radius: 999px;
  background: #ffffff08;
  color: #b7b9c2;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.eg-invite-status-pill::before,
.eg-invite-membership > i {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.eg-invite-status-active,
.eg-invite-membership-active {
  border-color: #31d8994a;
  background: #31d89912;
  color: #72e8bc;
}

.eg-invite-status-left,
.eg-invite-membership-left {
  border-color: #ed293f42;
  background: #ed293f10;
  color: #f28b98;
}

.eg-invite-status-bot {
  border-color: #5865f255;
  background: #5865f215;
  color: #aeb5ff;
}

.eg-invite-account-type {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 7px;
  border: 1px solid #5865f24a;
  border-radius: 999px;
  background: #5865f212;
  color: #aeb5ff;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
}

.eg-invite-table-empty {
  padding: 32px 20px;
  color: var(--eg-dim);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 980px) {
  .eg-invite-recent > .eg-card-heading,
  .eg-invite-recent-head {
    align-items: stretch;
    flex-direction: column;
  }

  .eg-invite-table {
    min-width: 780px;
  }
}

@media (max-width: 760px) {
  .eg-invite-table-wrap {
    max-height: none;
    overflow: visible;
  }

  .eg-invite-table {
    display: block;
    min-width: 0;
    table-layout: auto;
  }

  .eg-invite-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .eg-invite-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .eg-invite-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    overflow: hidden;
    border: 1px solid var(--eg-border);
    border-radius: 13px;
    background: #101117;
  }

  .eg-invite-table tbody.eg-invite-relations,
  .eg-invite-table .eg-invite-relation {
    display: grid;
  }

  .eg-invite-table td {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: 6px;
    padding: 12px;
    border-bottom: 1px solid var(--eg-border);
    background: transparent;
  }

  .eg-invite-table td::before {
    color: var(--eg-dim);
    content: attr(data-label);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .eg-invite-table tbody tr:hover td,
  .eg-invite-table tbody tr:focus-within td {
    background: transparent;
  }

  .eg-invite-table-member,
  .eg-invite-table-method,
  .eg-invite-table td:first-child,
  .eg-invite-table td:nth-child(3),
  .eg-invite-table td:nth-child(4),
  .eg-invite-table td:nth-child(6) {
    grid-column: 1 / -1;
  }

  .eg-invite-table td:first-child {
    grid-row: 1;
  }

  .eg-invite-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .eg-invite-table td:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
  }

  .eg-invite-table td:nth-child(3) {
    grid-row: 3;
  }

  .eg-invite-table td:nth-child(4) {
    grid-row: 4;
  }

  .eg-invite-table td:nth-child(6) {
    grid-row: 5;
  }

  .eg-invite-table tbody tr > td:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .eg-invite-recent > .eg-card-heading,
  .eg-invite-recent-head {
    padding: 18px;
  }

  .eg-invite-leaderboard > li {
    grid-template-columns: 25px 39px minmax(0, 1fr);
  }

  .eg-invite-leader-total {
    grid-column: 3;
    grid-auto-flow: column;
    justify-content: start;
    justify-items: start;
    gap: 5px;
  }

  .eg-invite-leader-codes {
    grid-column: 1 / -1;
  }

  .eg-invite-code-chip,
  .eg-invite-leader-codes > code {
    width: 100%;
    flex-wrap: wrap;
  }

  .eg-invite-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
  }

  .eg-invite-table td:nth-child(n),
  .eg-invite-table-member,
  .eg-invite-table-method {
    grid-column: 1;
    grid-row: auto;
  }

  .eg-invite-table tbody tr > td:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 1440px) {
  .eg-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eg-factor-row {
    grid-template-columns: minmax(180px, 1fr) 92px 110px 110px;
  }

  .eg-factor-row > :nth-child(5) {
    grid-column: 2;
  }

  .eg-factor-row > :nth-child(6) {
    grid-column: 3;
  }

  .eg-invite-relation {
    grid-template-columns: minmax(150px, 1fr) 18px minmax(140px, .9fr) minmax(150px, .9fr) 86px;
  }

  .eg-invite-relation > time {
    grid-column: 3 / -1;
    text-align: left;
  }
}

@media (max-width: 1220px) {
  .eg-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eg-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eg-grid-two,
  .eg-grid-level-bottom,
  .eg-grid-status {
    grid-template-columns: 1fr;
  }

  .eg-level-history-layout {
    grid-template-columns: 1fr;
  }

  .eg-card-grow {
    min-height: 0;
  }

  .eg-giveaway-workspace {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .eg-field-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eg-invite-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eg-invite-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .eg-page {
    gap: 18px;
    margin-top: 16px;
  }

  .eg-hero {
    display: grid;
    min-height: 0;
    padding: 28px;
  }

  .eg-hero-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .eg-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .eg-heading-actions {
    justify-content: flex-start;
  }

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

  .eg-giveaway-list {
    position: static;
    display: grid;
    max-height: none;
  }

  .eg-giveaway-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eg-boost-row {
    grid-template-columns: minmax(200px, 1fr) 120px 38px;
  }

  .eg-boost-row > :nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .eg-boost-row > .eg-icon-button {
    grid-column: 3;
    grid-row: 1;
  }

  .eg-factor-row {
    grid-template-columns: minmax(160px, 1fr) 92px 110px;
  }

  .eg-factor-row > :nth-child(4) {
    grid-column: 3;
  }

  .eg-factor-row > :nth-child(5) {
    grid-column: 2;
  }

  .eg-factor-row > :nth-child(6) {
    grid-column: 3;
  }

  .eg-invite-relationships > .eg-card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .eg-invite-search {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .eg-invite-relation {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 92px;
  }

  .eg-invite-code {
    grid-column: 1 / 4;
  }

  .eg-invite-relation > time {
    grid-column: 1 / 4;
  }
}

@media (max-width: 720px) {
  .eg-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .eg-page {
    font-size: 14px;
  }

  .eg-hero {
    padding: 23px 20px;
    border-radius: 17px;
  }

  .eg-hero h2 {
    font-size: 34px;
  }

  .eg-hero-badges {
    grid-template-columns: 1fr;
  }

  .eg-tabs {
    grid-template-columns: 1fr;
    padding: 6px;
  }

  .eg-tab {
    min-height: 80px;
    padding: 13px 14px;
  }

  .eg-section-heading h3 {
    font-size: 29px;
  }

  .eg-card {
    padding: 16px;
    border-radius: 14px;
  }

  .eg-switch {
    width: 100%;
  }

  .eg-role-grid,
  .eg-details .eg-role-grid,
  .eg-compact-options,
  .eg-field-grid,
  .eg-field-grid-three,
  .eg-inline-fields {
    grid-template-columns: 1fr;
  }

  .eg-level-preview-metrics {
    grid-template-columns: 1fr;
  }

  .eg-field-span-two {
    grid-column: auto;
  }

  .eg-role-grid {
    max-height: 320px;
  }

  .eg-curve {
    grid-template-columns: 1fr;
  }

  .eg-curve > b {
    display: none;
  }

  .eg-repeat-row,
  .eg-boost-row {
    grid-template-columns: 1fr 38px;
  }

  .eg-repeat-row > :first-child,
  .eg-boost-row > :first-child,
  .eg-boost-row > :nth-child(3) {
    grid-column: 1 / -1;
  }

  .eg-repeat-row > :nth-child(2),
  .eg-boost-row > :nth-child(2) {
    grid-column: 1;
  }

  .eg-repeat-row > .eg-icon-button,
  .eg-boost-row > .eg-icon-button {
    grid-column: 2;
    grid-row: 2;
  }

  .eg-giveaway-items {
    grid-template-columns: 1fr;
  }

  .eg-theme-field {
    display: grid;
    grid-template-columns: 1fr;
  }

  .eg-theme-field legend {
    grid-column: 1;
  }

  .eg-factor-row {
    grid-template-columns: 1fr 1fr;
  }

  .eg-factor-copy {
    grid-column: 1 / -1;
  }

  .eg-factor-row > :nth-child(n) {
    grid-column: auto;
  }

  .eg-factor-row-tiered > .eg-factor-copy,
  .eg-factor-row-tiered > .eg-factor-tier-builder,
  .eg-factor-row-tiered > .eg-factor-tier-requirement {
    grid-column: 1 / -1;
  }

  .eg-factor-tier-controls {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .eg-factor-tier-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .eg-factor-tier-heading .eg-button {
    width: 100%;
  }

  .eg-factor-tier-requirement {
    grid-template-columns: minmax(0, 1fr) 92px 120px;
  }

  .eg-form-footer {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .eg-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .eg-button,
  .eg-button-primary {
    width: 100%;
  }

  .eg-invite-status {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .eg-invite-status time {
    grid-column: 2;
    text-align: left;
  }

  .eg-invite-metrics {
    grid-template-columns: 1fr;
  }

  .eg-invite-relation {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 9px;
  }

  .eg-invite-member,
  .eg-invite-inviter,
  .eg-invite-code,
  .eg-invite-relation > time {
    grid-column: 1;
  }

  .eg-invite-arrow {
    display: none;
  }

  .eg-invite-attribution {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .eg-invite-inviter {
    padding-left: 49px;
  }

  .eg-invite-code {
    padding-left: 49px;
  }

  .eg-invite-relation > time {
    padding-left: 49px;
  }
}

@media (max-width: 460px) {
  .eg-hero h2 {
    font-size: 30px;
  }

  .eg-card-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .eg-job-stats {
    grid-template-columns: 1fr;
  }

  .eg-factor-row {
    grid-template-columns: 1fr;
  }

  .eg-factor-tier-requirement {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-page *,
  .eg-page *::before,
  .eg-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
