﻿:root {
  color-scheme: dark;
  --bg: #06101c;
  --shell: #07162a;
  --panel: #0a1a30;
  --panel-soft: #0d2747;
  --panel-lift: #123a67;
  --line: #24598b;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f7f5;
  --muted: #9eb0b3;
  --soft: #d7e0dc;
  --green: #4bd7ff;
  --green-2: #2a75ff;
  --cyan: #47c7ff;
  --blue: #174dc7;
  --red: #ff6b76;
  --yellow: #f2c94c;
  --ink: #07100b;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

/* Admin analytics dashboard */
.admin-analytics-dashboard {
  display: grid;
  gap: 14px;
}

.admin-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-analytics-kpis article {
  border: 1px solid var(--line);
  background: rgba(8, 27, 44, 0.72);
  border-radius: 8px;
  padding: 14px;
  min-height: 104px;
}

.admin-analytics-kpis span,
.admin-analytics-row span {
  color: var(--muted);
  font-size: 12px;
}

.admin-analytics-kpis strong {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.1;
}

.admin-analytics-kpis small {
  display: block;
  margin-top: 8px;
  color: var(--soft);
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 12px;
}

.admin-analytics-card {
  min-height: 250px;
}

.admin-analytics-wide {
  grid-row: span 2;
}

#adminAnalyticsChart {
  width: 100%;
  height: 280px;
  display: block;
}

.admin-analytics-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-analytics-row {
  display: grid;
  gap: 6px;
}

.admin-analytics-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.admin-analytics-row strong {
  color: var(--text);
}

.admin-analytics-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(116, 164, 209, 0.18);
}

.admin-analytics-meter i {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

@media (max-width: 1180px) {
  .admin-analytics-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-analytics-kpis {
    grid-template-columns: 1fr;
  }
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(75, 215, 255, 0.24), transparent 30%),
    radial-gradient(circle at 85% 8%, rgba(42, 117, 255, 0.28), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-screen {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(6, 16, 28, 0.96) 0%, rgba(6, 16, 28, 0.9) 46%, rgba(6, 16, 28, 0.72) 100%),
    radial-gradient(circle at 82% 20%, rgba(75, 215, 255, 0.2), transparent 34%),
    var(--bg);
}

.landing-screen.is-hidden {
  display: none;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0;
  backdrop-filter: blur(18px);
}

.landing-brand,
.landing-nav nav,
.landing-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.landing-brand {
  color: #fff;
  font-size: 19px;
  font-weight: 950;
  text-decoration: none;
}

.landing-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.landing-nav nav a,
.landing-login {
  color: #d7e8f7;
  font-weight: 800;
  text-decoration: none;
}

.landing-login {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.landing-purchase,
.landing-cta a,
.landing-cta button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  background: linear-gradient(135deg, #4bd7ff, #2a75ff);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(42, 117, 255, 0.26);
}

.landing-purchase {
  display: inline-flex;
  align-items: center;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(460px, 1.18fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: 42px 0 92px;
}

.landing-copy h1 {
  max-width: 590px;
  margin: 16px 0 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.landing-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0;
  color: #a9bfd5;
  font-size: 18px;
  line-height: 1.65;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.landing-cta a {
  display: inline-flex;
  align-items: center;
  background: #1a2740;
}

.landing-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 390px;
  margin-top: 42px;
}

.landing-metrics div {
  border-top: 1px solid rgba(75, 215, 255, 0.24);
  padding-top: 16px;
}

.landing-metrics strong,
.landing-metrics span {
  display: block;
}

.landing-metrics strong {
  font-size: 28px;
}

.landing-metrics span {
  margin-top: 4px;
  color: #88a4c0;
}

.landing-preview {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(73, 201, 255, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 72% 10%, rgba(75, 215, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(11, 35, 61, 0.98), rgba(4, 17, 31, 0.96));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: perspective(1100px) rotateY(-9deg) rotateX(4deg);
}

.landing-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 16, 28, 0.02), rgba(6, 16, 28, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(6, 16, 28, 0.32));
  border-radius: inherit;
  pointer-events: none;
}

.preview-top {
  display: flex;
  gap: 8px;
  padding: 20px 22px 8px;
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(75, 215, 255, 0.8);
  box-shadow: 0 0 16px rgba(75, 215, 255, 0.42);
}

.preview-content {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 22px;
}

.preview-sidebar,
.preview-panel,
.preview-report,
.preview-kpis article,
.preview-chart {
  border: 1px solid rgba(88, 184, 243, 0.18);
  border-radius: 10px;
  background: rgba(4, 17, 31, 0.58);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 390px;
  padding: 24px 18px;
}

.preview-sidebar b {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(75, 215, 255, 0.42), rgba(42, 117, 255, 0.18));
}

.preview-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.preview-report {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: #eaf7ff;
  background:
    radial-gradient(circle at 92% 10%, rgba(75, 215, 255, 0.16), transparent 34%),
    rgba(8, 28, 50, 0.84);
}

.preview-report small {
  color: #4bd7ff;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.preview-report strong {
  font-size: 22px;
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.preview-kpis article {
  padding: 14px;
  color: #eaf7ff;
  background: rgba(9, 31, 55, 0.82);
}

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

.preview-kpis strong {
  margin-top: 8px;
  font-size: 24px;
}

.preview-chart {
  height: 190px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(10, 40, 70, 0.64), rgba(3, 13, 24, 0.84)),
    repeating-linear-gradient(0deg, rgba(91, 177, 236, 0.1) 0 1px, transparent 1px 38px);
}

.preview-chart i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background:
    linear-gradient(150deg, transparent 0 19%, rgba(75, 215, 255, 0.84) 20% 23%, transparent 24% 42%, rgba(42, 117, 255, 0.9) 43% 47%, transparent 48% 100%),
    radial-gradient(circle at 78% 30%, rgba(75, 215, 255, 0.28), transparent 24%),
    linear-gradient(180deg, rgba(28, 99, 148, 0.28), rgba(3, 13, 24, 0.08));
}

.landing-features,
.landing-stats,
.landing-faq {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 42px;
  scroll-margin-top: 120px;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-features article,
.landing-stats,
.landing-faq {
  border: 1px solid rgba(73, 201, 255, 0.2);
  border-radius: 8px;
  padding: 24px;
  background: rgba(10, 26, 48, 0.72);
}

.landing-stats {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
}

.landing-stats h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.landing-stat-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

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

.landing-stat-grid article,
.faq-grid article {
  border: 1px solid rgba(73, 201, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(6, 16, 28, 0.42);
}

.landing-stat-grid strong,
.landing-stat-grid span,
.faq-grid strong,
.faq-grid span {
  display: block;
}

.landing-stat-grid span,
.faq-grid span {
  margin-top: 8px;
  color: #a9bfd5;
  line-height: 1.5;
}

.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.landing-features span {
  color: var(--cyan);
  font-weight: 950;
}

.landing-features h2,
.landing-faq h2 {
  margin: 12px 0;
}

.landing-features p,
.landing-faq p {
  color: #a9bfd5;
  line-height: 1.6;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  background:
    linear-gradient(90deg, rgba(102, 200, 255, 0.08), transparent 44%),
    var(--bg);
}

.auth-showcase {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100vh;
  padding: clamp(28px, 6vw, 78px);
  border-right: 1px solid var(--line-soft);
  text-align: center;
}

.auth-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 28px;
  border: 1px solid rgba(102, 200, 255, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(83, 221, 145, 0.96), rgba(102, 200, 255, 0.88));
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  box-shadow: var(--shadow);
}

.image-logo {
  width: 132px;
  height: 132px;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: 0 0 46px rgba(73, 201, 255, 0.28);
}

.auth-showcase h1 {
  text-shadow: 0 0 28px rgba(102, 200, 255, 0.32);
}

.auth-copy {
  width: min(520px, 100%);
  margin: 22px 0 42px;
  color: #b8d7f4;
  font-size: 18px;
  line-height: 1.55;
}

.auth-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: min(420px, 100%);
}

.auth-stats strong,
.auth-stats span {
  display: block;
}

.auth-stats strong {
  font-size: 28px;
}

.auth-stats span {
  margin-top: 4px;
  color: #7fa5cf;
  font-size: 14px;
}

.auth-panel {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: clamp(28px, 6vw, 88px);
}

.auth-top-actions {
  position: fixed;
  top: 16px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0;
  z-index: 3;
}

.auth-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(12, 24, 38, 0.72);
  color: var(--text);
  line-height: 1;
}

.auth-home-button svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-home-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.auth-panel > div {
  width: min(430px, 100%);
  margin: 0 auto;
}

.auth-panel > .auth-top-actions {
  position: fixed;
  top: 18px;
  right: 18px;
  width: auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.auth-panel h2 {
  margin-bottom: 26px;
  font-size: 28px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 750;
}

.auth-form input {
  min-height: 46px;
  border-color: #233445;
  background: #0d1723;
}

.auth-form button {
  margin-top: 4px;
  background: #f4f7f5;
  color: #05090d;
}

.discord-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(88, 101, 242, 0.55);
  border-radius: 7px;
  background: #5865f2;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: #7fa5cf;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(127, 165, 207, 0.24);
}

.auth-switch,
.license-copy {
  color: #a9c2de;
  line-height: 1.5;
}

.auth-switch {
  margin-top: 24px;
  text-align: center;
}

.auth-switch button,
.text-action {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: #d9ecff;
  text-decoration: underline;
}

.license-hints {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(102, 200, 255, 0.06);
  color: #a9c2de;
  font-size: 13px;
}

.text-action {
  margin-top: 18px;
}

.app-shell.is-locked,
.auth-screen.is-hidden {
  display: none;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1540px, 100%);
  margin: 0 auto;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 640px) auto;
  gap: 24px;
  align-items: end;
  padding: 28px clamp(18px, 4vw, 54px) 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(83, 221, 145, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(83, 221, 145, 0.96), rgba(102, 200, 255, 0.88));
  color: var(--ink);
  font-weight: 950;
  box-shadow: var(--shadow);
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(73, 201, 255, 0.42));
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.95;
}

h2 {
  font-size: 22px;
  line-height: 1.15;
}

.server-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(21, 28, 30, 0.72);
  box-shadow: var(--shadow);
}

.search-field {
  display: grid;
  gap: 4px;
}

.search-field span {
  padding-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 12px;
  background: #0f1516;
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--cyan);
}

select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #0f1516;
  color: var(--text);
  outline: none;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--green);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.06);
}

.account-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  justify-self: end;
  min-width: 260px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(21, 28, 30, 0.72);
}

.language-select {
  grid-column: 1 / -1;
  width: 74px;
  justify-self: end;
}

.account-bar span,
.account-bar small {
  display: block;
}

.account-bar span {
  font-weight: 850;
}

.account-bar small {
  margin-top: 2px;
  color: var(--muted);
}

.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.dashboard {
  padding: 0 clamp(18px, 4vw, 54px) 42px;
}

.server-ribbon,
.servers-page {
  margin-bottom: 18px;
}

.server-ribbon {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 16px;
  background: rgba(12, 23, 38, 0.9);
  box-shadow: var(--shadow);
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.category-nav button {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(21, 28, 30, 0.78);
  color: var(--soft);
  font-weight: 850;
  text-decoration: none;
}

.category-nav button:hover,
.category-nav button.active {
  border-color: rgba(102, 200, 255, 0.5);
  background: linear-gradient(135deg, rgba(34, 95, 208, 0.35), rgba(73, 201, 255, 0.12));
  color: var(--text);
}

.view-page {
  display: none;
}

.view-page.active {
  display: block;
}

.view-page.server-stats-page.active {
  display: grid;
}

.content-shared[hidden] {
  display: none !important;
}

.hero-panel,
.panel,
.compare-section {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(21, 28, 30, 0.92);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
}

.server-identity,
.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head.tight {
  align-items: center;
}

.live-badge {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  background: #101617;
}

.live-badge.online {
  border-color: rgba(83, 221, 145, 0.58);
  color: var(--green);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.spotlight-card,
.metric-card,
.insight-card,
.server-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(32, 43, 45, 0.98), rgba(24, 32, 34, 0.98));
}

.spotlight-card {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  padding: 20px;
}

.metric-label,
.metric-card span,
.insight-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.spotlight-card strong {
  display: block;
  margin: 10px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.92;
}

.capacity {
  display: grid;
  gap: 8px;
}

.capacity-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #0c1112;
}

.capacity-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 220ms ease;
}

.capacity span,
.metric-card small,
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.metric-card {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.content-grid {
  display: block;
  margin-top: 18px;
}

.main-column,
.side-column {
  min-width: 0;
}

.panel {
  padding: 18px;
}

.compact {
  margin-bottom: 18px;
}

.chart-panel {
  min-width: 0;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.chart-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.select-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.toggle-field {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  background: #0f1516;
  font-size: 13px;
  font-weight: 800;
}

.toggle-field input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--green);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.chart-wrap {
  min-height: 340px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: #0d1213;
}

canvas {
  display: block;
  width: 100%;
  height: 340px;
}

.insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.insight-card {
  min-height: 154px;
  padding: 16px;
}

.insight-card strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.server-list,
.search-results {
  display: grid;
  gap: 8px;
}

.server-list.featured,
.server-list.large {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.search-results {
  margin-top: 10px;
}

.server-card {
  display: grid;
  width: 100%;
  min-height: 76px;
  gap: 8px;
  padding: 12px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.server-card:hover {
  border-color: rgba(73, 201, 255, 0.45);
}

.server-card.active {
  border-color: rgba(83, 221, 145, 0.7);
  box-shadow: inset 3px 0 0 var(--green);
}

.server-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-owner-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  margin-left: 8px;
  border-radius: 5px;
  color: #f5c85d;
  background: rgba(245, 200, 93, 0.12);
  vertical-align: middle;
}

.server-owner-mark svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.server-card.owned {
  border-color: rgba(245, 200, 93, 0.34);
}

.server-card.owned.active {
  border-color: rgba(245, 200, 93, 0.65);
  box-shadow: inset 3px 0 0 #f5c85d;
}

.map-page {
  min-width: 0;
  padding: 0;
}

.map-access-gate {
  display: grid;
  place-items: center;
  min-height: 420px;
  gap: 9px;
  text-align: center;
}

.map-access-gate[hidden],
.map-workspace[hidden],
.map-legend[hidden],
.map-tooltip[hidden] {
  display: none;
}

.map-access-gate h2 {
  margin: 0;
  max-width: 520px;
  font-size: 24px;
}

.map-access-gate > p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.map-lock-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
  border: 1px solid rgba(71, 199, 255, 0.28);
  border-radius: 8px;
  background: rgba(71, 199, 255, 0.08);
  color: var(--app-accent);
}

.map-lock-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.map-workspace {
  position: relative;
  display: block;
  height: calc(100vh - 62px);
  min-height: 760px;
  margin: -14px;
  background: #0a2134;
}

.map-header {
  position: absolute;
  z-index: 7;
  top: 16px;
  left: 16px;
  right: auto;
  width: min(680px, calc(100% - 112px));
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 12px;
  border-color: rgba(82, 184, 255, 0.38);
  background:
    radial-gradient(circle at 0 0, rgba(71, 199, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(9, 29, 47, 0.94), rgba(6, 18, 30, 0.86));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
}

.map-header h2 {
  margin: 6px 0 3px;
  font-size: 16px;
  line-height: 1.2;
}

.map-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.map-title-row .eyebrow {
  margin: 0;
}

.map-beta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border: 1px solid rgba(71, 199, 255, 0.35);
  border-radius: 999px;
  background: rgba(71, 199, 255, 0.11);
  color: #9bddff;
  font-size: 11px;
  font-weight: 800;
}

.map-source-note {
  display: block;
  max-width: 390px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.map-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.map-controls .select-field {
  min-width: 118px;
}

.map-controls .danger {
  border-color: rgba(255, 88, 108, 0.55);
  color: #ff9ba8;
}

.map-action-menu {
  position: relative;
}

.map-actions-popover {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 21, 34, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.map-actions-popover[hidden] {
  display: none;
}

.map-calibration-help {
  margin: 4px 6px 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(63, 109, 145, 0.5);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.map-actions-popover button {
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: var(--text);
}

.map-actions-popover button:hover {
  background: rgba(71, 199, 255, 0.12);
}

.map-actions-popover button.danger {
  color: #ff9ba8;
}

.warnings-content {
  display: grid;
  gap: 12px;
}

.warnings-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.warnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.warning-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 150px;
  text-align: left;
}

.warning-card-main {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 112px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.warning-card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 4;
}

.warning-check {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

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

.warning-check span {
  width: 16px;
  height: 16px;
  border: 1px solid var(--app-line-2);
  border-radius: 4px;
  background: rgba(10, 27, 44, 0.82);
}

.warning-check input:checked + span::after {
  content: "";
  display: block;
  width: 8px;
  height: 2px;
  margin: 4px 0 0 3px;
  border-left: 2px solid var(--app-accent);
  border-bottom: 2px solid var(--app-accent);
  transform: rotate(-45deg);
}

.warning-menu-button {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  border: 1px solid var(--app-line-2);
  border-radius: 4px;
  padding: 0;
  background: var(--app-surface-2);
  color: var(--app-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.warning-card-menu {
  position: absolute;
  top: 30px;
  right: 0;
  width: 190px;
  padding: 6px;
  border: 1px solid var(--app-line-2);
  border-radius: 8px;
  background: var(--app-surface);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.warning-card-menu[hidden] {
  display: none;
}

.warning-card-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: var(--app-text);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.warning-card-menu button:hover {
  background: var(--app-surface-2);
}

.warning-card-menu button.danger {
  color: #ff8b8b;
}

.warning-card.is-resolved {
  border-color: rgba(80, 230, 150, 0.62);
  box-shadow: inset 3px 0 0 rgba(80, 230, 150, 0.78);
}

.warning-card.is-resolved .warning-pill {
  border-color: rgba(80, 230, 150, 0.55);
  color: #70f2aa;
}

.warning-card strong {
  font-size: 17px;
}

.warning-card span,
.warning-card small,
.warning-card em {
  color: var(--muted);
  font-style: normal;
}

.warning-pill {
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  text-transform: uppercase;
}

.severity-critical {
  border-color: rgba(255, 78, 102, 0.72);
  box-shadow: inset 3px 0 0 rgba(255, 78, 102, 0.85);
}

.severity-high {
  border-color: rgba(255, 157, 78, 0.62);
  box-shadow: inset 3px 0 0 rgba(255, 157, 78, 0.8);
}

.severity-medium {
  border-color: rgba(255, 214, 89, 0.5);
  box-shadow: inset 3px 0 0 rgba(255, 214, 89, 0.72);
}

.script-warning-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.script-warning-kpis .panel {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.script-warning-kpis span,
.script-warning-rank-main span,
.script-warning-rank-count span {
  color: var(--muted);
  font-size: 0.82rem;
}

.script-warning-kpis strong {
  font-size: 1.8rem;
  line-height: 1;
}

.script-warning-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.6fr);
  gap: 12px;
  align-items: start;
}

.panel-headline {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}

.panel-headline h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
}

.script-warning-ranking {
  display: grid;
  gap: 10px;
}

.script-warning-rank-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(61, 182, 255, 0.16);
  background: rgba(7, 21, 37, 0.55);
  border-radius: 8px;
}

.script-warning-rank-row b {
  color: var(--accent);
  font-size: 0.85rem;
}

.script-warning-rank-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.script-warning-rank-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-warning-rank-main i {
  width: var(--rank-width);
  height: 4px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #37c8ff, #ff5f72);
  box-shadow: 0 0 16px rgba(55, 200, 255, 0.25);
}

.script-warning-rank-count {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 84px;
}

.script-warning-rank-count strong {
  color: var(--text);
  font-size: 1.1rem;
}

.script-warning-table-panel {
  min-width: 0;
}

.script-warning-table td:nth-child(4) {
  max-width: 560px;
  white-space: normal;
  line-height: 1.45;
}

.script-warning-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.script-warning-level.critical {
  color: #ffd9df;
  background: rgba(255, 74, 104, 0.16);
  border-color: rgba(255, 74, 104, 0.35);
}

.script-warning-level.warning {
  color: #ffe9b2;
  background: rgba(255, 193, 84, 0.14);
  border-color: rgba(255, 193, 84, 0.32);
}

.script-warning-level.info {
  color: #cdeeff;
  background: rgba(61, 182, 255, 0.12);
  border-color: rgba(61, 182, 255, 0.26);
}

.script-warning-empty {
  color: var(--muted);
  padding: 14px;
  border: 1px dashed rgba(61, 182, 255, 0.2);
  border-radius: 8px;
}

.warning-modal-card {
  width: min(860px, calc(100vw - 28px));
}

.warning-modal-content {
  display: grid;
  gap: 12px;
}

.warning-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.warning-detail-grid article,
.warning-source-box,
.warning-identifiers-box,
.warning-raw-details {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 25, 40, 0.62);
}

.warning-detail-grid span,
.warning-source-box span,
.warning-identifiers-box span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.warning-identifiers-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.warning-identifiers-box code {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cfeeff;
}

.warning-raw-details pre {
  overflow: auto;
  max-height: 260px;
  margin: 10px 0 0;
  white-space: pre-wrap;
  color: var(--muted);
}

.map-mode-toggle,
.map-view-toggle {
  display: flex;
  flex-wrap: wrap;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.map-mode-toggle button,
.map-view-toggle button {
  flex: 1 1 108px;
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  line-height: 1.15;
  white-space: normal;
}

.map-mode-toggle button.active,
.map-view-toggle button.active {
  background: rgba(71, 199, 255, 0.15);
  color: var(--text);
}

.map-kpis {
  position: absolute;
  z-index: 7;
  left: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(430px, calc(100% - 132px));
}

.map-kpis article {
  display: grid;
  gap: 8px;
  min-height: 54px;
  padding: 8px 11px;
  border-color: rgba(82, 184, 255, 0.26);
  background: rgba(7, 21, 34, 0.78);
  backdrop-filter: blur(10px);
}

.map-kpis span {
  color: var(--muted);
  font-size: 12px;
}

.map-kpis strong {
  font-size: 18px;
}

.game-map-panel {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.game-map-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: #061523;
  cursor: grab;
  touch-action: none;
}

.game-map-stage.is-panning {
  cursor: grabbing;
}

.game-map-stage.is-calibrating,
.game-map-stage.is-calibrating canvas {
  cursor: crosshair;
}

.game-map-stage.is-3d {
  cursor: grab;
}

.game-map-stage.is-rotating {
  cursor: grabbing;
}

.game-map-renderer {
  display: block;
  width: 100%;
  height: 100%;
}

.map-zoom-tools {
  position: absolute;
  z-index: 6;
  top: 25px;
  right: 25px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(63, 109, 145, 0.56);
  border-radius: 6px;
  background: rgba(7, 21, 34, 0.94);
}

.map-zoom-tools button {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(63, 109, 145, 0.4);
  background: transparent;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.map-zoom-tools button:first-child {
  border-left: 0;
}

.map-zoom-tools button:hover {
  background: rgba(71, 199, 255, 0.12);
}

.map-zoom-tools button:disabled {
  opacity: 0.36;
  cursor: default;
}

.map-zoom-tools .map-zoom-value {
  min-width: 52px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.map-scene-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.map-scene-loading[hidden] {
  display: none;
}

.map-legend {
  position: absolute;
  z-index: 4;
  top: 96px;
  left: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(63, 109, 145, 0.5);
  border-radius: 5px;
  background: rgba(7, 21, 34, 0.9);
  font-size: 11px;
  color: var(--muted);
}

.map-legend i {
  width: 14px;
  height: 8px;
  border-radius: 3px;
}

.map-legend i:nth-of-type(1) { background: #42cf8d; }
.map-legend i:nth-of-type(2) { background: #dad04e; }
.map-legend i:nth-of-type(3) { background: #f4933e; }
.map-legend i:nth-of-type(4) { background: #f74a4e; }

.map-tooltip {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  min-width: 184px;
  padding: 9px 11px;
  border: 1px solid rgba(71, 199, 255, 0.28);
  border-radius: 5px;
  background: rgba(6, 16, 27, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-line;
}

.server-card .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.compare-section {
  margin-top: 18px;
  padding: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.summary-card h2 {
  margin-bottom: 10px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

td:first-child {
  max-width: 360px;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.trend-up {
  color: var(--green);
  font-weight: 850;
}

.trend-down {
  color: var(--red);
  font-weight: 850;
}

.trend-neutral {
  color: var(--app-heading);
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #0e1314;
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(110px);
  opacity: 0;
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Compact analytics layout */
.analytics-shell {
  --app-bg: #f6f9fc;
  --app-surface: #ffffff;
  --app-surface-2: #f9fbfd;
  --app-line: #dce7f2;
  --app-line-2: #ccdbea;
  --app-text: #172335;
  --app-heading: #12233b;
  --app-muted: #6f7f91;
  --app-accent: #1b8fd8;
  --app-accent-soft: #eef7fd;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  background: var(--app-bg);
  color: var(--app-text);
}

.analytics-shell.theme-dark {
  --app-bg: #07111d;
  --app-surface: #0c1726;
  --app-surface-2: #101f33;
  --app-line: #1f3d5d;
  --app-line-2: #2a5179;
  --app-text: #e7f2ff;
  --app-heading: #f5fbff;
  --app-muted: #9db4cc;
  --app-accent: #47c7ff;
  --app-accent-soft: rgba(71, 199, 255, 0.13);
}

.analytics-shell.is-locked {
  display: none;
}

.analytics-topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(320px, 1fr) minmax(320px, auto);
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--app-line);
  background: var(--app-surface);
}

.product-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-mark-button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.product-mark-button:hover strong,
.product-mark-button:focus-visible strong {
  color: var(--app-accent);
}

.product-mark .brand-logo {
  width: 34px;
  height: 34px;
}

.product-mark strong,
.product-mark span,
.user-box span,
.user-box small {
  display: block;
}

.product-mark strong {
  color: var(--app-heading);
  font-size: 15px;
}

.product-mark span,
.user-box small {
  color: var(--app-muted);
  font-size: 12px;
}

.compact-search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 86px;
  gap: 8px;
  width: 100%;
  max-width: 720px;
  justify-self: stretch;
}

.compact-search input,
.compact-search button,
.user-box button,
.user-box select,
.chart-actions select {
  min-height: 34px;
  border-radius: 4px;
}

.compact-search input,
.chart-actions select,
.user-box select {
  border: 1px solid var(--app-line-2);
  background: var(--app-surface-2);
  color: var(--app-text);
}

.compact-search button {
  background: var(--app-accent);
  color: #fff;
}

.user-box {
  justify-self: end;
  display: grid;
  grid-template-columns: minmax(150px, auto) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.user-box > div:first-child,
.profile-open-button {
  min-width: 0;
  text-align: right;
}

.profile-open-button {
  display: grid;
  gap: 2px;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.profile-open-button:hover span {
  color: var(--app-accent);
}

.user-box span,
.user-box small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.user-box .ghost {
  border: 1px solid var(--app-line-2);
  background: var(--app-surface);
  color: var(--app-text);
}

.user-box .language-select {
  width: 70px;
}

.icon-button {
  min-width: 58px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.icon-button span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  line-height: 1;
  pointer-events: none;
}

.analytics-sidebar {
  grid-row: 2;
  padding: 14px 10px;
  border-right: 1px solid var(--app-line);
  background: var(--app-surface);
}

.analytics-sidebar .nav-tab {
  width: 100%;
  min-height: 38px;
  justify-content: start;
  margin-bottom: 4px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  padding: 0 12px;
  background: transparent;
  color: var(--app-muted);
  text-align: left;
}

.analytics-sidebar .nav-tab.active,
.analytics-sidebar .nav-tab:hover {
  border-left-color: var(--app-accent);
  background: var(--app-accent-soft);
  color: var(--app-accent);
}

.analytics-sidebar .nav-tab.admin-nav-tab {
  color: #ffb8b8;
}

.analytics-sidebar .nav-tab.admin-nav-tab.active,
.analytics-sidebar .nav-tab.admin-nav-tab:hover {
  border-left-color: #ff4d5f;
  background: rgba(255, 77, 95, 0.14);
  color: #ff6b7a;
}

.analytics-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 14px;
}

.server-strip,
.report-head,
.kpi-card,
.panel,
.compare-section {
  border: 1px solid var(--app-line);
  border-radius: 4px;
  background: var(--app-surface);
  box-shadow: none;
}

.server-strip {
  padding: 10px;
  margin-bottom: 10px;
}

.strip-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--app-muted);
  font-size: 12px;
}

.strip-head span {
  color: var(--app-text);
  font-weight: 800;
}

.server-list.featured {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 88px;
  margin-bottom: -88px;
}

.server-list.featured .server-card {
  min-width: 230px;
}

.server-card {
  min-height: 64px;
  border-color: var(--app-line);
  background: var(--app-surface);
  color: var(--app-text);
  position: relative;
  padding-right: 42px;
}

.server-card .server-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 5;
}

.server-card .server-menu-button {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  border: 1px solid var(--app-line-2);
  border-radius: 4px;
  padding: 0;
  background: var(--app-surface-2);
  color: var(--app-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.server-menu {
  position: absolute;
  top: 30px;
  right: 0;
  width: 184px;
  padding: 6px;
  border: 1px solid var(--app-line-2);
  border-radius: 8px;
  background: var(--app-surface);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.server-menu[hidden],
.modal-backdrop[hidden] {
  display: none;
}

.players-layout {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.players-list-panel,
.player-empty,
.player-hero,
.player-kpis .panel,
.players-detail-grid .panel,
.player-note {
  border-radius: 8px;
}

.server-stats-page {
  display: none;
  gap: 12px;
}

.server-stats-page.active {
  display: grid;
}

.server-stats-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.server-stats-hero h2 {
  margin: 4px 0;
  font-size: 22px;
}

.server-stats-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.server-stats-grid {
  display: grid;
  gap: 12px;
}

.server-stats-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.retention-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.regular-kpis .highlight {
  border-color: rgba(56, 232, 140, 0.45);
  background: linear-gradient(135deg, rgba(56, 232, 140, 0.13), rgba(9, 24, 43, 0.94));
}

.server-stats-kpis .panel,
.server-stats-panels .panel,
.server-stats-empty {
  border-radius: 8px;
}

.server-stats-kpis article {
  display: grid;
  gap: 8px;
  min-height: 116px;
  align-content: start;
}

.server-stats-kpis span {
  color: var(--app-muted);
  font-size: 12px;
}

.server-stats-kpis strong {
  font-size: 27px;
  line-height: 1.1;
}

.server-stats-kpis small {
  color: var(--app-muted);
}

.server-stats-kpis .highlight {
  border-color: rgba(71, 199, 255, 0.45);
  background: linear-gradient(135deg, rgba(71, 199, 255, 0.14), rgba(9, 24, 43, 0.94));
}

.server-stats-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.resources-page.active,
.resources-content {
  display: grid;
  gap: 12px;
}

.resources-hero,
.resources-actions,
.resources-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resources-actions {
  align-items: end;
  flex-wrap: wrap;
}

.resources-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.resources-kpis article {
  display: grid;
  min-height: 108px;
  align-content: start;
  gap: 8px;
}

.resources-kpis span {
  color: var(--app-muted);
  font-size: 12px;
}

.resources-kpis strong {
  font-size: 27px;
}

.resources-kpis .highlight {
  border-color: rgba(56, 232, 140, 0.45);
  background: linear-gradient(135deg, rgba(56, 232, 140, 0.13), rgba(9, 24, 43, 0.94));
}

.resources-warning {
  display: grid;
  gap: 6px;
  border-color: rgba(245, 197, 80, 0.28);
  background: rgba(245, 197, 80, 0.07);
}

.resources-warning span {
  color: var(--app-muted);
  font-size: 12px;
}

.resources-table-panel {
  padding: 14px;
}

.resources-table-head {
  margin-bottom: 12px;
}

.resources-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.resources-table th,
.resources-table td {
  padding: 11px 10px;
  text-align: left;
  white-space: nowrap;
}

.resource-state {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.resource-state.online {
  background: rgba(56, 232, 140, 0.13);
  color: #54e89c;
}

.resource-state.offline {
  background: rgba(255, 103, 103, 0.13);
  color: #ff8989;
}

.resources-empty {
  display: grid;
  min-height: 150px;
  place-content: center;
  text-align: center;
}

.server-stat-bars {
  display: grid;
  gap: 10px;
}

.wealth-distribution {
  display: grid;
  gap: 10px;
}

.economy-band-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.economy-band-toolbar span {
  display: grid;
  gap: 3px;
}

.economy-band-toolbar strong {
  font-size: 14px;
}

.economy-band-toolbar small {
  color: var(--app-muted);
  font-size: 11px;
}

.wealth-band-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(71, 199, 255, 0.22);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(71, 199, 255, 0.08), rgba(10, 27, 44, 0.76));
}

.wealth-band-head,
.wealth-band-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wealth-band-head span {
  color: var(--app-text);
  font-weight: 800;
}

.wealth-band-head strong {
  font-size: 22px;
}

.wealth-band-range,
.wealth-band-meta {
  color: var(--app-muted);
  font-size: 12px;
}

.wealth-band-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(82, 115, 149, 0.22);
}

.wealth-band-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-accent), #54e89c);
}

.wealth-band-editor {
  display: grid;
  gap: 10px;
}

.wealth-band-editor-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(90px, 0.7fr) minmax(90px, 0.7fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 7px;
  background: rgba(10, 27, 44, 0.72);
}

.wealth-band-editor-row label {
  display: grid;
  gap: 5px;
}

.wealth-band-editor-row span {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 800;
}

.wealth-band-editor-row input {
  width: 100%;
}

.wealth-band-delete {
  min-height: 38px;
}

.wealth-band-editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.server-stat-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.5fr) minmax(50px, auto);
  align-items: center;
  gap: 10px;
  color: var(--app-muted);
  font-size: 12px;
}

.server-stat-row i {
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(82, 115, 149, 0.22);
}

.server-stat-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-accent), #70e5ff);
}

.server-stat-row strong {
  color: var(--app-text);
  text-align: right;
}

.money-source-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.money-source-row,
.editable-stat-row {
  width: 100%;
  border: 1px solid var(--app-line);
  border-radius: 7px;
  background: rgba(10, 27, 44, 0.72);
  color: var(--app-text);
  text-align: left;
  cursor: pointer;
}

.money-source-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(82px, auto));
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.money-source-row:hover,
.editable-stat-row:hover {
  border-color: var(--app-accent);
  background: rgba(71, 199, 255, 0.1);
}

.money-source-row strong,
.money-source-row b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.money-source-row small,
.editable-stat-row em {
  color: var(--app-muted);
  font-size: 11px;
  font-style: normal;
}

.editable-stat-row {
  grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.5fr) minmax(50px, auto) minmax(95px, auto);
  padding: 8px 10px;
}

.editable-stat-row em {
  text-align: right;
}

.server-stat-original {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--app-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.server-stat-original span {
  color: var(--app-muted);
  font-size: 12px;
}

.server-stat-range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.server-stats-empty {
  display: grid;
  gap: 8px;
  min-height: 160px;
  align-content: center;
  justify-items: start;
}

.players-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.players-list-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.players-list-head h2 small {
  color: var(--app-muted);
  font-size: 13px;
}

.player-search {
  width: 100%;
  min-height: 36px;
  margin-bottom: 12px;
  border: 1px solid var(--app-line-2);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--app-surface-2);
  color: var(--app-text);
}

.players-list {
  display: grid;
  gap: 2px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.player-row {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) minmax(90px, 142px);
  gap: 10px;
  align-items: center;
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid rgba(121, 164, 205, 0.16);
  border-radius: 0;
  padding: 0 4px;
  background: transparent;
  color: var(--app-text);
  text-align: left;
}

.player-row:hover,
.player-row.active {
  background: rgba(71, 190, 255, 0.1);
}

.player-row-id,
.player-row span:last-child {
  color: var(--app-muted);
  font-size: 12px;
}

.player-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.players-empty-list {
  padding: 18px 4px;
  color: var(--app-muted);
  font-size: 13px;
}

.player-empty {
  display: grid;
  gap: 8px;
  min-height: 180px;
  place-content: center;
  text-align: center;
}

.player-empty[hidden] {
  display: none !important;
}

.player-empty span {
  color: var(--app-muted);
}

.player-detail {
  display: grid;
  gap: 12px;
}

.player-hero {
  display: flex;
  gap: 14px;
  align-items: center;
}

.player-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(71, 190, 255, 0.28);
  border-radius: 8px;
  background: rgba(71, 190, 255, 0.12);
  color: var(--app-accent);
  font-size: 22px;
  font-weight: 900;
}

.player-hero h2 {
  margin: 0;
  font-size: 22px;
}

.player-hero h2 span {
  display: inline-block;
  margin-left: 8px;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(83, 221, 145, 0.14);
  color: #53dd91;
  font-size: 10px;
  text-transform: uppercase;
}

.player-hero p {
  margin: 4px 0 0;
  color: var(--app-muted);
}

.player-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.player-kpis article {
  display: grid;
  gap: 8px;
}

.player-kpis span,
.player-server-card small,
.player-note span {
  color: var(--app-muted);
  font-size: 12px;
}

.player-kpis strong {
  font-size: 20px;
}

.player-analysis-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.player-analysis-kpis article {
  display: grid;
  gap: 8px;
  min-height: 82px;
  padding: 13px;
}

.player-analysis-kpis span {
  color: var(--app-muted);
  font-size: 12px;
}

.player-analysis-kpis strong {
  font-size: 20px;
}

.players-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 12px;
}

.player-analysis-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.45fr) minmax(265px, 0.8fr);
  gap: 12px;
}

.player-activity-card,
.player-verification-card,
.player-timeline-card {
  padding: 14px;
}

.player-activity-card .eyebrow,
.player-verification-card .eyebrow,
.player-timeline-card .eyebrow {
  margin-bottom: 12px;
}

.player-activity-bars {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  height: 112px;
}

.player-activity-bars div {
  display: grid;
  grid-template-rows: 88px 18px;
  gap: 6px;
  min-width: 0;
  align-items: end;
}

.player-activity-bars i {
  display: block;
  align-self: end;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: rgba(71, 199, 255, 0.72);
}

.player-activity-bars small {
  overflow: hidden;
  color: var(--app-muted);
  font-size: 9px;
  text-align: center;
}

.player-verification-card dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.player-verification-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(121, 164, 205, 0.13);
  padding-bottom: 8px;
}

.player-verification-card dt {
  color: var(--app-muted);
  font-size: 12px;
}

.player-verification-card dd {
  margin: 0;
  color: var(--app-text);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.player-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.player-timeline div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(121, 164, 205, 0.16);
  border-radius: 5px;
  padding: 8px 9px;
  background: rgba(3, 17, 30, 0.24);
}

.player-timeline time {
  overflow: hidden;
  color: var(--app-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-inventory-card {
  padding: 14px;
}

.player-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.inventory-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  border: 1px solid rgba(71, 199, 255, 0.18);
  border-radius: 7px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(71, 199, 255, 0.10), rgba(5, 21, 35, 0.34));
}

.inventory-item.mid {
  border-color: rgba(245, 197, 80, 0.28);
  background: linear-gradient(135deg, rgba(245, 197, 80, 0.12), rgba(5, 21, 35, 0.34));
}

.inventory-item.high {
  border-color: rgba(83, 221, 145, 0.34);
  background: linear-gradient(135deg, rgba(83, 221, 145, 0.13), rgba(5, 21, 35, 0.34));
}

.inventory-item span {
  grid-row: 1 / 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: rgba(71, 199, 255, 0.15);
  color: var(--app-accent);
  font-weight: 900;
}

.inventory-item strong,
.inventory-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-item strong {
  font-size: 12px;
}

.inventory-item small {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 800;
}

.player-session-list {
  display: grid;
  gap: 8px;
}

.player-session-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto minmax(180px, 1.2fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(121, 164, 205, 0.15);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(3, 17, 30, 0.26);
}

.player-session-row span,
.player-session-row small {
  overflow: hidden;
  color: var(--app-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-session-row b {
  color: var(--app-text);
  font-size: 13px;
}

.player-server-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.player-server-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.player-economy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.player-economy div {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(121, 164, 205, 0.16);
  border-radius: 5px;
  padding: 9px;
  background: rgba(3, 17, 30, 0.24);
}

.player-economy span {
  color: var(--app-muted);
  font-size: 11px;
}

.player-economy strong {
  font-size: 15px;
}

.identifier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.identifier-list code {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--app-line-2);
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--app-surface-2);
  color: var(--app-text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identifier-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.identifier-badge span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(71, 199, 255, 0.12);
  color: var(--app-accent);
  font-size: 10px;
  font-weight: 800;
}

.identifier-badge b {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
}

.global-search-panel {
  margin-bottom: 12px;
}

.global-search-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--app-line-2);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--app-surface-2);
  color: var(--app-text);
}

.global-filters {
  display: grid;
  grid-template-columns: 1.5fr 180px 180px;
  gap: 10px;
  margin-top: 12px;
}

.global-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 12px;
  align-items: start;
}

.global-results-card {
  min-height: 460px;
}

.global-table {
  width: 100%;
  border-collapse: collapse;
}

.global-table th,
.global-table td {
  border-bottom: 1px solid rgba(121, 164, 205, 0.16);
  padding: 12px 10px;
  text-align: left;
}

.global-table th {
  color: var(--app-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.global-table tr[data-global-player] {
  cursor: pointer;
}

.global-table tr[data-global-player]:hover,
.global-table tr.active {
  background: rgba(71, 190, 255, 0.08);
}

.global-player-cell {
  display: flex;
  align-items: center;
  min-height: 42px;
}

.global-player-cell strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-show-more {
  width: 100%;
  margin-top: 12px;
  min-height: 38px;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: #28e19c;
}

.global-player-detail {
  display: grid;
  gap: 12px;
}

.global-player-hero {
  display: flex;
  gap: 12px;
  align-items: center;
}

.global-player-hero h2 {
  margin: 0;
  font-size: 22px;
}

.global-player-hero p {
  margin: 4px 0 0;
  color: var(--app-muted);
}

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

.global-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 12px;
}

.activity-chart-card {
  min-height: 360px;
}

.activity-row-chart {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.activity-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  min-height: 18px;
}

.activity-row span,
.activity-row strong {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 900;
}

.activity-row strong {
  text-align: right;
}

.activity-row i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(121, 164, 205, 0.12);
}

.activity-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(73, 201, 255, 0.85), rgba(83, 221, 145, 0.8));
  box-shadow: 0 0 12px rgba(73, 201, 255, 0.22);
}

.global-server-history,
.timeline-list {
  display: grid;
  gap: 8px;
}

.global-server-history div,
.timeline-list div {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid rgba(121, 164, 205, 0.14);
  padding: 8px 0;
}

.global-server-history span,
.timeline-list span,
.timeline-list small {
  color: var(--app-muted);
  font-size: 12px;
}

.trends-global-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 18px;
}

.trends-global-head h2 {
  margin: 2px 0 6px;
}


.region-option:hover,
.region-clear:hover {
  background: rgba(71, 190, 255, 0.1);
}

.region-option span {
  color: var(--app-accent);
  font-weight: 900;
}

.region-option strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-clear {
  grid-template-columns: 1fr;
  margin-bottom: 4px;
  color: var(--app-muted);
  font-weight: 900;
}


.server-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: var(--app-text);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.server-menu button:hover {
  background: var(--app-surface-2);
}

.server-menu button[data-action="delete"] {
  color: #ff8b8b;
}

.server-card.active {
  border-color: var(--app-accent);
  box-shadow: inset 3px 0 0 var(--app-accent);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 10, 18, 0.78);
  backdrop-filter: blur(12px);
}

.modal-card {
  width: min(500px, 100%);
  border: 1px solid rgba(73, 201, 255, 0.55);
  border-top: 4px solid var(--app-accent);
  border-radius: 12px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(14, 28, 43, 0.98), rgba(8, 18, 31, 0.98));
  color: var(--app-text);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(83, 221, 145, 0.08);
}

.modal-card h2 {
  margin: 6px 0 8px;
  font-size: 26px;
}

.modal-card .muted {
  line-height: 1.5;
}

.modal-field {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: var(--app-text);
  font-size: 12px;
  font-weight: 800;
}

.modal-field[hidden] {
  display: none !important;
}

.modal-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(73, 201, 255, 0.5);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(5, 14, 25, 0.82);
  color: var(--app-text);
  font-size: 15px;
  font-weight: 750;
  outline: none;
}

.modal-field input:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(73, 201, 255, 0.18);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.modal-actions button {
  min-height: 38px;
}

.modal-actions .danger {
  background: #e65353;
  color: #fff;
}

.profile-modal-card {
  max-width: 640px;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.profile-info-grid article,
.profile-confirm-box {
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 4px;
  background: var(--app-surface-2);
}

.profile-info-grid span,
.profile-confirm-box span {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
}

.profile-info-grid strong,
.profile-confirm-box strong {
  display: block;
  margin-top: 4px;
  color: var(--app-heading);
  overflow-wrap: anywhere;
}

.profile-agent-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.12)), var(--app-surface-2);
}

.profile-agent-card strong,
.profile-agent-card span {
  display: block;
}

.profile-agent-card strong {
  color: var(--app-heading);
}

.profile-agent-card span {
  margin-top: 4px;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.4;
}

.profile-license-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.profile-license-form button {
  justify-self: start;
}

.profile-confirm-box {
  margin-top: 12px;
}

.report-head {
  display: none !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.report-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.report-head h1 {
  margin: 0;
  color: var(--app-heading);
  font-size: 21px;
  line-height: 1.2;
}

.analytics-main .eyebrow {
  color: var(--app-accent);
  font-size: 11px;
}

.live-badge {
  border-color: var(--app-line);
  background: var(--app-surface-2);
  color: var(--app-muted);
}

.live-badge.online {
  border-color: var(--app-accent);
  color: var(--app-accent);
}

.kpi-row {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.kpi-card {
  min-height: 92px;
  padding: 12px;
}

.kpi-card span,
.kpi-card small,
.summary-card .muted,
.insight-card p,
.muted {
  color: var(--app-muted);
  font-size: 12px;
}

.kpi-card strong {
  display: block;
  margin: 7px 0;
  color: var(--app-heading);
  font-size: 24px;
  line-height: 1;
}

.capacity-track {
  background: var(--app-line);
}

.capacity-fill {
  background: linear-gradient(90deg, var(--app-accent), #47c7ff);
}

.summary-grid.compact-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.report-layer {
  margin-bottom: 10px;
}

.layer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0 2px;
  color: var(--app-heading);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.inline-period {
  min-width: 138px;
}

.date-range {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calendar-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
}

.calendar-controls .select-field {
  min-width: 160px;
}

.month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.month-weekdays span {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.month-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.month-day {
  --heat-green: 0.08;
  --heat-blue: 0.04;
  position: relative;
  min-height: 96px;
  padding: 9px;
  border: 1px solid rgba(73, 201, 255, 0.18);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(83, 221, 145, var(--heat-green)), rgba(73, 201, 255, var(--heat-blue))),
    var(--app-surface-2);
  color: var(--app-heading);
}

.month-day.is-empty {
  visibility: hidden;
}

.month-day.no-data {
  background: var(--app-surface);
  border-color: var(--app-line);
  color: var(--app-muted);
}

.day-number {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 850;
}

.month-day strong {
  display: block;
  margin-top: 18px;
  font-size: 20px;
  line-height: 1;
}

.month-day small {
  display: block;
  margin-top: 5px;
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 800;
}

.day-tooltip {
  position: absolute;
  z-index: 20;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 8px);
  display: none;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--app-line);
  border-radius: 4px;
  background: var(--app-surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.day-tooltip b,
.day-tooltip span {
  display: block;
}

.day-tooltip b {
  color: var(--app-heading);
  font-size: 12px;
}

.day-tooltip span {
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.35;
}

.month-day:hover {
  border-color: var(--app-accent);
}

.month-day.selected {
  border-color: var(--app-accent);
  box-shadow: inset 0 0 0 1px rgba(73, 201, 255, 0.42);
}

.month-day:hover .day-tooltip {
  display: grid;
}

.mini-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.period-visuals,
.month-day-detail {
  margin-top: 12px;
}

.mini-chart-card {
  min-height: 176px;
  padding: 14px 16px 16px;
  border-radius: 4px;
  background: var(--app-surface);
  border-color: var(--app-line);
}

.mini-chart-card .eyebrow {
  color: var(--app-accent);
  margin-bottom: 12px;
}

.mini-bar-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(22px, 1fr);
  align-items: end;
  gap: 5px;
  min-height: 128px;
  overflow-x: auto;
  padding: 6px 2px 0;
}

.mini-bar {
  display: grid;
  grid-template-rows: 18px 1fr 16px;
  align-items: end;
  min-width: 24px;
  height: 126px;
  color: var(--app-muted);
  text-align: center;
}

.mini-bar span {
  overflow: hidden;
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-bar i {
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--app-accent), #2d86bf);
  box-shadow: 0 0 14px rgba(73, 201, 255, 0.14);
}

.mini-bar small {
  overflow: hidden;
  margin-top: 6px;
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekday-bars {
  grid-auto-columns: minmax(72px, 1fr);
}

.mini-chart-empty {
  display: grid;
  min-height: 118px;
  place-items: center;
  color: var(--app-muted);
  font-size: 13px;
}

.benchmark-filters {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.benchmark-filters .select-field {
  min-width: 138px;
}

.benchmark-filters .compare-server-picker {
  min-width: min(380px, 100%);
}

.compare-server-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 460px;
}

.compare-server-option {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 220px;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--app-line-2);
  border-radius: 4px;
  background: var(--app-surface-2);
  color: var(--app-text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.compare-server-option input {
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  accent-color: var(--app-accent);
}

.compare-server-option i,
.tooltip-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.compare-server-option span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compare-server-cell {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.compare-server-cell strong,
.compare-server-cell .muted {
  display: block;
  min-width: 0;
}

.compare-row-select {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
}

.compare-row-select input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--app-accent);
}

.compare-row-select i {
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--app-surface);
  border-radius: 999px;
  pointer-events: none;
}

.compare-row-muted {
  opacity: 0.54;
}

.benchmark-filters input,
.benchmark-filters select {
  min-height: 34px;
  border: 1px solid var(--app-line-2);
  border-radius: 4px;
  background: var(--app-surface-2);
  color: var(--app-text);
}

.admin-only[hidden] {
  display: none !important;
}

.license-generator {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(120px, 160px) max-content;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}

.license-generator input,
.license-generator select {
  min-height: 36px;
  border: 1px solid var(--app-line-2);
  border-radius: 4px;
  background: var(--app-surface-2);
  color: var(--app-text);
}

.license-generator button {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  background: var(--app-accent);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.generated-license {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 4px;
  background: var(--app-surface-2);
}

.generated-license span,
.generated-license small {
  color: var(--app-muted);
  font-size: 12px;
}

.generated-license-codes {
  display: grid;
  gap: 10px;
}

.generated-license-item {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--app-line-2);
  border-radius: 4px;
  background: rgba(7, 18, 32, 0.62);
}

.generated-license-item code {
  color: var(--app-heading);
  font-family: inherit;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.generated-license-item small {
  font-size: 12px;
}

.admin-dashboard {
  margin-top: 10px;
}

.admin-action-box {
  margin-bottom: 14px;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.admin-kpis article {
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 4px;
  background: var(--app-surface-2);
}

.admin-kpis span,
.admin-history small {
  color: var(--app-muted);
  font-size: 12px;
}

.admin-kpis strong {
  display: block;
  margin-top: 5px;
  color: var(--app-heading);
  font-size: 24px;
}

.admin-users-table {
  min-width: 1120px;
}

.license-list-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.license-list-panel {
  margin-top: 12px;
}

.license-list-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0 12px;
}

.license-list-toolbar label {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
}

.license-list-toolbar input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--app-line-2);
  border-radius: 4px;
  padding: 0 10px;
  background: var(--app-surface-2);
  color: var(--app-text);
  font-weight: 750;
  outline: none;
}

.license-list-toolbar input:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(73, 201, 255, 0.16);
}

.license-list-table {
  min-width: 980px;
}

.license-list-table td,
.license-list-table th {
  vertical-align: top;
}

.table-sort-btn {
  min-height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-pills,
.admin-history,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid var(--app-line-2);
  border-radius: 4px;
  background: var(--app-surface-2);
  font-size: 12px;
}

.admin-pill button,
.admin-actions button {
  min-height: 26px;
  border: 1px solid var(--app-line-2);
  border-radius: 4px;
  background: var(--app-surface-2);
  color: var(--app-text);
  cursor: pointer;
}

.admin-pill button {
  min-width: 22px;
  padding: 0;
}

.admin-actions button {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.admin-history-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--app-line-2);
  border-radius: 4px;
  background: var(--app-surface-2);
  color: var(--app-heading);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.admin-device-box {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid var(--app-line-2);
  border-radius: 6px;
  background: rgba(7, 24, 42, 0.58);
}

.admin-device-head,
.admin-device-row,
.admin-device-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-device-head {
  flex-wrap: wrap;
  color: var(--app-muted);
  font-size: 12px;
}

.admin-device-head strong {
  color: var(--app-heading);
}

.admin-device-head em {
  padding: 2px 7px;
  border: 1px solid rgba(255, 190, 90, 0.42);
  border-radius: 999px;
  color: #ffd47d;
  font-style: normal;
  font-weight: 850;
}

.admin-device-section {
  display: grid;
  gap: 6px;
}

.admin-device-section b {
  color: var(--app-heading);
  font-size: 12px;
}

.admin-device-row {
  justify-content: space-between;
  align-items: flex-start;
  padding: 7px;
  border: 1px solid rgba(93, 181, 255, 0.18);
  border-radius: 5px;
  background: rgba(15, 43, 70, 0.52);
}

.admin-device-row.is-pending {
  border-color: rgba(255, 190, 90, 0.42);
  background: rgba(94, 62, 18, 0.28);
}

.admin-device-row div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-device-row strong,
.admin-device-row span,
.admin-device-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-device-row span,
.admin-device-row small {
  color: var(--app-muted);
  font-size: 11px;
}

.admin-device-actions {
  flex-shrink: 0;
}

.admin-device-actions button {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--app-line-2);
  border-radius: 4px;
  background: var(--app-surface-2);
  color: var(--app-text);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.history-modal-card {
  max-width: 620px;
}

.admin-history-modal-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.admin-history-entry {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 4px;
  background: var(--app-surface-2);
}

.admin-history-entry strong {
  color: var(--app-heading);
  font-size: 13px;
}

.admin-history-entry span {
  color: var(--app-muted);
  font-size: 12px;
}

.good {
  color: #53dd91;
  font-weight: 850;
}

.bad {
  color: #ff6b6b;
  font-weight: 850;
}

.summary-card {
  min-height: 122px;
  padding: 12px;
}

.summary-card.wide {
  grid-column: span 3;
}

.peaks-layer {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-card h2 {
  color: var(--app-heading);
  font-size: 20px;
  line-height: 1.2;
}

.chart-panel {
  padding: 12px;
}

.compare-chart-panel {
  margin-top: 10px;
}

.chart-wrap {
  min-height: 340px;
  border: 1px solid rgba(71, 199, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(71, 199, 255, 0.045), transparent 54%),
    #091522;
  position: relative;
  overflow: hidden;
}

canvas {
  height: 340px;
}

.chart-hover-line {
  position: absolute;
  top: 22px;
  bottom: 44px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(71, 199, 255, 0.7), transparent);
  pointer-events: none;
  opacity: 0.72;
}

.chart-active-marker {
  position: absolute;
  z-index: 4;
  width: 11px;
  height: 11px;
  border: 2px solid #47c7ff;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(71, 199, 255, 0.13), 0 0 18px rgba(71, 199, 255, 0.38);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.chart-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 38px;
  padding: 4px;
  border: 1px solid var(--app-line-2);
  border-radius: 7px;
  background: var(--app-surface-2);
}

.chart-mode-toggle button {
  width: 34px;
  height: 28px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  border: 0;
  border-radius: 5px;
  color: var(--app-muted);
  background: transparent;
  cursor: pointer;
}

.chart-mode-toggle button.active,
.chart-mode-toggle button:hover {
  color: var(--app-accent);
  background: var(--app-accent-soft);
}

.chart-mode-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
  transform: translateY(-0.5px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-mode-toggle .mode-fill {
  fill: currentColor;
  fill-opacity: 0.18;
  stroke: none;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  display: none;
  min-width: 122px;
  max-width: 170px;
  pointer-events: none;
  border: 1px solid rgba(71, 199, 255, 0.27);
  border-radius: 7px;
  padding: 8px 10px;
  background: rgba(8, 20, 34, 0.96);
  color: #f4f9ff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
  font-size: 11px;
  line-height: 1.25;
  backdrop-filter: blur(10px);
  white-space: normal;
  overflow-wrap: anywhere;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
}

.chart-tooltip span {
  margin-top: 2px;
  color: rgba(157, 180, 204, 0.92);
  font-size: 10px;
}

.insights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.insight-card {
  min-height: 112px;
  border-color: var(--app-line);
  background: var(--app-surface);
}

.insight-card strong {
  color: var(--app-heading);
  font-size: 22px;
}

.table-wrap table {
  color: var(--app-text);
}

th,
td {
  border-bottom-color: var(--app-line);
}

th {
  color: var(--app-muted);
}

.view-page {
  display: none;
}

.view-page.active {
  display: block;
}

@media (max-width: 1120px) {
  .analytics-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .analytics-topbar,
  .analytics-sidebar,
  .analytics-main {
    grid-column: 1;
  }

  .analytics-topbar {
    height: auto;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .product-mark,
  .compact-search,
  .user-box {
    justify-self: stretch;
  }

  .user-box {
    grid-template-columns: 1fr;
  }

  .user-box > div:first-child {
    text-align: left;
  }

  .analytics-sidebar {
    grid-row: 2;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #dce7f2;
  }

  .analytics-main {
    grid-row: 3;
  }

  .kpi-row,
  .summary-grid.compact-summary,
  .insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card.wide {
    grid-column: span 2;
  }

  .month-day {
    min-height: 82px;
  }
}

@media (max-width: 640px) {
  .compact-search,
  .user-box,
  .kpi-row,
  .summary-grid.compact-summary,
  .insights {
    grid-template-columns: 1fr;
  }

  .user-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .user-actions button,
  .user-actions select {
    width: 100%;
  }

  .summary-card.wide {
    grid-column: span 1;
  }

  .month-calendar-grid,
  .month-weekdays {
    gap: 4px;
  }

  .month-day {
    min-height: 70px;
    padding: 6px;
  }

  .month-day strong {
    margin-top: 10px;
    font-size: 15px;
  }

  .month-day small {
    font-size: 10px;
  }

  .report-head,
  .report-tools {
    display: grid;
    justify-content: stretch;
  }
}

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

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

  .compact {
    margin-bottom: 0;
  }
}

@media (max-width: 900px) {
  .landing-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-nav nav,
  .landing-actions {
    flex-wrap: wrap;
  }

  .landing-hero,
  .landing-features,
  .landing-stats,
  .landing-stat-grid,
  .faq-grid,
  .auth-screen,
  .players-layout,
  .players-detail-grid,
  .player-analysis-grid,
  .server-stats-kpis,
  .server-stats-panels,
  .resources-kpis,
  .mini-visual-grid,
  .topbar,
  .metric-grid,
  .insights,
  .side-column {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-preview {
    min-height: 420px;
    transform: none;
  }

  .preview-content {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    min-height: auto;
    grid-template-columns: repeat(4, 1fr);
  }

  .auth-showcase {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .auth-panel {
    min-height: auto;
  }

  .server-form {
    margin-top: 8px;
  }

  .category-nav,
  .player-kpis,
  .player-analysis-kpis,
  .player-timeline,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .landing-metrics,
  .preview-kpis {
    grid-template-columns: 1fr;
  }

  .landing-cta,
  .landing-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-actions a,
  .landing-actions button,
  .landing-cta a,
  .landing-cta button {
    justify-content: center;
    width: 100%;
  }

  .topbar {
    padding-top: 18px;
  }

  .brand {
    align-items: start;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .server-form,
  .server-identity,
  .section-head,
  .players-layout,
  .players-detail-grid,
  .player-analysis-grid,
  .mini-visual-grid,
  .player-kpis,
  .player-analysis-kpis,
  .player-timeline,
  .summary-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .player-economy {
    grid-template-columns: 1fr;
  }

  .auth-stats {
    grid-template-columns: 1fr;
  }

  .category-nav,
  .chart-actions,
  .account-bar {
    grid-template-columns: 1fr;
    display: grid;
  }

  button {
    width: 100%;
  }

  .server-card .server-menu-button {
    width: 24px;
    min-width: 24px;
  }

  .map-header,
  .map-controls {
    display: grid;
    align-items: stretch;
  }

  .map-workspace {
    height: calc(100vh - 96px);
    min-height: 590px;
    margin: -8px;
  }

  .map-header {
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    padding: 11px;
  }

  .map-mode-toggle button,
  .map-view-toggle button {
    width: auto;
    padding: 0 9px;
  }

  .player-activity-bars {
    gap: 2px;
  }

  .map-kpis {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .map-kpis article {
    min-height: 58px;
    padding: 7px;
  }

  .map-kpis strong {
    font-size: 18px;
  }

  .game-map-panel {
    padding: 0;
  }

  .game-map-stage {
    height: 100%;
    min-height: 100%;
  }

  .map-legend {
    top: 166px;
    left: 12px;
  }

  .map-zoom-tools {
    top: 166px;
    right: 12px;
  }

  .map-zoom-tools button {
    width: auto;
  }

.spotlight-card strong {
  font-size: 42px;
}

.admin-analytics-dashboard {
  display: grid;
  gap: 14px;
}

.admin-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-analytics-kpis article {
  border: 1px solid var(--line);
  background: rgba(8, 27, 44, 0.72);
  border-radius: 8px;
  padding: 14px;
  min-height: 104px;
}

.admin-analytics-kpis span,
.admin-analytics-row span {
  color: var(--muted);
  font-size: 12px;
}

.admin-analytics-kpis strong {
  display: block;
  margin-top: 9px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.1;
}

.admin-analytics-kpis small {
  display: block;
  margin-top: 8px;
  color: var(--soft);
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 12px;
}

.admin-analytics-card {
  min-height: 250px;
}

.admin-analytics-wide {
  grid-row: span 2;
}

#adminAnalyticsChart {
  width: 100%;
  height: 280px;
  display: block;
}

.admin-analytics-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-analytics-row {
  display: grid;
  gap: 6px;
}

.admin-analytics-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.admin-analytics-row strong {
  color: var(--text);
}

.admin-analytics-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(116, 164, 209, 0.18);
}

.admin-analytics-meter i {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

@media (max-width: 1180px) {
  .admin-analytics-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-analytics-kpis {
    grid-template-columns: 1fr;
  }
}
}

.players-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--app-line-2);
  border-radius: 6px;
  background: rgba(7, 18, 32, 0.72);
}

.players-mode-toggle button {
  min-height: 28px;
  border: 0;
  border-radius: 4px;
  padding: 0 10px;
  background: transparent;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.players-mode-toggle button.active {
  background: rgba(73, 201, 255, 0.18);
  color: var(--app-heading);
}

.player-row.offline {
  opacity: 0.72;
}

.player-state-dot {
  display: inline-block;
  width: 7px;
  height: 4px;
  margin-right: 6px;
  border-radius: 999px;
  vertical-align: middle;
  background: var(--app-muted);
}

.player-state-dot.online {
  background: #54e89c;
  box-shadow: 0 0 0 3px rgba(84, 232, 156, 0.12);
}

.player-state-dot.offline {
  background: #7d92a8;
}

.player-list-loading {
  padding: 12px;
  color: var(--app-muted);
  font-size: 12px;
}

.economy-band-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

.economy-band-edit-button {
  min-height: 30px;
  padding: 0 10px;
  white-space: nowrap;
}

.economy-band-row {
  grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.5fr) minmax(50px, auto) minmax(95px, auto);
  padding: 8px 10px;
  border: 1px solid var(--app-line);
  border-radius: 7px;
  background: rgba(10, 27, 44, 0.46);
}

.economy-band-row em {
  color: var(--app-muted);
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.economy-band-editor {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 520px);
  overflow: auto;
  margin-top: 10px;
  padding-right: 4px;
}

.economy-band-editor[hidden] {
  display: none;
}

.economy-band-editor-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(90px, 0.55fr) minmax(90px, 0.55fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 720px) {
  .players-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .players-mode-toggle,
  .players-mode-toggle button {
    width: 100%;
  }

  .economy-band-editor-row,
  .economy-band-row {
    grid-template-columns: 1fr;
  }

  .economy-band-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

.script-usage-page.active {
  display: block;
}

.script-usage-content {
  display: grid;
  gap: 12px;
}

.script-usage-kpis {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.script-usage-kpis .panel strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-usage-table code {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  background: rgba(56, 199, 255, .08);
  border: 1px solid rgba(56, 199, 255, .18);
  border-radius: 6px;
  padding: 3px 7px;
}

.rank-pill {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(56, 199, 255, .12);
  border: 1px solid rgba(56, 199, 255, .25);
  font-size: 12px;
}

@media (max-width: 900px) {
  .script-usage-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.script-usage-logs {
  margin-top: 12px;
}

.script-usage-logs code,
.script-usage-table code {
  color: #d8f1ff;
  white-space: nowrap;
}

.script-usage-logs td:nth-child(2) {
  max-width: 340px;
  white-space: normal;
  color: #d5ecff;
}

.economy-band-select-field select {
  min-height: 38px;
  border: 1px solid var(--app-line);
  border-radius: 7px;
  background: var(--app-panel-strong);
  color: var(--app-text);
  padding: 0 10px;
  font: inherit;
}

/* Cleaner script usage dashboard */
.script-usage-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.script-usage-main-card {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.script-usage-main-card.wide {
  grid-column: span 2;
}

.script-usage-main-card span,
.script-usage-section .eyebrow,
.script-usage-card dt {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.script-usage-main-card strong {
  min-width: 0;
  color: var(--text);
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-usage-main-card small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-usage-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
  gap: 12px;
}

.script-usage-analytics-layout {
  display: grid;
  grid-template-columns: minmax(360px, .86fr) minmax(0, 1.35fr);
  gap: 12px;
  align-items: start;
}

.script-usage-section {
  display: grid;
  gap: 12px;
}

.script-usage-section h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.script-resource-table-panel,
.script-resource-detail-panel {
  min-width: 0;
}

.script-resource-table-head,
.script-resource-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 92px 86px 84px 84px;
  gap: 10px;
  align-items: center;
}

.script-resource-table-head {
  padding: 0 10px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.script-resource-table {
  display: grid;
  gap: 7px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.script-resource-row {
  width: 100%;
  border: 1px solid rgba(64, 186, 246, .20);
  border-radius: 8px;
  background: rgba(7, 22, 38, .58);
  color: var(--text);
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.script-resource-row:hover,
.script-resource-row.active {
  border-color: rgba(56, 199, 255, .72);
  background: rgba(15, 51, 78, .76);
}

.script-resource-row.active {
  box-shadow: inset 3px 0 0 var(--accent), 0 0 0 1px rgba(56, 199, 255, .12);
}

.script-resource-row > span {
  min-width: 0;
}

.script-resource-row strong,
.script-resource-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-resource-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.script-resource-row em {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.script-resource-row em.positive,
.script-usage-detail-kpis strong.positive {
  color: #4fe88b;
}

.script-resource-row em.negative,
.script-usage-detail-kpis strong.negative {
  color: #ff6f7e;
}

.script-resource-row em.neutral,
.script-usage-detail-kpis strong.neutral {
  color: #e8f6ff;
}

.script-usage-detail-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.script-usage-detail-kpis article {
  min-width: 0;
  border: 1px solid rgba(64, 186, 246, .18);
  border-radius: 8px;
  background: rgba(7, 22, 38, .54);
  padding: 11px;
}

.script-usage-detail-kpis span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.script-usage-detail-kpis strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-usage-detail-chart,
.script-usage-empty-chart {
  width: 100%;
  min-height: 190px;
  border: 1px solid rgba(64, 186, 246, .18);
  border-radius: 8px;
  background:
    linear-gradient(rgba(64, 186, 246, .08) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(64, 186, 246, .08) 1px, transparent 1px) 0 0 / 20% 100%,
    rgba(4, 17, 31, .52);
}

.script-usage-empty-chart {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.script-usage-detail-chart polygon {
  fill: rgba(56, 199, 255, .14);
}

.script-usage-detail-chart polyline {
  fill: none;
  stroke: #48c7ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(72, 199, 255, .32));
}

.script-usage-detail-chart circle {
  fill: #e7f8ff;
  stroke: #48c7ff;
  stroke-width: 2;
}

.script-usage-card-list,
.script-action-list,
.script-log-list {
  display: grid;
  gap: 8px;
}

.script-usage-card,
.script-action-card,
.script-log-card {
  border: 1px solid rgba(64, 186, 246, .22);
  border-radius: 8px;
  background: rgba(8, 24, 40, .58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.script-usage-card {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.script-usage-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.script-usage-card-head strong,
.script-action-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-usage-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.script-usage-card dl div {
  min-width: 0;
}

.script-usage-card dd {
  margin: 2px 0 0;
  color: var(--text);
  font-weight: 800;
}

.script-usage-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(92, 145, 181, .18);
}

.script-usage-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #28b9ff, #7ddcff);
  box-shadow: 0 0 18px rgba(40, 185, 255, .28);
}

.script-action-card {
  padding: 11px 12px;
  display: grid;
  gap: 9px;
}

.script-action-card header,
.script-action-card footer,
.script-log-card {
  display: grid;
  align-items: center;
  gap: 10px;
}

.script-action-card header {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}

.script-action-card header > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--accent);
  background: rgba(56, 199, 255, .10);
  border: 1px solid rgba(56, 199, 255, .22);
  font-weight: 900;
}

.script-action-card header b {
  color: var(--text);
  font-size: 18px;
}

.script-action-card code,
.script-log-card code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 3px;
  color: #d8f1ff;
  background: rgba(56, 199, 255, .08);
  border: 1px solid rgba(56, 199, 255, .18);
  border-radius: 6px;
  padding: 3px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-action-card footer {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--muted);
  font-size: 12px;
}

.script-action-card footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-log-card {
  grid-template-columns: 150px minmax(0, 1fr) 105px 70px;
  padding: 10px 12px;
}

.script-log-card time,
.script-log-card > span,
.script-log-card small {
  color: var(--muted);
  font-size: 12px;
}

.script-log-card strong {
  display: block;
  margin-bottom: 2px;
}

.script-log-card b {
  justify-self: end;
  color: var(--accent);
}

.script-usage-live-pill {
  align-items: center;
  border: 1px solid rgba(56, 199, 255, .34);
  border-radius: 999px;
  color: #b9e8ff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  padding: 8px 12px;
  white-space: nowrap;
}

.script-usage-live-pill::before {
  background: #4fe88b;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(79, 232, 139, .65);
  content: "";
  height: 8px;
  width: 8px;
}

.script-resource-table {
  gap: 9px;
}

.script-resource-row {
  grid-template-columns: 32px minmax(0, 1fr) minmax(96px, auto) minmax(90px, auto);
  min-height: 76px;
}

.script-resource-rank {
  align-items: center;
  background: rgba(56, 199, 255, .10);
  border: 1px solid rgba(56, 199, 255, .24);
  border-radius: 8px;
  color: #74d5ff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.script-resource-main {
  display: grid;
  gap: 5px;
}

.script-resource-meter {
  background: rgba(92, 145, 181, .16);
  border-radius: 999px;
  display: block;
  height: 6px;
  overflow: hidden;
}

.script-resource-meter b {
  background: linear-gradient(90deg, #1fa8ef, #72ddff);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.script-resource-stats,
.script-resource-side {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.script-resource-stats b {
  color: #ffffff;
  font-size: 17px;
}

.script-resource-stats small {
  text-align: right;
}

.script-resource-side em {
  font-style: normal;
  font-weight: 900;
}

.script-usage-chart-card {
  border: 1px solid rgba(64, 186, 246, .20);
  border-radius: 8px;
  background: rgba(4, 17, 31, .48);
  overflow: hidden;
}

.script-usage-chart-head {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 14px 0;
}

.script-usage-chart-head h3 {
  margin: 2px 0 0;
}

.script-usage-chart-head small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.script-usage-chart-range {
  min-width: 150px;
}

.script-usage-trend-chart,
.script-usage-empty-chart {
  background: #061522;
  border: 0;
  border-radius: 0;
  min-height: 300px;
  position: relative;
}

.script-usage-trend-canvas {
  display: block;
  height: 300px;
  width: 100%;
}

.script-usage-chart-tooltip {
  background: rgba(6, 18, 31, .96);
  border: 1px solid rgba(74, 196, 255, .42);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .35);
  color: #e7f8ff;
  display: grid;
  gap: 3px;
  min-width: 118px;
  padding: 9px 11px;
  pointer-events: none;
  position: absolute;
  z-index: 5;
}

.script-usage-chart-tooltip strong {
  font-size: 15px;
}

.script-usage-chart-tooltip strong::before {
  background: #42c8ff;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 8px;
  margin-right: 7px;
  width: 8px;
}

.script-usage-chart-tooltip span {
  color: var(--muted);
  font-size: 11px;
}

.script-log-scope-switch {
  align-items: center;
  background: rgba(4, 17, 31, .72);
  border: 1px solid rgba(64, 186, 246, .22);
  border-radius: 8px;
  display: flex;
  gap: 4px;
  padding: 4px;
}

.script-log-scope-switch button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  padding: 8px 12px;
}

.script-log-scope-switch button.active,
.script-log-scope-switch button:hover {
  background: rgba(56, 199, 255, .16);
  color: #ffffff;
}


@media (max-width: 1100px) {
  .script-usage-summary-grid,
  .script-usage-layout,
  .script-usage-analytics-layout {
    grid-template-columns: 1fr;
  }
  .script-usage-main-card.wide {
    grid-column: auto;
  }
  .map-header-v2 {
    grid-template-columns: 1fr;
  }
  .map-controls-v2 {
    justify-content: stretch;
  }
}

@media (max-width: 720px) {
  .script-action-card footer,
  .script-usage-card dl,
  .script-log-card,
  .script-resource-table-head,
  .script-resource-row,
  .script-usage-detail-kpis {
    grid-template-columns: 1fr;
  }
  .script-log-card b {
    justify-self: start;
  }
  .script-usage-chart-head,
  .resources-table-head {
    align-items: stretch;
    flex-direction: column;
  }
  .script-log-scope-switch,
  .script-usage-chart-range {
    width: 100%;
  }
  .script-resource-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .script-resource-stats,
  .script-resource-side {
    align-items: flex-start;
    grid-column: 2;
  }
  .map-controls-v2 {
    grid-template-columns: 1fr;
  }
}

/* Map v2 - direct FXServer coordinate renderer */
.map-workspace-v2 {
  display: grid;
  gap: 12px;
  min-height: calc(100vh - 92px);
}

.map-workspace-v2[hidden] {
  display: none;
}

.map-header-v2 {
  align-items: center;
  backdrop-filter: blur(14px);
  background:
    linear-gradient(135deg, rgba(5, 18, 31, .92), rgba(3, 13, 24, .82)),
    radial-gradient(circle at 8% 0%, rgba(54, 190, 255, .14), transparent 30%);
  border-color: rgba(73, 196, 255, .36);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
  display: block;
  max-width: min(760px, calc(100vw - 360px));
  padding: 8px;
}

.map-header-main {
  align-content: center;
  background: transparent;
  border: 0;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0 4px;
}

.map-header-main h2 {
  font-size: 16px;
  line-height: 1.05;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-status-pill {
  align-items: center;
  color: #c2e9ff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  line-height: 1;
}

.map-status-pill::before {
  background: #35e29d;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(53, 226, 157, .72);
  content: "";
  display: inline-block;
  height: 7px;
  width: 7px;
}

.map-controls-v2 {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(260px, 1fr) minmax(120px, .45fr) minmax(120px, .45fr) minmax(136px, .5fr);
  min-width: 0;
}

.map-control-card {
  background: rgba(3, 13, 23, .64);
  border: 1px solid rgba(69, 170, 226, .28);
  border-radius: 7px;
  display: grid;
  gap: 0;
  min-height: 48px;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.map-control-card > span,
.map-control-card.select-field > span {
  color: #8cc9ee;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
  padding: 7px 10px 0;
  text-transform: uppercase;
}

.map-control-card .map-mode-toggle,
.map-control-card .map-zoom-tools {
  align-self: stretch;
}

.map-control-card .map-mode-toggle {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  padding: 3px;
}

.map-control-card .map-mode-toggle button {
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  min-height: 40px;
  padding: 5px 8px;
  white-space: nowrap;
}

.map-control-card .map-mode-toggle button.active {
  background: linear-gradient(135deg, rgba(45, 158, 221, .46), rgba(26, 90, 132, .56));
  box-shadow: inset 0 0 0 1px rgba(116, 216, 255, .16);
}

.map-control-card select {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #f1fbff;
  font-size: 13px;
  font-weight: 800;
  height: 31px;
  line-height: 31px;
  min-height: 31px;
  min-width: 0;
  padding: 0 28px 0 10px;
  width: 100%;
}

.map-control-card .map-zoom-tools {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  overflow: hidden;
  position: static;
}

.map-control-card .map-zoom-tools button {
  border: 0;
  border-left: 1px solid rgba(63, 109, 145, .4);
  min-height: 48px;
  min-width: 34px;
}

.map-control-card .map-zoom-tools button:first-child {
  border-left: 0;
}

.map-control-card .map-zoom-tools .map-zoom-value {
  min-width: 62px;
}

.map-control-card-mode {
  min-width: 0;
}

.map-control-card-range {
  min-width: 0;
}

#mapRangeField[hidden],
#mapHourField[hidden] {
  display: none;
}

.map-control-card-hour {
  min-width: 0;
}

.map-control-card-zoom {
  min-width: 0;
}

.map-shell-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  min-height: min(820px, calc(100vh - 220px));
}

.game-map-panel-v2 {
  background: #061522;
  border: 1px solid rgba(55, 166, 239, .38);
  border-radius: 8px;
  min-height: 680px;
  overflow: hidden;
  position: relative;
}

.map-stage-v2 {
  align-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(55, 166, 239, .08), rgba(2, 12, 22, .96) 72%);
  cursor: grab;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 680px;
  overflow: hidden;
  position: relative;
  user-select: none;
}

.map-stage-v2.dragging {
  cursor: grabbing;
}

.map2d-canvas {
  aspect-ratio: 1080 / 1467;
  height: min(112vh, 1180px);
  max-height: none;
  max-width: none;
  position: relative;
  transform-origin: 50% 50%;
  transition: transform .08s linear;
  width: min(82.454vh, 870px);
}

.map2d-image,
.map2d-grid,
.map2d-heat,
.map2d-markers {
  inset: 0;
  position: absolute;
}

.map2d-image {
  border-radius: 4px;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  width: 100%;
}

.map2d-grid {
  background-image:
    linear-gradient(rgba(145, 208, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 208, 255, .18) 1px, transparent 1px);
  background-size: 25% 25%;
  mix-blend-mode: screen;
  opacity: .36;
  pointer-events: none;
}

.map-player-marker {
  align-items: center;
  appearance: none;
  background: #44d8ff;
  border: 0;
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow:
    0 0 0 2px rgba(2, 10, 20, .96),
    0 0 0 3px rgba(68, 216, 255, .28),
    0 2px 7px rgba(0, 0, 0, .52),
    0 0 9px rgba(68, 216, 255, .72);
  cursor: pointer;
  display: flex;
  font-size: 0;
  height: 2px;
  justify-content: center;
  line-height: 0;
  margin: 0;
  min-height: 0;
  min-width: 0;
  padding: 0;
  position: absolute;
  transform: translate(-50%, -50%) translateZ(0);
  transition: box-shadow .16s ease, transform .16s ease;
  width: 2px;
  z-index: 5;
}

.map-player-marker::before {
  background: rgba(68, 216, 255, .1);
  border: 1px solid rgba(98, 214, 255, .18);
  border-radius: inherit;
  content: "";
  inset: -2px;
  position: absolute;
}

.map-player-marker::after {
  display: none;
}

.map-player-marker:hover {
  box-shadow:
    0 0 0 2px rgba(2, 10, 20, .94),
    0 0 0 4px rgba(72, 202, 255, .26),
    0 4px 10px rgba(0, 0, 0, .52),
    0 0 13px rgba(48, 181, 255, .82);
  transform: translate(-50%, -50%) translateZ(0) scale(1.25);
}

.map-player-marker:focus-visible {
  outline: 2px solid rgba(195, 240, 255, .95);
  outline-offset: 5px;
}

.map-player-marker span {
  display: none;
}

.map-player-marker.selected {
  background: #50e08d;
  box-shadow:
    0 0 0 2px rgba(2, 10, 20, .94),
    0 0 0 4px rgba(80, 219, 135, .23),
    0 4px 10px rgba(0, 0, 0, .52),
    0 0 14px rgba(80, 219, 135, .82);
  height: 2px;
  width: 2px;
}

.map-heat-cell {
  background: radial-gradient(circle, rgba(255, 76, 76, calc(.18 + var(--heat) * .42)), rgba(255, 193, 80, calc(.12 + var(--heat) * .22)) 44%, transparent 72%);
  border-radius: 999px;
  margin-left: calc(var(--size, 1px) / -2);
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, -50%);
}

.map-kpis-v2 {
  bottom: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  left: 12px;
  max-width: 560px;
  position: absolute;
  z-index: 8;
}

.map-kpis-v2 .panel {
  background: rgba(4, 18, 31, .92);
  border-color: rgba(55, 166, 239, .34);
  min-height: 72px;
}

.map-player-panel {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 680px;
}

.map-player-panel-head {
  align-items: start;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
}

.map-player-panel-head h3 {
  margin: 2px 0 0;
}

.map-panel-back {
  align-items: center;
  background: rgba(8, 31, 49, .82);
  border: 1px solid rgba(73, 196, 255, .34);
  border-radius: 8px;
  color: #dff6ff;
  cursor: pointer;
  display: inline-flex;
  font-size: 26px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  width: 34px;
}

.map-panel-back:hover {
  background: rgba(27, 91, 131, .74);
  border-color: rgba(100, 217, 255, .68);
}

.map-panel-home {
  align-content: start;
  display: grid;
  gap: 12px;
  min-height: 0;
}

.map-panel-home[hidden] {
  display: none;
}

.map-panel-card {
  background:
    linear-gradient(135deg, rgba(10, 39, 62, .86), rgba(5, 19, 34, .94)),
    radial-gradient(circle at 92% 18%, rgba(69, 204, 255, .18), transparent 34%);
  border: 1px solid rgba(72, 190, 248, .34);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  position: relative;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.map-panel-card::after {
  color: #7fdcff;
  content: "›";
  font-size: 28px;
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 12px;
}

.map-panel-card:hover {
  background:
    linear-gradient(135deg, rgba(14, 54, 82, .94), rgba(7, 24, 42, .96)),
    radial-gradient(circle at 92% 18%, rgba(84, 218, 255, .24), transparent 36%);
  border-color: rgba(95, 218, 255, .72);
  transform: translateY(-1px);
}

.map-panel-card span {
  color: #8dd7ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-panel-card strong {
  color: #f5fbff;
  font-size: 34px;
  line-height: 1;
}

.map-panel-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  max-width: 210px;
}

.map-player-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.map-heat-panel {
  display: grid;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.map-player-list[hidden],
.map-selected-player[hidden],
.map-heat-panel[hidden] {
  display: none;
}

.map-heat-section {
  display: grid;
  gap: 10px;
}

.map-heat-places {
  display: grid;
  gap: 8px;
}

.map-heat-place {
  align-items: center;
  background: rgba(8, 25, 41, .72);
  border: 1px solid rgba(55, 166, 239, .22);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  padding: 9px;
  text-align: left;
}

.map-heat-place:hover {
  background: rgba(18, 59, 88, .72);
  border-color: rgba(71, 199, 255, .62);
}

.map-heat-rank {
  align-items: center;
  background: rgba(71, 199, 255, .14);
  border: 1px solid rgba(71, 199, 255, .34);
  border-radius: 8px;
  color: var(--accent);
  display: inline-flex;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.map-heat-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.map-heat-info strong {
  color: #f4fbff;
}

.map-heat-info small,
.map-heat-coords {
  color: var(--muted);
  font-size: .76rem;
}

.map-heat-info i {
  background: linear-gradient(90deg, rgba(71, 199, 255, .95), rgba(80, 224, 141, .95));
  border-radius: 999px;
  display: block;
  height: 4px;
  min-width: 12px;
}

.map-heat-coords {
  font-family: var(--mono);
  white-space: nowrap;
}

.map-heat-hours {
  align-items: end;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.map-heat-hour {
  align-items: center;
  background: rgba(5, 18, 31, .76);
  border: 1px solid rgba(55, 166, 239, .18);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  gap: 4px;
  height: 58px;
  justify-items: center;
  padding: 6px 3px;
}

.map-heat-hour span {
  align-self: end;
  background: linear-gradient(180deg, rgba(80, 224, 141, .95), rgba(71, 199, 255, .85));
  border-radius: 999px;
  display: block;
  min-height: 3px;
  width: 5px;
}

.map-heat-hour strong {
  font-size: .66rem;
  line-height: 1;
}

.map-heat-hour:hover,
.map-heat-hour.active {
  border-color: rgba(71, 199, 255, .72);
  color: #f4fbff;
}

.map-player-row {
  align-items: center;
  background: rgba(8, 25, 41, .72);
  border: 1px solid rgba(55, 166, 239, .22);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 26px 34px minmax(0, 1fr) auto;
  padding: 9px;
  text-align: left;
}

.map-player-row:hover,
.map-player-row.active {
  background: rgba(20, 68, 99, .74);
  border-color: rgba(74, 196, 255, .68);
}

.map-player-index,
.map-player-coords,
.map-player-copy small {
  color: var(--muted);
  font-size: 11px;
}

.map-player-avatar {
  align-items: center;
  background: rgba(74, 196, 255, .14);
  border: 1px solid rgba(74, 196, 255, .46);
  border-radius: 8px;
  color: #7bd7ff;
  display: flex;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.map-player-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.map-player-copy strong,
.map-player-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-selected-player {
  background: rgba(8, 25, 41, .72);
  border: 1px solid rgba(55, 166, 239, .28);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.map-selected-player span,
.map-empty-list {
  color: var(--muted);
  font-size: 12px;
}

.map-tooltip {
  background: rgba(6, 16, 28, .96);
  border: 1px solid rgba(99, 210, 255, .5);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .34);
  color: var(--text);
  display: grid;
  gap: 4px;
  max-width: 280px;
  padding: 10px 12px;
  pointer-events: none;
  position: absolute;
  white-space: normal;
  z-index: 20;
}

.map-tooltip[hidden] {
  display: none;
}

.view-page.locations-page {
  display: none;
  gap: 12px;
  position: relative;
}

.view-page.locations-page.active {
  display: grid;
}

.location-topbar {
  align-items: center;
  background: linear-gradient(90deg, rgba(9, 31, 55, .94), rgba(7, 24, 45, .9));
  border-color: rgba(74, 171, 255, .18);
  border-radius: 8px;
  box-shadow: none;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 16px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.location-topbar h2,
.location-map-head h2 {
  margin: 3px 0 0;
}

.locations-content {
  min-height: calc(100vh - 168px);
}

.location-dashboard-map {
  background:
    radial-gradient(circle at 50% 35%, rgba(16, 116, 214, .24), transparent 44%),
    linear-gradient(135deg, #020915, #031526 42%, #010713);
  border: 1px solid rgba(72, 163, 255, .16);
  border-radius: 10px;
  min-height: calc(100vh - 176px);
  overflow: hidden;
  position: relative;
}

.location-map-card {
  inset: 0;
  overflow: hidden;
  position: absolute;
  padding: 0;
}

.location-map-head {
  align-items: center;
  border-bottom: 1px solid rgba(77, 179, 255, .2);
  display: flex;
  justify-content: space-between;
  padding: 18px 20px 12px;
}

.location-map-head small {
  color: var(--muted);
}

.location-world-map {
  background:
    radial-gradient(circle at 50% 45%, rgba(68, 181, 255, .13), transparent 45%),
    linear-gradient(135deg, #06111f, #081c34 50%, #051020);
  height: 100%;
  overflow: hidden;
  position: relative;
}

.location-real-map,
.location-atlas-map {
  background: #071321;
}

.location-map-tiles,
.location-map-vignette {
  inset: 0;
  position: absolute;
}

.location-map-tile {
  filter: saturate(1.18) contrast(1.08) brightness(.72) hue-rotate(176deg);
  object-fit: cover;
  position: absolute;
  user-select: none;
}

.location-map-vignette {
  background:
    radial-gradient(circle at 50% 46%, rgba(34, 122, 222, .16), transparent 33%),
    radial-gradient(circle at 50% 48%, transparent 30%, rgba(3, 10, 18, .18) 66%, rgba(0, 6, 15, .64) 100%),
    linear-gradient(90deg, rgba(2, 10, 20, .42), transparent 22%, transparent 76%, rgba(2, 9, 18, .56));
  pointer-events: none;
  z-index: 1;
}

.location-map-attribution {
  background: rgba(3, 12, 22, .68);
  border: 1px solid rgba(77, 179, 255, .16);
  border-radius: 6px;
  bottom: 10px;
  color: rgba(191, 222, 246, .74);
  font-size: 10px;
  line-height: 1;
  padding: 6px 8px;
  position: absolute;
  right: 10px;
  z-index: 4;
}

.location-world-svg {
  height: 100%;
  inset: 0;
  opacity: 1;
  position: absolute;
  width: 100%;
}

.location-atlas-svg {
  filter: drop-shadow(0 0 28px rgba(22, 116, 220, .2));
  transform: scale(1.04);
  transform-origin: center;
}

.location-preview-note {
  background: rgba(3, 12, 24, .68);
  border: 1px solid rgba(77, 179, 255, .18);
  border-radius: 8px;
  bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  left: 50%;
  padding: 8px 12px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 5;
}

.location-world-svg rect {
  fill: #020a15;
}

.location-atlas-svg .location-land path {
  fill: rgba(17, 58, 101, .82);
  stroke: rgba(75, 164, 255, .52);
  stroke-width: 1.25;
}

.location-atlas-svg .location-boundaries path {
  fill: none;
  opacity: .55;
  stroke: rgba(126, 194, 255, .45);
  stroke-width: .85;
}

.location-atlas-svg .location-ocean-lines path {
  fill: none;
  opacity: .12;
  stroke: rgba(80, 165, 255, .34);
  stroke-width: .8;
}

.location-atlas-svg .location-labels text {
  fill: rgba(199, 225, 255, .64);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  paint-order: stroke;
  stroke: rgba(2, 10, 21, .7);
  stroke-width: 3px;
  text-anchor: middle;
  text-transform: uppercase;
}

.location-world-svg .location-grid path {
  fill: none;
  opacity: .24;
  stroke: rgba(91, 178, 255, .28);
  stroke-dasharray: 2 5;
}

.location-dots {
  inset: 0;
  position: absolute;
  z-index: 3;
}

.location-dot {
  align-items: center;
  background: rgba(18, 130, 255, var(--dot-alpha, .82));
  border: 1px solid rgba(163, 220, 255, .92);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(24, 134, 255, .18), 0 0 28px rgba(22, 137, 255, .72);
  color: #eaf9ff;
  cursor: default;
  display: flex;
  font-size: 10px;
  font-weight: 900;
  height: var(--dot-size, 12px);
  justify-content: center;
  min-width: var(--dot-size, 12px);
  padding: 0 4px;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.location-dot span {
  line-height: 1;
}

.location-no-data,
.location-empty-state {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 420px;
  text-align: center;
}

.location-no-data {
  inset: 0;
  padding: 24px;
  position: absolute;
}

.location-side {
  display: none;
}

.location-insight-panel {
  display: grid;
  gap: 14px;
  position: absolute;
  right: 22px;
  top: 140px;
  width: min(330px, 24vw);
  z-index: 6;
}

.location-online-card,
.location-country-card,
.location-bottom-stats {
  backdrop-filter: blur(18px);
  background: linear-gradient(145deg, rgba(3, 13, 28, .86), rgba(5, 22, 46, .78));
  border: 1px solid rgba(93, 170, 255, .18);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  padding: 18px;
}

.location-online-card {
  min-height: 210px;
  position: relative;
}

.location-online-card span,
.location-bottom-stats span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.location-online-card strong {
  color: var(--text);
  display: inline-block;
  font-size: 42px;
  line-height: 1;
}

.location-online-card small {
  background: rgba(13, 196, 156, .16);
  border-radius: 8px;
  color: #28e6bb;
  font-weight: 900;
  margin-left: 10px;
  padding: 6px 8px;
  vertical-align: top;
}

.location-online-card svg {
  bottom: 20px;
  height: 92px;
  left: 18px;
  position: absolute;
  right: 18px;
  width: calc(100% - 36px);
}

.location-online-card polyline {
  fill: none;
  filter: drop-shadow(0 0 10px rgba(27, 142, 255, .7));
  stroke: #1688ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.location-country-card {
  display: grid;
  gap: 16px;
}

.location-donut-wrap {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 118px minmax(0, 1fr);
}

.location-donut {
  height: 118px;
  transform: rotate(-90deg);
  width: 118px;
}

.location-donut-bg {
  fill: none;
  stroke: rgba(148, 168, 189, .24);
  stroke-width: 16;
}

.location-donut circle:not(.location-donut-bg) {
  fill: none;
  stroke: var(--segment);
  stroke-dasharray: calc(var(--dash) * 1.884) 188.4;
  stroke-dashoffset: calc(var(--offset) * -1.884);
  stroke-linecap: butt;
  stroke-width: 16;
}

.location-country-list {
  display: grid;
  gap: 8px;
}

.location-bottom-stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.location-bottom-stats strong {
  color: var(--text);
  display: block;
  font-size: 26px;
  line-height: 1;
}

.location-map-legend {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(3, 13, 28, .72);
  border: 1px solid rgba(93, 170, 255, .18);
  border-radius: 10px;
  bottom: 22px;
  display: grid;
  gap: 3px 10px;
  grid-template-columns: 12px 1fr;
  left: 22px;
  padding: 14px 18px;
  position: absolute;
  z-index: 6;
}

.location-map-legend span {
  background: #1688ff;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(22, 136, 255, .78);
  height: 12px;
  width: 12px;
}

.location-map-legend strong {
  color: var(--text);
  font-size: 13px;
}

.location-map-legend em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  grid-column: 2;
}

.location-map-controls {
  border: 1px solid rgba(93, 170, 255, .24);
  border-radius: 10px;
  bottom: 18px;
  display: grid;
  overflow: hidden;
  position: absolute;
  right: 18px;
  z-index: 6;
}

.location-map-controls button {
  background: rgba(3, 13, 28, .82);
  border: 0;
  border-bottom: 1px solid rgba(93, 170, 255, .18);
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  height: 42px;
  width: 46px;
}

.location-map-controls button:last-child {
  border-bottom: 0;
}

.location-list-row {
  display: grid;
  gap: 7px 10px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  position: relative;
}

.location-list-row span,
.location-list-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.location-list-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-list-row i {
  background: linear-gradient(90deg, rgba(80, 199, 255, .78), rgba(80, 199, 255, .06));
  border-radius: 999px;
  grid-column: 2 / 4;
  height: 4px;
}

.location-list-empty {
  color: var(--muted);
  font-size: 13px;
}

.location-table-dashboard {
  display: grid;
  gap: 14px;
}

.location-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.location-summary-card {
  background: linear-gradient(145deg, rgba(8, 25, 41, .94), rgba(5, 18, 34, .9));
  border: 1px solid rgba(77, 179, 255, .24);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  min-width: 0;
  padding: 16px;
}

.location-summary-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}

.location-summary-card strong {
  color: var(--text);
  display: block;
  font-size: 26px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.location-summary-card small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 8px;
}

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

.location-data-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.location-panel-head h2 {
  margin: 3px 0 0;
}

.location-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.location-table th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
  padding: 0 10px 10px;
  text-align: left;
  text-transform: uppercase;
}

.location-table td {
  border-top: 1px solid rgba(77, 179, 255, .16);
  padding: 12px 10px;
  vertical-align: middle;
}

.location-table td:first-child {
  color: var(--muted);
  width: 34px;
}

.location-table td strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-table td span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 3px;
}

.location-table td i {
  background: linear-gradient(90deg, rgba(80, 199, 255, .88), rgba(80, 199, 255, .08));
  border-radius: 999px;
  display: block;
  height: 6px;
  min-width: 14px;
}

.location-table-empty {
  border: 1px dashed rgba(77, 179, 255, .18);
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.location-samples-panel {
  min-height: 0;
}

.location-preview-note-static {
  justify-self: start;
  left: auto;
  position: static;
  transform: none;
}

@media (max-width: 1180px) {
  .map-header-v2 {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .map-controls-v2 {
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(120px, .5fr));
  }

  .map-shell-v2 {
    grid-template-columns: 1fr;
  }

  .map-player-panel {
    min-height: 360px;
  }

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

  .location-world-map {
    height: 520px;
  }

  .location-summary-grid,
  .location-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .map-controls-v2 {
    grid-template-columns: 1fr;
  }

  .map-player-panel-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .map-player-panel-head .map-beta-pill {
    grid-column: 2;
    justify-self: start;
  }

  .location-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .location-topbar .select-field {
    width: 100%;
  }

  .location-summary-grid,
  .location-table-grid {
    grid-template-columns: 1fr;
  }

  .location-table {
    font-size: 12px;
  }

  .location-table th,
  .location-table td {
    padding-left: 7px;
    padding-right: 7px;
  }
}

@media (max-width: 1180px) {
  .script-warning-kpis,
  .script-warning-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .script-warning-kpis,
  .script-warning-layout {
    grid-template-columns: 1fr;
  }

  .script-warning-rank-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .script-warning-rank-count {
    grid-column: 2;
    justify-items: start;
  }
}


