:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --bg: #15161e;
  --side: #1a1b25;
  --card: #20222e;
  --line: #30323f;
  --text: #eeeff6;
  --muted: #9296ad;
  --accent: #9885ff;
  --primary: #7660e9;
  --green: #6ed6b1;
  --amber: #e9bd76;
  --red: #f08391;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid #3a3d4d;
  background: #2b2e3d;
  color: #e4e5ef;
  padding: 9px 14px;
  border-radius: 7px;
  font-weight: 600;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #343849;
  border-color: #55516c;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.primary:hover {
  background: #8873f5;
  border-color: #8873f5;
}
.danger {
  background: #412631;
  color: #ffa3ae;
  border-color: #683641;
}
.subtle {
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: var(--muted);
  font-size: 12px;
}
.subtle:hover {
  background: none;
  color: #c9bcff;
}
.icon-button {
  padding: 5px 9px;
  background: transparent;
}
a {
  color: #b1a1ff;
  text-decoration: none;
}
a:hover {
  color: #d4caff;
}
svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 20px;
  height: 20px;
}
input,
select,
textarea {
  background: #191b25;
  color: #f0eff8;
  border: 1px solid #3a3d4d;
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  min-height: 41px;
}
input::placeholder,
textarea::placeholder {
  color: #757a93;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8d77ee;
  border-color: transparent;
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  accent-color: var(--primary);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  color: #bdc0d4;
}
label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.check-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 26px 17px 16px;
  background: var(--side);
  border-right: 1px solid #282a37;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2f0ff;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.7px;
  padding: 0 9px;
}
.brand-mark {
  height: 33px;
  width: 33px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: #8067e9;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 850;
}
.brand-dot {
  font-size: 20px;
  color: #ad9bff;
  margin-left: auto;
}
.server-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #353748;
  background: #232531;
  padding: 11px 10px;
  border-radius: 9px;
  margin: 27px 3px 18px;
}
.server-avatar {
  height: 34px;
  width: 34px;
  background: #4d446c;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #daccff;
  font-weight: 700;
  flex-shrink: 0;
}
.server-switch strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  max-width: 134px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.server-switch small {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #8589a1;
}
.server-switch > span:last-child {
  margin-left: auto;
  color: #9a9db2;
}
nav {
  flex: 1;
}
.nav-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 11px 8px;
  color: #70778f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
}
.nav-group span {
  font-size: 12px;
  color: #62677e;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #989db5;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 6px;
  margin: 2px 0;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  color: #8a8fa8;
}
.nav-item:hover {
  background: #232632;
  color: #e1ddf8;
}
.nav-item.active {
  background: #302a4b;
  color: #c1b2ff;
}
.nav-item.active svg {
  color: #ad98ff;
}
.nav-item.active:before {
  content: "";
  position: absolute;
  left: -17px;
  height: 20px;
  width: 3px;
  background: #a78aff;
  border-radius: 0 3px 3px 0;
}
.nav-status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-left: auto;
  background: #555970;
}
.nav-status.on {
  background: #6fbda5;
}
.nav-tag {
  font-size: 8px;
  background: #3f355b;
  color: #cab7ff;
  border: 1px solid #574477;
  border-radius: 4px;
  padding: 0 4px;
  margin-left: auto;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 10px;
  color: #8b91a6;
  border-top: 1px solid #2b2e3a;
  margin: 23px 5px 0;
  padding: 17px 2px 0;
}
.sidebar-bottom button {
  margin-left: auto;
  font-size: 10px;
}
.status-dot {
  height: 6px;
  width: 6px;
  background: #6ed6b1;
  border-radius: 50%;
}
.workspace {
  margin-left: 248px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 38px;
  background: #191a24;
  border-bottom: 1px solid #2b2d3a;
  gap: 15px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 19px;
}
.breadcrumb {
  font-size: 11px;
  color: #787e98;
  display: flex;
  align-items: center;
  gap: 13px;
}
.breadcrumb strong {
  font-size: 11px;
  color: #d3d2e2;
  font-weight: 500;
}
.topbar-link {
  font-size: 11px;
  color: #959ab1;
}
.admin-avatar {
  height: 29px;
  width: 29px;
  background: #3e345b;
  color: #cfbdff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: #2b2e3d;
  color: #9ea5bd;
  border: 1px solid #393e4e;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 550;
  white-space: nowrap;
}
.pill.green {
  background: #21382f;
  color: #7cdbb8;
  border-color: #335347;
}
.pill.amber {
  background: #3a3125;
  color: #d8b47d;
  border-color: #564736;
}
.pill.red {
  background: #402a34;
  color: #f4a3af;
  border-color: #633c47;
}
.pill.purple {
  background: #352d4f;
  color: #c1adff;
  border-color: #51406e;
}
.workspace main {
  padding: 34px 38px 45px;
  max-width: 1650px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  flex: 1;
}
footer {
  margin: 0 38px;
  padding: 20px 0;
  border-top: 1px solid #292c38;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: #656d86;
}
footer b {
  font-weight: 400;
  margin: 0 7px;
  color: #464c61;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
h1 {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.9px;
  line-height: 1.25;
  margin: 0;
}
h2 {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.15px;
  margin: 0;
}
h3 {
  font-size: 13px;
  font-weight: 650;
  margin: 0;
}
.subtitle {
  margin: 7px 0 0;
  color: #858ca6;
  font-size: 12px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #aaa0cf;
  margin: 0 0 8px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.demo-banner {
  padding: 9px 13px;
  margin-bottom: 24px;
  background: #262331;
  border: 1px solid #40374f;
  border-radius: 6px;
  color: #ac9bbc;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.demo-banner .pill {
  font-size: 8px;
  padding: 1px 5px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #302941;
  color: #b59dfb;
  border: 1px solid #48365f;
  border-radius: 10px;
  flex-shrink: 0;
}
.metric:nth-child(2) .metric-icon {
  background: #253832;
  color: #80c3a7;
  border-color: #345147;
}
.metric:nth-child(3) .metric-icon {
  background: #383026;
  color: #dfb97d;
  border-color: #514333;
}
.metric:nth-child(4) .metric-icon {
  background: #283144;
  color: #94b4ec;
  border-color: #3b4a64;
}
.metric-label {
  color: #8e96af;
  font-size: 10px;
  margin-top: 2px;
}
.metric-value {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.7px;
  line-height: 1.2;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
}
.card-header {
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-body {
  padding: 22px;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 21px;
  margin-bottom: 24px;
}
.quick-grant {
  position: relative;
  background: #242233;
  border: 1px solid #44385e;
  border-radius: 10px;
  padding: 23px 25px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(320px, 1.3fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
}
.quick-grant:before {
  content: "";
  height: 120px;
  width: 120px;
  border: 1px solid #47365d;
  border-radius: 50%;
  position: absolute;
  left: -64px;
  top: -66px;
  pointer-events: none;
}
.quick-grant h2 {
  font-size: 18px;
  font-weight: 650;
  margin-top: 8px;
  letter-spacing: -0.4px;
}
.quick-grant p {
  font-size: 11px;
  color: #9b91ad;
  margin: 7px 0 0;
}
.grant-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b4a0ef;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.grant-icon svg {
  width: 15px;
  height: 15px;
}
.grant-form {
  display: grid;
  grid-template-columns: 100px minmax(140px, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.grant-form input,
.grant-form select {
  font-size: 12px;
}
.grant-form button {
  height: 42px;
  white-space: nowrap;
  font-size: 12px;
}
.grant-foot {
  grid-column: 1/-1;
  margin: 0 !important;
  font-size: 10px !important;
  color: #80768f !important;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 16px;
}
.section-title h2 {
  font-size: 17px;
}
.plugin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}
.tabs {
  display: flex;
  gap: 23px;
  min-width: 0;
  overflow: auto;
}
.tab {
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  color: #858ca5;
  padding: 12px 0 14px;
  white-space: nowrap;
}
.tab.active {
  color: #dcd5f9;
  border-bottom: 2px solid #9b82fc;
}
.tab:hover {
  background: none;
}
.plugin-search {
  position: relative;
  max-width: 220px;
  width: 100%;
  margin-bottom: 9px;
}
.plugin-search input {
  min-height: 35px;
  padding: 7px 10px 7px 31px;
  font-size: 10px;
  background: #1d1f2a;
}
.plugin-search svg {
  height: 13px;
  width: 13px;
  position: absolute;
  left: 10px;
  top: 11px;
  color: #707790;
}
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.plugin-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  transition:
    border-color 0.15s,
    transform 0.15s;
  display: flex;
  flex-direction: column;
  min-height: 166px;
}
.plugin-card:hover {
  border-color: #5d4f7e;
  transform: translateY(-2px);
}
.plugin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.plugin-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: #332b47;
  color: #bda2f6;
}
.plugin-icon.blue {
  background: #273247;
  color: #8eb5eb;
}
.plugin-icon.green {
  background: #243a35;
  color: #8bd8ba;
}
.plugin-icon.gold {
  background: #3b3226;
  color: #e2bc7c;
}
.plugin-icon.pink {
  background: #3d2b3c;
  color: #e6a3cf;
}
.plugin-icon svg {
  width: 20px;
  height: 20px;
}
.plugin-card h3 {
  font-size: 13px;
}
.plugin-card p {
  font-size: 11px;
  color: #8c93aa;
  margin: 5px 0 15px;
}
.plugin-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.plugin-category {
  font-size: 9px;
  color: #676f87;
}
.manage-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #b2a4da;
}
.manage-link svg {
  height: 12px;
  width: 12px;
}
.mini-toggle {
  display: inline-flex;
  height: 17px;
  width: 29px;
  background: #404356;
  border-radius: 12px;
  position: relative;
}
.mini-toggle:after {
  content: "";
  height: 11px;
  width: 11px;
  background: #9399b2;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}
.mini-toggle.on {
  background: #6a55bd;
}
.mini-toggle.on:after {
  left: 15px;
  background: #e3d9ff;
}
.activity-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #2e3140;
}
.activity-item:last-child {
  border: 0;
}
.activity-dot {
  color: #ac96ec;
  background: #302a40;
  border-radius: 7px;
  height: 26px;
  width: 26px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
}
.activity-item strong {
  font-size: 11px;
  font-weight: 500;
  word-break: break-word;
}
.activity-item p {
  font-size: 10px;
  color: #737c96;
  margin: 4px 0 0;
}
.empty {
  padding: 30px 15px;
  text-align: center;
  color: #858da7;
  font-size: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.toolbar > input {
  flex: 1;
  min-width: 180px;
  max-width: 360px;
}
.toolbar > select {
  width: auto;
  max-width: 190px;
}
.toolbar input,
.toolbar select {
  font-size: 11px;
}
.toolbar .small {
  margin-left: auto;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #1c1e29;
  color: #79829c;
  padding: 12px 19px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
td {
  padding: 13px 19px;
  font-size: 11px;
  border-bottom: 1px solid #2c2f3d;
}
tr:last-child td {
  border: 0;
}
.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  height: 31px;
  width: 31px;
  border-radius: 9px;
  background: #36304b;
  color: #b7a5e4;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.member-cell strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.member-cell small {
  display: block;
  font-size: 9px;
  color: #707b96;
}
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b9a1dd;
  background: #30273f;
  border: 1px solid #463652;
  border-radius: 4px;
  padding: 2px 7px;
  margin-right: 4px;
  font-size: 9px;
}
.role-chip:before {
  content: "";
  height: 4px;
  width: 4px;
  background: #b49ce0;
  border-radius: 50%;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 19px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #7f87a1;
}
.pagination button {
  padding: 5px 10px;
  font-size: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.form-stack {
  display: grid;
  gap: 19px;
}
.full {
  grid-column: 1/-1;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 23px;
  align-items: start;
}
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.toggle:first-child {
  padding-top: 0;
}
.toggle:last-child {
  border: 0;
}
.toggle input {
  flex-shrink: 0;
}
.toggle p {
  margin: 4px 0 0;
  font-size: 11px;
  color: #7c87a3;
}
.note {
  background: #262636;
  border: 1px solid #3c354e;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 11px;
  color: #a49ab6;
  line-height: 1.7;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.preview-message {
  background: #31343f;
  padding: 18px;
  border-radius: 7px;
  color: #d9dce9;
  font-size: 12px;
}
.preview-message strong {
  color: #ad9be6;
}
.preview-message p {
  white-space: pre-wrap;
  margin-bottom: 0;
  font-size: 12px;
}
.job {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.job:last-child {
  border: 0;
}
.job > p {
  font-size: 11px;
  color: #818ca7;
  word-break: break-word;
}
.job .pill {
  margin-left: 6px;
}
progress {
  display: block;
  width: 100%;
  height: 6px;
  accent-color: #967bf1;
  border: 0;
  border-radius: 20px;
  margin: 12px 0;
}
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ticket-card {
  padding: 21px;
}
.ticket-card h3 {
  font-size: 14px;
  margin: 14px 0 10px;
}
.ticket-card p {
  font-size: 11px;
  color: #818ca7;
}
.tag {
  font-size: 9px;
  color: #737d98;
}
.ticket-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
}
.ticket-actions button,
.ticket-actions a {
  font-size: 10px;
  padding: 6px 9px;
}
.ticket-actions a {
  margin-left: auto;
}
.command-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.command-row:last-child {
  border: 0;
}
.command-row > div {
  flex: 1;
  min-width: 0;
}
.command-row p {
  font-size: 11px;
  color: #838da6;
  margin: 5px 0 0;
  word-break: break-word;
}
.command-row button {
  font-size: 10px;
}
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding: 10px 12px;
  background: #191b25;
  border: 1px solid #343746;
  border-radius: 6px;
  font-size: 11px;
}
.choice button {
  font-size: 10px;
  padding: 4px 10px;
}
.winner-list {
  margin-top: 12px;
  color: #d6bd8e;
  font-size: 12px;
}
.page-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.summary-box {
  background: #191b25;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 6px;
}
.summary-box strong {
  font-size: 20px;
  display: block;
}
.summary-box span {
  font-size: 10px;
  color: #858da5;
}
.role-list {
  display: grid;
  gap: 9px;
}
.role-list label {
  padding: 9px 0;
}
.connection-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 15px;
}
.connection-row .avatar {
  height: 42px;
  width: 42px;
}
.connection-row .pill {
  margin-left: auto;
}
code {
  font-family: Consolas, monospace;
  background: #2b2a3a;
  color: #c0addf;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
pre {
  background: #171923;
  border: 1px solid #333644;
  padding: 16px;
  border-radius: 7px;
  overflow: auto;
  line-height: 1.8;
}
pre code {
  background: none;
  color: #aab2ce;
  padding: 0;
}
.callout {
  padding: 12px 14px;
  background: #352e25;
  border: 1px solid #514534;
  border-radius: 6px;
  color: #bda57d;
  font-size: 11px;
  margin: 15px 0;
}
.loading {
  padding: 50px;
  color: #8c84a6;
}
.error-box {
  padding: 20px;
  background: #3b2731;
  color: #efa6b0;
  border-radius: 7px;
  font-size: 12px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-card {
  width: min(100%, 410px);
  padding: 36px;
  background: var(--card);
  border: 1px solid #3e3652;
  border-radius: 12px;
}
.login-card h1 {
  margin-top: 25px;
}
.connection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.connection-layout {
  margin-bottom: 24px;
}
.setup-list {
  padding-left: 22px;
  line-height: 2;
  font-size: 13px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
}
.observe-banner {
  margin: 22px 36px 0;
  border: 1px solid #51426e;
  background: #282337;
  border-radius: 9px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.observe-banner a {
  margin-left: auto;
}
.observe-banner span {
  color: var(--muted);
}
.discord-login {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
}
.discord-login[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.login-card .login-security {
  margin: 24px 0 0;
  text-align: center;
}
@media (max-width: 650px) {
  .observe-banner {
    margin: 16px 16px 0;
  }
}
.login-card .muted {
  font-size: 12px;
  margin-bottom: 25px;
}
.login-card button {
  width: 100%;
  margin-top: 19px;
}
#login-error {
  font-size: 12px;
  color: var(--red);
}
#toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 100;
  background: #343048;
  color: #e8dfff;
  border: 1px solid #5b4b7a;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 12px;
  box-shadow: 0 10px 35px #0004;
  max-width: min(450px, 90vw);
}
#toast.error {
  background: #472c38;
  border-color: #734151;
  color: #ffc1cb;
}
dialog {
  width: calc(100% - 32px);
  max-width: 800px;
  max-height: 85vh;
  background: #20222e;
  color: var(--text);
  border: 1px solid #514464;
  border-radius: 12px;
  padding: 27px;
  box-shadow: 0 25px 100px #0007;
}
dialog::backdrop {
  background: #080a1399;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}
.preview-list {
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 18px;
}
.preview-list table {
  font-size: 11px;
}
.inline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.refresh-button {
  font-size: 10px;
}
.spinner {
  display: inline-block;
  height: 12px;
  width: 12px;
  border: 2px solid #c5b4ec;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#menu-toggle {
  display: none;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #5b4889;
  color: #fff;
}
.module-toggle {
  padding: 0;
  border: 0;
  flex-shrink: 0;
}
.module-toggle:hover {
  background: #7660c4;
}
.plugin-top > .pill {
  font-size: 8px;
  padding: 2px 6px;
}
@media (min-width: 1550px) {
  .plugin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .plugin-card {
    min-height: 174px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 221px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .workspace {
    margin-left: 221px;
  }
  .workspace main {
    padding: 27px;
  }
  .topbar {
    padding: 0 27px;
  }
  .quick-grant {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .grant-form {
    grid-template-columns: 100px 1fr auto;
  }
  .metric {
    padding: 16px;
    gap: 11px;
  }
  .metric-icon {
    height: 33px;
    width: 33px;
  }
  .plugin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ticket-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-two {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 20px 0 80px #0006;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  #menu-toggle {
    display: block;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .topbar-left,
  .topbar-right {
    gap: 11px;
  }
  .topbar-link {
    display: none;
  }
  .workspace main {
    padding: 25px 18px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .metric-value {
    font-size: 23px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-actions button {
    font-size: 11px;
  }
  .quick-grant {
    padding: 20px;
  }
  .grant-form {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .grant-form button {
    grid-column: 1/-1;
  }
  .grant-foot {
    grid-column: 1/-1;
  }
  .plugin-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .tabs {
    gap: 20px;
    width: 100%;
    order: 2;
  }
  .plugin-search {
    max-width: none;
    margin-bottom: 0;
  }
  .plugin-card {
    padding: 17px;
    min-height: 167px;
  }
  .plugin-grid {
    gap: 12px;
  }
  .plugin-card p {
    font-size: 10px;
  }
  .ticket-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .full {
    grid-column: auto;
  }
  .toolbar .small {
    margin-left: 0;
  }
  .toolbar > input {
    max-width: none;
  }
  .card-body {
    padding: 18px;
  }
  .card-header {
    padding: 16px 18px;
  }
  .summary-grid {
    gap: 8px;
  }
  .summary-box {
    padding: 10px;
  }
  .summary-box strong {
    font-size: 19px;
  }
  .demo-banner {
    font-size: 9px;
  }
  .member-cell {
    gap: 8px;
  }
  td,
  th {
    padding: 12px 15px;
  }
  footer {
    margin: 0 18px;
    flex-wrap: wrap;
    font-size: 9px;
  }
  .breadcrumb {
    gap: 8px;
    font-size: 10px;
  }
  .breadcrumb strong {
    font-size: 10px;
  }
  .admin-avatar {
    width: 26px;
    height: 26px;
  }
  .metric-icon {
    height: 30px;
    width: 30px;
    border-radius: 8px;
  }
  .metric-icon svg {
    width: 16px;
    height: 16px;
  }
  .metric {
    gap: 10px;
    padding: 15px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
