:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #111316;
  --surface-raised: #171a1f;
  --surface-hover: #1c2026;
  --line: #252a31;
  --line-strong: #353c46;
  --text: #f4f5f7;
  --muted: #929aa6;
  --subtle: #69727e;
  --orange: #ff792f;
  --orange-hover: #ff9054;
  --orange-soft: rgba(255,121,47,.10);
  --green: #66d49a;
  --red: #f18b82;
  --radius: 14px;
  --shadow: 0 16px 45px rgba(0,0,0,.20);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: #343a43 var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -30%, rgba(255,121,47,.075), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

::selection {
  background: rgba(255,121,47,.3);
  color: white;
}

.background-glow { display: none; }

/* Header and brand */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  padding: 0 max(calc((100vw - 1240px) / 2), 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  background: rgba(10,11,13,.88);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: linear-gradient(145deg, #ff914f, #e95d1e);
  color: #160d08;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 5px 20px rgba(255,121,47,.17);
}

.brand strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.7px;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.7px;
}

#account {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .7px;
}

.status-dot {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255,121,47,.4);
}

/* Main layout */

main {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 54px 30px 82px;
}

.hero {
  max-width: 710px;
  padding: 76px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

h1 {
  margin: 24px 0 18px;
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -4.5px;
  font-weight: 800;
}

h1 span {
  color: var(--orange);
}

.hero p {
  max-width: 510px;
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

/* Buttons */

button {
  min-height: 42px;
  margin: 0;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--orange);
  color: #1a100b;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}

button:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(255,121,47,.13);
}

button:active { transform: translateY(0); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

button span { margin-left: 12px; }

button.secondary {
  min-height: 38px;
  padding: 8px 14px;
  border-color: var(--line);
  background: var(--surface-raised);
  color: #dce0e5;
  font-size: 11px;
}

button.secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  box-shadow: none;
}

.logout-button {
  min-height: 33px;
  margin-left: 7px;
  padding: 6px 11px;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.logout-button:hover {
  color: var(--text);
  background: var(--surface-raised);
}

/* Section headings */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 23px;
}

h2 {
  margin: 8px 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.9px;
  font-weight: 750;
}

h3 { letter-spacing: -.3px; }

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* Server cards */

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.guild-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #15181c, #101215);
  box-shadow: var(--shadow);
  transition: border-color .2s, background .2s, transform .2s;
}

.guild-card:hover {
  border-color: rgba(255,121,47,.35);
  background: linear-gradient(145deg, #191b1f, #121416);
  transform: translateY(-3px);
}

.guild-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guild-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #20242a;
  color: var(--orange);
  font-size: 18px;
  font-weight: 800;
}

.guild-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #1a1d22;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.connection:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--subtle);
}

.connection.online {
  border-color: rgba(102,212,154,.18);
  background: rgba(102,212,154,.07);
  color: #91ddb2;
}

.connection.online:before { background: var(--green); }

.connection.offline {
  border-color: rgba(241,139,130,.18);
  background: rgba(241,139,130,.07);
  color: #e9a39b;
}

.connection.offline:before { background: var(--red); }

.guild-card h3 {
  margin: 20px 0 7px;
  font-size: 15px;
  font-weight: 700;
}

.guild-card p {
  min-height: 36px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.guild-card button { margin-top: 17px; }

.guild-open {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.invite-link {
  display: inline-block;
  margin-top: 17px;
  color: var(--orange);
  font-size: 11px;
  line-height: 1.6;
}

/* Server details */

#details {
  margin-top: 27px;
  padding: clamp(20px, 3vw, 32px);
  scroll-margin-top: 94px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, #14171b, #101215);
  box-shadow: var(--shadow);
}

.server-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.server-title h2 { margin: 8px 0 5px; }
.server-title p { margin: 0; }

.dashboard-section { margin-top: 32px; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.section-title h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 750;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

/* Security settings */

.setting-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111418;
}

.setting-row {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 19px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background .16s;
}

.setting-row:hover { background: rgba(255,255,255,.025); }
.setting-row:last-child { border-bottom: 0; }

.setting-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setting-copy strong {
  font-size: 12px;
  font-weight: 700;
}

.setting-copy small {
  max-width: 560px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.setting-row input[type="checkbox"] {
  position: absolute;
  right: 19px;
  width: 42px;
  height: 24px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.toggle-ui {
  position: relative;
  flex: 0 0 42px;
  height: 24px;
  border: 1px solid #3a4049;
  border-radius: 20px;
  background: #292e35;
  transition: background .2s, border-color .2s;
}

.toggle-ui:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #a0a7b0;
  transition: transform .2s, background .2s;
}

.setting-row input:checked + .toggle-ui {
  border-color: var(--orange);
  background: #b65326;
}

.setting-row input:checked + .toggle-ui:after {
  transform: translateX(18px);
  background: white;
}

.setting-row input:focus-visible + .toggle-ui {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Threshold fields and forms */

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

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #15181d;
  font-size: 11px;
}

.field > span {
  color: #e5e7eb;
  font-weight: 700;
}

.field input,
.trusted-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #303640;
  border-radius: 8px;
  outline: none;
  background: #0c0e11;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  transition: border-color .15s, background .15s;
}

.field input:focus,
.trusted-form input:focus {
  border-color: var(--orange);
  background: #111317;
}

.field small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.settings-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 19px;
}

.settings-actions button { margin: 0; }

.trusted-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.trusted-form input { flex: 1; }
.trusted-form button { white-space: nowrap; }

/* Trusted users */

.trusted-list,
.incident-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #111418;
}

.trusted-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.trusted-user:last-child { border-bottom: 0; }
.trusted-user strong, .trusted-user small { display: block; }
.trusted-user strong { font-size: 11px; }
.trusted-user small { margin-top: 5px; color: var(--muted); font-size: 10px; }

.danger-button {
  min-height: 33px;
  padding: 7px 11px;
  border: 1px solid rgba(241,139,130,.25);
  border-radius: 8px;
  background: rgba(241,139,130,.08);
  color: #f0a39a;
  font-size: 10px;
}

.danger-button:hover {
  border-color: rgba(241,139,130,.45);
  background: rgba(241,139,130,.15);
  box-shadow: none;
}

/* Incidents */

.incident {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.incident:last-child { border-bottom: 0; }

.incident-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.incident-heading strong {
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.incident p {
  margin: 9px 0;
  color: #c4c9d0;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.incident small { color: var(--muted); font-size: 10px; }

.severity {
  padding: 5px 8px;
  border-radius: 6px;
  background: #292e35;
  color: #c1c7d0;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.severity.high, .severity.critical {
  background: rgba(241,139,130,.12);
  color: #f2a096;
}

.severity.medium {
  background: rgba(232,187,120,.12);
  color: #e8bb78;
}

.severity.low {
  background: rgba(102,212,154,.10);
  color: #9bdcb6;
}

/* Notices and empty states */

.notice {
  margin: 13px 0;
  padding: 12px 14px;
  border: 1px solid rgba(102,212,154,.23);
  border-radius: 9px;
  background: rgba(102,212,154,.08);
  color: #a4d7b2;
  font-size: 11px;
  line-height: 1.65;
}

.notice.error {
  border-color: rgba(241,139,130,.25);
  background: rgba(241,139,130,.08);
  color: #f0a39a;
}

.empty-state, .loading {
  padding: 19px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.guild-grid > .empty-state,
.guild-grid > .loading {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
}

/* Global blacklist */

.global-panel {
  margin-top: 36px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #14171b, #101215);
  box-shadow: var(--shadow);
}

.global-heading { margin: 0 0 20px; }
.global-heading h2 { margin: 8px 0 5px; }
.global-heading p { margin: 0; }

.global-warning {
  padding: 13px 15px;
  border: 1px solid rgba(255,121,47,.22);
  border-radius: 10px;
  background: var(--orange-soft);
  color: #e7b294;
  font-size: 11px;
  line-height: 1.7;
}

.global-form {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(220px, 1.4fr) auto;
  align-items: end;
  gap: 12px;
  margin: 19px 0;
}

.global-form .field { min-width: 0; }
.global-form button { min-height: 44px; white-space: nowrap; }

.global-list { display: grid; gap: 11px; }

.global-entry {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #15181d;
  transition: border-color .15s;
}

.global-entry:hover { border-color: #363d47; }

.global-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.global-entry-head strong { font-size: 12px; }

.global-entry-head p {
  margin: 7px 0;
  color: #d2d6dc;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.global-entry-head small { color: var(--muted); font-size: 10px; }

.global-history {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.global-history summary {
  color: var(--orange);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.global-history summary:hover { color: var(--orange-hover); }

.global-action {
  display: grid;
  grid-template-columns: 145px minmax(100px, .6fr) minmax(150px, 1.5fr);
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.global-action:last-child { border-bottom: 0; }

.global-action-server {
  color: #d1d5dc;
  overflow-wrap: anywhere;
}

.global-action small { color: var(--muted); line-height: 1.5; }

.global-status {
  color: #d7d7d7;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.global-status.status-banned { color: #9fd1ad; }
.global-status.status-already_banned { color: #e8bb78; }

.global-status.status-failed,
.global-status.status-missing_permission,
.global-status.status-role_hierarchy { color: #f0a08e; }

.global-status[class*="skipped"] { color: #aeb4bc; }

.compact { padding: 10px 0; }

/* Landing page */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 78px;
}

.feature {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, #15181c, #101215);
  transition: border-color .18s, transform .18s;
}

.feature:hover {
  border-color: rgba(255,121,47,.25);
  transform: translateY(-2px);
}

.feature > span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.feature h3 {
  margin: 19px 0 8px;
  font-size: 13px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

body:has(#dashboard:not([hidden])) .features { display: none; }

footer {
  padding: 25px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--subtle);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.8px;
  text-align: center;
}

footer span { color: var(--orange); }

/* Responsive */

@media (max-width: 850px) {
  main { padding: 42px 22px 60px; }
  header { padding: 0 22px; }
  .global-form { grid-template-columns: 1fr 1fr; }
  .global-form button { grid-column: 1 / -1; }
  .global-action { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 650px) {
  header { height: 64px; padding: 0 16px; }
  .brand-icon { width: 35px; height: 35px; }
  #account { font-size: 9px; gap: 6px; }
  .logout-button { padding: 5px 8px; }
  main { padding: 30px 15px 46px; }
  .hero { padding: 43px 0 53px; }
  h1 { font-size: clamp(40px, 12vw, 59px); letter-spacing: -2.8px; }
  .hero p { font-size: 13px; }
  .section-heading { align-items: flex-start; }
  h2 { font-size: 22px; }
  .guild-grid { grid-template-columns: 1fr; }
  #details { padding: 17px; }
  .server-title { align-items: flex-start; flex-direction: column; }
  .section-title { align-items: flex-start; }
  .threshold-grid { grid-template-columns: 1fr; }
  .trusted-form { flex-direction: column; }
  .trusted-form button { width: 100%; }
  .settings-actions { align-items: flex-start; flex-direction: column; }
  .setting-row { padding: 14px 12px; }
  .setting-row input[type="checkbox"] { right: 12px; }
  .global-panel { padding: 16px; }
  .global-form { grid-template-columns: 1fr; }
  .global-form button { grid-column: auto; width: 100%; }
  .global-heading { align-items: flex-start; }
  .global-entry-head { flex-direction: column; }
  .global-entry-head .danger-button { align-self: flex-start; }
  .features { grid-template-columns: 1fr; margin-top: 45px; }
}

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

/* Sentinel brand logo */
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.brand-logo {
    display: block;
    width: 190px;
    max-width: 42vw;
    height: auto;
    object-fit: contain;
}
@media (max-width: 600px) {
    .brand-logo {
        width: 155px;
    }
}

/* ==========================================
   SENTINEL — CLEAN DASHBOARD REFINEMENT
   ========================================== */

:root {
  --bg: #0b0c0e;
  --surface: #121417;
  --surface-raised: #171a1e;
  --surface-hover: #1c2025;
  --line: #242930;
  --line-strong: #343b44;
  --text: #f1f2f4;
  --muted: #9299a3;
  --subtle: #68717c;
  --orange: #f47a36;
  --orange-hover: #ff9255;
  --orange-soft: rgba(244,122,54,.09);
  --radius: 12px;
  --shadow: 0 12px 30px rgba(0,0,0,.14);
}

body {
  background: #0b0c0e;
  font-size: 13px;
}

header {
  height: 66px;
  padding-inline: max(calc((100vw - 1320px) / 2), 28px);
  background: rgba(11,12,14,.94);
  border-bottom-color: #20242a;
  backdrop-filter: blur(16px);
}

.brand-logo {
  display: block;
  width: 174px;
  max-width: 42vw;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

#account {
  font-size: 11px;
  letter-spacing: .2px;
}

main {
  width: min(1320px, 100%);
  padding: 42px 30px 76px;
}

.hero {
  max-width: 680px;
  padding: 64px 0 76px;
}

.hero h1 {
  font-size: clamp(43px, 6vw, 68px);
  letter-spacing: -3.8px;
}

.hero p {
  font-size: 14px;
  line-height: 1.75;
}

button {
  min-height: 40px;
  border-radius: 8px;
  font-size: 11px;
  box-shadow: none;
}

button:hover {
  box-shadow: 0 4px 14px rgba(244,122,54,.10);
}

button.secondary {
  min-height: 36px;
  border-radius: 8px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: 23px;
  letter-spacing: -.7px;
}

/* Server overview */

.guild-grid {
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 12px;
}

.guild-card {
  padding: 18px;
  border-radius: 11px;
  background: #121417;
  box-shadow: none;
}

.guild-card:hover {
  background: #15181c;
  border-color: rgba(244,122,54,.35);
  transform: translateY(-2px);
}

.guild-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.guild-card h3 {
  margin: 16px 0 6px;
  font-size: 14px;
}

.guild-card p {
  min-height: 32px;
  font-size: 11px;
}

.guild-card button {
  margin-top: 14px;
}

.connection {
  padding: 5px 9px;
  font-size: 9px;
}

/* Server detail workspace */

#details {
  margin-top: 22px;
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: 13px;
  background: #111316;
  box-shadow: none;
}

.server-title {
  padding-bottom: 20px;
}

.server-title h2 {
  font-size: 23px;
}

.dashboard-section {
  margin-top: 26px;
}

.section-title {
  margin-bottom: 12px;
}

.section-title h3 {
  font-size: 13px;
}

.section-title p {
  font-size: 10px;
}

/* Settings: simple rows, restrained surfaces */

.setting-list,
.trusted-list,
.incident-list {
  border-radius: 10px;
  background: #0f1114;
}

.setting-row {
  min-height: 68px;
  padding: 13px 16px;
}

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

.setting-copy small {
  font-size: 10px;
}

.toggle-ui {
  flex-basis: 38px;
  height: 22px;
}

.toggle-ui:after {
  width: 16px;
  height: 16px;
}

.setting-row input[type="checkbox"] {
  right: 16px;
  width: 38px;
  height: 22px;
}

.setting-row input:checked + .toggle-ui:after {
  transform: translateX(16px);
}

.threshold-grid {
  gap: 10px;
}

.field {
  gap: 8px;
  padding: 14px;
  border-radius: 9px;
  background: #14171a;
}

.field > span {
  font-size: 10px;
}

.field input,
.trusted-form input {
  min-height: 39px;
  border-radius: 7px;
  background: #0d0f11;
}

.settings-actions {
  gap: 12px;
  margin-top: 15px;
}

.trusted-form {
  gap: 8px;
}

.trusted-user {
  padding: 12px 14px;
}

.incident {
  padding: 13px 15px;
}

.incident p {
  font-size: 10px;
}

/* Global administration */

.global-panel {
  margin-top: 30px;
  padding: clamp(17px, 2.5vw, 25px);
  border-radius: 13px;
  background: #111316;
  box-shadow: none;
}

.global-heading {
  margin-bottom: 17px;
}

.global-heading h2 {
  font-size: 22px;
}

.global-warning {
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 10px;
}

.global-form {
  gap: 10px;
  margin: 16px 0;
}

.global-form .field {
  padding: 12px;
}

.global-form button {
  min-height: 42px;
}

.global-entry {
  padding: 15px;
  border-radius: 9px;
  background: #14171a;
}

.global-entry-head strong {
  font-size: 11px;
}

.global-entry-head p {
  font-size: 10px;
}

.global-action {
  grid-template-columns: 125px minmax(90px, .7fr) minmax(130px, 1.5fr);
  gap: 10px;
  padding: 10px 0;
}

/* Feedback and empty states */

.notice {
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 10px;
}

.empty-state,
.loading {
  padding: 16px;
  font-size: 10px;
}

/* Landing page and footer */

.features {
  gap: 12px;
  margin-top: 62px;
}

.feature {
  padding: 20px;
  border-radius: 11px;
  background: #121417;
}

.feature:hover {
  transform: translateY(-1px);
}

.feature h3 {
  margin: 15px 0 7px;
  font-size: 12px;
}

.feature p {
  font-size: 10px;
}

footer {
  padding: 22px;
  border-top-color: #20242a;
}

/* Responsive refinements */

@media (max-width: 850px) {
  main {
    padding: 34px 22px 60px;
  }

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

  .global-form button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  header {
    height: 60px;
    padding-inline: 16px;
  }

  .brand-logo {
    width: 145px;
    max-width: 45vw;
    max-height: 38px;
  }

  #account {
    gap: 6px;
    font-size: 9px;
  }

  main {
    padding: 27px 16px 48px;
  }

  .hero {
    padding: 48px 0 55px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 54px);
    letter-spacing: -2.8px;
  }

  .hero p {
    font-size: 13px;
  }

  .section-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .guild-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guild-card {
    padding: 16px;
  }

  #details {
    padding: 17px;
  }

  .server-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .threshold-grid,
  .global-form {
    grid-template-columns: 1fr;
  }

  .global-form button {
    grid-column: auto;
  }

  .global-panel {
    padding: 16px;
  }

  .global-heading {
    align-items: flex-start;
  }

  .trusted-form {
    flex-direction: column;
  }

  .trusted-form button {
    width: 100%;
  }

  .settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-actions button {
    width: 100%;
  }

  .global-entry-head {
    flex-direction: column;
  }

  .global-action {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .features {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }
}

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



/* Global blacklist actions */
.global-entry-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.global-entry-actions button {
  min-height: 34px;
}

.global-status.status-unbanned,
.global-status.status-already_unbanned {
  color: #9fd1ad;
}

.global-status[class*="unban_"] {
  color: #f0a08e;
}

@media (max-width: 650px) {
  .global-entry-actions {
    width: 100%;
  }
}


/* Private global blacklist evidence uploads */
.global-form {
  grid-template-columns: minmax(150px, .8fr) minmax(190px, 1.2fr) minmax(190px, 1fr) auto;
}

.evidence-field input[type="file"] {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.evidence-field input[type="file"]::file-selector-button {
  margin-right: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #20242a;
  color: var(--text);
  cursor: pointer;
}

.evidence-field small { color: var(--muted); font-size: 10px; }

.evidence-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #111418;
}

.evidence-preview[hidden] { display: none; }

.evidence-preview img {
  width: 82px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
}

.evidence-preview span,
.global-evidence-label {
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}

.evidence-preview small {
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.global-entry-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.global-entry-actions button { min-height: 34px; }

.global-unban {
  padding: 8px 11px;
  border: 1px solid rgba(255,121,47,.3);
  border-radius: 7px;
  background: rgba(255,121,47,.09);
  color: #f0a16f;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.global-unban:hover { background: rgba(255,121,47,.16); }

.global-evidence {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.global-evidence-label {
  margin-bottom: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.global-evidence img {
  display: block;
  max-width: min(100%, 420px);
  max-height: 300px;
  object-fit: contain;
  object-position: left center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #090a0c;
}

@media (max-width: 1050px) {
  .global-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-form button { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .global-form { grid-template-columns: 1fr; }
  .global-form button { grid-column: auto; }
  .global-entry-actions { width: 100%; }
  .global-entry-actions button { flex: 1; }
  .evidence-preview { align-items: flex-start; flex-wrap: wrap; }
}
