:root {
  color-scheme: dark;
  --bg: #090c14;
  --sidebar: rgba(12, 16, 27, 0.96);
  --surface: #111624;
  --surface-2: #161c2c;
  --surface-3: #1b2235;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f3f5fb;
  --muted: #8f98ad;
  --subtle: #626c82;
  --primary: #8a7cff;
  --primary-strong: #7464f6;
  --primary-soft: rgba(138, 124, 255, 0.14);
  --mint: #58d6ad;
  --amber: #f3b862;
  --rose: #f1789f;
  --blue: #62a8f7;
  --cyan: #55cce7;
  --danger: #ef6b78;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  --sidebar-width: 262px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 60% -10%, rgba(114, 92, 224, 0.09), transparent 30%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
select,
input[type="checkbox"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.18;
}

.ambient-one {
  top: 8%;
  right: 5%;
  width: 320px;
  height: 320px;
  background: #6e5cff;
}

.ambient-two {
  bottom: 5%;
  left: 25%;
  width: 260px;
  height: 260px;
  background: #2cb98d;
  opacity: 0.07;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  overflow-y: auto;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 7px 21px;
}

.vertx-brand {
  flex: 0 0 auto;
}

.vertx-brand .brand-logo-image {
  flex: 0 0 38px;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.vertx-brand .brand-copy {
  min-width: 0;
}

.vertx-brand .brand-copy strong,
.vertx-brand .brand-copy small {
  display: block;
}

.vertx-brand .brand-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 1.25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: linear-gradient(145deg, #7563f5, #9b8fff);
  box-shadow: 0 8px 22px rgba(112, 93, 238, 0.27);
  background-position: center;
  background-size: cover;
}

.brand-mark.has-image .brand-monogram {
  display: none;
}

.brand-monogram {
  color: white;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -0.3px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.2px;
}

.brand span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.55px;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 59px;
  margin: 0 1px 17px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  cursor: default;
}

.server-avatar,
.profile-avatar,
.member-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  color: #fff;
  font-weight: 750;
  letter-spacing: -0.4px;
}

.server-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background-color: #313950;
}

.server-card-copy {
  min-width: 0;
  flex: 1;
}

.server-card-copy span,
.server-card-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-card-copy span {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.server-card-copy strong {
  margin-top: 1px;
  font-size: 12px;
}

.server-card > svg {
  width: 14px;
  color: var(--subtle);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-label {
  margin: 17px 11px 6px;
  color: #555e72;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1.25px;
}

.nav-label:first-child {
  margin-top: 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 40px;
  padding: 0 11px;
  color: #858ea3;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  transition: 160ms ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: -17px;
  width: 3px;
  height: 21px;
  border-radius: 0 5px 5px 0;
  background: transparent;
}

.nav-item:hover {
  color: #d7dbea;
  background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: #f4f2ff;
  border-color: rgba(138, 124, 255, 0.13);
  background: linear-gradient(90deg, rgba(138, 124, 255, 0.16), rgba(138, 124, 255, 0.06));
}

.nav-item.active::before {
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}

.nav-item.active svg {
  color: #a99eff;
}

.nav-count {
  min-width: 22px;
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #a4adbf;
  font-size: 10px;
  text-align: center;
}

.status-dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
}

.status-dot[hidden] {
  display: none;
}

.status-dot-pink {
  background: var(--rose);
  box-shadow: 0 0 8px rgba(241, 120, 159, 0.65);
}

.status-dot-mint {
  background: var(--mint);
  box-shadow: 0 0 8px rgba(88, 214, 173, 0.65);
}

.sidebar-footer {
  margin-top: auto;
  padding: 28px 7px 0;
}

.health-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.health-line > div {
  min-width: 0;
  flex: 1;
}

.health-line strong,
.health-line span {
  display: block;
}

.health-line strong {
  font-size: 11px;
}

.health-line div span,
.health-line > span:last-child,
.version {
  color: var(--subtle);
  font-size: 9.5px;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border: 2px solid #18392f;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px rgba(88, 214, 173, 0.55);
}

.live-pulse.offline {
  border-color: #3b262b;
  background: var(--danger);
  box-shadow: none;
}

.version {
  display: block;
  margin-top: 10px;
  letter-spacing: 0.2px;
}

.workspace {
  min-width: 0;
  grid-column: 2;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 clamp(22px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 12, 20, 0.76);
  backdrop-filter: blur(20px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--subtle);
  font-size: 12px;
}

.breadcrumbs svg {
  width: 12px;
}

.breadcrumbs strong {
  color: #cfd4e1;
  font-weight: 600;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.search-shell {
  width: 300px;
  height: 37px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.search-shell svg {
  width: 15px;
  color: var(--subtle);
}

.search-shell input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e7eaf2;
  font-size: 11px;
}

.search-shell input::placeholder {
  color: #5f687b;
}

kbd {
  min-width: 31px;
  padding: 2px 5px;
  color: #606a7e;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}

.icon-button {
  position: relative;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: #8d96a9;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: 150ms ease;
}

.icon-button:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
}

.has-indicator > span {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--bg);
  border-radius: 50%;
  background: var(--rose);
}

.profile-button {
  min-width: 184px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 9px 4px 5px;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  transition: background 150ms ease;
}

.profile-button:hover {
  background: rgba(255, 255, 255, 0.035);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background-color: #313950;
  font-size: 11px;
}

.profile-copy {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.profile-copy strong,
.profile-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 11px;
  font-weight: 650;
}

.profile-copy small {
  color: var(--subtle);
  font-size: 9px;
}

.profile-button > svg {
  width: 13px;
  color: var(--subtle);
}

.account-control {
  position: relative;
}

.account-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  right: 0;
  width: 210px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #131927;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
}

.account-menu > span,
.account-menu > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu > span {
  color: var(--subtle);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.account-menu > strong {
  margin-top: 3px;
  font-size: 10.5px;
}

.account-menu button {
  width: 100%;
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #cbd0dc;
  font-size: 9.5px;
  cursor: pointer;
}

.account-menu button:hover {
  border-color: rgba(241, 120, 159, 0.24);
  background: rgba(241, 120, 159, 0.07);
  color: #f39ab7;
}

.account-menu button svg {
  width: 13px;
}

.mobile-menu {
  display: none;
  margin-right: 12px;
}

main {
  width: min(1420px, 100%);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 34px clamp(22px, 3.4vw, 52px) 56px;
  outline: none;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 27px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #8f83f4;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.eyebrow::before {
  content: "";
  width: 19px;
  height: 1px;
  background: #8f83f4;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.15;
  letter-spacing: -1.2px;
}

.page-head p {
  max-width: 630px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.page-actions {
  display: flex;
  gap: 9px;
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #c9cfdb;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: 160ms ease;
}

.button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateY(-1px);
}

.button.primary {
  border-color: #7768e9;
  background: linear-gradient(145deg, #8f80ff, #7564f2);
  color: white;
  box-shadow: 0 8px 20px rgba(113, 95, 231, 0.2);
}

.button.danger {
  color: #ffacb5;
  border-color: rgba(239, 107, 120, 0.22);
  background: rgba(239, 107, 120, 0.07);
}

.button svg {
  width: 14px;
}

.welcome-strip {
  position: relative;
  min-height: 155px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 27px 30px;
  overflow: hidden;
  border: 1px solid rgba(139, 125, 255, 0.17);
  border-radius: var(--radius);
  background:
    linear-gradient(95deg, rgba(137, 124, 255, 0.13), rgba(137, 124, 255, 0.02) 63%),
    var(--surface);
  box-shadow: var(--shadow);
}

.welcome-strip::before,
.welcome-strip::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.welcome-strip::before {
  top: -90px;
  right: 8%;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(138, 124, 255, 0.18);
}

.welcome-strip::after {
  top: -54px;
  right: 11%;
  width: 175px;
  height: 175px;
  background: radial-gradient(circle, rgba(138, 124, 255, 0.16), transparent 68%);
}

.welcome-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.welcome-copy span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: #aa9fff;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.welcome-copy h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.7px;
}

.welcome-copy p {
  max-width: 560px;
  margin: 8px 0 0;
  color: #939caf;
  font-size: 12px;
}

.command-orb {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 7%;
  width: 97px;
  height: 97px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(151, 136, 255, 0.82), rgba(86, 70, 190, 0.82));
  box-shadow: 0 20px 55px rgba(85, 64, 193, 0.34);
  transform: rotate(8deg);
}

.command-orb svg {
  width: 40px;
  height: 40px;
  color: white;
  transform: rotate(-8deg);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}

.metric-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent), var(--surface);
}

.metric-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.metric-icon,
.module-icon,
.activity-icon,
.quick-icon {
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.metric-icon {
  width: 32px;
  height: 32px;
  color: var(--metric-color, var(--primary));
  background: color-mix(in srgb, var(--metric-color, var(--primary)) 11%, transparent);
}

.metric-icon svg {
  width: 16px;
}

.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--mint);
  font-size: 9px;
  font-weight: 650;
}

.metric-trend.neutral {
  color: var(--subtle);
}

.metric-value {
  display: block;
  margin-top: 11px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.6px;
}

.metric-label {
  display: block;
  margin-top: -1px;
  color: var(--muted);
  font-size: 10px;
}

.live-operations {
  margin-bottom: 20px;
}

.live-operations-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.live-operations-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-operations-head .eyebrow svg {
  width: 11px;
}

.live-operations-head h2 {
  margin: 5px 0 0;
  font-size: 15px;
}

.live-operations-head p {
  margin: 3px 0 0;
  color: var(--subtle);
  font-size: 9.5px;
}

.live-refresh svg {
  width: 13px;
}

.live-refresh:disabled svg {
  animation: spin 650ms linear infinite;
}

.roster-panel {
  display: flex;
  min-height: 255px;
  flex-direction: column;
  overflow: hidden;
}

.roster-panel-head {
  flex: 0 0 auto;
}

.roster-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roster-title-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.roster-title-icon svg {
  width: 16px;
}

.roster-title-icon.discipline {
  color: var(--rose);
  background: rgba(241, 120, 159, 0.1);
}

.roster-count {
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 750;
}

.roster-count.discipline {
  color: var(--rose);
  background: rgba(241, 120, 159, 0.1);
}

.roster-body {
  max-height: 390px;
  flex: 1;
  overflow-y: auto;
}

.roster-list {
  padding: 4px 18px 8px;
}

.discipline-list {
  padding-top: 8px;
}

.roster-member {
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.roster-member + .roster-member {
  border-top: 1px solid var(--line);
}

.roster-avatar {
  width: 31px;
  height: 31px;
  border-radius: 10px;
}

.roster-member-copy {
  min-width: 0;
  flex: 1;
}

.roster-member-copy strong,
.roster-member-copy > span {
  display: block;
}

.roster-member-copy strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-member-copy > span {
  margin-top: 2px;
  overflow: hidden;
  color: var(--subtle);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-member-copy .bot-tag {
  display: inline-block;
  vertical-align: 1px;
}

.roster-state {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.roster-state.discipline {
  background: var(--rose);
  box-shadow: 0 0 9px rgba(241, 120, 159, 0.38);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.82fr);
  gap: 20px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 22, 36, 0.88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.panel-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 19px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.15px;
}

.panel-head p {
  margin: 3px 0 0;
  color: var(--subtle);
  font-size: 9.5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #968aff;
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.text-link svg {
  width: 12px;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-row {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.module-row:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.module-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.module-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--accent-color, var(--primary));
  background: color-mix(in srgb, var(--accent-color, var(--primary)) 11%, transparent);
}

.module-icon svg {
  width: 17px;
}

.module-copy {
  min-width: 0;
  flex: 1;
}

.module-copy strong,
.module-copy span {
  display: block;
}

.module-copy strong {
  font-size: 11px;
}

.module-copy span {
  margin-top: 2px;
  overflow: hidden;
  color: var(--subtle);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toggle {
  position: relative;
  flex: 0 0 auto;
  width: 33px;
  height: 19px;
  display: inline-block;
}

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

.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #303749;
  cursor: pointer;
  transition: 180ms ease;
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #8b93a5;
  transition: 180ms ease;
}

.toggle input:checked + span {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(138, 124, 255, 0.2);
}

.toggle input:checked + span::after {
  left: 17px;
  background: white;
}

.toggle input:disabled + span {
  cursor: progress;
  opacity: 0.55;
}

.activity-list {
  padding: 2px 18px 8px;
}

.activity-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 0;
}

.activity-item + .activity-item {
  border-top: 1px solid var(--line);
}

.activity-icon {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  color: var(--primary);
  background: var(--primary-soft);
}

.activity-icon.case {
  color: var(--rose);
  background: rgba(241, 120, 159, 0.1);
}

.activity-icon.command {
  color: var(--blue);
  background: rgba(98, 168, 247, 0.1);
}

.activity-icon svg {
  width: 14px;
}

.activity-copy {
  min-width: 0;
  flex: 1;
}

.activity-copy strong {
  display: block;
  font-size: 10.5px;
}

.activity-copy p {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--subtle);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-time {
  flex: 0 0 auto;
  color: #596277;
  font-size: 8.5px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  padding: 17px;
}

.quick-action {
  min-height: 77px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: 160ms ease;
}

.quick-action:hover {
  border-color: rgba(138, 124, 255, 0.25);
  background: rgba(138, 124, 255, 0.055);
  transform: translateY(-2px);
}

.quick-icon {
  width: 27px;
  height: 27px;
  margin-bottom: 8px;
  color: var(--quick-color, var(--primary));
  background: color-mix(in srgb, var(--quick-color, var(--primary)) 11%, transparent);
}

.quick-icon svg {
  width: 13px;
}

.quick-action strong,
.quick-action span {
  display: block;
}

.quick-action strong {
  font-size: 9.5px;
}

.quick-action span {
  margin-top: 1px;
  color: var(--subtle);
  font-size: 8px;
}

.bot-status {
  padding: 17px;
}

.bot-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.bot-avatar {
  position: relative;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #7e6ef5, #4f438f);
  background-position: center;
  background-size: cover;
}

.bot-avatar svg {
  width: 21px;
}

.bot-avatar.has-image {
  background-color: #313950;
}

.bot-avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--mint);
}

.bot-identity div strong,
.bot-identity div span {
  display: block;
}

.bot-identity div strong {
  font-size: 11px;
}

.bot-identity div span {
  color: var(--mint);
  font-size: 8.5px;
}

.status-rows {
  padding-top: 10px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--subtle);
  font-size: 9px;
}

.status-row strong {
  color: #bfc5d2;
  font-weight: 600;
}

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

.module-card {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: 180ms ease;
}

.module-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color, var(--primary)) 8%, transparent);
}

.module-card:hover {
  border-color: color-mix(in srgb, var(--accent-color, var(--primary)) 28%, var(--line));
  transform: translateY(-2px);
}

.module-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.module-card .module-icon {
  width: 43px;
  height: 43px;
  border-radius: 13px;
}

.module-card h3 {
  margin: 17px 0 0;
  font-size: 14px;
}

.module-card p {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 10px;
}

.module-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint);
  font-size: 9px;
  font-weight: 650;
}

.module-state::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.module-state.off {
  color: var(--subtle);
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.settings-form {
  padding: 22px;
}

.form-section + .form-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-section-head {
  margin-bottom: 17px;
}

.form-section-head h3 {
  margin: 0;
  font-size: 12px;
}

.form-section-head p {
  margin: 4px 0 0;
  color: var(--subtle);
  font-size: 9.5px;
}

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

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

.form-grid .field-span {
  grid-column: 1 / -1;
}

.table-detail {
  max-width: 360px;
  display: block;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.45;
  white-space: normal;
}

.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
}

.evidence-links a {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 700;
}

.evidence-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aeb5c4;
  font-size: 9.5px;
  font-weight: 650;
}

.field label span {
  color: var(--subtle);
  font-weight: 450;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 10px;
  background: #0d111c;
  color: #d9dde8;
  transition: 150ms ease;
}

.input,
.select {
  height: 41px;
  padding: 0 12px;
  font-size: 10.5px;
}

.textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
  font-size: 10.5px;
  line-height: 1.6;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(138, 124, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(138, 124, 255, 0.08);
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #667086 50%),
    linear-gradient(135deg, #667086 50%, transparent 50%);
  background-position: calc(100% - 15px) 17px, calc(100% - 11px) 17px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
}

.field-hint {
  color: #586176;
  font-size: 8.5px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rule-card {
  min-height: 73px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}

.rule-card .module-icon {
  width: 34px;
  height: 34px;
}

.rule-card-copy {
  min-width: 0;
  flex: 1;
}

.rule-card-copy strong,
.rule-card-copy span {
  display: block;
}

.rule-card-copy strong {
  font-size: 10.5px;
}

.rule-card-copy span {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 8.5px;
}

.promotion-embed-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.promotion-message-input {
  min-height: 250px;
}

.promotion-color-input {
  width: 100%;
  height: 41px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #0d111c;
  cursor: pointer;
}

.promotion-color-input:focus {
  border-color: rgba(138, 124, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(138, 124, 255, 0.08);
}

.promotion-thumbnail-setting {
  min-height: 62px;
  padding: 10px 12px;
}

.promotion-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #16181d;
}

.promotion-preview-label {
  display: block;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #7b8290;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}

.promotion-preview-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 13px 18px;
  background: #313338;
}

.promotion-preview-bot-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #8a7cff, #5d52bd);
  color: white;
  font-size: 9px;
  font-weight: 800;
}

.promotion-preview-bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promotion-preview-content {
  min-width: 0;
  flex: 1;
}

.promotion-preview-author {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f2f3f5;
  font-size: 10px;
}

.promotion-preview-author span {
  padding: 1px 3px;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
  font-size: 6px;
  font-weight: 800;
}

.promotion-preview-author small {
  color: #949ba4;
  font-size: 7px;
}

.promotion-preview-card {
  --promotion-embed-color: #57f287;
  position: relative;
  display: block;
  min-height: 78px;
  margin-top: 5px;
  padding: 11px 12px;
  overflow: hidden;
  border-left: 4px solid var(--promotion-embed-color);
  border-radius: 4px;
  background: #2b2d31;
}

.promotion-preview-copy {
  padding-right: 54px;
}

.promotion-preview-copy > strong {
  display: block;
  color: #f2f3f5;
  font-size: 10px;
  line-height: 1.35;
}

.promotion-preview-copy > p {
  margin: 7px 0 0;
  color: #dbdee1;
  font-size: 8px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.promotion-preview-thumbnail {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
}

.promotion-preview-image {
  width: 100%;
  max-height: 180px;
  display: block;
  margin-top: 10px;
  border-radius: 4px;
  object-fit: cover;
}

.promotion-preview-image[hidden],
.promotion-preview-thumbnail[hidden] {
  display: none;
}

.promotion-preview-card > small {
  display: block;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #b5bac1;
  font-size: 7px;
  line-height: 1.4;
}

.level-rewards-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.level-rewards-heading .form-section-head {
  margin-bottom: 17px;
}

.level-rewards-heading .button {
  flex: 0 0 auto;
}

.level-reward-row {
  display: grid;
  grid-template-columns: 34px minmax(130px, 0.55fr) minmax(210px, 1fr) 37px;
  align-items: end;
}

.level-reward-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #aeb5c4;
  font-size: 9.5px;
  font-weight: 650;
}

.level-reward-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.level-reward-field small {
  color: var(--subtle);
  font-size: 8px;
  font-weight: 450;
}

.level-reward-remove {
  color: #ffacb5;
  border-color: rgba(239, 107, 120, 0.22);
  background: rgba(239, 107, 120, 0.07);
}

.level-reward-remove:hover {
  color: #fff;
  border-color: rgba(239, 107, 120, 0.48);
  background: rgba(239, 107, 120, 0.16);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.preview-card {
  position: sticky;
  top: 93px;
  padding: 18px;
}

.preview-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--subtle);
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.discord-preview {
  min-height: 250px;
  padding: 16px;
  border-radius: 12px;
  background: #313338;
  font-family: "gg sans", "Segoe UI", sans-serif;
}

.discord-message {
  display: flex;
  gap: 10px;
}

.discord-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7c6bef;
  font-size: 10px;
  font-weight: 800;
  background-position: center;
  background-size: cover;
}

.discord-avatar.has-image {
  background-color: #313338;
}

.discord-copy {
  min-width: 0;
  flex: 1;
}

.discord-author {
  color: #f2f3f5;
  font-size: 12px;
  font-weight: 650;
}

.bot-tag {
  margin-left: 4px;
  padding: 1px 3px;
  border-radius: 3px;
  background: #5865f2;
  color: white;
  font-size: 7px;
}

.discord-time {
  margin-left: 4px;
  color: #949ba4;
  font-size: 8px;
  font-weight: 400;
}

.discord-embed {
  position: relative;
  margin-top: 6px;
  padding: 12px;
  overflow: hidden;
  border-radius: 4px;
  background: #2b2d31;
}

.discord-embed::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #8a7cff;
}

.discord-embed strong {
  display: block;
  color: #f2f3f5;
  font-size: 11px;
}

.discord-embed p {
  margin: 7px 0 0;
  color: #dbdee1;
  font-size: 9px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.discord-image {
  width: 100%;
  aspect-ratio: 1.8;
  display: grid;
  place-items: center;
  margin-top: 10px;
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(138, 124, 255, 0.4), rgba(50, 55, 70, 0.5));
  color: rgba(255, 255, 255, 0.6);
}

.poll-discord-embed > p {
  margin-bottom: 10px;
  font-size: 10px;
}

.poll-preview-options {
  display: grid;
  gap: 7px;
}

.poll-preview-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #dbdee1;
  font-size: 9px;
  line-height: 1.35;
}

.poll-preview-option > span {
  flex: 0 0 auto;
}

.poll-preview-option > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 9px;
  font-weight: 650;
}

.poll-preview-footer {
  display: block;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #949ba4;
  font-size: 7.5px;
}

.poll-preview-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.poll-preview-reactions > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 37px;
  height: 23px;
  padding: 0 7px;
  border: 1px solid #3f4147;
  border-radius: 7px;
  background: #2b2d31;
  font-size: 10px;
}

.poll-preview-reactions small {
  color: #b5bac1;
  font-size: 8px;
}

.giveaway-discord-embed::before {
  background: #f3b862;
}

.giveaway-preview-prize {
  margin-top: 10px;
  padding: 9px;
  border: 1px solid rgba(243, 184, 98, 0.13);
  border-radius: 5px;
  background: rgba(243, 184, 98, 0.055);
}

.giveaway-preview-prize span,
.giveaway-preview-prize strong {
  display: block;
}

.giveaway-preview-prize span,
.giveaway-preview-meta span {
  color: #949ba4;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.45px;
}

.giveaway-preview-prize strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.giveaway-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.giveaway-preview-meta div:last-child {
  grid-column: 1 / -1;
}

.giveaway-preview-meta strong {
  display: block;
  margin-top: 2px;
  color: #dbdee1;
  font-size: 8px;
  line-height: 1.35;
}

.ticket-discord-embed::before {
  background: #f1789f;
}

.notification-integration-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.notification-integration-strip > small {
  margin-left: auto;
  color: var(--subtle);
  font-size: 8.5px;
}

.integration-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #aab1c1;
  background: rgba(170, 177, 193, 0.08);
  font-size: 8.5px;
  font-weight: 700;
}

.integration-chip svg {
  width: 12px;
  height: 12px;
}

.integration-chip.ready {
  color: var(--mint);
  background: rgba(88, 214, 173, 0.09);
}

.integration-chip.warning {
  color: var(--amber);
  background: rgba(243, 184, 98, 0.09);
}

.notification-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.notification-rule-grid .rule-card {
  min-width: 0;
}

.notification-rule-grid .rule-card-copy {
  min-width: 0;
  flex: 1;
}

.notification-preview-embed {
  --notification-embed-color: #8a7cff;
}

.notification-preview-embed::before {
  background: var(--notification-embed-color);
}

.notification-preview-media {
  --notification-platform-color: #8a7cff;
  position: relative;
  min-height: 116px;
  display: grid;
  place-items: center;
  gap: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 5px;
  color: white;
  background:
    radial-gradient(circle at 75% 25%, color-mix(in srgb, var(--notification-platform-color) 48%, transparent), transparent 36%),
    linear-gradient(135deg, #171b2a, #090c13);
}

.notification-preview-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--notification-platform-color) 30%, transparent);
  border-radius: inherit;
}

.notification-preview-media span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  align-self: end;
  border-radius: 50%;
  color: white;
  background: var(--notification-platform-color);
  box-shadow: 0 7px 25px color-mix(in srgb, var(--notification-platform-color) 35%, transparent);
}

.notification-preview-media svg {
  width: 14px;
}

.notification-preview-media strong {
  align-self: start;
  font-size: 9px;
  letter-spacing: 0.4px;
}

.notification-preview-embed > small {
  display: block;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #949ba4;
  font-size: 7.5px;
}

.notification-preview-button {
  background: #4e5058;
}

.notification-workspace-panel {
  margin-top: 18px;
  overflow: hidden;
}

.notification-source-list {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.notification-source-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 11, 18, 0.5);
}

.notification-source-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--notification-color);
  background: color-mix(in srgb, var(--notification-color) 11%, transparent);
}

.notification-source-icon svg {
  width: 18px;
}

.notification-source-copy {
  min-width: 0;
}

.notification-source-copy > span {
  color: var(--notification-color);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.55px;
}

.notification-source-copy h3 {
  margin: 3px 0 2px;
  font-size: 11px;
}

.notification-source-copy p,
.notification-source-copy small {
  display: block;
  margin: 0;
  color: var(--subtle);
  font-size: 8.5px;
  line-height: 1.45;
}

.notification-source-copy small {
  margin-top: 4px;
}

.notification-source-copy .notification-error {
  color: var(--danger);
}

.notification-health {
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--amber);
  background: rgba(243, 184, 98, 0.09);
  font-size: 8px;
  font-weight: 750;
}

.notification-health.healthy {
  color: var(--mint);
  background: rgba(88, 214, 173, 0.09);
}

.notification-health.error {
  color: var(--danger);
  background: rgba(240, 92, 118, 0.09);
}

.notification-health.paused {
  color: var(--subtle);
  background: rgba(137, 146, 166, 0.09);
}

.notification-source-actions {
  grid-column: 2 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.notification-source-actions .button {
  min-height: 31px;
  padding: 0 10px;
  font-size: 8.5px;
}

.notification-source-actions .icon-button {
  width: 31px;
  height: 31px;
}

.template-placeholders {
  margin: -2px 0 15px;
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.8;
}

.template-placeholders code {
  display: inline-block;
  margin: 2px 3px;
  padding: 2px 5px;
  border: 1px solid rgba(138, 124, 255, 0.2);
  border-radius: 5px;
  background: rgba(138, 124, 255, 0.08);
  color: #b9afff;
}

.ticket-open-preview-card {
  margin-top: 14px;
}

.ticket-open-embed small {
  display: block;
  margin-top: 10px;
  padding-top: 8px;
  color: #b5bac1;
  font-size: 7.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-preview-button {
  min-height: 30px;
  margin-top: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: #5865f2;
  color: #fff;
  font: 600 9px "gg sans", "Segoe UI", sans-serif;
  pointer-events: none;
}

.ticket-workspace-panel {
  margin-top: 20px;
}

.ticket-panel-edit {
  min-height: 31px;
  padding: 0 10px;
  font-size: 9px;
}

.ticket-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}

.ticket-panel-delete,
.ticket-history-delete {
  min-height: 31px;
  padding: 0 10px;
  font-size: 9px;
}

.poll-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid rgba(88, 214, 173, 0.22);
  border-radius: 10px;
  background: rgba(88, 214, 173, 0.07);
}

.poll-result[hidden] {
  display: none;
}

.poll-result > svg {
  width: 18px;
  color: var(--mint);
}

.poll-result > div {
  min-width: 0;
  flex: 1;
}

.poll-result strong,
.poll-result span {
  display: block;
}

.poll-result strong {
  font-size: 10px;
}

.poll-result span {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 8.5px;
}

.poll-result a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a99fff;
  font-size: 8.5px;
  font-weight: 700;
}

.poll-result a svg {
  width: 12px;
}

.poll-help-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
}

.poll-help-card strong,
.poll-help-card p {
  display: block;
}

.poll-help-card strong {
  font-size: 10px;
}

.poll-help-card p {
  margin: 3px 0 0;
  color: var(--subtle);
  font-size: 8.5px;
  line-height: 1.45;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th,
.data-table td {
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th {
  color: #606a7f;
  font-size: 8.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.data-table td {
  color: #aeb5c3;
  font-size: 9.5px;
}

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

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.cell-primary {
  color: #e7e9f0;
  font-weight: 650;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #a99eff;
  background: rgba(138, 124, 255, 0.1);
  font-size: 8px;
  font-weight: 650;
}

.pill.green {
  color: var(--mint);
  background: rgba(88, 214, 173, 0.09);
}

.pill.rose {
  color: var(--rose);
  background: rgba(241, 120, 159, 0.09);
}

.leaderboard {
  padding: 9px 18px;
}

.leader-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.leader-row:last-child {
  border: 0;
}

.rank-number {
  width: 21px;
  color: var(--subtle);
  font-size: 10px;
  text-align: center;
}

.leader-row:nth-child(1) .rank-number {
  color: var(--amber);
}

.leader-row:nth-child(2) .rank-number {
  color: #c5cbd7;
}

.leader-row:nth-child(3) .rank-number {
  color: #c68b62;
}

.member-avatar {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background-color: #2a3247;
  color: #aeb6cc;
  font-size: 9px;
  background-position: center;
  background-size: cover;
}

.member-avatar.has-image {
  background-color: #313338;
}

.leader-copy {
  min-width: 0;
  flex: 1;
}

.leader-copy strong,
.leader-copy span {
  display: block;
}

.leader-copy strong {
  font-size: 10px;
}

.leader-copy span {
  color: var(--subtle);
  font-size: 8px;
}

.level-badge {
  color: #9d92f8;
  font-size: 9px;
  font-weight: 650;
}

.empty-state {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.empty-state > div {
  max-width: 310px;
}

.empty-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}

.empty-state strong {
  display: block;
  font-size: 12px;
}

.empty-state p {
  margin: 5px 0 0;
  color: var(--subtle);
  font-size: 9.5px;
}

.command-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.command-toolbar .input {
  max-width: 330px;
}

.command-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.command-card {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.command-name {
  color: #a99eff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
}

.command-description {
  color: var(--muted);
  font-size: 9.5px;
}

.command-access {
  color: var(--subtle);
  font-size: 8px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.segment {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--subtle);
  font-size: 9px;
  cursor: pointer;
}

.segment.active {
  color: white;
  background: var(--surface-3);
}

.stream-history-panel {
  overflow: hidden;
}

.stream-history-toolbar {
  align-items: flex-end;
}

.stream-history-filters {
  display: grid;
  grid-template-columns: minmax(250px, 360px) 150px;
  gap: 9px;
}

.stream-history-search {
  position: relative;
  display: block;
}

.stream-history-search svg {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 12px;
  width: 14px;
  height: 14px;
  color: var(--subtle);
}

.stream-history-search .input {
  padding-left: 35px;
}

.stream-history-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.stream-history-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 14, 23, 0.58);
}

.stream-history-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 15px 16px 11px;
}

.stream-platform-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #a99eff;
  background: rgba(138, 124, 255, 0.11);
}

.stream-platform-icon svg {
  width: 17px;
}

.stream-history-title {
  min-width: 0;
}

.stream-history-title span {
  display: block;
  margin-bottom: 3px;
  color: var(--subtle);
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.65px;
}

.stream-history-title h3 {
  overflow: hidden;
  margin: 0;
  color: #e8eaf2;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-history-status {
  padding: 4px 8px;
  border-radius: 999px;
  color: #aeb6c8;
  background: rgba(174, 182, 200, 0.09);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.stream-history-status.completed {
  color: var(--mint);
  background: rgba(88, 214, 173, 0.1);
}

.stream-history-status.live {
  color: #f1789f;
  background: rgba(241, 120, 159, 0.1);
}

.stream-history-status.issue {
  color: var(--amber);
  background: rgba(243, 184, 98, 0.1);
}

.stream-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 17px;
  padding: 0 16px 13px 65px;
  color: #737d91;
  font-size: 8.5px;
}

.stream-history-meta span,
.stream-history-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stream-history-meta svg,
.stream-history-link svg {
  width: 12px;
  height: 12px;
}

.stream-history-notes {
  margin: 0 16px 14px;
  padding: 12px 13px;
  border-left: 2px solid rgba(138, 124, 255, 0.55);
  border-radius: 0 9px 9px 0;
  background: rgba(138, 124, 255, 0.045);
  color: #aeb5c4;
  font-size: 9.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.stream-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  padding: 0 16px 15px;
}

.stream-proof {
  position: relative;
  min-height: 105px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #090d16;
}

.stream-proof img {
  width: 100%;
  height: 120px;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.stream-proof:hover img {
  transform: scale(1.035);
}

.stream-proof span {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  padding: 18px 8px 7px;
  color: #eef0f7;
  background: linear-gradient(transparent, rgba(3, 5, 10, 0.9));
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-proof span svg {
  width: 11px;
  flex: 0 0 auto;
}

.stream-history-actions {
  display: flex;
  gap: 14px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.stream-history-link {
  color: #9f96f4;
  font-size: 8.5px;
  font-weight: 650;
}

.stream-history-link:hover {
  color: #c4bdff;
}

.loading-state {
  min-height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.loading-state strong {
  margin-top: 13px;
  color: #d9ddea;
  font-size: 12px;
}

.loading-state span {
  margin-top: 4px;
  font-size: 9.5px;
}

.spinner {
  width: 27px;
  height: 27px;
  border: 2px solid rgba(138, 124, 255, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

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

.toast-region {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toast {
  width: min(340px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #191f2f;
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease;
}

.toast svg {
  color: var(--mint);
}

.toast.error svg {
  color: var(--danger);
}

.toast div strong,
.toast div span {
  display: block;
}

.toast div strong {
  font-size: 10px;
}

.toast div span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8.5px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.command-menu {
  position: fixed;
  z-index: 90;
  top: 88px;
  left: 50%;
  width: min(590px, calc(100vw - 30px));
  max-height: min(580px, calc(100vh - 120px));
  overflow: hidden auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #121725;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
  transform: translateX(-50%);
}

.command-menu::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.command-menu-head {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}

.command-menu-head svg {
  color: var(--subtle);
}

.command-menu-head input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.command-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.command-result:hover {
  background: rgba(138, 124, 255, 0.07);
}

.command-result svg {
  color: var(--primary);
}

.command-result div {
  min-width: 0;
  flex: 1;
}

.command-result strong,
.command-result span {
  display: block;
}

.command-result strong {
  font-size: 10px;
}

.command-result span {
  color: var(--subtle);
  font-size: 8.5px;
}

.mobile-backdrop {
  display: none;
}

@media (max-width: 1120px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .settings-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .promotion-embed-editor {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-column: 1;
  }

  .sidebar {
    transform: translateX(-102%);
    transition: transform 220ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(0, 0, 0, 0.56);
  }

  .mobile-backdrop.open {
    display: block;
  }

  .mobile-menu {
    display: grid;
  }

  .breadcrumbs > span,
  .breadcrumbs > svg {
    display: none;
  }

  .search-shell {
    width: 190px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .preview-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 62px;
    padding: 0 14px;
  }

  .search-shell,
  .profile-copy,
  .profile-button > svg {
    display: none;
  }

  .profile-button {
    min-width: 38px;
    width: 38px;
    padding: 3px;
  }

  main {
    min-height: calc(100vh - 62px);
    padding: 24px 15px 42px;
  }

  .page-head {
    display: block;
  }

  .page-actions {
    margin-top: 17px;
  }

  .live-operations-head {
    align-items: flex-start;
  }

  .live-operations-head p {
    max-width: 260px;
  }

  .live-refresh {
    min-width: 38px;
    padding: 0 10px;
    font-size: 0;
  }

  .welcome-strip {
    min-height: 176px;
    padding: 24px;
  }

  .welcome-copy {
    max-width: 76%;
  }

  .welcome-copy h2 {
    font-size: 20px;
  }

  .command-orb {
    right: -25px;
    top: 40px;
    width: 88px;
    height: 88px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card {
    min-height: 103px;
    padding: 14px;
  }

  .module-list,
  .module-cards,
  .form-grid,
  .form-grid.three-column {
    grid-template-columns: 1fr;
  }

  .notification-rule-grid {
    grid-template-columns: 1fr;
  }

  .notification-integration-strip > small {
    width: 100%;
    margin-left: 0;
  }

  .notification-source-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .notification-health {
    grid-column: 2;
    justify-self: start;
  }

  .notification-source-actions {
    grid-column: 1 / -1;
  }

  .module-row:nth-child(odd) {
    border-right: 0;
  }

  .module-row:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .field.full {
    grid-column: auto;
  }

  .level-reward-row {
    grid-template-columns: 34px minmax(0, 1fr) 37px;
  }

  .level-reward-role {
    grid-column: 2 / 3;
  }

  .level-reward-remove {
    grid-column: 3;
    grid-row: 1;
  }

  .module-card {
    min-height: 180px;
  }

  .command-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .command-access {
    display: none;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stream-history-toolbar {
    display: block;
  }

  .stream-history-filters {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .stream-history-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .stream-history-status {
    grid-column: 2;
    justify-self: start;
  }

  .stream-history-meta {
    padding-left: 16px;
  }
}

@media (max-width: 390px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .welcome-copy {
    max-width: 85%;
  }

  .page-actions {
    flex-wrap: wrap;
  }

  .level-rewards-heading {
    display: block;
  }

  .level-rewards-heading .button {
    width: 100%;
    margin-bottom: 14px;
  }

  .level-reward-row {
    grid-template-columns: minmax(0, 1fr) 37px;
  }

  .level-reward-row .module-icon {
    display: none;
  }

  .level-reward-level,
  .level-reward-role {
    grid-column: 1;
  }

  .level-reward-remove {
    grid-column: 2;
  }
}

/* Public multi-server picker */
.server-picker-panel { margin-top: 18px; }
.server-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
  gap: 14px;
}
.server-picker-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.server-picker-main { display:flex; min-width:0; align-items:center; gap:12px; }
.server-picker-icon {
  width: 46px; height: 46px; flex: 0 0 46px; display:grid; place-items:center;
  border-radius: 14px; background: linear-gradient(145deg,#7563f5,#9b8fff);
  background-size: cover; background-position:center; color:#fff; font-weight:800;
}
.server-picker-copy { min-width:0; flex:1; }
.server-picker-copy strong, .server-picker-copy span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.server-picker-copy strong { font-size:14px; }
.server-picker-copy span { margin-top:3px; color:var(--muted); font-size:11px; }
.install-badge { flex:0 0 auto; padding:5px 8px; border-radius:999px; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; }
.install-badge.installed { color:var(--mint); background:rgba(88,214,173,.11); }
.install-badge.missing { color:var(--amber); background:rgba(243,184,98,.11); }
.server-picker-actions { display:flex; gap:8px; margin-top:14px; }
.server-action { flex:1; justify-content:center; }
.button.disabled { opacity:.45; pointer-events:none; }
.server-search-empty[hidden] { display:none !important; }
@media (max-width: 900px) { .server-picker-grid { grid-template-columns:1fr; } }

@media (max-width: 520px) {
  .server-picker-main { align-items:flex-start; flex-wrap:wrap; }
  .server-picker-copy { flex-basis:calc(100% - 58px); }
  .install-badge { margin-left:58px; }
  .server-picker-actions { flex-direction:column; }
  .server-action { width:100%; }
}

@media (max-width: 390px) {
  .page-actions .button { width:100%; justify-content:center; }
}

.brand-logo-image { overflow:hidden; padding:0 !important; }
.brand-logo-image img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.profile-avatar.has-image { background-size:cover; background-position:center; color:transparent; }


/* VertX clickable dashboard breadcrumb */
.breadcrumbs .breadcrumb-home {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}
.breadcrumbs .breadcrumb-home:hover {
  color: #dfe6f7;
}

/* Signed-in Discord identity */
.profile-avatar.has-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: transparent;
}
