:root {
  color-scheme: dark;
  --sidebar: #171923;
  --sidebar-soft: #222531;
  --canvas: #171923;
  --card: #242733;
  --line: #343846;
  --text: #f4f5f8;
  --muted: #a1a6b4;
  --orange: #ff9d2e;
  --orange-dark: #ee8612;
  --orange-soft: #fff2df;
  --purple: #7768e8;
  --green: #25b985;
  --red: #ef6570;
  --shadow: 0 10px 35px rgba(35, 39, 58, .07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 157, 46, .13), transparent 27%),
    radial-gradient(circle at 48% 100%, rgba(105, 93, 196, .09), transparent 35%),
    linear-gradient(135deg, #171923 0%, #1c1f2a 48%, #202330 100%);
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
}
body.login-mode {
  grid-template-columns: minmax(0, 1fr);
  background:
    radial-gradient(circle at 16% 12%, rgba(255,157,46,.12), transparent 27%),
    radial-gradient(circle at 88% 86%, rgba(119,104,232,.1), transparent 32%),
    linear-gradient(135deg, #151721 0%, #1c1f2a 50%, #202330 100%);
}
body.login-mode .sidebar,
body.login-mode .topbar { display: none; }
body.login-mode .content {
  min-height: 100vh;
  padding: 34px;
  display: grid;
  place-items: center;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px 18px;
  border-right: 1px solid rgba(255, 157, 46, .18);
  background:
    linear-gradient(180deg, rgba(255, 157, 46, .04), transparent 34%),
    radial-gradient(circle at 105% 16%, rgba(255, 157, 46, .2), transparent 30%),
    linear-gradient(155deg, #1c1e29 0%, #2b2e3c 62%, #343746 100%);
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow:
    12px 0 32px rgba(0, 0, 0, .16),
    inset -1px 0 0 rgba(255, 255, 255, .025);
  z-index: 10;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 10px 25px rgba(0, 104, 255, .2);
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo strong, .logo small { display: block; }
.logo strong { font-size: 14px; }
.logo small { margin-top: 2px; color: #999eac; font-size: 12px; }
.server-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  margin-bottom: 16px;
  border: 1px solid #303440;
  border-radius: 13px;
  background: rgba(28, 30, 41, .58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.server-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #333745;
  color: #ffad4e;
  font-size: 13px;
  font-weight: 900;
}
.server-copy { min-width: 0; }
.server-copy small, .server-copy strong { display: block; }
.server-copy small { color: #858b9b; font-size: 10px; margin-bottom: 3px; }
.server-copy strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav {
  min-height: 0;
  display: grid;
  gap: 10px;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a3e4b transparent;
}
.nav-group {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01));
}
.nav-label {
  margin: 0 4px 6px;
  color: #696f7f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.nav-item {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  color: #a6aab7;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  transition: .18s ease;
}
.nav-item:hover { background: rgba(28, 30, 41, .48); color: white; }
.nav-item.active {
  color: white;
  background: linear-gradient(90deg, rgba(255,157,46,.2), rgba(28,30,41,.36));
}
.nav-item.active::after { content: ""; width: 3px; height: 22px; border-radius: 8px; background: var(--orange); margin-left: auto; }
.nav-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; color: #98a4bd; }
.nav-icon svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { color: currentColor; }
.sidebar-footer {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 12px 4px;
  border-top: 1px solid #2a2d38;
}
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { font-size: 11px; }
.sidebar-footer small { margin-top: 2px; color: #717787; font-size: 10px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(37,185,133,.12); }

.content { min-width: 0; padding: 0 44px 110px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 7;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 25, 35, .9);
  backdrop-filter: blur(16px);
}
.breadcrumb {
  margin: 0 0 7px;
  color: #d5d8e1;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.breadcrumb span { color: #ffad42; font-weight: 850; }
.topbar h1 {
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.02em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .4);
}
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-identity {
  min-height: 52px;
  padding: 8px 8px 8px 15px;
  border: 1px solid #454a59;
  border-radius: 12px;
  background: #282b37;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 7px 18px rgba(0,0,0,.15);
}
.admin-identity span small,
.admin-identity span strong { display: block; }
.admin-identity span small { color: #c4c9d3; font-size: 9px; font-weight: 800; }
.admin-identity span strong { margin-top: 3px; color: #fff; font-size: 13px; font-weight: 950; }
.admin-identity button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255,157,46,.48);
  border-radius: 9px;
  color: #ffd08f;
  background: rgba(255,157,46,.12);
  font-size: 10px;
  font-weight: 950;
}
.admin-identity button:hover { color: #fff; background: rgba(255,157,46,.22); }
.server-select {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}
.server-select select {
  min-width: 235px;
  height: 52px;
  padding: 0 16px;
  border-color: #565c6d;
  border-radius: 12px;
  color: #ffffff;
  background: #282b37;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(0,0,0,.15);
}
.bot-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #454a59;
  border-radius: 12px;
  background: #282b37;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(0,0,0,.15);
}
.bot-status span { width: 10px; height: 10px; border-radius: 50%; background: #b3b7c2; }
.bot-status.online span { background: var(--green); }

.login-shell {
  width: 100%;
  max-width: 1380px;
  min-height: 680px;
  margin: 0 auto;
  border: 1px solid rgba(255,157,46,.28);
  border-radius: 26px;
  background: #20232f;
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
}
body.login-mode .login-shell {
  width: min(1450px, 100%);
  min-height: min(760px, calc(100vh - 68px));
}
.login-art {
  position: relative;
  overflow: hidden;
  padding: 82px 74px;
  color: white;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,157,46,.22), transparent 32%),
    linear-gradient(145deg, #1b1e29, #282b38);
}
.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 50%, rgba(255,157,46,.05));
  pointer-events: none;
}
.login-art::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -105px;
  bottom: -125px;
  border: 58px solid rgba(255,157,46,.13);
  border-radius: 50%;
}
.login-shield {
  position: relative;
  z-index: 1;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.login-shield img { width: 100%; height: 100%; object-fit: contain; }
.login-art h2 {
  position: relative;
  z-index: 1;
  margin: 70px 0 20px;
  max-width: 570px;
  color: #fff;
  font-size: 50px;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.login-art h2 span,
.login-art h2 strong { display: block; }
.login-art h2 span {
  color: #ffad42;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}
.login-art h2 strong {
  margin-top: 12px;
  color: #fff;
  font-size: 48px;
  font-weight: 950;
  letter-spacing: -.045em;
}
.login-art p {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  max-width: 535px;
  padding-left: 17px;
  border-left: 3px solid rgba(255,157,46,.65);
  color: #e3e6ed;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.75;
}
.login-card {
  position: relative;
  padding: 82px 72px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(255,157,46,.15), transparent 35%),
    linear-gradient(145deg, #252833, #1c1f2a);
}
.login-card::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 20px;
  pointer-events: none;
}
.login-card > * { position: relative; z-index: 1; }
.login-card .section-kicker { font-size: 12px; letter-spacing: .18em; }
.login-card h2 {
  margin: 13px 0 11px;
  color: #fff;
  font-size: 38px;
  letter-spacing: -.035em;
}
.login-card > p { max-width: 500px; color: #d9dde6; font-size: 15px; font-weight: 650; line-height: 1.65; }
.login-card label { margin-top: 25px; color: #f4f5f8; font-size: 13px; font-weight: 850; }
.login-card input {
  height: 52px;
  margin-top: 9px;
  border-color: rgba(255,255,255,.16);
  border-radius: 11px;
  color: #fff;
  background: #171a24;
  font-size: 13px;
  font-weight: 700;
}
.login-card input:focus { border-color: rgba(255,157,46,.7); box-shadow: 0 0 0 3px rgba(255,157,46,.1); }
.login-card .primary.wide {
  min-height: 52px;
  margin-top: 16px;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(255,141,31,.2);
}
.discord-login-button {
  width: 100%;
  height: 52px;
  margin-top: 30px;
  border: 1px solid rgba(126,139,255,.5);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #7289da);
  box-shadow: 0 10px 26px rgba(88,101,242,.25);
  font-size: 13px;
  font-weight: 950;
}
.discord-login-button:hover { filter: brightness(1.08); }
.discord-login-button:disabled {
  cursor: not-allowed;
  color: #c6cad5;
  border-color: rgba(255,255,255,.12);
  background: #303441;
  box-shadow: none;
  filter: none;
}
.login-divider {
  margin: 23px 0 -5px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b7bcc6;
  font-size: 10px;
  text-transform: uppercase;
}
.login-divider::before,
.login-divider::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.09); }
.wide { width: 100%; margin-top: 16px; }

.panel { display: none; padding-top: 34px; }
.panel.active { display: block; animation: appear .25s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } }
.hero {
  position: relative;
  min-height: 164px;
  padding: 32px 38px;
  border: 1px solid rgba(255, 157, 46, .34);
  border-radius: 20px;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  background: linear-gradient(115deg, #1c1e29 0%, #2b2e3c 66%, #343746 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(255, 157, 46, .05),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 157, 46, .06), transparent 38%),
    radial-gradient(circle at 86% 48%, rgba(255, 157, 46, .3), transparent 27%);
}
.hero > div:first-child { position: relative; z-index: 1; max-width: 600px; }
.hero .section-kicker {
  color: #ffad42;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .16em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.hero h2 {
  margin: 9px 0 11px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -.025em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .45);
}
.hero p {
  margin: 0;
  color: #eef0f6;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.hero-orbit {
  position: absolute;
  right: 54px;
  width: 166px;
  height: 166px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,157,46,.17); }
.hero-orbit::before { width: 216px; height: 216px; }
.hero-orbit::after { width: 274px; height: 274px; }
.hero-orbit span {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, .24),
    0 0 35px rgba(255, 157, 46, .16);
}
.hero-orbit span img { width: 100%; height: 100%; object-fit: contain; }
.section-kicker { color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.stat-card {
  position: relative;
  min-width: 0;
  min-height: 92px;
  padding: 20px;
  border: 1px solid rgba(255, 157, 46, .22);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 20%, rgba(255, 157, 46, .14), transparent 34%),
    linear-gradient(120deg, #1d1f2a 0%, #292c39 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .035);
}
.stat-card::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  right: -28px;
  top: -34px;
  border: 1px solid rgba(255, 157, 46, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255, 157, 46, .035);
}
.stat-card > div { position: relative; z-index: 1; }
.stat-side {
  position: relative;
  z-index: 2;
  margin-left: auto;
  min-width: 74px;
  display: grid;
  justify-items: end;
  gap: 9px;
}
.stat-side b {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 99px;
  color: #d8dbe4;
  background: rgba(255, 255, 255, .045);
  font-size: 9px;
  letter-spacing: .13em;
}
.stat-side i {
  width: 54px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.stat-side i::after {
  content: "";
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 157, 46, .5);
}
.activity-stat .stat-side i::after {
  width: 45%;
  background: #8d7ff2;
  box-shadow: 0 0 12px rgba(141, 127, 242, .5);
}
.system-stat .stat-side i::after {
  width: 100%;
  background: #42d19e;
  box-shadow: 0 0 12px rgba(66, 209, 158, .5);
}
.activity-stat .stat-side b { color: #c8c1ff; }
.system-stat .stat-side b { color: #a9efd6; }
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 900;
}
.stat-icon svg { width: 25px; height: 25px; fill: currentColor; }
.stat-icon.orange { color: var(--orange-dark); background: var(--orange-soft); }
.stat-icon.purple { color: var(--purple); background: #efedff; }
.stat-icon.green { color: var(--green); background: #e7f8f2; }
.stat-card small, .stat-card strong { display: block; }
.stat-card small {
  margin-bottom: 7px;
  color: #f0f1f5;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}
.stat-card strong {
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .55);
}
#bot-state {
  font-size: 21px;
  font-weight: 850;
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { margin: 5px 0 0; font-size: 21px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.performance-card {
  position: relative;
  overflow: hidden;
  padding: 31px;
  border: 1px solid rgba(255, 157, 46, .3);
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 12%, rgba(255, 157, 46, .17), transparent 25%),
    linear-gradient(115deg, #1c1e29 0%, #292c38 67%, #34343d 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}
.performance-card::after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  right: -115px;
  top: -150px;
  border: 1px solid rgba(255, 157, 46, .11);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(255, 157, 46, .035),
    0 0 0 78px rgba(255, 157, 46, .02);
}
.performance-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.performance-heading .section-kicker {
  color: #ffad42;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .16em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.performance-heading h2 {
  margin: 9px 0 11px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -.025em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .45);
}
.performance-heading p {
  margin: 0;
  color: #eef0f6;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.operational {
  min-width: 210px;
  padding: 14px 17px;
  border: 1px solid rgba(66, 209, 158, .2);
  border-radius: 13px;
  background: rgba(20, 30, 31, .42);
  display: flex;
  align-items: center;
  gap: 13px;
}
.operational-pulse {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #42d19e;
  box-shadow:
    0 0 0 6px rgba(66, 209, 158, .1),
    0 0 20px rgba(66, 209, 158, .65);
  animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
  50% { box-shadow: 0 0 0 10px rgba(66, 209, 158, 0), 0 0 25px rgba(66, 209, 158, .75); }
}
.operational small, .operational strong { display: block; }
.operational small { color: #ffffff; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.operational strong { margin-top: 6px; color: #c5ffe9; font-size: 15px; font-weight: 950; letter-spacing: .07em; }
.performance-card.has-warning .operational { border-color: rgba(255, 157, 46, .25); }
.performance-card.has-warning .operational-pulse { background: var(--orange); box-shadow: 0 0 0 6px rgba(255,157,46,.1), 0 0 20px rgba(255,157,46,.6); }
.performance-card.has-warning .operational strong { color: #ffc176; }
.performance-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  background: rgba(255, 255, 255, .13);
}
.performance-item {
  min-width: 0;
  min-height: 136px;
  padding: 26px 21px;
  background: #191c27;
  display: flex;
  align-items: center;
  gap: 13px;
}
.performance-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 157, 46, .2);
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffb34f;
  background: rgba(255, 157, 46, .14);
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}
.performance-item small, .performance-item strong, .performance-item em { display: block; }
.performance-item small {
  margin-bottom: 7px;
  color: #f0f2f6;
  font-size: 13px;
  font-weight: 850;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.performance-item strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 23px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .5);
}
.performance-item em {
  margin-top: 7px;
  overflow: hidden;
  color: #e1e4eb;
  font-size: 12px;
  font-weight: 650;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.module-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #242733;
  color: var(--text);
  text-align: left;
  box-shadow: 0 5px 18px rgba(35,39,58,.025);
  transition: .2s ease;
}
.module-card:hover { transform: translateY(-3px); border-color: #d5d7df; box-shadow: var(--shadow); }
.module-icon, .feature-icon { display: grid; place-items: center; font-weight: 900; }
.module-icon { width: 48px; height: 48px; border-radius: 15px; margin-bottom: 23px; font-size: 20px; }
.moderation-icon { background: #fff0df; color: #ed8818; }
.tickets-icon { background: #efedff; color: #7567e7; }
.media-icon { background: #e7f7ff; color: #279ed1; }
.module-status { position: absolute; right: 20px; top: 20px; padding: 5px 8px; border-radius: 99px; background: #f0f1f5; color: #8b8f9d; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.module-status.active { color: #16845f; background: #e5f8f1; }
.module-card > strong { display: block; margin-bottom: 8px; font-size: 16px; }
.module-card > small { display: block; max-width: 380px; color: var(--muted); line-height: 1.5; font-size: 11px; }
.module-link { position: absolute; right: 22px; bottom: 22px; color: #8c90a0; font-size: 10px; font-weight: 800; }
.module-link b { margin-left: 5px; color: var(--orange-dark); font-size: 15px; }

.page-intro { display: flex; align-items: center; gap: 18px; margin-bottom: 25px; }
.feature-icon { width: 60px; height: 60px; border-radius: 18px; font-size: 23px; }
.page-intro h2 { margin: 4px 0; font-size: 25px; }
.page-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.settings-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.section-hero { margin-bottom: 20px; }
.settings-layout > :first-child { grid-column: 1 / -1; }
.compact-half { min-width: 0; }
.settings-card { padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: #242733; box-shadow: 0 5px 20px rgba(0,0,0,.12); }
.featured-settings-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 157, 46, .3);
  background:
    radial-gradient(circle at 96% 8%, rgba(255, 157, 46, .15), transparent 25%),
    linear-gradient(115deg, #1c1e29 0%, #292c38 67%, #34343d 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}
.settings-layout .featured-settings-card { padding: 24px; }
.settings-layout .featured-settings-card .card-heading {
  min-height: 78px;
  margin-bottom: 20px;
  padding-bottom: 18px;
}
.featured-settings-card::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -115px;
  top: -145px;
  border: 1px solid rgba(255, 157, 46, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255, 157, 46, .025);
  pointer-events: none;
}
.featured-settings-card > * { position: relative; z-index: 1; }
.featured-settings-card .card-heading h3 {
  color: #ffffff;
  font-size: 27px;
  font-weight: 950;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .4);
}
.featured-settings-card .card-heading p {
  color: #ffffff;
  font-size: 15px;
  font-weight: 650;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.featured-settings-card .card-badge {
  padding: 8px 13px;
  border: 1px solid rgba(255, 157, 46, .24);
  color: #ffffff;
  background: rgba(255, 157, 46, .22);
  font-size: 11px;
  font-weight: 900;
}
.featured-settings-card .toggle-row {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(25, 27, 38, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.featured-settings-card .toggle-copy strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.featured-settings-card .toggle-copy small {
  margin-top: 6px;
  color: #f0f2f6;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.4;
}
.featured-settings-card label {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.featured-settings-card input {
  height: 52px;
  border-color: rgba(255, 255, 255, .14);
  color: #ffffff;
  background: rgba(20, 22, 32, .82);
  font-size: 16px;
  font-weight: 900;
}
.featured-settings-card input:focus {
  border-color: var(--orange);
  background: rgba(24, 26, 37, .96);
}
.penalty-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.penalty-step {
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(25, 27, 38, .72);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-content: start;
  gap: 12px;
}
.penalty-step > span {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #ffb451;
  background: rgba(255, 157, 46, .12);
  font-size: 11px;
  font-weight: 950;
}
.penalty-step strong, .penalty-step small { display: block; }
.penalty-step strong { color: #fff; font-size: 16px; font-weight: 900; }
.penalty-step small { margin-top: 5px; color: #f0f2f6; font-size: 12px; font-weight: 620; }
.penalty-step > b {
  grid-column: 1 / -1;
  align-self: end;
  color: #aeb4c1;
  font-size: 13px;
  text-align: left;
}
.penalty-step input {
  grid-column: 1 / -1;
  align-self: end;
  width: 100%;
  height: 44px;
  text-align: center;
}
.settings-card.narrow { max-width: 820px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; padding-bottom: 20px; border-bottom: 1px solid #353947; }
.card-heading h3 { margin: 0 0 6px; font-size: 15px; }
.card-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.card-badge { padding: 6px 9px; border-radius: 8px; color: var(--orange-dark); background: var(--orange-soft); font-size: 10px; font-weight: 800; }
.toggle-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.toggle-row {
  min-height: 58px;
  padding: 13px 15px;
  border: 1px solid #353947;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.toggle-copy strong, .toggle-copy small { display: block; }
.toggle-copy strong { font-size: 12px; }
.toggle-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.switch { display: flex; align-items: center; gap: 9px; cursor: pointer; color: var(--text); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: relative; width: 38px; height: 21px; border-radius: 99px; background: #cfd2dc; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 4px #0002; transition: .2s; }
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch b { font-size: 11px; }
.form-grid { display: grid; gap: 18px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full { grid-column: 1 / -1; }
label { display: grid; gap: 8px; color: #b3b7c4; font-size: 10px; font-weight: 750; }
input, select, textarea {
  width: 100%;
  padding: 0 12px;
  border: 1px solid #3b3f4d;
  border-radius: 9px;
  outline: 0;
  color: var(--text);
  background: #1b1e28;
  font-size: 11px;
  transition: .16s;
}
input, select { height: 41px; }
textarea { min-height: 108px; padding: 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); background: #20232e; box-shadow: 0 0 0 3px rgba(255,157,46,.1); }
.info-box { margin-top: 22px; padding: 16px; border-radius: 12px; background: var(--orange-soft); display: flex; align-items: center; gap: 15px; color: #8b5a1d; font-size: 11px; }
.info-box strong { flex: 0 0 auto; }
code { color: #c56f0b; background: #ffe7c6; padding: 2px 5px; border-radius: 4px; }
.ticket-settings-card {
  max-width: none;
  padding: 24px;
}
.ticket-config-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.ticket-config-column { display: grid; align-content: start; gap: 14px; }
.ticket-settings-card textarea,
.ticket-settings-card select {
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
  background: rgba(20, 22, 32, .82);
  font-size: 14px;
  font-weight: 650;
}
.ticket-settings-card textarea { min-height: 121px; }
.ticket-options-heading {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.ticket-options-heading strong, .ticket-options-heading small { display: block; }
.ticket-options-heading strong { color: #fff; font-size: 17px; font-weight: 900; }
.ticket-options-heading small { margin-top: 6px; color: #d2d5de; font-size: 11px; }
.secondary-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 157, 46, .3);
  border-radius: 9px;
  color: #ffb451;
  background: rgba(255, 157, 46, .08);
  font-size: 11px;
  font-weight: 850;
}
.secondary-button:hover { background: rgba(255, 157, 46, .14); }
.ticket-options-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}
.ticket-option-row {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(17, 19, 29, .88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.ticket-option-summary {
  min-height: 52px;
  padding-right: 76px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.ticket-option-emoji {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 157, 46, .2);
  background: rgba(255, 157, 46, .15);
  font-size: 19px;
}
.ticket-option-summary strong,
.ticket-option-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-option-summary strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.ticket-option-summary small {
  margin-top: 5px;
  color: #eef0f5;
  font-size: 11px;
  font-weight: 650;
}
.edit-ticket-option {
  position: absolute;
  right: 48px;
  top: 17px;
  border: 0;
  padding: 5px 7px;
  border: 1px solid rgba(255, 157, 46, .2);
  border-radius: 7px;
  color: #ffc06f;
  background: rgba(255, 157, 46, .08);
  font-size: 10px;
  font-weight: 900;
}
.edit-ticket-option:hover { background: rgba(255, 157, 46, .16); }
.ticket-option-editor {
  display: none;
  grid-template-columns: 70px 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.ticket-option-row.editing .ticket-option-editor { display: grid; }
.ticket-option-row label { font-size: 9px; }
.ticket-option-row input { height: 38px; font-size: 12px; }
.delete-ticket-option {
  position: absolute;
  right: 10px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(239, 101, 112, .25);
  border-radius: 9px;
  color: #ff9da5;
  background: rgba(239, 101, 112, .12);
  font-size: 17px;
}
.delete-ticket-option:hover { background: rgba(239, 101, 112, .17); }
.ticket-publish {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 157, 46, .22);
  border-radius: 13px;
  background: rgba(255, 157, 46, .075);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ticket-publish strong, .ticket-publish small { display: block; }
.ticket-publish strong { color: #fff; font-size: 15px; }
.ticket-publish small { margin-top: 5px; color: #d5d8e0; font-size: 11px; }
.ticket-publish .primary { min-width: 190px; }
.ticket-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.ticket-steps > div {
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(25, 27, 38, .72);
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.ticket-steps > div > span {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffb451;
  background: rgba(255, 157, 46, .12);
  font-size: 11px;
  font-weight: 950;
}
.ticket-steps p { margin: 1px 0 0; }
.ticket-steps strong, .ticket-steps small { display: block; }
.ticket-steps strong { color: #fff; font-size: 14px; font-weight: 900; }
.ticket-steps small { margin-top: 5px; color: #f0f2f6; font-size: 10px; font-weight: 600; line-height: 1.4; }
.ticket-steps code { color: #ffba67; background: rgba(255, 157, 46, .12); }
.timeline { margin-top: 25px; display: grid; gap: 4px; }
.timeline > div { position: relative; display: flex; align-items: flex-start; gap: 13px; padding-bottom: 18px; }
.timeline > div:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: -1px; width: 1px; background: #dde0e8; }
.timeline span { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--orange-soft); color: var(--orange-dark); font-size: 10px; font-weight: 900; }
.timeline p { margin: 1px 0 0; }
.timeline strong, .timeline small { display: block; }
.timeline strong { font-size: 11px; }
.timeline small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.primary {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, #ffac48, #ef8613);
  box-shadow: 0 8px 18px rgba(239,134,19,.2);
  font-size: 11px;
  font-weight: 850;
}
.primary:hover { filter: brightness(.98); transform: translateY(-1px); }
.save-bar {
  min-width: 245px;
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(255, 157, 46, .27);
  border-radius: 11px;
  color: white;
  background:
    radial-gradient(circle at 85% 50%, rgba(255, 157, 46, .1), transparent 25%),
    rgba(25, 27, 37, .97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.save-bar b, .save-bar small { display: block; }
.save-bar b { color: #ffffff; font-size: 12px; font-weight: 900; }
.save-bar small { margin-top: 3px; color: #d4d7df; font-size: 9px; font-weight: 600; }
.save-state { min-width: 118px; display: flex; align-items: center; gap: 10px; }
.save-state > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 157, 46, .09), 0 0 18px rgba(255, 157, 46, .45);
  animation: savePulse 2s infinite;
}
@keyframes savePulse {
  50% { box-shadow: 0 0 0 10px rgba(255, 157, 46, 0), 0 0 24px rgba(255, 157, 46, .6); }
}
.save-bar .primary {
  min-width: 96px;
  min-height: 38px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.save-bar .primary b {
  font-size: 14px;
  transition: transform .2s;
}
.save-bar .primary:hover b { transform: translateX(4px); }
.save-bar.saved {
  border-color: rgba(66, 209, 158, .35);
  background:
    radial-gradient(circle at 85% 50%, rgba(66, 209, 158, .11), transparent 25%),
    rgba(25, 31, 36, .97);
}
.save-bar.saved .save-state > i {
  background: #42d19e;
  box-shadow: 0 0 0 6px rgba(66, 209, 158, .1), 0 0 18px rgba(66, 209, 158, .45);
  animation: none;
}
.save-bar.saved .primary { background: linear-gradient(135deg, #4bd8a6, #25ad7d); }
.error { min-height: 18px; color: var(--red) !important; font-size: 10px !important; }
#toast { position: fixed; z-index: 20; right: 28px; top: 24px; padding: 12px 16px; border-radius: 10px; color: white; background: var(--green); font-size: 11px; font-weight: 800; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .2s; box-shadow: 0 10px 25px rgba(37,185,133,.24); }
#toast.show { opacity: 1; transform: none; }

/* Clean ticket editor layout */
.ticket-clean-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 20px;
}
.ticket-clean-card {
  min-width: 0;
  padding: 24px;
}
.ticket-clean-card .card-heading {
  min-height: 78px;
  margin-bottom: 20px;
  padding-bottom: 18px;
}
.ticket-clean-card textarea,
.ticket-clean-card select {
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
  background: rgba(20, 22, 32, .82);
  font-size: 14px;
  font-weight: 650;
}
.ticket-clean-card textarea { min-height: 112px; }
.ticket-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ticket-options-card { grid-column: 1 / -1; }
.ticket-panels-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: stretch;
}
.ticket-panels-grid > .ticket-options-card {
  grid-column: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ticket-panels-grid > .ticket-options-card .card-heading {
  min-height: 92px;
  align-items: flex-start;
  flex-direction: column;
  gap: 16px;
}
.ticket-panels-grid .ticket-option-actions {
  width: 100%;
  flex-wrap: wrap;
}
.ticket-panels-grid .ticket-option-actions .ticket-action-button { flex: 1 1 190px; }
.ticket-card-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.ticket-dropdown-card .ticket-options-list { grid-template-columns: 1fr; }
.ticket-support-card .ticket-language-grid { grid-template-columns: 1fr; }
.ticket-options-card .card-heading { align-items: center; }
.ticket-options-card .card-heading h3 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .45);
}
.ticket-options-card .card-heading p {
  color: #ffffff;
  font-size: 15px;
  font-weight: 650;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.ticket-options-card .secondary-button {
  min-height: 44px;
  padding: 0 17px;
  color: #ffffff;
  background: rgba(255, 157, 46, .17);
  font-size: 13px;
  font-weight: 900;
}
.ticket-option-actions { display: flex; align-items: center; gap: 10px; }
.ticket-action-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 184, 96, .35);
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffad45, #e97808);
  box-shadow: 0 8px 18px rgba(239, 134, 19, .18);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .01em;
  text-shadow: 0 2px 7px rgba(111, 48, 0, .55);
}
.ticket-action-button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ticket-action-button b { margin-left: 7px; font-size: 15px; }
.ticket-options-card .ticket-option-row {
  padding: 12px;
  border-color: rgba(255, 255, 255, .15);
  background: rgba(18, 20, 30, .84);
}
.ticket-options-card .ticket-option-row label {
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .4);
}
.ticket-options-card .ticket-option-row input {
  height: 38px;
  border-color: rgba(255, 255, 255, .17);
  color: #ffffff;
  background: #171a24;
  font-size: 15px;
  font-weight: 800;
}
.ticket-options-card .delete-ticket-option {
  width: 32px;
  height: 32px;
  color: #ff9ba3;
  font-size: 20px;
  font-weight: 800;
}
.ticket-clean-layout > .ticket-publish {
  grid-column: 1 / -1;
  margin-top: 0;
}
.filter-bypass-card { grid-column: 1 / -1; min-width: 0; padding: 24px; }
.filter-bypass-card .card-heading { margin-bottom: 18px; padding-bottom: 18px; }

/* Media */
.media-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.media-channels-card, .media-links-card, .media-images-card, .media-rules-card { min-width: 0; padding: 24px; }
.media-channels-card .card-heading,
.media-links-card .card-heading,
.media-images-card .card-heading,
.media-rules-card .card-heading { min-height: 82px; margin-bottom: 18px; padding-bottom: 18px; }
.media-channel-picker { margin-bottom: 16px; }
.media-channel-picker select {
  height: 47px;
  border-color: rgba(255,255,255,.15);
  color: #fff;
  background: rgba(17,19,29,.88);
  font-size: 13px;
  font-weight: 750;
}
.media-channel-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.media-channel-option { position: relative; min-width: 0; min-height: 64px; padding: 11px 48px 11px 12px; border: 1px solid rgba(255,157,46,.35); border-radius: 12px; background: rgba(255,157,46,.08); display: flex; align-items: center; gap: 10px; }
.media-channel-option:hover { border-color: rgba(255,157,46,.3); }
.media-channel-icon { width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; color: #ffb451; background: rgba(255,157,46,.11); font-size: 17px; font-weight: 900; }
.media-channel-option strong, .media-channel-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-channel-option strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.media-channel-option small {
  margin-top: 5px;
  color: #f0f2f6;
  font-size: 11px;
  font-weight: 650;
}
.remove-media-channel {
  position: absolute;
  right: 11px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(239,101,112,.3);
  border-radius: 9px;
  color: #ff9da5;
  background: rgba(239,101,112,.11);
  font-size: 18px;
}
.remove-link-channel,
.remove-image-block-channel,
.remove-filter-bypass-channel {
  position: absolute;
  right: 11px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(239,101,112,.3);
  border-radius: 9px;
  color: #ff9da5;
  background: rgba(239,101,112,.11);
  font-size: 18px;
}
.remove-link-channel:hover,
.remove-image-block-channel:hover,
.remove-filter-bypass-channel:hover { background: rgba(239,101,112,.2); }
.media-rules-card { grid-column: auto; }
.remove-media-channel:hover {
  background: rgba(239,101,112,.2);
}
.media-flow { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.media-flow > div { min-height: 108px; padding: 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(17,19,29,.78); display: flex; align-items: flex-start; gap: 12px; }
.media-flow > div > span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; color: #ffb451; background: rgba(255,157,46,.12); font-size: 10px; font-weight: 950; }
.media-flow p { margin: 1px 0 0; }
.media-flow strong, .media-flow small { display: block; }
.media-flow strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.media-flow small {
  margin-top: 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}
.media-protection { margin-top: 14px; padding: 15px 17px; border: 1px solid rgba(66,209,158,.2); border-radius: 12px; background: rgba(66,209,158,.07); display: flex; align-items: center; gap: 13px; }
.media-protection > span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #70e4ba; background: rgba(66,209,158,.11); }
.media-protection p { margin: 0; }
.media-protection strong, .media-protection small { display: block; }
.media-protection strong { color: #fff; font-size: 15px; font-weight: 950; }
.media-protection small { margin-top: 6px; color: #f0f2f6; font-size: 11px; font-weight: 650; }
.empty-state { grid-column: 1 / -1; color: #c7cbd5; }

/* Operations */
.operations-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  align-items: start;
}
.bot-setup-card { grid-column: 1 / -1; }
.operations-card { min-width: 0; padding: 24px; }
.operations-card .card-heading { min-height: 72px; margin-bottom: 15px; padding-bottom: 15px; }
.operations-actions { display: flex; align-items: center; gap: 8px; }
.danger-button {
  min-height: 37px;
  padding: 0 13px;
  border: 1px solid rgba(239,101,112,.42);
  border-radius: 9px;
  color: #ffadb4;
  background: rgba(239,101,112,.1);
  font-size: 10px;
  font-weight: 950;
}
.danger-button:hover { color: #fff; background: rgba(239,101,112,.2); }
.danger-button:disabled { cursor: wait; opacity: .55; }
.operations-card .card-heading h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.operations-card .card-heading p {
  margin-top: 7px;
  color: #eef0f5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.panel[data-panel="operations"] .section-kicker {
  color: #ffad42;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .15em;
}
.panel[data-panel="operations"] .section-hero h2 {
  color: #ffffff;
  font-size: 38px;
  font-weight: 950;
  text-shadow: 0 3px 14px rgba(0,0,0,.45);
}
.panel[data-panel="operations"] .section-hero p {
  color: #f0f2f6;
  font-size: 15px;
  font-weight: 700;
}
.audit-card { grid-column: 1 / -1; }
.operations-list {
  max-height: 520px;
  padding-right: 3px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
}
.operation-entry {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  color: #fff;
  background: rgba(17,19,29,.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}
.operation-entry span { min-width: 0; }
.operation-entry span strong,
.operation-entry span small { display: block; }
.operation-entry span strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.operation-entry span small {
  margin-top: 6px;
  color: #e0e3e9;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}
.operation-entry > b {
  color: #ffc067;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}
.operation-entry .secondary-button { flex: 0 0 auto; text-decoration: none; display: grid; place-items: center; }
.backup-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.operation-error { display: block; }
.operation-error summary { cursor: pointer; list-style: none; }
.operation-error summary::-webkit-details-marker { display: none; }
.operation-error p { margin: 12px 0 0; color: #ffb9bf; font-size: 10px; line-height: 1.45; }
.operation-error pre {
  max-height: 180px;
  margin: 10px 0 0;
  padding: 11px;
  border-radius: 8px;
  color: #d7dbe4;
  background: #11131b;
  overflow: auto;
  font: 9px/1.5 Consolas, monospace;
  white-space: pre-wrap;
}

/* Embed Builder */
.embed-builder-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.embed-editor-card,
.embed-preview-card {
  min-width: 0;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.embed-editor-card .card-heading,
.embed-preview-card .card-heading {
  min-height: 72px;
  margin-bottom: 16px;
  padding-bottom: 15px;
}
.embed-form { gap: 14px; }
.embed-primary-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
.embed-more-options {
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: #252833;
  overflow: hidden;
}
.embed-more-options summary {
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.embed-more-options summary::-webkit-details-marker { display: none; }
.embed-more-options summary span strong,
.embed-more-options summary span small { display: block; }
.embed-more-options summary strong { color: #fff; font-size: 16px; font-weight: 950; }
.embed-more-options summary small { margin-top: 5px; color: #f0f2f6; font-size: 13px; font-weight: 800; }
.embed-more-options summary > b { color: #ffb451; font-size: 22px; transition: transform .18s ease; }
.embed-more-options[open] summary > b { transform: rotate(45deg); }
.embed-options-content {
  padding: 17px;
  border-top: 1px solid rgba(255,255,255,.09);
  display: grid;
  gap: 17px;
}
.embed-advanced-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.embed-form label {
  gap: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}
.embed-form input,
.embed-form select,
.embed-form textarea {
  border-color: rgba(255,255,255,.15);
  color: #fff;
  background: rgba(17,19,29,.84);
  font-size: 14px;
  font-weight: 650;
}
.embed-form textarea {
  min-height: 142px;
  line-height: 1.55;
}
.embed-row-delete {
  border: 1px solid rgba(239,101,112,.3);
  border-radius: 9px;
  color: #ff9da5;
  background: rgba(239,101,112,.11);
  font-weight: 900;
}
.embed-row-delete:hover { background: rgba(239,101,112,.18); }
.embed-color-control {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 9px;
}
.embed-color-control input[type="color"] {
  padding: 4px;
  cursor: pointer;
}
.embed-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.embed-upload-control {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
}
.embed-upload-button { min-width: 82px; }
.embed-quiet-action {
  min-height: auto !important;
  padding: 5px 3px;
  border: 0;
  border-radius: 6px;
  color: #ffbd68;
  background: transparent;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.embed-quiet-action:hover {
  color: #ffffff;
  background: rgba(255,157,46,.1);
}
.embed-dynamic-section {
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: #252833;
}
.embed-section-heading {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.embed-section-heading strong,
.embed-section-heading small { display: block; }
.embed-section-heading strong { color: #fff; font-size: 14px; font-weight: 950; }
.embed-section-heading small { margin-top: 4px; color: #eef0f5; font-size: 13px; font-weight: 750; }
.embed-dynamic-list { display: grid; gap: 8px; }
.embed-dynamic-row {
  padding: 9px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  background: rgba(17,19,29,.72);
  display: grid;
  gap: 8px;
  align-items: center;
}
.embed-field-row { grid-template-columns: .7fr 1.4fr 95px 34px; }
.embed-button-row { grid-template-columns: .7fr 1.3fr 34px; }
.embed-dynamic-row input,
.embed-dynamic-row textarea {
  min-height: 38px;
  border-color: rgba(255,255,255,.13);
  color: #fff;
  background: #171a24;
  font-size: 12px;
  font-weight: 700;
}
.embed-dynamic-row textarea {
  height: 46px;
  padding: 9px 11px;
  resize: vertical;
}
.embed-inline-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e4e7ed;
  font-size: 10px;
  cursor: pointer;
}
.embed-inline-toggle input { width: 15px; height: 15px; }
.embed-row-delete { width: 34px; height: 34px; font-size: 17px; }
.embed-send-bar {
  margin-top: auto;
  padding: 17px 18px;
  border: 1px solid rgba(255,157,46,.24);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,157,46,.09), #252833);
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 18px;
}
.embed-send-bar strong,
.embed-send-bar small { display: block; }
.embed-send-bar strong { color: #fff; font-size: 16px; font-weight: 950; }
.embed-send-bar small { margin-top: 5px; color: #f0f2f6; font-size: 13px; font-weight: 750; }
.embed-send-bar .ticket-action-button { min-width: 205px; }
.embed-send-actions { width: 100%; display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; }
.embed-send-actions .ticket-action-button { flex: 1; }
.discord-preview-shell {
  flex: 1;
  min-height: 470px;
  padding: 24px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}
.discord-preview-message {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  gap: 12px;
  align-items: start;
}
.discord-preview-message > img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
}
.discord-preview-content { min-width: 0; }
.discord-preview-author {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.discord-preview-author strong { color: #f2f3f5; font-size: 15px; font-weight: 650; }
.discord-preview-author b {
  padding: 2px 4px;
  border-radius: 3px;
  color: #fff;
  background: #5865f2;
  font-size: 8px;
  line-height: 1;
}
.discord-preview-author small { color: #949ba4; font-size: 10px; }
.embed-preview-mention {
  margin: 0 0 6px;
  color: #c9cdfb;
  font-size: 13px;
  font-weight: 650;
}
.discord-embed-preview {
  position: relative;
  max-width: 520px;
  padding: 14px 16px;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
  background: #2b2d31;
  overflow: hidden;
}
.discord-embed-preview > strong {
  display: block;
  padding-right: 92px;
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.discord-embed-preview:not(.has-thumbnail) > strong { padding-right: 0; }
.discord-embed-preview > p {
  margin: 8px 0 0;
  color: #dbdee1;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.embed-preview-fields {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 9px;
  clear: both;
}
.embed-preview-fields > div {
  grid-column: 1 / -1;
  min-width: 0;
}
.embed-preview-fields > div.inline { grid-column: span 4; }
.embed-preview-fields strong,
.embed-preview-fields span { display: block; overflow-wrap: anywhere; }
.embed-preview-fields strong { color: #f2f3f5; font-size: 12px; font-weight: 700; }
.embed-preview-fields span { margin-top: 3px; color: #dbdee1; font-size: 11px; line-height: 1.35; white-space: pre-wrap; }
.embed-preview-thumbnail {
  position: relative;
  z-index: 1;
  width: 80px;
  max-height: 80px;
  margin: 0 0 10px 14px;
  border-radius: 5px;
  object-fit: cover;
  float: right;
}
.embed-preview-image {
  width: 100%;
  max-height: 280px;
  margin-top: 14px;
  border-radius: 5px;
  object-fit: cover;
}
.discord-embed-preview > small {
  display: block;
  clear: both;
  margin-top: 13px;
  color: #b5bac1;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.embed-preview-buttons {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.embed-preview-buttons span {
  min-height: 32px;
  padding: 0 13px;
  border-radius: 4px;
  color: #f2f3f5;
  background: #4e5058;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 650;
}

/* Worms Forslag */
.suggestions-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 18px;
}
.suggestion-setup-card,
.suggestion-inbox-card {
  min-width: 0;
  padding: 24px;
}
.suggestion-setup-card .card-heading h3,
.suggestion-inbox-card .card-heading h3 {
  color: #fff;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -.015em;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.suggestion-setup-card .card-heading p,
.suggestion-inbox-card .card-heading p {
  margin-top: 7px;
  color: #edf0f6;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}
.suggestion-setup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}
.suggestion-setup-row label {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.suggestion-setup-row select {
  height: 48px;
  margin-top: 8px;
  border-color: rgba(255,255,255,.17);
  color: #fff;
  background: rgba(15,17,25,.84);
  font-size: 14px;
  font-weight: 800;
}
.suggestion-setup-row .ticket-action-button {
  min-width: 220px;
  min-height: 48px;
}
.suggestion-flow {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.suggestion-flow > span {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  background: rgba(17,19,29,.68);
  display: flex;
  align-items: center;
  gap: 11px;
}
.suggestion-flow b {
  color: #ffad42;
  font-size: 12px;
  font-weight: 950;
}
.suggestion-flow small {
  color: #f3f4f7;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}
.suggestion-panel-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.suggestion-panel-footer .ticket-action-button { width: 100%; }
.suggestions-heading { align-items: center; }
.suggestions-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.suggestions-new-count {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255,157,46,.42);
  border-radius: 10px;
  color: #ffd08f;
  background: rgba(255,157,46,.12);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}
.suggestions-actions select {
  min-width: 190px;
  color: #fff;
  background: rgba(17,19,29,.84);
  font-size: 13px;
  font-weight: 850;
}
.suggestions-list { display: grid; gap: 14px; }
.suggestion-entry {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255,157,46,.32);
  border-radius: 17px;
  background: #242733;
  box-shadow:
    0 14px 32px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.045);
}
.suggestion-entry::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 4px;
  border-radius: 4px;
  background: #ffad42;
}
.suggestion-entry.status-reviewing::before,
.suggestion-entry.status-accepted::before,
.suggestion-entry.status-rejected::before { background: #f59e0b; }
.suggestion-entry-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.suggestion-avatar {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,157,46,.2);
  border-radius: 50%;
  color: #ffb451;
  background: rgba(255,157,46,.11);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 12px;
  font-weight: 950;
}
.suggestion-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.suggestion-heading-copy { min-width: 0; }
.suggestion-meta {
  margin-top: 11px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 30px;
}
.suggestion-meta > span {
  display: grid;
  gap: 4px;
}
.suggestion-meta small {
  color: #d4d8e1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.suggestion-meta b {
  color: #ffca82;
  font-size: 14px;
  font-weight: 950;
}
.suggestion-meta time {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}
.suggestion-entry h4 {
  margin: 0;
  color: #fff;
  overflow: hidden;
  font-size: 20px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suggestion-header-status {
  width: 165px;
  margin: 0;
  color: #f5f6f9;
  font-size: 10px;
  font-weight: 950;
}
.suggestion-header-status > span {
  display: block;
  margin-bottom: 6px;
  color: #c9ced8;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.suggestion-header-status select {
  width: 100%;
  height: 40px;
  border-color: rgba(255,255,255,.18);
  border-radius: 10px;
  color: #fff;
  background: #1d202a;
  font-size: 13px;
  font-weight: 850;
}
.suggestion-body {
  margin: 17px 0 0 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.suggestion-body:has(.suggestion-media) {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 32%);
  align-items: stretch;
}
.suggestion-content {
  min-height: 150px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: #252833;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.suggestion-content > span {
  color: #ffbe66;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.suggestion-description {
  margin: 11px 0 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
  white-space: pre-wrap;
}
.suggestion-media {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: #252833;
}
.suggestion-media > span {
  display: block;
  margin-bottom: 9px;
  color: #ffbe66;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.suggestion-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.suggestion-image {
  height: 145px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px;
  overflow: hidden;
  background: #11131b;
}
.suggestion-image img { width: 100%; height: 100%; object-fit: cover; }
.suggestion-admin {
  margin: 14px 0 0 62px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: #252833;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.suggestion-admin label {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}
.suggestion-admin select,
.suggestion-admin textarea {
  margin-top: 7px;
  border-color: rgba(255,255,255,.2);
  color: #fff;
  background: #1d202a;
  font-size: 14px;
  font-weight: 800;
}
.suggestion-admin select { height: 44px; }
.suggestion-admin textarea {
  min-height: 58px;
  max-height: 140px;
  resize: vertical;
}
.suggestion-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.suggestion-buttons button {
  min-height: 44px;
  padding-inline: 17px;
  white-space: nowrap;
}
.suggestion-private-message {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.suggestion-private-message .secondary-button {
  min-width: 180px;
  min-height: 44px;
}

/* Mod Logs */
.modlogs-layout { display: grid; gap: 18px; }
.modlogs-settings-card,
.modlogs-history-card { min-width: 0; padding: 24px; }
.modlogs-settings-card .card-heading,
.modlogs-history-card .card-heading {
  min-height: 72px;
  margin-bottom: 16px;
  padding-bottom: 15px;
}
.modlogs-settings-card label {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.modlogs-settings-card select {
  height: 48px;
  border-color: rgba(255,255,255,.15);
  color: #fff;
  background: rgba(17,19,29,.84);
  font-size: 14px;
  font-weight: 750;
}
.modlogs-info {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(66,209,158,.22);
  border-radius: 12px;
  background: rgba(66,209,158,.07);
  display: flex;
  align-items: center;
  gap: 12px;
}
.modlogs-info > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #70e4ba;
  background: rgba(66,209,158,.12);
  display: grid;
  place-items: center;
  font-weight: 950;
}
.modlogs-info p { margin: 0; }
.modlogs-info strong,
.modlogs-info small { display: block; }
.modlogs-info strong { color: #fff; font-size: 13px; font-weight: 900; }
.modlogs-info small { margin-top: 4px; color: #e2e6ed; font-size: 10px; line-height: 1.4; }
.modlogs-heading { align-items: center; }
.modlogs-actions { display: flex; align-items: center; gap: 9px; }
.modlogs-actions select {
  min-width: 190px;
  border-color: rgba(255,255,255,.14);
  color: #fff;
  background: rgba(17,19,29,.84);
  font-size: 11px;
  font-weight: 750;
}
.modlogs-list { display: grid; gap: 9px; }
.modlog-entry {
  position: relative;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background: rgba(17,19,29,.78);
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
}
.modlog-entry::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 4px;
  background: #7380ff;
}
.modlog-entry.type-ticket_open::before,
.modlog-entry.type-ticket_close::before { background: #ff9d2e; }
.modlog-entry.type-ban::before { background: #ef6570; }
.modlog-entry.type-kick::before { background: #ef8b65; }
.modlog-entry.type-unban::before { background: #42d19e; }
.modlog-entry.type-timeout::before { background: #ffc15c; }
.modlog-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: #ffb451;
  background: rgba(255,157,46,.1);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
}
.modlog-copy { min-width: 0; }
.modlog-topline {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modlog-topline b {
  color: #ffb451;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.modlog-topline time { color: #aeb4c0; font-size: 9px; }
.modlog-copy > strong { color: #fff; font-size: 15px; font-weight: 950; }
.modlog-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 7px 14px; }
.modlog-meta span { color: #c9ced8; font-size: 10px; }
.modlog-meta b { color: #f2f4f8; }
.modlog-copy > p { margin: 7px 0 0; color: #e0e4eb; font-size: 11px; line-height: 1.4; }
.transcript-actions { display: flex; align-items: center; gap: 7px; }
.transcript-actions .secondary-button { white-space: nowrap; }
.transcript-preview {
  grid-column: 2 / -1;
  max-height: 330px;
  margin: 2px 0 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  color: #e7e9ef;
  background: #11131b;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.55 Consolas, monospace;
}

/* Shared dashboard typography */
.panel .section-hero .section-kicker,
.performance-heading .section-kicker {
  color: #ffad42;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .15em;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.panel .section-hero h2,
.performance-heading h2 {
  margin: 9px 0 10px;
  color: #ffffff;
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-shadow: 0 3px 14px rgba(0,0,0,.45);
}
.panel .section-hero p,
.performance-heading p {
  margin: 0;
  color: #eef0f5;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.featured-settings-card .card-heading h3,
.settings-card .card-heading h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.featured-settings-card .card-heading p,
.settings-card .card-heading p {
  margin: 7px 0 0;
  color: #eef0f5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.featured-settings-card label,
.settings-card label {
  color: #f6f7fa;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}
.featured-settings-card input,
.featured-settings-card select,
.featured-settings-card textarea,
.settings-card input,
.settings-card select,
.settings-card textarea {
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
}
.toggle-copy strong,
.featured-settings-card .toggle-copy strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.3;
}
.toggle-copy small,
.featured-settings-card .toggle-copy small {
  margin-top: 6px;
  color: #e4e7ed;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}
.card-badge {
  color: #fff4e4;
  font-size: 10px;
  font-weight: 950;
}

/* Unified dashboard card color */
.settings-card,
.featured-settings-card,
.performance-card,
.performance-item,
.stat-card,
.toggle-row,
.featured-settings-card .toggle-row,
.penalty-step,
.ticket-option-row,
.ticket-options-card .ticket-option-row,
.ticket-steps > div,
.media-flow > div,
.media-channel-option,
.operation-entry,
.modlog-entry,
.member-list-item,
.member-profile-stats > div,
.member-detail-grid > div,
.member-history > div,
.embed-dynamic-row,
.embed-send-bar,
.suggestion-entry,
.suggestion-content,
.suggestion-media,
.suggestion-admin,
.suggestion-flow > span {
  background-color: #252833;
}

.featured-settings-card,
.performance-card,
.stat-card,
.suggestion-entry {
  background-image:
    radial-gradient(circle at 96% 8%, rgba(255,157,46,.1), transparent 26%),
    linear-gradient(135deg, #252833, #292c38);
}

.performance-item,
.toggle-row,
.penalty-step,
.ticket-option-row,
.ticket-steps > div,
.media-flow > div,
.operation-entry,
.modlog-entry,
.member-list-item,
.member-profile-stats > div,
.member-detail-grid > div,
.member-history > div,
.embed-dynamic-row,
.embed-send-bar,
.suggestion-content,
.suggestion-media,
.suggestion-admin,
.suggestion-flow > span {
  background-image: none;
}

@media (max-width: 980px) {
  .operations-layout { grid-template-columns: 1fr; }
  .audit-card { grid-column: auto; }
  body { grid-template-columns: 82px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .logo span:last-child, .server-copy, .nav-item span:last-child, .nav-label, .sidebar-footer span:last-child { display: none; }
  .logo, .server-card, .nav-item, .sidebar-footer { justify-content: center; }
  .logo { padding-inline: 0; }
  .nav-item.active::after { display: none; }
  .content { padding-inline: 25px; }
  .login-shell { min-height: 620px; }
  .login-art { padding: 64px 44px; }
  .login-art h2 strong { font-size: 40px; }
  .login-card { padding: 62px 42px; }
  .save-state > span { display: none; }
  .performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-layout > :first-child,
  .settings-layout > .penalty-card { grid-column: auto; }
  .filter-bypass-card { grid-column: auto; }
  .penalty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-steps { grid-template-columns: 1fr; }
  .ticket-config-grid { grid-template-columns: 1fr; }
  .ticket-options-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-clean-layout { grid-template-columns: 1fr; }
  .ticket-options-card { grid-column: auto; }
  .ticket-panels-grid { grid-template-columns: 1fr; }
  .ticket-panels-grid > .ticket-options-card .card-heading { min-height: 0; }
  .media-layout { grid-template-columns: 1fr; }
  .suggestion-admin { grid-template-columns: minmax(0, 1fr) auto; }
  .suggestion-buttons { grid-column: 1 / -1; justify-content: flex-end; }
  .embed-builder-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { display: block; }
  body.login-mode .content {
    min-height: 100vh;
    padding: 16px;
    display: grid;
  }
  .sidebar { position: static; width: 100%; height: auto; padding: 13px 16px; display: block; }
  .logo, .server-card, .sidebar-footer, .nav-label { display: none; }
  nav { display: flex; overflow-x: auto; overflow-y: hidden; }
  .nav-item { width: auto; flex: 0 0 auto; }
  .nav-item span:last-child { display: block; }
  .content { padding: 0 16px 110px; }
  .topbar { align-items: flex-start; flex-direction: column; padding: 20px 0; }
  .topbar-actions { width: 100%; }
  .topbar-actions > * { min-width: 0; }
  .server-select { flex: 1; }
  .server-select span { display: none; }
  .server-select select { min-width: 0; }
  .bot-status { flex: 0 0 auto; }
  .admin-identity { width: 100%; justify-content: space-between; }
  .login-shell,
  body.login-mode .login-shell { min-height: auto; margin: 0; grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-card { min-height: 560px; padding: 48px 30px; }
  .login-card::after { inset: 12px; }
  .login-card h2 { font-size: 32px; }
  .panel .section-hero h2,
  .performance-heading h2 { font-size: 31px; }
  .panel .section-hero p,
  .performance-heading p { font-size: 13px; }
  .operations-card .card-heading { align-items: stretch; flex-direction: column; }
  .operations-actions { width: 100%; }
  .operations-actions button { flex: 1; }
  .settings-card,
  .featured-settings-card,
  .operations-card,
  .members-list-card,
  .member-profile-card,
  .modlogs-history-card,
  .embed-editor-card,
  .embed-preview-card { padding: 19px; border-radius: 15px; }
  .operation-entry { align-items: stretch; flex-direction: column; }
  .backup-actions { width: 100%; }
  .backup-actions > * { flex: 1; }
  .hero { padding: 35px 28px; }
  .hero-orbit { display: none; }
  .stats, .module-grid, .toggle-list, .two-columns,
  .embed-primary-fields, .embed-advanced-tools { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .performance-heading { align-items: flex-start; flex-direction: column; }
  .operational { width: 100%; }
  .performance-grid { grid-template-columns: 1fr; }
  .penalty-grid { grid-template-columns: 1fr; }
  .ticket-options-heading { align-items: flex-start; flex-direction: column; }
  .ticket-options-list { grid-template-columns: 1fr; }
  .ticket-option-editor { grid-template-columns: 1fr; }
  .ticket-publish { align-items: stretch; flex-direction: column; }
  .ticket-language-grid { grid-template-columns: 1fr; }
  .media-channel-list, .media-flow { grid-template-columns: 1fr; }
  .suggestion-setup-row,
  .suggestion-flow,
  .suggestion-admin { grid-template-columns: 1fr; }
  .suggestion-body,
  .suggestion-body:has(.suggestion-media) { grid-template-columns: 1fr; }
  .suggestion-setup-row .ticket-action-button { width: 100%; }
  .suggestions-heading,
  .suggestions-actions { align-items: stretch; flex-direction: column; }
  .suggestions-actions { width: 100%; }
  .suggestion-entry-header { grid-template-columns: 42px minmax(0,1fr); }
  .suggestion-header-status { grid-column: 2; width: min(180px, 100%); }
  .suggestion-body,
  .suggestion-content,
  .suggestion-description,
  .suggestion-admin { margin-left: 0; }
  .suggestion-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suggestion-buttons { grid-column: auto; }
  .suggestion-buttons button { flex: 1; }
  .suggestion-private-message { grid-template-columns: 1fr; }
  .suggestion-private-message .secondary-button { width: 100%; }
  .embed-send-bar { align-items: stretch; flex-direction: column; }
  .embed-send-actions { width: 100%; flex-direction: column; }
  .embed-send-actions .secondary-button,
  .embed-send-bar .ticket-action-button { width: 100%; }
  .discord-preview-shell { min-height: 360px; padding: 18px; }
  .modlogs-heading { align-items: stretch; flex-direction: column; }
  .modlogs-actions { width: 100%; }
  .modlogs-actions select { flex: 1; }
  .modlog-entry { grid-template-columns: 42px minmax(0,1fr); }
  .transcript-actions { grid-column: 2; justify-self: start; }
  .transcript-preview { grid-column: 2; }
  .embed-upload-grid,
  .embed-field-row,
  .embed-button-row { grid-template-columns: 1fr; }
  .embed-row-delete { width: 100%; }
  .embed-preview-fields > div.inline { grid-column: 1 / -1; }
  .modlogs-actions { align-items: stretch; flex-direction: column; }
  .modlog-entry { grid-template-columns: 1fr; }
  .modlog-icon { display: none; }
  .transcript-actions,
  .transcript-preview { grid-column: auto; width: 100%; }
.transcript-actions { align-items: stretch; flex-direction: column; }
}

/* Members */
.members-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 18px;
  align-items: start;
}
.members-list-card,
.member-profile-card { min-width: 0; padding: 24px; }
.members-list-card .card-heading {
  min-height: 72px;
  margin-bottom: 16px;
  padding-bottom: 15px;
}
.member-search { margin-bottom: 12px; }
.member-search input {
  height: 46px;
  border-color: rgba(255,255,255,.15);
  color: #fff;
  background: rgba(17,19,29,.84);
  font-size: 13px;
  font-weight: 700;
}
.members-list {
  max-height: 690px;
  display: grid;
  gap: 7px;
  overflow-y: auto;
  padding-right: 3px;
}
.member-search-hint {
  min-height: 110px;
  margin: 0;
  padding: 28px;
  border: 1px dashed rgba(255,157,46,.25);
  border-radius: 11px;
  color: #d9dde6;
  background: rgba(17,19,29,.45);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}
.member-list-item {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  color: #fff;
  background: rgba(17,19,29,.72);
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  text-align: left;
}
.member-list-item:hover,
.member-list-item.active {
  border-color: rgba(255,157,46,.38);
  background: rgba(255,157,46,.09);
}
.member-avatar-wrap { position: relative; width: 44px; height: 44px; }
.member-avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.member-avatar-wrap i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border: 3px solid #1b1e28;
  border-radius: 50%;
  background: #747983;
}
.member-avatar-wrap i.status-online { background: #23c483; }
.member-avatar-wrap i.status-idle { background: #f0b94f; }
.member-avatar-wrap i.status-dnd { background: #ef6570; }
.member-list-copy,
.member-list-stats { min-width: 0; }
.member-list-copy strong,
.member-list-copy small,
.member-list-stats b,
.member-list-stats small { display: block; }
.member-list-copy strong { overflow: hidden; color: #fff; font-size: 13px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.member-list-copy small { margin-top: 4px; color: #c7ccd6; font-size: 9px; }
.member-list-stats { text-align: right; }
.member-list-stats b { color: #ffb451; font-size: 10px; }
.member-list-stats small { margin-top: 4px; color: #aeb4c0; font-size: 8px; }
.member-profile-card { min-height: 470px; }
.member-profile-empty {
  min-height: 420px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.member-profile-empty > span {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: #ffad32;
  background: rgba(255,157,46,.11);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.member-profile-empty h3 { margin: 15px 0 5px; color: #fff; font-size: 20px; }
.member-profile-empty p { margin: 0; color: #c6cbd5; font-size: 11px; }
.member-profile-header {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  gap: 18px;
}
.member-profile-identity { min-width: 0; }
.member-profile-close { margin-left: auto; white-space: nowrap; }
.member-profile-header > img {
  width: 82px;
  height: 82px;
  border: 2px solid rgba(255,255,255,.78);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
}
.member-profile-header h3 {
  margin: 7px 0 6px;
  color: #fff;
  font-size: 29px;
  font-weight: 950;
  line-height: 1.05;
  text-shadow: 0 3px 12px rgba(0,0,0,.45);
}
.member-profile-header p { margin: 0; color: #f2f4f8; font-size: 14px; font-weight: 850; }
.member-profile-header code {
  padding: 3px 7px;
  border-radius: 7px;
  color: #ffb451;
  background: rgba(255,157,46,.16);
  font-size: 13px;
  font-weight: 950;
}
.member-status {
  padding: 5px 9px;
  border-radius: 99px;
  color: #d9dde6;
  background: rgba(255,255,255,.08);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.member-status.status-online { color: #70e4ba; background: rgba(66,209,158,.1); }
.member-status.status-idle { color: #ffd17c; background: rgba(240,185,79,.1); }
.member-status.status-dnd { color: #ff9da5; background: rgba(239,101,112,.1); }
.member-profile-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.member-profile-stats > div,
.member-detail-grid > div {
  padding: 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(31,34,46,.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.member-profile-stats small,
.member-profile-stats strong,
.member-detail-grid small,
.member-detail-grid strong { display: block; }
.member-profile-stats small,
.member-detail-grid small { color: #f1f3f7; font-size: 11px; font-weight: 900; }
.member-profile-stats strong { margin-top: 8px; color: #fff; font-size: 21px; font-weight: 950; }
.member-detail-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.member-detail-grid strong { margin-top: 7px; color: #fff; font-size: 15px; font-weight: 950; }
.danger-text { color: #ff9da5 !important; }
.member-profile-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.member-profile-section h4 { margin: 0 0 12px; color: #fff; font-size: 17px; font-weight: 950; }
.member-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.member-roles span {
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--role-color) 55%, transparent);
  border-radius: 7px;
  color: #fff;
  background: color-mix(in srgb, var(--role-color) 15%, transparent);
  font-size: 12px;
  font-weight: 900;
}
.member-history { max-height: 260px; display: grid; gap: 7px; overflow-y: auto; }
.member-history > div {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  background: rgba(31,34,46,.92);
}
.member-history > div > span { display: flex; justify-content: space-between; gap: 10px; }
.member-history b { color: #ffb451; font-size: 11px; font-weight: 950; text-transform: uppercase; }
.member-history time { color: #dce1ea; font-size: 11px; font-weight: 850; }
.member-history strong { display: block; margin-top: 6px; color: #fff; font-size: 14px; font-weight: 950; }
.member-history p { margin: 6px 0 0; color: #f2f4f8; font-size: 13px; font-weight: 800; }
.member-section-heading {
  margin-bottom: 10px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.member-section-heading h4 { margin: 0; }
.member-section-heading small { color: #f1f3f7; font-size: 11px; font-weight: 900; }
.member-messages {
  max-height: 420px;
  display: grid;
  gap: 9px;
  overflow-y: auto;
}
.member-message {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(31,34,46,.96);
}
.member-message header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.member-message header b { color: #ffb451; font-size: 12px; font-weight: 950; }
.member-message header time { color: #e0e4ec; font-size: 11px; font-weight: 850; }
.member-message p {
  margin: 10px 0 0;
  color: #f2f4f8;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.member-message-attachments {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.member-message-attachments a {
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.member-message-attachments img {
  width: 120px;
  height: 80px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  display: block;
  object-fit: cover;
}

@media (max-width: 980px) {
  .members-layout { grid-template-columns: 1fr; }
  .members-list { max-height: 430px; }
}

@media (max-width: 720px) {
  .member-profile-header { align-items: flex-start; flex-wrap: wrap; }
  .member-profile-close { width: 100%; margin-left: 0; }
  .member-section-heading { align-items: flex-start; flex-direction: column; }
  .member-profile-stats,
  .member-detail-grid { grid-template-columns: 1fr; }
  .member-list-item { grid-template-columns: 44px minmax(0,1fr); }
  .member-list-stats { grid-column: 2; text-align: left; }
  .ticket-option-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .ticket-action-button { width: 100%; }
  .penalty-step { min-height: auto; grid-template-columns: 42px minmax(0, 1fr); }
  .penalty-step input, .penalty-step > b { grid-column: 2; width: 100%; text-align: left; justify-self: stretch; }
  .topbar-actions { flex-wrap: wrap; }
  .save-bar { width: 100%; justify-content: space-between; }
  .save-state > span { display: block; }
}

@media (max-width: 480px) {
  .content { padding-inline: 12px; }
  .topbar-actions { gap: 8px; }
  .bot-status { padding-inline: 12px; font-size: 11px; }
  .admin-identity span strong {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .panel .section-hero h2,
  .performance-heading h2 { font-size: 27px; }
  .hero { padding: 28px 21px; border-radius: 17px; }
  .operations-actions,
  .backup-actions { align-items: stretch; flex-direction: column; }
  .operation-entry .secondary-button,
  .danger-button { width: 100%; }
}

/* Unified form field color across every dashboard page */
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
select,
textarea {
  background-color: #1d202a !important;
  background-image: none !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):focus,
select:focus,
textarea:focus {
  background-color: #1d202a !important;
}

/* Clearer typography for Worms Forslag */
.suggestion-setup-card .card-heading h3,
.suggestion-inbox-card .card-heading h3 {
  font-size: 24px;
  font-weight: 950;
  line-height: 1.2;
}

.suggestion-setup-card .card-heading p,
.suggestion-inbox-card .card-heading p {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.suggestion-setup-row label {
  font-size: 14px;
  font-weight: 950;
}

.suggestion-setup-row select {
  font-size: 15px;
  font-weight: 900;
}

.suggestion-flow b {
  font-size: 13px;
  font-weight: 950;
}

.suggestion-flow small {
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
}

.suggestions-new-count,
.suggestions-actions select,
.suggestions-actions .secondary-button {
  min-height: 42px;
  font-size: 14px;
  font-weight: 950;
}

.suggestion-header-status,
.suggestion-header-status > span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.suggestion-header-status select {
  height: 44px;
  font-size: 15px;
  font-weight: 950;
}

@media (max-width: 1250px) {
  .suggestions-layout {
    grid-template-columns: 1fr;
  }
}

/* Unified readable typography across all dashboard pages */
.panel .settings-card .card-heading h3,
.panel .featured-settings-card .card-heading h3,
.panel .operations-card .card-heading h3,
.panel .embed-editor-card .card-heading h3,
.panel .embed-preview-card .card-heading h3,
.panel .members-list-card .card-heading h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.panel .settings-card .card-heading p,
.panel .featured-settings-card .card-heading p,
.panel .operations-card .card-heading p,
.panel .embed-editor-card .card-heading p,
.panel .embed-preview-card .card-heading p,
.panel .members-list-card .card-heading p {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.panel .settings-card label,
.panel .featured-settings-card label,
.panel .embed-editor-card label,
.panel .operations-card label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.panel input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.panel select,
.panel textarea {
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.panel input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.panel select {
  min-height: 44px;
}

.panel .primary,
.panel .secondary-button,
.panel .ticket-action-button,
.panel .danger-button {
  min-height: 42px;
  font-size: 14px;
  font-weight: 950;
}

.panel .toggle-copy strong,
.panel .media-channel-copy strong,
.panel .media-flow strong,
.panel .ticket-steps strong,
.panel .timeline strong,
.panel .operation-entry strong,
.panel .modlogs-info strong,
.panel .embed-section-heading strong,
.panel .member-list-copy strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
}

.panel .toggle-copy small,
.panel .media-channel-copy small,
.panel .media-flow small,
.panel .media-protection small,
.panel .ticket-steps small,
.panel .timeline small,
.panel .operation-entry small,
.panel .modlogs-info small,
.panel .embed-section-heading small,
.panel .member-list-copy small,
.panel .member-list-stats small,
.panel .member-profile-empty p,
.panel .member-profile-header p,
.panel .member-history p {
  color: #e8ebf1;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.panel .card-badge,
.panel .module-status,
.panel .member-status,
.panel .member-roles span,
.panel .member-history b,
.panel .member-history time,
.panel .modlog-topline time,
.panel .modlog-meta span {
  font-size: 11px;
  font-weight: 900;
}

.panel .member-list-stats b,
.panel .member-detail-grid strong,
.panel .member-history strong,
.panel .modlog-copy > p {
  font-size: 13px;
  font-weight: 850;
}

/* Clearer and stronger sidebar */
.logo {
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
}

.logo strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.logo small {
  margin-top: 2px;
  color: #d2d7e1;
  font-size: 12px;
  font-weight: 700;
}

.server-card {
  min-height: 58px;
  padding: 11px 12px;
  border-color: #3d4351;
}

.server-avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
  font-weight: 950;
}

.server-copy small {
  color: #c4cad5;
  font-size: 11px;
  font-weight: 800;
}

.server-copy strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.nav-label {
  color: #8f9ab2;
  font-size: 11px;
  font-weight: 950;
}

.nav-item {
  min-height: 42px;
  color: #d8dce5;
  font-size: 13px;
  font-weight: 850;
}

.nav-icon {
  color: #98a4bd;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
}

.sidebar-footer strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.sidebar-footer small {
  color: #b8bfcc;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-credit {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(223, 228, 237, .74);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0,0,0,.18);
}


/* Server Events */
.server-events-layout {
  display: grid;
  gap: 18px;
}

.server-events-form-card form {
  align-items: end;
}

.server-event-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.server-events-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.server-events-list {
  display: grid;
  gap: 14px;
}

.server-event-entry {
  background: rgba(20, 23, 33, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 22px 24px;
}

.server-event-entry.is-live {
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.08);
}

.server-event-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.server-event-entry-top h4 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.05;
  color: #fff;
}

.server-event-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #ffcc78;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.server-event-entry p {
  margin: 16px 0 0;
  color: rgba(241, 245, 255, 0.9);
  font-size: 15px;
  line-height: 1.7;
}

.server-event-entry-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.server-event-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.server-event-meta span {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(12, 15, 24, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.server-event-meta small {
  display: block;
  margin-bottom: 8px;
  color: rgba(214, 220, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.server-event-meta strong {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.server-event-open-link {
  display: inline-flex;
  margin-top: 16px;
  color: #ffb347;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.server-event-open-link:hover {
  color: #ffd08a;
}

@media (max-width: 900px) {
  .server-events-summary,
  .server-event-meta {
    grid-template-columns: 1fr;
  }

  .server-event-entry-top,
  .server-event-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Discord-inspired server selection */
body.server-picker-mode { display: block; background: #171c25; }
body.server-picker-mode .sidebar, body.server-picker-mode .topbar { display: none !important; }
body.server-picker-mode .content { min-height: 100vh; padding: 0 22px; }
.server-picker { min-height: 100vh; display: grid; place-items: center; padding: 56px 0; }
.server-picker-container { width: min(100%, 710px); }
.server-picker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 55px; gap: 12px; }
.picker-brand { display: inline-flex; align-items: center; gap: 13px; color: #f6f7fb; font-weight: 760; font-size: 17px; }
.picker-brand img { width: 42px; height: 42px; object-fit: contain; }
.picker-logout { border: 1px solid #444d5c; color: #c4cad6; background: #242b36; padding: 11px 18px; border-radius: 12px; }
.picker-logout:hover { background: #323b49; color: white; }
.server-picker-heading { margin-bottom: 24px; }
.picker-eyebrow { color: #e7a94a; font-size: 11px; letter-spacing: .16em; font-weight: 800; }
.server-picker-heading h1 { color: #fff; font-size: clamp(29px,5vw,40px); margin: 7px 0 12px; line-height: 1.2; }
.server-picker-heading p, .server-picker-hint { color: #929bab; font-size: 14px; line-height: 1.6; }
.server-picker-list { display: grid; gap: 11px; }
.server-picker-item { width: 100%; display: flex; gap: 17px; align-items: center; padding: 16px; background: #242c38; border: 1px solid #364051; border-radius: 16px; color: white; text-align: left; transition: background .15s,border-color .15s,transform .15s; }
.server-picker-item:hover:not(:disabled), .server-picker-item:focus-visible { background: #303a49; border-color: #e3a247; transform: translateY(-1px); outline: none; }
.server-picker-item:disabled { opacity: .5; cursor: wait; }
.picker-server-avatar { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #414d63; color: #fff; font-weight: 800; font-size: 18px; background-position: center; background-size: cover; }
.picker-server-avatar.has-guild-icon, .server-avatar.has-guild-icon { font-size: 0; }
.picker-server-details { flex: 1; min-width: 0; display: grid; gap: 6px; }
.picker-server-details strong { font-size: 17px; overflow-wrap: anywhere; }
.picker-server-details small { color: #a6b0c0; font-size: 12px; }
.picker-server-arrow { font-size: 31px; color: #d0d6e0; line-height: 1; margin-right: 10px; }
.server-picker-empty { padding: 28px; background: #242c38; border: 1px solid #364051; border-radius: 16px; color: #bbc4d0; line-height: 1.6; }
.server-picker-error { color: #ff9292; padding: 12px 4px; }
.server-picker-hint { text-align: center; margin-top: 25px; font-size: 12px; }
.server-switch { width: 100%; border: 1px solid transparent; text-align: left; cursor: pointer; }
.server-switch:hover { border-color: #e3a247; }
.switch-server-arrow { margin-left: auto; color: #b9c0ce; font-size: 20px; }
.server-avatar { background-position: center; background-size: cover; }
@media (max-width: 600px) { .server-picker-header { margin-bottom: 38px; } .server-picker-item { padding: 12px; gap: 12px; } .picker-server-avatar { width: 47px; height: 47px; } .picker-server-details strong { font-size: 15px; } }

/* Bot Tilpasning: server-scoped profile editor */
.branding-intro { margin: 0 0 26px; }
.branding-intro h2 { font-size: clamp(24px, 3vw, 36px); margin: 10px 0; }
.branding-intro p, .branding-help { color: #a2a8b6; }
.branding-card { max-width: 760px; padding: 30px; }
.branding-card h3 { margin-top: 0; }
.branding-preview { display: flex; align-items: center; gap: 18px; background: #252b37; border: 1px solid #3b4150; border-radius: 14px; padding: 18px; margin: 22px 0; }
.branding-preview img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.branding-preview strong { display: block; font-size: 20px; }
.branding-preview small { display: block; margin-top: 6px; color: #aab0be; }
#branding-form { display: flex; flex-direction: column; gap: 12px; }
#branding-form > label:not(.branding-clear) { font-weight: 700; margin-top: 12px; }
#branding-form input[type="text"], #branding-form input[type="file"] { width: 100%; box-sizing: border-box; padding: 14px; border-radius: 10px; border: 1px solid #454b5c; background: #191e2a; color: white; }
#branding-form input[type="file"] { cursor: pointer; }
#branding-form .branding-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }
#branding-form .branding-upload-field { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
#branding-form .branding-upload-field > label:first-child { font-weight: 700; }
#branding-form .branding-upload-field input[type="file"] { min-width: 0; }
#branding-form .branding-upload-field .branding-clear { margin-top: auto; }
@media (max-width: 650px) { #branding-form .branding-upload-grid { grid-template-columns: 1fr; } }

.branding-help { margin: 0 0 6px; font-size: 13px; }
.branding-clear { display: flex; align-items: center; gap: 9px; margin: 8px 0; }
.branding-clear input { width: 17px; height: 17px; }
.branding-save { border: 0; border-radius: 10px; background: #f89020; color: #161820; font-weight: 800; padding: 14px 22px; cursor: pointer; align-self: flex-start; }
.branding-save:disabled { opacity: .6; cursor: wait; }
#branding-message { min-height: 1.3em; color: #f7b15f; margin: 6px 0; }

/* Bot profile editor and Discord-style preview */
.branding-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.branding-columns .branding-card { max-width: none; min-width: 0; }
.branding-showcase { min-width: 0; padding: 30px; }
.branding-showcase h3 { margin-top: 0; }
#branding-form textarea { width: 100%; box-sizing: border-box; padding: 14px; border-radius: 10px; border: 1px solid #454b5c; background: #191e2a; color: white; font: inherit; resize: vertical; }
.branding-profile-preview { background: #252b37; border: 1px solid #3b4150; border-radius: 15px; overflow: hidden; margin: 20px 0; }
.branding-banner-preview { height: 135px; background: linear-gradient(120deg, #412269, #c87a32); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: #e6dced; font-size: 13px; }
.branding-profile-body { padding: 12px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.branding-profile-body img { width: 82px; height: 82px; border: 5px solid #252b37; border-radius: 50%; object-fit: cover; margin-top: -48px; background: #252b37; }
.branding-profile-body strong { font-size: 22px; margin-top: 8px; overflow-wrap: anywhere; }
.branding-profile-body small { color: #aab0be; margin-top: 5px; }
.branding-profile-body p { color: #d0d3dc; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .branding-columns { grid-template-columns: 1fr; } }

/* Dashboard: welcome and automatic join-role setup */
.welcome-layout > :first-child { grid-column: auto; }
.welcome-card { min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 13px; }
.welcome-card h3 { margin: 0; }
.welcome-card label:not(.welcome-check) { font-weight: 750; }
.welcome-card textarea, .welcome-card select { width: 100%; box-sizing: border-box; background: #191e2a; color: #fff; border: 1px solid #454b5c; border-radius: 10px; padding: 12px; font: inherit; }
.welcome-card textarea { resize: vertical; min-height: 110px; }
.welcome-card .welcome-check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.welcome-check input { width: 18px; height: 18px; accent-color: #f89020; }
.welcome-preview { white-space: pre-wrap; overflow-wrap: anywhere; padding: 18px; border-radius: 12px; background: #1a202c; border-left: 3px solid #f89020; color: #e7e8ee; min-height: 50px; }
@media(max-width: 1000px) { .welcome-layout { grid-template-columns: 1fr; } }

/* Velkomst-embed: server-specific color and preview under join role */
.welcome-preview-section { border-top: 1px solid rgba(255,157,46,.22); padding-top: 17px; margin-top: 10px; }
.welcome-preview-section h4 { margin: 0 0 7px; font-size: 15px; }
.welcome-preview { transition: border-left-color .12s ease; }

/* Choose welcome embed color directly from its live preview. */
.welcome-hidden-color {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.welcome-preview-button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}
.welcome-preview-button:hover { background: #222a37; }
.welcome-preview-button:focus-visible { outline: 2px solid #ff9d2e; outline-offset: 3px; }

/* Tickets: only Danish copy and a single full-width dropdown configuration card. */
.ticket-language-grid { grid-template-columns: minmax(0, 1fr); }
.ticket-panels-grid { grid-template-columns: minmax(0, 1fr); }
.ticket-panels-grid > .ticket-options-card .card-heading { min-height: 0; }

/* Twitch: keep activation switch distinct from Discord channel settings. */
.panel[data-panel="streams"] .card-heading { margin-bottom: 12px; }
.panel[data-panel="streams"] .twitch-enable-toggle { margin-bottom: 34px; }

/* YouTube activation spacing matches the Twitch module. */
.panel[data-panel="streams"] .card-heading { margin-bottom: 12px; }
.panel[data-panel="streams"] .youtube-enable-toggle { margin-bottom: 34px; }

/* Geekd Nyheder */
.geekd-layout {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.geekd-layout .settings-card {min-width:0}
.geekd-time-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.geekd-time-grid label {display:block;margin-bottom:8px}
.geekd-time-grid input {width:100%;box-sizing:border-box}
.geekd-categories {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.geekd-categories .toggle-row {display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;cursor:pointer}
.geekd-categories .toggle-copy {min-width:0}
.geekd-categories .toggle-copy strong {font-size:12px;line-height:1.35}
.geekd-categories .switch {flex-shrink:0}
/* Keep Geekd category switches identical to the existing moderation switches. */
.geekd-results {display:grid;gap:10px;margin:16px 0 25px}
.geekd-result {padding:12px;border:1px solid rgba(143,153,177,.2);border-radius:10px;overflow-wrap:anywhere}
.geekd-result a {display:block;color:#a7c4ff;font-weight:700;text-decoration:none}
.geekd-result small {display:block;color:#a7abb7;margin-top:6px}
@media(max-width:960px){.geekd-layout {grid-template-columns:1fr}}
@media(max-width:500px){.geekd-time-grid,.geekd-categories{grid-template-columns:1fr}}

/* Twitch and YouTube share one menu, with their settings side by side on desktop. */
.panel[data-panel="streams"] .stream-settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}
.panel[data-panel="streams"] .stream-settings-layout > .settings-card {
  grid-column: auto;
  min-width: 0;
}
@media (max-width: 980px) {
  .panel[data-panel="streams"] .stream-settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* System > Integrationsstatus */
.integration-monitor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.integration-monitor-toolbar p { margin: 0; }
.integration-monitor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.integration-monitor-card { min-width: 0; }
.integration-monitor-card #youtube-credentials-status,
.integration-monitor-card #twitch-credentials-status { color: var(--muted); line-height: 1.85; overflow-wrap: anywhere; margin: 0; }
.integration-monitor-pill { display: inline-flex; flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: rgba(136,146,166,.15); color: var(--muted); font-size: 12px; font-weight: 700; }
.integration-monitor-pill[data-phase="ok"] { color: #7ee3a2; background: rgba(46,190,110,.12); }
.integration-monitor-pill[data-phase="degraded"],
.integration-monitor-pill[data-phase="checking"] { color: #ffc67a; background: rgba(255,179,54,.12); }
.integration-monitor-pill[data-phase="error"] { color: #ffa0a0; background: rgba(230,70,70,.12); }
@media (max-width: 850px) { .integration-monitor-grid { grid-template-columns: 1fr; } .integration-monitor-toolbar { align-items: flex-start; flex-wrap: wrap; } }

/* System: shared colour control for outgoing embeds */
.global-embed-color-card { margin-top: 18px; }
.global-embed-color-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:12px; }
.global-embed-color-controls input[type=color] { width:58px; height:42px; padding:2px; cursor:pointer; }
.global-embed-color-controls input[type=text] { max-width:140px; }


/* Integrationsstatus - calm, readable monitoring dashboard (scoped to this panel). */
.panel[data-panel="integrations"] .integration-monitor-toolbar {
  margin: 0 0 24px;
  padding: 2px 0;
  gap: 18px;
}
.panel[data-panel="integrations"] .integration-monitor-grid {
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.panel[data-panel="integrations"] .integration-monitor-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
}
.panel[data-panel="integrations"] .integration-monitor-card > .card-heading {
  margin-bottom: 0;
  padding-bottom: 20px;
  min-height: 0;
  align-items: center;
}
.panel[data-panel="integrations"] .integration-monitor-card .card-heading h3 { margin-bottom: 5px; }
.panel[data-panel="integrations"] .integration-monitor-card .card-heading p { font-size: 13px; }
.panel[data-panel="integrations"] .integration-monitor-pill { padding: 8px 12px; }
.panel[data-panel="integrations"] .integration-status-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  min-width: 0;
}
.panel[data-panel="integrations"] .integration-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(151, 162, 183, .17);
  border-radius: 12px;
  background: rgba(12, 15, 24, .24);
}
.panel[data-panel="integrations"] .integration-stat-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.4;
}
.panel[data-panel="integrations"] .integration-stat-value {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
  color: #f4f5f8;
  overflow-wrap: anywhere;
}
.panel[data-panel="integrations"] .integration-discovery-box {
  border: 1px solid rgba(151, 162, 183, .16);
  border-radius: 12px;
  padding: 18px;
  background: rgba(12, 15, 24, .18);
}
.panel[data-panel="integrations"] .integration-discovery-box h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #f4f5f8;
}
.panel[data-panel="integrations"] .integration-discovery-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.panel[data-panel="integrations"] .integration-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(151, 162, 183, .19);
}
.panel[data-panel="integrations"] .integration-action-row button {
  min-height: 40px;
  white-space: normal;
}
.panel[data-panel="integrations"] .integration-action-row .integration-reset-button { margin-left: auto; }
.panel[data-panel="integrations"] .integration-monitor-card > .branding-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  min-height: 20px;
}
.panel[data-panel="integrations"] .integration-secondary-card {
  margin-top: 24px;
  padding: 28px;
}
.panel[data-panel="integrations"] .integration-secondary-card .card-heading {
  margin-bottom: 22px;
  padding-bottom: 18px;
}
.panel[data-panel="integrations"] .integration-secondary-card .card-heading h3 { font-size: 22px; }
.panel[data-panel="integrations"] .integration-secondary-card .card-heading p { font-size: 13px; line-height: 1.6; }
.panel[data-panel="integrations"] .integration-secondary-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.panel[data-panel="integrations"] .global-embed-color-card .global-embed-color-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 0 0 16px;
}
.panel[data-panel="integrations"] .global-embed-color-card .global-embed-color-controls input[type=text] { min-width: 130px; }
@media (max-width: 1120px) {
  .panel[data-panel="integrations"] .integration-monitor-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .panel[data-panel="integrations"] .integration-monitor-card,
  .panel[data-panel="integrations"] .integration-secondary-card { padding: 20px; }
  .panel[data-panel="integrations"] .integration-status-fields { grid-template-columns: minmax(0, 1fr); }
  .panel[data-panel="integrations"] .integration-action-row .integration-reset-button { margin-left: 0; }
  .panel[data-panel="integrations"] .integration-action-row button { width: 100%; }
}

/* Oversigt over Server Events: ensartet luft og tydelige handlinger. */
.server-events-overview { margin-top: 6px; }
.server-events-overview .card-heading { gap: 16px; align-items: center; }
.server-events-overview .server-events-list { margin-top: 20px; }
.server-events-overview .server-event-entry { padding: 22px; }
.server-event-title-group { min-width: 0; overflow-wrap: anywhere; }
.server-events-overview .server-event-entry-top h4 { font-size: clamp(18px, 2vw, 24px); line-height: 1.3; }
.server-events-overview .server-event-entry p { white-space: pre-wrap; overflow-wrap: anywhere; }
.server-events-overview .server-event-entry-actions { flex-shrink: 0; }
.server-events-overview .delete-server-event { color: #ffb4b4; border-color: rgba(249, 115, 115, 0.35); }
.server-events-overview .delete-server-event:hover { border-color: rgba(249, 115, 115, 0.8); }
@media (max-width: 650px) {
  .server-events-overview .card-heading { flex-direction: column; align-items: stretch; }
  .server-events-overview .server-event-meta { grid-template-columns: 1fr; }
  .server-events-overview .server-event-entry-actions > button { flex: 1; }
}

/* Server Events: match the overview card to the three summary stat cards. */
.panel[data-panel="events"] .server-events-overview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 157, 46, .22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 8%, rgba(255, 157, 46, .10), transparent 26%),
    linear-gradient(135deg, #252833, #292c38);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, .20),
    inset 0 1px 0 rgba(255, 255, 255, .035);
}
.panel[data-panel="events"] .server-events-overview::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
  width: 82px;
  height: 82px;
  right: -28px;
  top: -34px;
  border: 1px solid rgba(255, 157, 46, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255, 157, 46, .035);
}
.panel[data-panel="events"] .server-events-overview .card-heading,
.panel[data-panel="events"] .server-events-overview .server-events-list {
  position: relative;
  z-index: 1;
}


/* Welcome embed images: links, upload controls, and Discord-like preview. */
.welcome-image-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.welcome-image-field input { width: 100%; box-sizing: border-box; min-width: 0; background: #191e2a; color: #fff; border: 1px solid #454b5c; border-radius: 10px; padding: 12px; font: inherit; }
.welcome-upload-button { align-self: flex-start; background: rgba(248,144,32,.12); border: 1px solid rgba(248,144,32,.42); border-radius: 9px; padding: 9px 12px; color: #ffb65c; font-weight: 700; cursor: pointer; }
.welcome-upload-button:disabled { opacity: .6; cursor: wait; }
.welcome-preview-wrap { position: relative; padding: 0; }
.welcome-preview-wrap .welcome-preview { padding-right: 96px; }
.welcome-preview-thumbnail { width: 72px; height: 72px; object-fit: cover; position: absolute; right: 12px; top: 12px; border-radius: 7px; }
.welcome-preview-image { display: block; width: min(100%, 460px); max-height: 290px; object-fit: contain; object-position: left center; margin: 12px 0 0 3px; border-radius: 9px; }
.welcome-preview-image[hidden], .welcome-preview-thumbnail[hidden] { display: none; }


/* Keep the welcome banner and thumbnail INSIDE the same visual Discord embed. */
.welcome-preview-embed {
  position: relative;
  overflow: hidden;
  background: #1a202c;
  border-left: 3px solid #f89020;
  border-radius: 12px;
  transition: border-left-color .12s ease;
}
.welcome-preview-wrap .welcome-preview {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 0;
  padding: 18px;
  padding-right: 96px;
}
.welcome-preview-wrap .welcome-preview:hover { background: rgba(255,255,255,.025); }
.welcome-preview-wrap .welcome-preview-image {
  display: block;
  max-width: calc(100% - 36px);
  width: min(460px, calc(100% - 36px));
  height: auto;
  margin: 0 18px 18px;
  border-radius: 8px;
}
.welcome-preview-wrap .welcome-preview-thumbnail {
  right: 14px;
  top: 14px;
}
.welcome-preview-wrap .welcome-preview-image[hidden] { display: none; }

/* Welcome embed image settings (consolidated; same computed values). */
.welcome-image-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  column-gap: 20px;
  row-gap: 12px;
  align-items: start;
  margin-top: 10px;
}
.welcome-image-settings .welcome-image-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 7px;
  min-width: 0;
}
.welcome-image-settings .welcome-image-field > label {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 700;
}
.welcome-image-settings .welcome-image-field > input[type="text"] {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 9px 12px;
  box-sizing: border-box;
}
.welcome-image-settings .welcome-upload-button {
  grid-column: 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 2px;
  border-radius: 5px;
  color: #ffab48;
  font-size: .91rem;
  line-height: 1.3;
  font-weight: 700;
  cursor: pointer;
}
.welcome-image-settings .welcome-upload-button:hover {
  color: #ffd098;
  text-decoration: underline;
  background: transparent;
}
.welcome-image-settings .welcome-upload-button:focus-visible {
  outline: 2px solid #ffab48;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .welcome-image-settings { grid-template-columns: 1fr; }
}

/* Embed Builder compact tools and external Add buttons (consolidated). */
/* Match height and width of the image/thumbnail controls directly above. */
.embed-advanced-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.embed-advanced-tools .embed-section-heading {
  min-height: 36px;
  margin-bottom: 0;
  gap: 8px;
  align-items: center;
}
.embed-advanced-tools .embed-section-heading strong {
  font-size: 13px;
  line-height: 1.3;
}
/* Only condense the helper line; functionality and DOM remain intact. */
.embed-advanced-tools .embed-section-heading small {
  display: none;
}
.embed-advanced-tools .embed-quiet-action {
  flex: 0 0 auto;
  padding: 7px 2px;
}
.embed-advanced-tools .embed-dynamic-list:not(:empty) {
  margin-top: 10px;
}
@media (max-width: 700px) {
  .embed-advanced-tools { grid-template-columns: 1fr; }
}



/* Keep the add controls outside the field outline, matching image upload rows. */
.embed-advanced-tools > .embed-dynamic-section {
  display: grid;
  box-sizing: border-box;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 10px;
  align-items: center;
  padding: 0;
  margin: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.embed-advanced-tools > .embed-dynamic-section > .embed-section-heading {
  display: contents;
}
.embed-advanced-tools > .embed-dynamic-section > .embed-section-heading > span {
  min-width: 0;
  box-sizing: border-box;
  min-height: 54px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  background: #1d202a;
}
.embed-advanced-tools > .embed-dynamic-section > .embed-section-heading > span > strong {
  font-size: 13px;
  line-height: 1.3;
}
.embed-advanced-tools > .embed-dynamic-section > .embed-section-heading > span > small {
  display: none;
}
.embed-advanced-tools > .embed-dynamic-section > .embed-section-heading > .embed-quiet-action {
  justify-self: end;
  white-space: nowrap;
  padding: 6px 2px;
  border: 0;
  background: transparent;
}
.embed-advanced-tools > .embed-dynamic-section > .embed-dynamic-list {
  grid-column: 1 / -1;
  margin-top: 0;
}
.embed-advanced-tools > .embed-dynamic-section > .embed-dynamic-list:empty {
  display: none;
}


/* Consolidated navigation readability, 2026-11-13.
   Presentation only: no settings, ids, or event handlers are changed. */
@media (min-width: 981px) {
  .sidebar nav { gap: 12px; padding-block: 4px 10px; }
  .sidebar .nav-group { padding: 11px 9px 9px; gap: 4px; border-color: rgba(255,255,255,.075); }
  .sidebar .nav-label { margin: 0 8px 7px; color: #b2b9c9; letter-spacing: .11em; }
  .sidebar .nav-item { min-height: 40px; padding: 9px 11px; line-height: 1.35; }
  .sidebar .nav-item:focus-visible { outline: 2px solid #ffad42; outline-offset: 2px; }
}
/* Clearer hierarchy for long settings pages */
.panel .card-heading { row-gap: 8px; }
.panel .settings-card, .panel .featured-settings-card { min-width: 0; }
.panel .form-grid > *, .panel .settings-layout > * { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  .panel.active { animation: none; }
  .nav-item { transition: none; }
}

/* Geekd server access: compact checkboxes (start) */
#geekd-access-list .operation-entry {
  gap: 16px;
}
#geekd-access-list .operation-entry > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
#geekd-access-list .toggle-row,
.featured-settings-card #geekd-access-list .toggle-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 0 0 auto;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  cursor: pointer;
}
#geekd-access-list .toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: #f89a20;
  cursor: pointer;
}
#geekd-access-list .toggle-row span {
  display: inline;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
@media (max-width: 480px) {
  #geekd-access-list .operation-entry { flex-wrap: wrap; }
}
/* Geekd server access: compact checkboxes (end) */

/* IRW OPERATIONS LAYOUT POLISH START */
/* Kun Drift & Sikkerhed: ensartede, fuldbredde sektioner. */
.panel[data-panel="operations"] .operations-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.panel[data-panel="operations"] .operations-layout > .operations-card {
  grid-column: 1 / -1;
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
}
.panel[data-panel="operations"] .operations-card .card-heading {
  min-height: 0;
  margin-bottom: 18px;
  padding-bottom: 18px;
  gap: 14px;
}
.panel[data-panel="operations"] .operations-card .card-heading > div:first-child {
  min-width: 0;
}
.panel[data-panel="operations"] .operations-card .card-heading h3 {
  line-height: 1.2;
}
.panel[data-panel="operations"] .operations-card .card-heading p {
  line-height: 1.55;
}
.panel[data-panel="operations"] .operations-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.panel[data-panel="operations"] #geekd-access-list,
.panel[data-panel="operations"] #backups-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: none;
  padding-right: 0;
  overflow: visible;
}
.panel[data-panel="operations"] #geekd-access-list .operation-entry,
.panel[data-panel="operations"] #backups-list .operation-entry {
  min-width: 0;
  margin: 0;
}
.panel[data-panel="operations"] #geekd-access-list .empty-state,
.panel[data-panel="operations"] #backups-list .empty-state {
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .panel[data-panel="operations"] #geekd-access-list,
  .panel[data-panel="operations"] #backups-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .panel[data-panel="operations"] .operations-card .card-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .panel[data-panel="operations"] .operations-card .card-heading > button,
  .panel[data-panel="operations"] .operations-actions {
    width: 100%;
  }
  .panel[data-panel="operations"] .operations-actions > button {
    flex: 1 1 auto;
  }
}
/* IRW OPERATIONS LAYOUT POLISH END */


/* UI consistency pass: common keyboard affordances and overflow protection.
   Keep visual changes scoped to dashboard panels. */
.panel :is(button, a, input, select, textarea, summary):focus-visible,
.topbar :is(button, a, select):focus-visible,
.sidebar :is(button, a, select):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.panel :is(button, a, input, select, textarea):disabled {
  cursor: not-allowed;
}
.panel :is(.settings-card, .featured-settings-card, .operations-card,
           .embed-editor-card, .embed-preview-card, .members-list-card) {
  min-width: 0;
}
.panel :is(.card-heading, .operation-entry, .embed-section-heading) > :first-child {
  min-width: 0;
}
.panel :is(.card-heading, .operation-entry) p,
.panel .operation-entry small {
  overflow-wrap: anywhere;
}
/* Errors and backup names should remain readable instead of widening cards. */
.panel[data-panel="operations"] .operation-entry span strong {
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
.panel[data-panel="operations"] :is(pre, code) {
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 640px) {
  .panel .card-heading {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .panel .card-heading > :first-child {
    flex: 1 1 210px;
  }
  .panel[data-panel="operations"] .backup-actions {
    flex-wrap: wrap;
  }
}

/* Diverse klips: compact manual clip composer and embedded preview. */
.clip-action-row { display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }
.clip-preview-embed { border-left:4px solid #ff9b2f; background:rgba(20,28,42,.55); border-radius:12px; padding:18px; min-width:0; }
.clip-preview-embed strong { display:block; overflow-wrap:anywhere; }
.clip-preview-embed p { opacity:.8; }
.clip-preview-embed img { display:block; max-width:100%; width:100%; height:auto; border-radius:10px; }
.clip-preview-embed img[hidden] { display:none; }


/* Diverse klips: manual composer and automatic monitoring side-by-side.
   Scope this layout so other settings pages retain their existing grid. */
@media (min-width: 981px) {
  .panel[data-panel="clips"] > .settings-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .panel[data-panel="clips"] > .settings-layout > .settings-card {
    min-width: 0;
  }
  .panel[data-panel="clips"] > .settings-layout > :first-child {
    grid-column: auto;
  }
  .panel[data-panel="clips"] > .settings-layout > #clips-preview-card {
    grid-column: 1 / -1;
  }
}
@media (max-width: 980px) {
  .panel[data-panel="clips"] > .settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel[data-panel="clips"] > .settings-layout > * {
    grid-column: 1 / -1;
  }
}

/* Keep both clip action rows aligned at the bottom of their cards. */
.panel[data-panel="clips"] > .settings-layout > .settings-card:not(#clips-preview-card) {
  display: flex;
  flex-direction: column;
}
.panel[data-panel="clips"] > .settings-layout > .settings-card:not(#clips-preview-card) > .form-grid {
  flex: 1 1 auto;
  align-content: start;
}
.panel[data-panel="clips"] > .settings-layout > .settings-card:not(#clips-preview-card) > .actions-row {
  margin-top: 16px;
}
