:root {
  --bg: #07080c;
  --bg2: #0e1016;
  --bg3: #151821;
  --line: rgba(255,255,255,.08);
  --line2: rgba(255,255,255,.12);
  --text: #f2f4f8;
  --muted: #93a0b5;
  --accent: #7c5cff;
  --accent2: #5865F2;
  --green: #3ba55d;
  --warn: #faa81a;
  --danger: #ed4245;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
.hidden { display: none !important; }

/* ========== LOGIN ========== */
.login-screen {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
}
.login-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .55;
}
.o1 { width: 420px; height: 420px; background: #5b3dff; top: -80px; left: -60px; }
.o2 { width: 380px; height: 380px; background: #1f6feb; bottom: -100px; right: -40px; }
.o3 { width: 260px; height: 260px; background: #1f8a5b; top: 40%; left: 45%; opacity: .25; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.login-shell {
  position: relative; z-index: 2;
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  gap: 28px;
  align-items: stretch;
}
.login-hero {
  padding: 28px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-badges { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line2);
  color: var(--muted); font-size: 12px; font-weight: 600;
}
.chip.ok { color: #9dffbf; border-color: rgba(59,165,93,.4); background: rgba(59,165,93,.1); }
.chip.mono { font-family: var(--mono); font-size: 11px; }
.ico { width: 14px; height: 14px; }
.ico.sm { width: 16px; height: 16px; opacity: .85; }
.hero-logo {
  width: 72px; height: 72px; margin-bottom: 16px;
  filter: drop-shadow(0 12px 30px rgba(88,101,242,.45));
}
.login-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -.03em;
  line-height: 1.05;
}
.login-hero > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 420px;
}
.hero-points {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 10px;
}
.hero-points li {
  color: #c7d0df;
  font-size: 14px;
  padding-left: 22px;
  position: relative;
}
.hero-points li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px rgba(124,92,255,.7);
}

.glass {
  background: rgba(14,16,22,.72);
  border: 1px solid var(--line2);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.login-card {
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 22px;
}
.brand-row { display: flex; gap: 12px; align-items: center; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; }
.brand-row strong { display: block; font-size: 16px; }
.brand-row span { color: var(--muted); font-size: 12px; }
.discord-mark {
  width: 28px; height: 28px; opacity: .95;
  filter: drop-shadow(0 4px 12px rgba(88,101,242,.5));
}
.login-card label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--muted); margin-bottom: 8px; letter-spacing: .04em;
  text-transform: uppercase;
}
.input-wrap {
  position: relative; margin-bottom: 16px;
}
.input-wrap .input-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted);
}
.input-wrap input {
  width: 100%;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line2);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 14px 14px 42px;
  font: inherit;
  outline: none;
  transition: border .15s, box-shadow .15s;
}
.input-wrap input:focus {
  border-color: rgba(124,92,255,.7);
  box-shadow: 0 0 0 4px rgba(124,92,255,.15);
}
.login-foot {
  margin-top: 16px;
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12px;
  justify-content: center;
}
.page-credit, .app-footer {
  margin: 18px 0 0;
  text-align: center;
  color: rgba(147,160,181,.75);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}
.app-footer {
  margin: 28px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Welcome splash */
.welcome-screen {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}
.welcome-card {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  border-radius: 24px;
  padding: 36px 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: welcomeIn .45s ease;
}
@keyframes welcomeIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.welcome-avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
}
.welcome-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(124,92,255,.55);
  box-shadow: 0 12px 40px rgba(88,101,242,.4);
  background: #151821;
}
.welcome-online {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3ba55d;
  border: 3px solid #0e1016;
  box-shadow: 0 0 12px rgba(59,165,93,.7);
}
.welcome-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.welcome-card h2 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -.02em;
}
.welcome-tag {
  margin: 0 0 10px;
  color: #b7c0ff;
  font-family: var(--mono);
  font-size: 13px;
}
.welcome-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.welcome-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-bottom: 8px;
}
.welcome-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c5cff, #5865F2, #3ba55d);
  transition: width .05s linear;
}

.thanks-card { padding-top: 32px; }
.thanks-logo {
  width: 64px; height: 64px; margin: 0 auto 12px; display: block;
  filter: drop-shadow(0 10px 24px rgba(88,101,242,.4));
}
.thanks-discord {
  width: 28px; height: 28px; margin: 0 auto 14px; display: block; opacity: .95;
}
.thanks-msg {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.thanks-msg strong { color: #d6d4ff; font-weight: 700; }
.thanks-card .btn { width: 100%; justify-content: center; margin-bottom: 8px; }

.info-block {
  color: #c5cddb;
  font-size: 14px;
  line-height: 1.55;
}
.info-block p { margin: 0 0 12px; }
.info-block ul {
  margin: 0 0 12px;
  padding-left: 18px;
}
.info-block li { margin-bottom: 8px; }
.info-block code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(0,0,0,.35);
  padding: 2px 6px;
  border-radius: 6px;
}

.role-limit-add {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.role-limit-add .grow { flex: 1; min-width: 240px; }
.role-limit-add label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.role-limit-add select {
  width: 100%;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line2);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.role-limit-empty {
  text-align: center;
  padding: 36px 18px;
  border: 1px dashed var(--line2);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}
.role-limit-empty .empty-ico { font-size: 28px; margin-bottom: 8px; }
.role-limit-empty strong { display: block; margin-bottom: 6px; }
.role-limit-empty p { margin: 0; color: var(--muted); font-size: 13px; }

.role-limit-card {
  border: 1px solid var(--line2);
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--role-color, #5865F2) 12%, transparent), transparent 55%),
    rgba(10,12,18,.55);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.role-limit-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.role-limit-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.role-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--role-color, #5865F2);
  box-shadow: 0 0 12px color-mix(in srgb, var(--role-color, #5865F2) 70%, transparent);
  flex-shrink: 0;
}
.role-title {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48vw;
}
.role-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.limit-chip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 16px;
}
.limit-chip {
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 10px 10px 12px;
  transition: border-color .15s, transform .1s;
}
.limit-chip:hover {
  border-color: color-mix(in srgb, var(--role-color, #7c5cff) 45%, var(--line2));
}
.limit-chip-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.limit-ico { font-size: 14px; line-height: 1; }
.limit-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.limit-chip-input {
  display: flex;
  align-items: center;
  gap: 6px;
}
.limit-chip-input input[type="number"] {
  width: 100%;
  min-width: 0;
  text-align: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line2);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 4px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  -moz-appearance: textfield;
}
.limit-chip-input input::-webkit-outer-spin-button,
.limit-chip-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.limit-chip-input .step {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.limit-chip-input .step:hover {
  background: color-mix(in srgb, var(--role-color, #7c5cff) 25%, transparent);
  border-color: color-mix(in srgb, var(--role-color, #7c5cff) 50%, var(--line2));
}

@media (max-width: 980px) {
  .limit-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .limit-chip-grid { grid-template-columns: 1fr; }
}

.backup-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Backup scope modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  width: min(440px, 100%);
  background: var(--card, #141824);
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 16px;
  padding: 22px 20px 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.modal-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.modal-card .sub { margin: 0 0 16px; opacity: .7; font-size: .9rem; }
.scope-options {
  display: grid;
  gap: 10px;
}
.scope-opt {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(255,255,255,.1));
  background: rgba(255,255,255,.03);
  color: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.scope-opt:hover {
  border-color: rgba(88, 101, 242, .55);
  background: rgba(88, 101, 242, .1);
  transform: translateY(-1px);
}
.scope-opt .scope-ico {
  grid-row: 1 / span 2;
  font-size: 1.4rem;
  align-self: center;
}
.scope-opt strong { font-size: .95rem; }
.scope-opt span:last-child { font-size: .8rem; opacity: .65; }
.modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* ========== APP SHELL ========== */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(88,101,242,.12), transparent 50%),
    radial-gradient(700px 360px at 100% 0%, rgba(124,92,255,.08), transparent 45%),
    var(--bg);
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  background: rgba(10,12,18,.85);
  backdrop-filter: blur(12px);
}
.side-brand {
  display: flex; gap: 12px; align-items: center;
  padding: 8px 8px 16px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.side-brand img { width: 40px; height: 40px; border-radius: 12px; }
.side-brand strong { display: block; font-size: 14px; }
.side-brand small { color: var(--muted); font-size: 11px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; margin-top: 10px; overflow: auto; }
.sidebar nav button {
  background: transparent; border: 0; color: var(--muted);
  text-align: left; padding: 11px 12px; border-radius: 12px;
  cursor: pointer; font: inherit; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.sidebar nav button:hover { background: rgba(255,255,255,.04); color: var(--text); }
.sidebar nav button.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(124,92,255,.28), rgba(88,101,242,.08));
  border: 1px solid rgba(124,92,255,.28);
}
.nav-ico { width: 18px; opacity: .85; text-align: center; }
.side-foot { padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.side-discord {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12px; padding: 0 4px;
}
.side-discord img { width: 18px; height: 18px; }

.main { padding: 22px 28px 48px; min-width: 0; }
.topbar {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 20px;
}
.crumbs {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px; font-weight: 700;
}
.topbar h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.topbar p { margin: 0; color: var(--muted); font-size: 14px; }
.top-actions { display: flex; gap: 10px; align-items: center; }

.btn {
  border: 1px solid var(--line2);
  background: var(--bg3);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .1s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn.primary {
  background: linear-gradient(135deg, #7c5cff, #5865F2);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 24px rgba(88,101,242,.3);
}
.btn.primary.xl { width: 100%; justify-content: center; padding: 14px 16px; font-size: 15px; }
.btn.ghost { background: transparent; }
.btn.ghost.block, .btn.block { width: 100%; justify-content: center; }
.btn.danger {
  background: rgba(237,66,69,.12);
  border-color: rgba(237,66,69,.35);
  color: #ffb4b5;
}
.btn.sm { padding: 7px 10px; font-size: 12px; border-radius: 10px; }

.badge {
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  padding: 7px 12px; border-radius: 999px;
  background: var(--bg3); border: 1px solid var(--line2);
}
.badge.ok { color: #9dffbf; border-color: rgba(59,165,93,.45); background: rgba(59,165,93,.12); }
.badge.bad { color: #ffb4b5; border-color: rgba(237,66,69,.45); background: rgba(237,66,69,.12); }

.tab { display: none; }
.tab.active { display: block; animation: fade .22s ease; }
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.card {
  background: rgba(14,16,22,.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.card-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 14px;
}
.card-head h3, .card h3 { margin: 0; font-size: 16px; }
.card-head.full { grid-column: 1 / -1; margin-bottom: 4px; }
.card-head .sub, .sub { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.hint-inline { color: var(--muted); font-size: 12px; font-weight: 500; }

.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px; margin-bottom: 14px;
}
.stat {
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent), var(--bg3);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
}
.stat .label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stat .value { font-size: 18px; font-weight: 800; margin-top: 8px; word-break: break-all; letter-spacing: -.02em; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.form-grid label {
  display: flex; flex-direction: column; gap: 7px;
  color: var(--muted); font-size: 12px; font-weight: 600;
}
.form-grid label.full { grid-column: 1 / -1; }
.form-grid label.check {
  flex-direction: row; align-items: center; gap: 10px;
  color: var(--text); font-size: 14px;
}
.form-grid input, .form-grid textarea, .form-grid select,
.add-row input {
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line2);
  color: var(--text);
  border-radius: 11px;
  padding: 11px 12px;
  font: inherit;
  outline: none;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus,
.add-row input:focus {
  border-color: rgba(124,92,255,.65);
  box-shadow: 0 0 0 3px rgba(124,92,255,.12);
}
.mono, .code { font-family: var(--mono); }
.code {
  background: #06070a;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
  max-height: 360px;
  font-size: 12px;
  color: #b7c2d4;
  margin: 0;
}
.hint { color: var(--muted); font-size: 13px; margin: 0; grid-column: 1 / -1; }

.toggle-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px !important;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text) !important;
  cursor: pointer;
}
.toggle-card input { width: 18px; height: 18px; accent-color: var(--accent); }
.toggle-card strong { display: block; font-size: 14px; }
.toggle-card span { color: var(--muted); font-size: 12px; font-weight: 500; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.list-card .add-row {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.list-card .add-row input { flex: 1; }
.chip-cloud {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-height: 280px; overflow: auto;
  padding: 2px;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,92,255,.1);
  border: 1px solid rgba(124,92,255,.28);
  color: #ddd6ff;
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  font-size: 12px; font-weight: 600;
  font-family: var(--mono);
}
.tag button {
  border: 0; background: rgba(255,255,255,.08);
  color: #fff; width: 22px; height: 22px; border-radius: 50%;
  cursor: pointer; font-size: 12px; line-height: 1;
}
.tag button:hover { background: rgba(237,66,69,.5); }
.tag.empty {
  background: transparent; border-style: dashed; color: var(--muted);
  font-family: var(--font);
}

/* Actions */
.actions-hero {
  display: flex; justify-content: space-between; align-items: center;
  background:
    linear-gradient(120deg, rgba(88,101,242,.18), rgba(124,92,255,.08) 40%, transparent),
    rgba(14,16,22,.8);
}
.actions-hero-text { display: flex; gap: 14px; align-items: center; }
.actions-logo { width: 48px; height: 48px; }
.actions-hero h3 { margin: 0 0 4px; }
.actions-hero p { margin: 0; color: var(--muted); font-size: 13px; }
.actions-discord { width: 36px; height: 36px; opacity: .9; }
.actions-grid { margin-bottom: 14px; }
.action-tile {
  background: rgba(14,16,22,.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.action-tile h4 { margin: 0; font-size: 15px; }
.action-tile p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; line-height: 1.45; }
.action-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 18px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.action-ico.syslog { background: rgba(88,101,242,.15); }
.action-ico.staff { background: rgba(59,165,93,.12); }
.action-ico.restart { background: rgba(237,66,69,.12); }

.table-wrap { overflow: auto; max-height: 420px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.swatch {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px;
}

.error { color: #ff8e90; min-height: 18px; font-size: 13px; margin: 10px 0 0; }
.toast {
  position: fixed; right: 20px; bottom: 20px;
  background: #10131a; border: 1px solid var(--line2);
  padding: 12px 16px; border-radius: 12px;
  box-shadow: var(--shadow); z-index: 50;
  font-weight: 600; font-size: 13px;
}
.toast.ok { border-color: rgba(59,165,93,.5); color: #b6ffd0; }
.toast.err { border-color: rgba(237,66,69,.5); color: #ffc0c1; }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { order: 2; padding-top: 8px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .form-grid, .grid-2 { grid-template-columns: 1fr; }
}
