:root {
  --bg0: #070a12;
  --bg1: #0d111c;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f4f6ff;
  --muted: rgba(244, 246, 255, 0.62);
  --faint: rgba(244, 246, 255, 0.38);
  --accent: #7c8cff;
  --accent2: #4be1c1;
  --danger: #ff5c7a;
  --warn: #ffc66d;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(124, 140, 255, 0.22), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(75, 225, 193, 0.14), transparent 50%), var(--bg0);
  color: var(--text);
}

.hidden {
  display: none !important;
}

.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  align-items: start;
}

.sidebar {
  background: linear-gradient(180deg, rgba(13, 17, 28, 0.96), rgba(7, 10, 18, 0.98));
  border-right: 1px solid var(--card-border);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  position: sticky;
  top: 0;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(124, 140, 255, 0.2);
}

.nav-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-right: -0.25rem;
  padding-right: 0.25rem;
}

.nav-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding: 0.5rem 0.85rem 0.35rem;
  margin-top: 0.35rem;
}
.nav-group:first-child .nav-group-label {
  margin-top: 0;
}

.brand-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand-text {
  min-width: 0;
}
.brand-sub {
  font-size: 0.75rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.nav button.active {
  background: rgba(124, 140, 255, 0.16);
  color: var(--text);
  font-weight: 600;
}

.sidebar-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--card-border);
  background: linear-gradient(180deg, transparent, rgba(7, 10, 18, 0.98) 12%);
}

.btn.fullwidth {
  width: 100%;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.user-chip img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.main {
  padding: 1.75rem clamp(1rem, 4vw, 2rem) 3rem;
  overflow-x: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mobile-tab-bar {
  display: none;
}

.main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.main-head h1 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.5;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(75, 225, 193, 0.12);
  color: var(--accent2);
  border: 1px solid rgba(75, 225, 193, 0.28);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}

.grid {
  display: grid;
  gap: 1rem;
}
.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
th,
td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  background: rgba(0, 0, 0, 0.25);
}
tr:last-child td {
  border-bottom: none;
}
tr.ticket-row.active td {
  background: rgba(124, 140, 255, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, filter 0.12s;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #9a6dff);
  color: #0a0c14;
}
.btn.discord {
  background: #5865f2;
  color: white;
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.5rem;
}
.btn.danger {
  background: rgba(255, 92, 122, 0.2);
  color: #ffc9d4;
  border: 1px solid rgba(255, 92, 122, 0.35);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn.sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 160px;
}
.field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}
input,
textarea,
select {
  font: inherit;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 0.55rem 0.75rem;
}
textarea {
  min-height: 88px;
  resize: vertical;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.fine {
  font-size: 0.75rem;
  color: var(--faint);
  margin-top: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(124, 140, 255, 0.15);
  color: #c8d0ff;
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.gate-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.gate-card h2 {
  margin: 1rem 0 0.5rem;
}

.map-preview {
  width: 100%;
  max-width: 720px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
}

.pre {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  max-height: 420px;
  overflow: auto;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(13, 17, 28, 0.95);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  z-index: 50;
  animation: slide 0.25s ease;
}
.toast.err {
  border-color: rgba(255, 92, 122, 0.45);
  color: #ffc9d4;
}
@keyframes slide {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin: 0 0 0.5rem;
}

.link-name,
button.link-name {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-name:hover {
  color: #a8b4ff;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(4, 6, 12, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-card {
  width: min(560px, 100%);
  max-height: min(85vh, 720px);
  overflow: auto;
  background: linear-gradient(165deg, rgba(18, 22, 36, 0.98) 0%, rgba(10, 13, 24, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(124, 140, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 1.35rem 1.5rem;
}
.modal-card--wide {
  width: min(680px, 100%);
  max-width: 680px;
  max-height: min(90vh, 820px);
}
.modal-card h2,
.modal-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.modal-close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Staff lookup / profile (modal + lookup page) */
.lookup-profile-wrap {
  margin-top: 0.25rem;
}
.staff-profile-card {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.staff-profile-hero {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.35rem 1.35rem 1.15rem;
  background: radial-gradient(1000px 280px at 10% -40%, rgba(124, 140, 255, 0.2), transparent 55%),
    radial-gradient(600px 200px at 90% -30%, rgba(75, 225, 193, 0.1), transparent 50%);
}
.staff-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124, 140, 255, 0.18);
  flex-shrink: 0;
}
.staff-profile-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.staff-profile-handle {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.staff-profile-dot {
  margin: 0 0.4rem;
  color: var(--faint);
}
.staff-profile-id {
  font-size: 0.78rem;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  color: var(--accent2);
}
.staff-profile-joined {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.staff-profile-joined-label {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  margin-right: 0.35rem;
}
.staff-profile-sep {
  height: 1px;
  margin: 0;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(124, 140, 255, 0.35), rgba(75, 225, 193, 0.2), transparent);
  opacity: 0.85;
}
.staff-profile-section {
  padding: 1.15rem 1.35rem 1.25rem;
}
.staff-profile-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--faint);
  font-weight: 600;
}
.staff-profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
@media (max-width: 620px) {
  .staff-profile-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.staff-profile-stat {
  padding: 0.75rem 0.6rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.staff-profile-stat--wide {
  grid-column: 1 / -1;
}
.staff-profile-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.staff-profile-stat-value--sm {
  font-size: 1.05rem;
  font-weight: 600;
}
.staff-profile-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.staff-profile-empty {
  margin: 0;
  padding: 0.5rem 0 0.25rem;
}
.staff-profile-mod {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.staff-profile-mod-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  background: rgba(124, 140, 255, 0.1);
  border: 1px solid rgba(124, 140, 255, 0.22);
  font-size: 0.82rem;
  color: var(--muted);
}
.staff-profile-mod-pill--sky {
  background: rgba(255, 198, 109, 0.08);
  border-color: rgba(255, 198, 109, 0.28);
}
.staff-profile-mod-n {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.psn-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
.psn-mini-card {
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.psn-mini-card:hover {
  border-color: rgba(124, 140, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px rgba(0, 0, 0, 0.25);
}
.psn-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.psn-mini-gamertag {
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
}
button.psn-mini-gamertag.link-name {
  text-decoration: none;
  color: var(--accent2);
}
button.psn-mini-gamertag.link-name:hover {
  color: #7dffe8;
}
.psn-role {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  flex-shrink: 0;
}
.psn-role--main {
  background: rgba(75, 225, 193, 0.16);
  color: var(--accent2);
  border: 1px solid rgba(75, 225, 193, 0.32);
}
.psn-role--alt {
  background: rgba(255, 255, 255, 0.06);
  color: var(--faint);
  border: 1px solid var(--card-border);
}
.psn-mini-grid-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.75rem;
}
.psn-mini-cell--wide {
  grid-column: span 2;
}
.psn-mini-k {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
  margin-bottom: 0.15rem;
}
.psn-mini-v {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.psn-mini-sub {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--muted);
}
.psn-mini-foot {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.psn-mini-foot-val {
  font-size: 0.8rem;
  color: var(--muted);
}

/* DayZ dashboard page */
.dayz-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.dayz-top-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
}
.dayz-mid-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 1.25rem;
  align-items: start;
}
.dayz-bottom-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 960px) {
  .dayz-top-split,
  .dayz-mid-split {
    grid-template-columns: 1fr;
  }
}
.dayz-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(124, 140, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(7, 10, 18, 0.4) 100%);
  border: 1px solid rgba(124, 140, 255, 0.14);
}
.dayz-hero--error {
  border-color: rgba(255, 92, 122, 0.25);
}
.dayz-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.dayz-hero-text {
  min-width: 0;
}
.dayz-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.card.dayz-hero h3.dayz-server-name {
  margin: 0.4rem 0 0.5rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.card.dayz-hero--error h3.dayz-server-name {
  margin-top: 0;
}
.dayz-status-line {
  margin: 0.65rem 0 0;
}
.dayz-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid transparent;
}
.dayz-pill--online {
  background: rgba(75, 225, 193, 0.14);
  color: var(--accent2);
  border-color: rgba(75, 225, 193, 0.35);
}
.dayz-pill--offline {
  background: rgba(255, 92, 122, 0.12);
  color: #ffc9d4;
  border-color: rgba(255, 92, 122, 0.3);
}
.dayz-pill--warn {
  background: rgba(255, 198, 109, 0.14);
  color: var(--warn);
  border-color: rgba(255, 198, 109, 0.35);
}
.dayz-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.dayz-hero-sep {
  height: 1px;
  margin: 1.15rem 0 1rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}
.dayz-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.65rem;
}
.dayz-meta-cell {
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dayz-meta-k {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
  margin-bottom: 0.25rem;
}
.dayz-meta-v {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.dayz-map-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.15) 100%);
}
.dayz-map-head {
  padding: 1rem 1.15rem 0.5rem;
}
.card.dayz-map-card .dayz-map-head h3 {
  margin: 0 0 0.25rem;
}
.dayz-map-frame {
  flex: 1;
  min-height: 200px;
  padding: 0 1rem 1rem;
}
.dayz-map-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.dayz-players-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.card.dayz-players-card .dayz-players-head h3 {
  margin: 0;
}
.dayz-players-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(124, 140, 255, 0.14);
  color: #c8d0ff;
  border: 1px solid rgba(124, 140, 255, 0.28);
}
.dayz-players-lede {
  margin: 0 0 0.85rem;
}
.dayz-table-scroll {
  max-height: min(52vh, 420px);
}
.dayz-players-card--empty .dayz-players-head {
  margin-bottom: 0.65rem;
}
.dayz-killfeed-card .dayz-killfeed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.card.dayz-killfeed-card .dayz-killfeed-head h3 {
  margin: 0;
}
.dayz-killfeed-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--faint);
  border: 1px solid var(--card-border);
}
.dayz-killfeed-badge.is-on {
  background: rgba(75, 225, 193, 0.14);
  color: var(--accent2);
  border-color: rgba(75, 225, 193, 0.35);
}
.dayz-killfeed-body {
  padding-top: 0.25rem;
}
.dayz-killfeed-row {
  margin-bottom: 0.65rem;
}
.dayz-killfeed-code {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  word-break: break-all;
}

.combo-wrap {
  position: relative;
}
.combo-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 4px 0 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(13, 17, 28, 0.98);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 60;
}
.combo-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}
.combo-list button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.combo-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s;
}
.combo-option:hover {
  background: rgba(88, 101, 242, 0.14);
}
.combo-option-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.combo-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}
.combo-option-tag {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a4b0ff;
}
.combo-option-name {
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.25;
}
.combo-option-id {
  font-size: 0.72rem;
  color: var(--faint);
  font-family: ui-monospace, monospace;
}
.combo-option--gt {
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.55rem 0.85rem;
}

/* Linking hub (single card) */
.linking-hub {
  overflow: visible;
  background: linear-gradient(165deg, rgba(124, 140, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(7, 10, 18, 0.35) 100%);
  border: 1px solid rgba(124, 140, 255, 0.15);
}
.linking-hub-head {
  margin: 0 0 0.35rem;
}
.linking-hub-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.linking-hub-lede {
  margin: 0.5rem 0 0;
  max-width: 56ch;
}
.linking-hub-sep {
  height: 1px;
  margin: 1rem 0;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(124, 140, 255, 0.35), rgba(75, 225, 193, 0.15), transparent);
}
.linking-section {
  margin: 0;
}
.linking-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--faint);
}
.linking-search-row {
  align-items: stretch;
}
.linking-combo-grow {
  flex: 1;
  min-width: 0;
}
.linking-results {
  margin-top: 1rem;
}
.linking-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.linking-actions {
  margin-top: 0.85rem;
}
.linking-section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.linking-split-cell .linking-section-title {
  margin-bottom: 0.5rem;
}
.linking-tracked ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
}
.linking-hub--wide .linking-hub-lede {
  max-width: 70ch;
}
.linking-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
  align-items: start;
}
.linking-section--panel {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.linking-section-hint {
  margin: 0 0 0.75rem;
  max-width: 52ch;
}
.linking-tracked-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}
.linking-dir-table-wrap {
  max-height: min(520px, 58vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.lb-clan-tag {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(124, 140, 255, 0.18);
  color: #d2d8ff;
  border: 1px solid rgba(124, 140, 255, 0.28);
  margin-right: 0.35rem;
  vertical-align: middle;
}

.ticket-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem 0 1rem;
}
.ticket-filter-btn {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
}
.ticket-filter-btn.active {
  background: rgba(124, 140, 255, 0.22);
  color: var(--text);
  border-color: rgba(124, 140, 255, 0.35);
}

.ticket-room-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.ticket-room-head-meta {
  min-width: 0;
  flex: 1;
}

.staff-leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.staff-lb-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.staff-lb-medal {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  width: 1.75rem;
  text-align: center;
}
.staff-lb-name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}
.staff-lb-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  flex-shrink: 0;
}
.staff-lb-count-n {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent2);
  line-height: 1.1;
}
.staff-lb-count-k {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.feed-source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.feed-source-tab {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  cursor: pointer;
}
.feed-source-tab.active {
  background: rgba(75, 225, 193, 0.14);
  color: var(--accent2);
  border-color: rgba(75, 225, 193, 0.35);
}
.feed-single-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.feed-single-wrap .feed-mosaic-body {
  max-height: min(420px, 52vh);
}

/* Embed builder (classic embed preview ≈ Discord desktop dark) */
.eb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 420px);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .eb-layout {
    grid-template-columns: 1fr;
  }
  .eb-panel--preview {
    position: relative;
    top: auto;
  }
}
.eb-panel {
  min-width: 0;
}
.eb-panel--editor {
  background: linear-gradient(165deg, rgba(88, 101, 242, 0.09) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(7, 10, 18, 0.35) 100%);
  border: 1px solid rgba(88, 101, 242, 0.18);
}
.eb-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.eb-panel-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.eb-panel-lede {
  margin: 0.45rem 0 0;
  max-width: 62ch;
  line-height: 1.5;
}
.eb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(75, 225, 193, 0.1);
  border: 1px solid rgba(75, 225, 193, 0.28);
  white-space: nowrap;
}
.eb-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 8px rgba(75, 225, 193, 0.7);
  animation: eb-pulse 1.6s ease-in-out infinite;
}
@keyframes eb-pulse {
  50% {
    opacity: 0.35;
  }
}
.eb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.eb-form-grid--simple {
  margin-bottom: 1rem;
}
.eb-field-span2 {
  grid-column: 1 / -1;
}
details.eb-advanced {
  margin: 0 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
  overflow: hidden;
}
details.eb-advanced > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text, rgba(255, 255, 255, 0.88));
  user-select: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}
details.eb-advanced > summary::-webkit-details-marker {
  display: none;
}
details.eb-advanced > summary::after {
  content: '▸';
  margin-left: auto;
  opacity: 0.45;
  font-size: 0.75rem;
  transition: transform 0.15s ease;
}
details.eb-advanced[open] > summary::after {
  transform: rotate(90deg);
}
.eb-advanced-hint {
  font-weight: 400;
  font-size: 0.78rem;
  width: 100%;
  margin: 0;
  flex-basis: 100%;
  padding-left: 0;
}
details.eb-advanced[open] .eb-advanced-hint {
  opacity: 0.85;
}
details.eb-advanced .eb-advanced-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
details.eb-advanced .eb-form-grid {
  margin-top: 1rem;
  margin-bottom: 0;
}
.eb-advanced-note {
  margin: 0.35rem 0 0;
}
.eb-channel-field select {
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
}
.eb-channel-note {
  margin: 0.35rem 0 0;
}
.eb-field-accent {
  grid-column: 1 / -1;
}
.eb-accent-row {
  align-items: center;
  gap: 0.75rem;
}
.eb-accent-row input[type='color'] {
  width: 48px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
}
.eb-hex-input {
  max-width: 110px;
  font-family: ui-monospace, monospace;
  font-size: 0.88rem;
}
.eb-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--muted);
  grid-column: 1 / -1;
}
.eb-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}
.eb-subhead {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.eb-fields-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.eb-field-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(180px, 2fr) auto auto;
  gap: 0.65rem 1rem;
  align-items: end;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 900px) {
  .eb-field-row {
    grid-template-columns: 1fr;
  }
}
.eb-f-inline-wrap {
  grid-column: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding-bottom: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.eb-f-inline-wrap input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}
.eb-fields-actions {
  margin: 0 0 1rem;
}
.eb-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.eb-button-slot {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.eb-send-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-top: 0.5rem;
}
.eb-footnote {
  margin: 1rem 0 0;
  max-width: 70ch;
}
.eb-panel--preview {
  position: sticky;
  top: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  overflow: hidden;
  background: #111214;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}
.eb-preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  background: #1e1f22;
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
}
.eb-preview-dots {
  display: flex;
  gap: 5px;
}
.eb-preview-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.eb-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}
.eb-preview-guild {
  margin-left: auto;
  font-size: 0.72rem;
}
.eb-preview-surface {
  padding: 1rem;
  min-height: 200px;
  max-height: min(560px, 62vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.eb-discord-bg {
  background: #313338;
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 120px;
}
/* Classic embed — spacing/colors aligned with Discord desktop dark (≈) */
.d-embed {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  background-color: #2b2d31;
  border-radius: 4px;
  border-left: 4px solid var(--d-embed-border, #1e1f22);
  box-sizing: border-box;
  font-family:
    'gg sans',
    'Noto Sans',
    'Helvetica Neue',
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.d-embed-empty {
  font-size: 14px;
  line-height: 1.375;
  color: #949ba4;
  padding: 6px 2px;
}
.d-embed-top-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 8px 16px 0 12px;
  align-items: flex-start;
}
.d-embed-main {
  flex: 1;
  min-width: 0;
  padding-bottom: 12px;
}
.d-embed-thumb-wrap {
  flex-shrink: 0;
}
.d-embed-thumb {
  width: 80px;
  height: 80px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}
.d-embed-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.d-embed-author-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.d-embed-author-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #ffffff;
}
.d-embed-author-link {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #ffffff;
  text-decoration: none;
}
.d-embed-author-link:hover {
  text-decoration: underline;
}
.d-embed-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 8px;
}
.d-embed-title-link {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #00aff4;
  text-decoration: none;
}
.d-embed-title-link:hover {
  text-decoration: underline;
}
.d-embed-desc {
  font-size: 14px;
  line-height: 1.375;
  color: #dbdee1;
  font-weight: 400;
  margin-bottom: 8px;
  word-wrap: break-word;
}
.d-embed-desc a,
.d-embed-field-value a {
  color: #00aff4;
  text-decoration: none;
}
.d-embed-desc a:hover,
.d-embed-field-value a:hover {
  text-decoration: underline;
}
.d-embed-fields {
  margin-top: 2px;
}
.d-embed-field-row {
  display: grid;
  gap: 0 12px;
  margin-top: 8px;
}
.d-embed-field-row--1 {
  grid-template-columns: minmax(0, 1fr);
}
.d-embed-field-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.d-embed-field-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.d-embed-field-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 2px;
}
.d-embed-field-value {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.375;
  color: #dbdee1;
  word-wrap: break-word;
}
.d-embed-image-wrap {
  padding: 4px 16px 0 12px;
}
.d-embed-image {
  max-width: min(400px, 100%);
  width: 100%;
  border-radius: 3px;
  display: block;
}
.d-embed-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 12px 12px;
  font-size: 12px;
  line-height: 1.375;
  color: #949ba4;
}
.d-embed-footer-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.d-embed-footer-text,
.d-embed-footer-ts {
  font-weight: 500;
}
.d-embed-footer-sep {
  margin: 0 2px;
  opacity: 0.85;
  user-select: none;
}
.eb-json-out {
  margin: 0;
  padding: 0.75rem 1rem;
  max-height: 180px;
  overflow: auto;
  font-size: 0.68rem;
  background: #1e1f22;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  white-space: pre-wrap;
  word-break: break-all;
}

/* Moderation hub */
.mod-hub {
  overflow: visible;
  background: linear-gradient(
    165deg,
    rgba(255, 198, 109, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 42%,
    rgba(7, 10, 18, 0.35) 100%
  );
  border: 1px solid rgba(255, 198, 109, 0.16);
}
.mod-hub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.mod-hub-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.mod-hub-lede {
  margin: 0.5rem 0 0;
  max-width: 56ch;
}
.mod-hub-lede strong {
  font-weight: 600;
  color: var(--accent2);
}
.mod-hub-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.mod-hub-sep {
  height: 1px;
  margin: 1rem 0;
  border: none;
  background: linear-gradient(90deg, transparent, rgba(255, 198, 109, 0.35), rgba(124, 140, 255, 0.22), transparent);
}
.mod-section {
  margin: 0;
}
.mod-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--faint);
}
.mod-count {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  vertical-align: middle;
}
.mod-section-hint {
  margin: 0 0 0.85rem;
  max-width: 62ch;
}
.mod-section-hint .md-code {
  font-size: 0.8em;
}
.mod-issue-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr auto;
  gap: 1rem 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .mod-issue-grid {
    grid-template-columns: 1fr;
  }
  .mod-issue-actions {
    justify-self: start;
  }
}
.mod-field-grow {
  min-width: 0;
}
.mod-field-reason textarea {
  min-height: 5.5rem;
  width: 100%;
  resize: vertical;
}
.mod-split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1000px) {
  .mod-split-panels {
    grid-template-columns: 1fr;
  }
}
.mod-table th,
.mod-table td {
  font-size: 0.82rem;
  vertical-align: top;
}
.mod-table tbody tr td:nth-child(4) {
  max-width: min(320px, 42vw);
  word-break: break-word;
}
.mod-user-toolbar {
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}
.mod-wlist {
  margin-top: 0.35rem;
}

.feeds-page-lede {
  margin: 0 0 1rem;
  max-width: 62ch;
}
.feed-discord-head {
  flex-wrap: wrap;
}
.feed-channel-id {
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  max-width: 100%;
  overflow: auto;
}
.feed-discord-messages {
  max-height: min(340px, 40vh);
}
.feeds-discord-grid {
  margin-bottom: 0.5rem;
}

.ticket-split {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 1000px) {
  .ticket-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ticket-split > .card {
  min-width: 0;
  max-width: 100%;
}

.ticket-room {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  max-height: 70vh;
  min-width: 0;
  max-width: 100%;
}
.ticket-room-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--card-border);
  font-weight: 600;
  flex-shrink: 0;
}
.ticket-messages {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ticket-messages .embed-card,
.ticket-messages .embed-thumb,
.ticket-messages img {
  max-width: 100%;
}
.ticket-messages .embed-thumb {
  height: auto;
}
.msg {
  max-width: 92%;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
}
@media (max-width: 600px) {
  .msg {
    max-width: 100%;
  }
}
.msg-user {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.msg-staff,
.msg-bot {
  align-self: flex-end;
  background: rgba(124, 140, 255, 0.18);
  border: 1px solid rgba(124, 140, 255, 0.25);
}
.msg-meta {
  font-size: 0.68rem;
  color: var(--faint);
  margin-bottom: 0.25rem;
}
.msg .embed-mini {
  margin-top: 0.5rem;
}
.ticket-compose {
  padding: 0.75rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.ticket-compose input {
  flex: 1;
}

.embed-card {
  border-left: 4px solid var(--accent);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 0 12px 12px 0;
  padding: 0.65rem 0.85rem;
  margin: 0.35rem 0;
  font-size: 0.82rem;
}
.embed-card .embed-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.embed-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.embed-author-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.embed-author-name {
  color: var(--text);
  min-width: 0;
}
.embed-card .embed-desc {
  color: var(--muted);
  white-space: pre-wrap;
}
.embed-field-val strong,
.embed-field-val em,
.embed-field-val code {
  font-size: inherit;
}
.killfeed-md {
  white-space: normal;
  line-height: 1.5;
  word-break: break-word;
}
.killfeed-md .md-code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
}
.md-spoiler {
  background: rgba(0, 0, 0, 0.55);
  color: transparent;
  border-radius: 4px;
  cursor: help;
  user-select: none;
}
.md-spoiler:hover {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
}
.md-h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.15rem 0;
  letter-spacing: -0.02em;
}
.md-h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0.35rem 0 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.md-quote {
  display: block;
  border-left: 3px solid rgba(124, 140, 255, 0.45);
  padding: 0.15rem 0 0.15rem 0.65rem;
  margin: 0.1rem 0;
  color: var(--muted);
}
.md-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.md-link:hover {
  color: #a8b4ff;
}
.killfeed-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.killfeed-log-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--card-border);
  font-size: 0.88rem;
}
.killfeed-log-meta {
  font-size: 0.78rem;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .killfeed-log-meta {
    white-space: normal;
    width: 100%;
  }
}
.stat-card-psn .stat-value {
  color: var(--accent2);
}
.embed-fields {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.35rem;
}
.embed-field-name {
  font-size: 0.68rem;
  color: var(--faint);
  text-transform: uppercase;
}
.embed-thumb {
  max-width: 80px;
  max-height: 80px;
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* Feeds page */
.feeds-discord-card .feeds-card-head h3 {
  margin: 0 0 0.35rem;
}
.feeds-discord-messages {
  max-height: min(420px, 50vh);
  margin-top: 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  overflow-y: auto;
}
.feeds-parser-card .feeds-parser-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.feeds-parser-lede {
  margin: 0;
  max-width: 62ch;
}
.feeds-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.feeds-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.2rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
}
.feed-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.feed-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.feed-tab.active {
  background: rgba(124, 140, 255, 0.22);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.feed-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 520px) {
  .feed-mosaic {
    grid-template-columns: 1fr;
  }
}
.feed-mosaic-cell {
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.feed-mosaic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.feed-mosaic-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
}
.feed-mosaic-count {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(124, 140, 255, 0.12);
  color: #c8d0ff;
}
.feed-mosaic-body {
  padding: 0.55rem 0.65rem 0.65rem;
  min-height: 120px;
  max-height: min(280px, 36vh);
  overflow: auto;
}
.feed-mosaic-body .feed-scroll {
  max-height: none;
}
.feed-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(360px, 42vh);
  overflow-y: auto;
  padding-right: 0.2rem;
}
.feed-single .feed-scroll {
  max-height: min(52vh, 480px);
}
.feed-row--damage {
  border-left: 3px solid rgba(255, 92, 122, 0.45);
}
.feed-row--build {
  border-left: 3px solid rgba(75, 225, 193, 0.45);
}
.feed-row--session {
  border-left: 3px solid rgba(124, 140, 255, 0.45);
}
.feed-kind {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent2);
}
.feed-empty {
  margin: 0.35rem 0;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    min-height: 100vh;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 0.5rem;
    z-index: 30;
    gap: 0.65rem;
  }
  .sidebar .nav-scroll {
    display: none !important;
  }
  .mobile-tab-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin: -0.25rem 0 1.15rem;
    padding: 0.35rem 0 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  }
  .mobile-tab-bar::-webkit-scrollbar {
    height: 5px;
  }
  .mobile-tab-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 99px;
  }
  .mobile-tab-bar .nav-page-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .mobile-tab-bar .nav-page-btn.active {
    background: rgba(124, 140, 255, 0.22);
    color: var(--text);
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    order: 0;
  }
  .sidebar-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 0;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0));
    border-top: 1px solid var(--card-border);
    border-right: none;
    background: linear-gradient(180deg, rgba(13, 17, 28, 0.97), rgba(7, 10, 18, 0.99));
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
    order: 3;
    z-index: 40;
  }
  .sidebar-footer .user-chip {
    flex: 1;
    min-width: 0;
  }
  .sidebar-footer .btn.fullwidth {
    width: auto;
    flex-shrink: 0;
  }
  .main {
    flex: 1;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0));
  }
  .ticket-split .table-wrap table {
    min-width: 520px;
  }
  .ticket-room {
    min-height: min(320px, 48vh);
    max-height: min(65vh, 520px);
  }
  .ticket-room-head {
    word-break: break-word;
  }
  .ticket-compose {
    flex-wrap: wrap;
  }
  .ticket-compose .btn {
    flex: 1 1 auto;
    min-width: 0;
  }
  .main-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-head h1 {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
  }
  .toast {
    bottom: calc(5rem + env(safe-area-inset-bottom, 0));
    right: 0.75rem;
    left: auto;
    max-width: calc(100vw - 1.5rem);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  }
}

/* Anti-Cheat hub */
.ac-hub {
  overflow: visible;
  background: linear-gradient(
    155deg,
    rgba(124, 231, 195, 0.06) 0%,
    rgba(155, 89, 182, 0.05) 38%,
    rgba(7, 10, 18, 0.4) 100%
  );
  border: 1px solid rgba(124, 231, 195, 0.12);
}
.ac-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ac-hero-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(115deg, #7ce7c3, #9b59b6 55%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ac-hero-lede {
  margin: 0.45rem 0 0;
  max-width: 52ch;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}
.ac-hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.ac-stat {
  min-width: 120px;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.ac-stat-n {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent2);
  line-height: 1.1;
}
.ac-stat-l {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-top: 0.2rem;
}
.ac-dual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.ac-panel {
  border-radius: 14px;
  padding: 1rem 1.05rem 1.1rem;
  background: rgba(30, 31, 35, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 120px;
}
.ac-panel--sky {
  border-color: rgba(255, 193, 109, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 193, 109, 0.04) inset;
}
.ac-panel--alt {
  border-color: rgba(155, 89, 182, 0.15);
  box-shadow: 0 0 0 1px rgba(155, 89, 182, 0.05) inset;
}
.ac-panel-head {
  margin-bottom: 0.85rem;
}
.ac-panel-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}
.ac-panel-hint {
  margin: 0.35rem 0 0;
  max-width: 60ch;
  line-height: 1.4;
}
.ac-sky-scroll,
.ac-cluster-scroll {
  max-height: min(62vh, 720px);
  overflow: auto;
  padding-right: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ac-sky-card {
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(90deg, rgba(255, 193, 109, 0.1) 0%, rgba(30, 31, 35, 0.4) 8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(255, 193, 109, 0.65);
}
.ac-sky-card-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.ac-sky-gt {
  font-weight: 650;
  font-size: 0.92rem;
}
a.ac-sky-maplink {
  color: #7ca8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 168, 255, 0.45);
}
a.ac-sky-maplink:hover {
  color: #a8c4ff;
  border-bottom-color: rgba(168, 196, 255, 0.65);
}
.ac-sky-time {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ac-sky-meta {
  margin-top: 0.45rem;
}
.ac-cluster-card {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(24, 25, 28, 0.85);
  border: 1px solid rgba(155, 89, 182, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.ac-cluster-top {
  margin-bottom: 0.5rem;
}
.ac-cluster-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.ac-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ac-chip--accounts {
  background: rgba(155, 89, 182, 0.18);
  color: #d4b8ec;
}
.ac-chip--linked {
  background: rgba(124, 231, 195, 0.12);
  color: #7ce7c3;
}
.ac-cluster-lede {
  margin: 0.5rem 0 0;
  line-height: 1.35;
}
.ac-fp-line {
  display: block;
  margin: 0.5rem 0 0.25rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.45;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #c9ccd8;
}
.ac-cluster-range {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
}
.ac-cluster-range strong {
  font-weight: 600;
  color: var(--text);
}
.ac-acc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ac-acc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 0.35rem 0.65rem;
  align-items: center;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
@media (min-width: 520px) {
  .ac-acc-row {
    grid-template-columns: minmax(0, 1fr) auto 1fr;
  }
}
.ac-acc-gt {
  font-weight: 600;
  font-size: 0.86rem;
  grid-column: 1;
}
.ac-acc-row .ac-pill {
  grid-column: 2;
  justify-self: start;
}
.ac-acc-dates {
  grid-column: 1 / -1;
  font-size: 0.72rem;
}
@media (min-width: 520px) {
  .ac-acc-dates {
    grid-column: 3;
    justify-self: end;
    text-align: right;
  }
}
.ac-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
}
.ac-pill--discord {
  background: rgba(88, 101, 242, 0.18);
  color: #aeb6ff;
}
.ac-pill--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--faint);
}
.ac-pill--ok {
  background: rgba(124, 231, 195, 0.14);
  color: #7ce7c3;
}
.ac-pill--warn {
  background: rgba(237, 66, 69, 0.12);
  color: #f39aa0;
}
.ac-empty {
  margin: 0.5rem 0;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .ac-dual {
    grid-template-columns: 1fr;
  }
  .ac-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .ac-hero-stats {
    width: 100%;
    justify-content: flex-start;
  }
}
