:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #f2f7ff;
  background: #05080f;
  --canvas: #05080f;
  --surface: #090e17;
  --surface-raised: #0c141f;
  --muted: #8ba0bd;
  --line: #16243a;
  --accent: #007dff;
  --accent-soft: #3d9bff;
  --positive: #3fd69a;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); -webkit-font-smoothing: antialiased; }

/* ── the same surface the public site sits on ─────────────
   A fixed grid and a glow behind everything, so the portal reads as the
   same product rather than a plain admin panel. Both layers are fixed and
   behind the content, so nothing shifts when a page scrolls. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 125, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 125, 255, .055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 40% at 62% -8%, rgba(0, 125, 255, .2), transparent 70%),
    radial-gradient(ellipse 40% 30% at 96% 10%, rgba(0, 125, 255, .08), transparent 72%);
}
/* Panels sit over that glow, so they are see-through rather than flat. */
.sidebar, .topbar, .main { background-color: transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 125, 255, .3); border-radius: 999px; border: 3px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 125, 255, .55); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
::selection { color: #fff; background: #0061c9; }
.sidebar { width: 252px; position: fixed; inset: 0 auto 0 0; background: rgba(9, 14, 23, .82); backdrop-filter: blur(18px) saturate(140%); color: #f2f7ff; border-right: 1px solid var(--line); padding: 32px 22px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 16px; letter-spacing: 1.5px; }
.brand small { display: block; font-size: 9px; letter-spacing: 2.2px; color: #a8bcd6; margin-top: 4px; font-weight: 500; }
.brand-mark { flex: 0 0 39px; display: grid; place-items: center; width: 39px; height: 45px; color: #f2f7ff; background: linear-gradient(145deg, var(--accent), #0a2a52); clip-path: polygon(50% 0, 100% 17%, 92% 73%, 50% 100%, 8% 73%, 0 17%); font-size: 23px; filter: drop-shadow(0 0 14px rgba(0, 125, 255, .55)); }
.brand { text-shadow: 0 0 20px rgba(0, 125, 255, .4); }
.workspace-label { font-size: 10px; letter-spacing: 1.6px; color: #9ccbff; margin-top: 50px; }
.game-name { font-size: 14px; margin: 17px 0 28px; overflow-wrap: anywhere; }
.game-name span { display: block; font-size: 11px; color: var(--muted); margin-top: 7px; }
nav { display: grid; gap: 7px; }
.nav-item { border: 1px solid transparent; background: transparent; color: #c3d4ea; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 13px; border-radius: 8px; font-size: 15px; }
.nav-item { transition: background .16s, border-color .16s, color .16s; }
.nav-item.active { background: rgba(0, 125, 255, .14); border-color: rgba(0, 125, 255, .45); color: #fff;
  box-shadow: inset 3px 0 0 var(--accent), 0 0 24px rgba(0, 125, 255, .18); }
.nav-item.active span { color: var(--accent-soft); }
.nav-item:hover { background: #101a28; color: #f2f7ff; }
.nav-item span { font-size: 13px; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.plan-tag { font-size: 8px; font-weight: 600; letter-spacing: 1px; color: #e2ecf9; border: 1px solid #1d2f49; background: #101a28; padding: 13px 8px; text-align: center; border-radius: 6px; }
.staff { display: flex; gap: 10px; align-items: center; margin-top: 26px; font-size: 12px; }
.staff small { display: block; color: #a8bcd6; margin-top: 4px; font-size: 10px; }
.staff button { margin-left: auto; border: 0; background: none; color: #e2ecf9; font-size: 18px; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #1d2f49; border-radius: 50%; background: #16243a; color: #f2f7ff; }
.main { margin-left: 252px; }
.topbar { height: 77px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 45px; font-size: 12px; background: rgba(9, 14, 23, .74); backdrop-filter: blur(18px) saturate(150%); position: sticky; top: 0; z-index: 20; }
.breadcrumb { color: #a8bcd6; }
.breadcrumb span { margin: 0 14px; color: #007dff; }
.breadcrumb strong { color: #f2f7ff; font-weight: 500; }
.connection { border: 1px solid var(--line); border-radius: 20px; padding: 7px 12px; color: #c3d4ea; font-size: 10px; background: #101a28; }
.connection.live { color: var(--positive); }
.connection.live:before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--positive); border-radius: 50%; margin-right: 7px; }
.content { max-width: 1450px; margin: auto; padding: 42px 45px 20px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; gap: 20px; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.9px; color: var(--accent-soft); margin: 0 0 13px;
  text-shadow: 0 0 16px rgba(0, 125, 255, .5); }
h1 { font-size: 32px; letter-spacing: -1.1px; font-weight: 600; margin: 0 0 10px;
  text-shadow: 0 0 26px rgba(0, 125, 255, .35); }
h2 { font-weight: 600; letter-spacing: -.5px; margin: 0; }
.muted { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0; }
.button { background: #101a28; border: 1px solid #1d2f49; padding: 10px 16px; border-radius: 7px; color: #f2f7ff; font-size: 11px; white-space: nowrap;
  transition: background .18s, border-color .18s, box-shadow .22s; }
.button:hover { background: #16243a; border-color: var(--accent); box-shadow: 0 0 20px rgba(0, 125, 255, .22); }
.button.primary, button.primary, .button-primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 18px rgba(0, 125, 255, .28); }
.button.primary:hover, button.primary:hover, .button-primary:hover {
  background: var(--accent-soft); border-color: var(--accent-soft); box-shadow: 0 8px 28px rgba(0, 125, 255, .42); }
.hero { padding: 32px 35px; border-radius: 12px; position: relative;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0, 125, 255, .17), transparent 70%), #0a1119;
  border: 1px solid rgba(0, 125, 255, .3); display: flex; justify-content: space-between; overflow: hidden; min-height: 220px; }
.hero::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.hero-label { font-size: 9px; font-weight: 700; letter-spacing: 1.6px; color: #9ccbff; margin-bottom: 22px; }
.dot { display: inline-block; width: 6px; height: 6px; background: #6bb4ff; border-radius: 50%; margin-right: 7px; }
.hero h2 { font-size: 27px; color: #f2f7ff; }
.hero p { font-size: 12px; color: #e2ecf9; line-height: 1.8; max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-badges span { font-size: 9px; border: 1px solid #0061c9; padding: 7px 10px; border-radius: 5px; color: #f2f7ff; background: #16243a; }
.hero-emblem { font-size: 78px; line-height: 1.2; font-weight: 800; color: #9ccbff; text-align: center; align-self: center; margin: 0 30px; position: relative; isolation: isolate; }
.hero-emblem:before { content: ""; position: absolute; inset: -22px -25px; clip-path: polygon(50% 0, 100% 17%, 92% 73%, 50% 100%, 8% 73%, 0 17%); background: linear-gradient(145deg, #007dff, #1d2f49); z-index: -1; }
.hero-emblem span { display: block; font-size: 7px; letter-spacing: 1.5px; position: relative; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.metrics article { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; }
.metrics span { font-size: 11px; color: #c3d4ea; display: block; }
.metrics strong { display: block; font-size: 33px; font-weight: 500; letter-spacing: -1px; margin: 12px 0 7px; font-variant-numeric: tabular-nums; }
.metrics small { font-size: 10px; color: #a8bcd6; }
.lower-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px;
  transition: border-color .25s, box-shadow .25s; }
.panel:hover { border-color: rgba(0, 125, 255, .34); box-shadow: 0 0 34px rgba(0, 125, 255, .07); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.panel-heading h2 { font-size: 15px; }
.subtle { font-size: 10px; color: #a8bcd6; }
.health-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 16px 0; gap: 15px; }
.health-row:first-child { border-top: 0; }
.health-row strong { display: block; font-size: 11px; font-weight: 500; }
.health-row small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.badge { padding: 5px 8px; border: 1px solid #1d6b4e; border-radius: 5px; font-size: 9px; background: #101a28; color: #7fe5c0; white-space: nowrap; }
.badge.warn { background: #6b5220; border-color: #c79a34; color: #ffc24d; }
.badge.fail { background: #16243a; border-color: #c0414f; color: #ffa8b1; }
.badge.configured { background: #1d2f49; border-color: #1d2f49; color: #f2f7ff; }
.plan-panel { background: linear-gradient(155deg, #16243a, #101a28); }
.plan-panel h2 { font-size: 25px; line-height: 1.25; margin-bottom: 15px; }
.price { display: block; font-size: 12px; margin: 20px 0; color: #f2f7ff; }
.feature-list { font-size: 11px; color: #c3d4ea; line-height: 2; }
.feature-list div:before { content: "✓"; color: #6bb4ff; margin-right: 10px; }
.boundary { border: 1px dashed #1d2f49; padding: 18px 24px; border-radius: 8px; margin-top: 24px; display: flex; gap: 28px; align-items: center; }
.boundary strong { font-size: 11px; white-space: nowrap; color: #f2f7ff; }
.boundary p { font-size: 11px; color: #a8bcd6; line-height: 1.7; margin: 0; }
footer { font-size: 10px; color: #8ba0bd; padding: 25px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.notice { background: #16243a; border: 1px solid #c79a34; border-radius: 7px; padding: 14px; font-size: 12px; color: #ffd98a; line-height: 1.7; overflow-wrap: anywhere; }
.records { overflow-x: auto; }
.records table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; min-width: 620px; }
.records th { font-size: 9px; color: #c3d4ea; font-weight: 500; padding: 0 12px 14px; text-transform: uppercase; letter-spacing: .7px; }
.records td { padding: 17px 12px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.8; max-width: 290px; overflow-wrap: anywhere; }
.records tbody tr:hover { background: #101a28; }
.records .empty { padding: 45px; text-align: center; color: var(--muted); font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
dialog { background: var(--surface); border: 1px solid #27405f; border-radius: 12px; max-width: 480px; width: calc(100% - 35px); padding: 28px; color: #f2f7ff; box-shadow: 0 20px 100px #0009; }
dialog::backdrop { background: #030917bd; backdrop-filter: blur(4px); }
.icon-button { border: 0; background: none; font-size: 24px; color: #e2ecf9; }
label { display: block; font-size: 11px; font-weight: 500; margin: 18px 0; color: #f2f7ff; }
input, select, textarea { display: block; width: 100%; padding: 11px 12px; border: 1px solid #1d2f49; border-radius: 6px; background: #0c141f; margin-top: 8px; color: #f2f7ff; outline-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #9ccbff; }
input[readonly], textarea[readonly] { background: #101a28; color: #e2ecf9; }
input[type=checkbox] { accent-color: #007dff; }
textarea { resize: vertical; }
.primary { display: flex; align-items: center; justify-content: space-between; width: 100%; background: #007dff; color: #0c141f; border: 1px solid #3d9bff; border-radius: 7px; padding: 14px 18px; font-size: 12px; font-weight: 650; margin-top: 22px; }
.primary:hover { background: #3d9bff; }
.fine { font-size: 10px; color: #a8bcd6; line-height: 1.8; margin-top: 22px; }
.error { font-size: 11px; color: #ffa8b1; background: #16243a; border: 1px solid #c0414f; padding: 12px; border-radius: 6px; }
.login-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: #0c141f; }
.login-card { width: 360px; max-width: calc(100% - 50px); margin: auto; padding: 50px 0; }
.login-card .brand { font-size: 16px; letter-spacing: 1.7px; margin-bottom: 65px; }
.login-card h1 { font-size: 42px; line-height: 1.13; margin-bottom: 23px; }
.login-card form { margin-top: 35px; }
.login-art { background: radial-gradient(ellipse at center, #1d2f49, #101a28 70%); border-left: 1px solid #1d2f49; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.large-shield { font-size: 140px; font-weight: 800; color: #f2f7ff; background: linear-gradient(145deg, #9ccbff, #1d2f49); width: 240px; height: 280px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 17%, 92% 73%, 50% 100%, 8% 73%, 0 17%); z-index: 1; }
.login-art p { font-size: 11px; color: #e2ecf9; text-align: center; line-height: 2.1; letter-spacing: 2px; margin-top: 50px; z-index: 1; }
.orbit { position: absolute; width: 700px; height: 700px; border: 1px solid #3c659554; border-radius: 50%; box-shadow: 0 0 0 80px #10254055, 0 0 0 81px #3c659554, 0 0 0 160px #10254033, 0 0 0 161px #3c659554; }
[hidden] { display: none !important; }
@media (min-width: 1550px) { .content { padding-top: 55px; } .hero { min-height: 245px; } }
@media (max-width: 1100px) {
  .sidebar { width: 215px; padding: 28px 18px; }
  .sidebar .brand { font-size: 13px; gap: 9px; letter-spacing: 1px; }
  .main { margin-left: 215px; }
  .content { padding: 30px 25px; }
  .topbar { padding: 0 25px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .lower-grid { grid-template-columns: 1fr; }
  .hero-emblem { display: none; }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: auto; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { font-size: 14px; }
  .workspace-label, .game-name, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; overflow: auto; gap: 4px; margin-top: 18px; }
  .nav-item { padding: 9px 12px; white-space: nowrap; }
  .nav-item span { font-size: 11px; }
  .main { margin-left: 0; }
  .topbar { height: 55px; gap: 12px; }
  .content { padding: 27px 18px; }
  .page-heading { align-items: flex-start; }
  h1 { font-size: 26px; }
  .hero { padding: 25px; }
  .hero h2 { font-size: 22px; }
  .metrics { gap: 10px; }
  .metrics article { padding: 18px; }
  .metrics strong { font-size: 28px; }
  .boundary { display: block; }
  .boundary p { margin-top: 10px; }
  .login-page { display: block; }
  .login-card { padding: 70px 0; }
  .login-art { display: none; }
  .panel { padding: 20px; }
  .subtle { display: none; }
}

/* Sovereign crown logo (transparent PNG), in place of the old letter marks. */
.brand-logo { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.emblem-logo { display: block; width: 84px; height: 84px; margin: 0 auto 4px; position: relative; object-fit: contain; }
.large-shield img { width: 150px; height: 150px; object-fit: contain; }
