@font-face {
  font-family: "Rajdhani";
  src: url("/admin/rajdhani-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("/admin/rajdhani-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("/admin/rajdhani-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --arena: #03070d;
  --command: #07111b;
  --raised: #0a1824;
  --highlight: #0d2030;
  --ink: #f5f8fc;
  --muted: #9db2c6;
  --blue: #087ff0;
  --blue-bright: #179ef3;
  --cyan: #25ded8;
  --focus: #4ef7f0;
  --amber: #ffbd62;
  --coral: #ff7f78;
  --line: rgba(139, 181, 214, 0.2);
  --line-strong: rgba(139, 181, 214, 0.38);
  --display: "Rajdhani", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--display);
  background: var(--arena);
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--arena);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% -12%, rgba(8, 127, 240, 0.13), transparent 34rem),
    var(--arena);
  color: var(--ink);
  font-size: 16px;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(178, 222, 255, 0.015) 3px 4px);
  content: "";
  pointer-events: none;
}

button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

::selection {
  color: #001719;
  background: var(--cyan);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--arena); }
::-webkit-scrollbar-thumb { background: #244052; border: 2px solid var(--arena); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #001719;
  background: var(--focus);
  font-weight: 700;
  text-transform: uppercase;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.login-view {
  display: grid;
  min-height: 100vh;
  grid-template: auto 1fr auto / minmax(20px, 1fr) minmax(320px, 1120px) minmax(20px, 1fr);
  align-items: center;
  padding: 30px 0;
}

.login-view::after {
  position: fixed;
  z-index: -1;
  top: 0;
  right: 8vw;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent 5%, rgba(37, 222, 216, 0.42) 45%, transparent 95%);
  content: "";
}

.login-brand {
  grid-area: 1 / 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.login-brand svg, .product-mark svg {
  width: 38px;
  height: 38px;
  fill: var(--blue);
}

.login-brand .mark-core, .product-mark .mark-core { fill: var(--cyan); }

.login-console {
  grid-area: 2 / 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 0.8fr);
  grid-template-rows: auto auto;
  border: 1px solid var(--line-strong);
  background: rgba(7, 17, 27, 0.96);
  box-shadow: 28px 34px 80px rgba(0, 0, 0, 0.42);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.login-copy {
  grid-row: 1 / 3;
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(36px, 6vw, 76px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent 34%, rgba(3, 7, 13, 0.92)),
    linear-gradient(135deg, rgba(8, 127, 240, 0.17), transparent 58%);
}

.login-copy h1 {
  max-width: 7ch;
  margin: 0;
  font-size: clamp(3.7rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.82;
  text-transform: uppercase;
  text-wrap: balance;
}

.login-copy p {
  max-width: 31ch;
  margin: 28px 0 0;
  color: #c0d1df;
  font-size: 1.05rem;
  line-height: 1.45;
}

#login-form {
  display: grid;
  align-content: end;
  gap: 9px;
  padding: clamp(34px, 5vw, 62px);
}

#login-form label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#login-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink);
  background: #040b12;
  caret-color: var(--cyan);
}

#login-form input:focus { border-color: var(--focus); }

.form-error {
  margin: 10px 0 0;
  color: #ffaaa4;
  font-size: 0.92rem;
  line-height: 1.35;
}

.primary-command {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid var(--blue-bright);
  border-radius: 3px;
  color: var(--ink);
  background: #086cd5;
  box-shadow: 0 16px 30px rgba(0, 74, 168, 0.26);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-command:hover:not(:disabled) {
  background: var(--blue);
  box-shadow: 0 20px 36px rgba(0, 74, 168, 0.34);
  transform: translateY(-2px);
}

.primary-command:disabled { cursor: wait; opacity: 0.68; }
.button-state { display: grid; width: 24px; height: 24px; place-items: center; color: var(--cyan); }
.button-state svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: square; stroke-linejoin: miter; stroke-width: 1.8; }

.access-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column: 2;
  border-top: 1px solid var(--line);
}

.access-notes p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.access-notes p:last-child { border-right: 0; }
.access-notes strong { font-size: 0.72rem; text-transform: uppercase; }
.access-notes span { color: var(--muted); font-family: var(--mono); font-size: 0.58rem; line-height: 1.4; }

.login-footer {
  grid-area: 3 / 2;
  margin: 24px 0 0;
  color: #6f879b;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.dashboard-view { min-height: 100vh; }
.dashboard-view[data-telemetry="stale"] main { opacity: 0.78; }

.command-bar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  min-height: 74px;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(3, 7, 13, 0.96);
  backdrop-filter: blur(14px);
}

.product-mark {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(18px, 3vw, 48px);
  color: var(--ink);
  text-decoration: none;
}

.product-mark span { display: grid; line-height: 1; }
.product-mark strong { font-size: 1.1rem; letter-spacing: 0.08em; }
.product-mark small { margin-top: 5px; color: var(--muted); font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.11em; }

.service-signal {
  display: flex;
  min-width: 270px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-signal > span:last-child { display: grid; }
.service-signal strong { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.service-signal small { margin-top: 3px; color: var(--muted); font-family: var(--mono); font-size: 0.58rem; }
.signal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.service-signal[data-state="healthy"] .signal-dot { background: var(--cyan); box-shadow: 0 4px 12px rgba(37, 222, 216, 0.45); }
.service-signal[data-state="warning"] .signal-dot { background: var(--amber); }
.service-signal[data-state="critical"] .signal-dot,
.service-signal[data-state="offline"] .signal-dot { background: var(--coral); }

.command-actions {
  display: flex;
  justify-self: end;
  align-items: stretch;
  padding-right: clamp(12px, 2vw, 30px);
}

.quiet-command {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid var(--line);
  color: #c4d4e1;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.quiet-command:hover:not(:disabled) { color: var(--cyan); background: var(--raised); }
.quiet-command:disabled { color: #607789; cursor: wait; }
.danger-command:hover:not(:disabled) { color: var(--coral); }

main {
  width: min(1540px, calc(100% - clamp(30px, 5vw, 84px)));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 96px) 0 80px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(400px, 1fr);
  grid-template-areas: "heading presence" "runway runway";
  gap: 38px 64px;
  align-items: end;
}

.dashboard-view.is-ready .overview-grid {
  animation: command-deck-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.overview-heading { grid-area: heading; }
.overview-heading h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(3.6rem, 6.2vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.82;
  text-transform: uppercase;
  text-wrap: balance;
}

.overview-heading p, .section-heading p {
  max-width: 55ch;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.presence-readout {
  position: relative;
  grid-area: presence;
  display: grid;
  min-height: 230px;
  grid-template-columns: minmax(180px, auto) 1fr;
  align-items: end;
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(37, 222, 216, 0.38);
  background: linear-gradient(120deg, rgba(8, 127, 240, 0.12), transparent 56%), var(--command);
  box-shadow: 18px 26px 58px rgba(0, 0, 0, 0.34);
}

.presence-value {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: clamp(5rem, 10vw, 9.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.72;
}

.presence-copy { display: grid; gap: 3px; padding: 0 0 4px 28px; }
.presence-copy strong { font-size: 1.5rem; text-transform: uppercase; }
.presence-copy span { color: var(--muted); line-height: 1.35; }

.presence-wave {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  height: 36px;
  align-items: end;
  gap: 5px;
  opacity: 0.72;
}

.presence-wave i { width: 2px; height: 35%; background: var(--cyan); }
.presence-wave i:nth-child(2) { height: 68%; }
.presence-wave i:nth-child(3) { height: 45%; }
.presence-wave i:nth-child(4) { height: 88%; }
.presence-wave i:nth-child(5) { height: 58%; }
.presence-wave i:nth-child(6) { height: 30%; }

.signal-runway {
  grid-area: runway;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  border: 1px solid var(--line-strong);
  background: var(--line);
  gap: 1px;
}

.runway-station {
  display: grid;
  min-height: 136px;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  padding: 22px 26px;
  background: rgba(7, 17, 27, 0.98);
}

.runway-station > span {
  color: #c3d4e2;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.runway-station strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.runway-station small { color: var(--muted); }
.live-station { background: linear-gradient(120deg, rgba(37, 222, 216, 0.09), transparent 70%), var(--command); }
.live-station strong { color: var(--cyan); }

.identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 1px;
  margin-top: 74px;
  border: 1px solid var(--line-strong);
  background: var(--line);
}

.match-directory,
.online-directory {
  min-width: 0;
  padding: clamp(26px, 4vw, 48px);
  background: var(--command);
}

.online-directory { background: var(--raised); }
.identity-heading { align-items: end; }
.identity-heading > div { min-width: 0; }
.identity-heading p { margin-top: 14px; text-align: left; }

.section-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-count span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.match-list,
.online-list {
  border-top: 1px solid var(--line);
}

.match-entry {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.match-pairing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.account-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-player {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
}

.match-player:last-child { justify-content: flex-end; text-align: right; }

.match-player::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 4px 12px rgba(37, 222, 216, 0.45);
  content: "";
}

.match-player:last-child::before { order: 2; }
.match-player[data-connection="reconnecting"]::before { background: var(--amber); box-shadow: none; }

.versus-mark {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.match-detail {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.5;
  text-align: center;
}

.online-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-width: 0;
  min-height: 66px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.online-identity,
.player-state {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.online-identity small,
.player-state small {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-state { justify-items: end; text-align: right; }
.player-state strong { color: var(--cyan); font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; }
.online-entry[data-status="reconnecting"] .player-state strong { color: var(--amber); }
.online-entry[data-status="matchmaking"] .player-state strong { color: var(--blue-bright); }

.directory-empty {
  margin: 0;
  padding: 24px 4px;
  color: var(--muted);
  line-height: 1.45;
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(370px, 0.62fr);
  gap: 1px;
  margin-top: 74px;
  border: 1px solid var(--line-strong);
  background: var(--line);
}

.flow-console, .health-console, .activity-ledger {
  padding: clamp(26px, 4vw, 48px);
  background: var(--command);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-transform: uppercase;
}

.section-heading p { max-width: 32ch; margin: 0; text-align: right; }

.flow-path {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr;
  align-items: center;
}

.flow-node {
  display: grid;
  min-width: 0;
  min-height: 160px;
  align-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  background: #050d15;
}

.flow-node span { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.flow-node strong { font-family: var(--mono); font-size: clamp(2.2rem, 4vw, 3.8rem); font-variant-numeric: tabular-nums; font-weight: 500; }
.flow-node small { color: var(--muted); }
.flow-node.active-node { border-color: rgba(37, 222, 216, 0.45); background: var(--raised); }
.flow-node.active-node strong { color: var(--cyan); }
.flow-connector { height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--cyan), var(--line-strong)); }

.flow-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-footer p, .runtime-strip p {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.flow-footer p:last-child, .runtime-strip p:last-child { border-right: 0; }
.flow-footer span, .runtime-strip span { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; }
.flow-footer strong, .runtime-strip strong { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; }

.health-console { background: var(--raised); }
.health-console .section-heading { display: block; }
.health-console .section-heading p { margin-top: 14px; text-align: left; }
.health-list { display: grid; gap: 28px; }

.health-row > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.health-row span { color: #c6d6e3; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.health-row strong { font-family: var(--mono); font-size: 1.1rem; font-variant-numeric: tabular-nums; font-weight: 500; }
.health-row small { display: block; margin-top: 8px; color: var(--muted); font-family: var(--mono); font-size: 0.62rem; }

.capacity-track { height: 6px; margin-top: 10px; overflow: hidden; background: #02070c; }
.capacity-track i { display: block; width: 100%; height: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease; }
.health-row[data-level="warning"] .capacity-track i { background: var(--amber); }
.health-row[data-level="critical"] .capacity-track i { background: var(--coral); }
.health-row[data-level="unknown"] .capacity-track i { background: var(--muted); }

.runtime-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.runtime-strip p { padding-inline: 12px; }
.runtime-strip strong { font-size: 0.78rem; }

.activity-ledger {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) 1fr;
  gap: 70px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
}

.activity-ledger .section-heading { display: block; margin: 0; }
.activity-ledger .section-heading p { margin-top: 14px; text-align: left; }

.ledger-table { border-top: 1px solid var(--line); }
.ledger-table [role="row"] {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 20px;
  min-height: 54px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.ledger-table span { color: #c4d3df; }
.ledger-table strong { color: var(--cyan); font-family: var(--mono); font-size: 1.05rem; font-variant-numeric: tabular-nums; font-weight: 500; }

.audit-console {
  margin-top: 74px;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  background: var(--command);
}

.audit-heading > div { min-width: 0; }
.audit-heading p { margin-top: 14px; text-align: left; }

.audit-filter {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-filter select {
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink);
  background: var(--inset-field, #040b12);
  cursor: pointer;
}

.audit-list {
  max-height: min(70vh, 760px);
  margin: 0;
  overflow-y: auto;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.audit-entry {
  display: grid;
  grid-template-columns: minmax(190px, 0.3fr) 1fr;
  gap: 26px;
  min-width: 0;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.audit-time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.audit-copy { display: grid; min-width: 0; gap: 3px; }
.audit-copy strong { color: var(--cyan); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; }
.audit-entry[data-category="authentication"] .audit-copy strong { color: var(--blue-bright); }
.audit-entry[data-category="operators"] .audit-copy strong { color: var(--amber); }
.audit-copy p { margin: 0; overflow-wrap: anywhere; color: #c4d3df; line-height: 1.4; }
.audit-copy small { color: var(--muted); font-family: var(--mono); font-size: 0.6rem; }

.audit-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.dashboard-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 26px clamp(18px, 4vw, 58px);
  border-top: 1px solid var(--line);
  color: #748da1;
  background: #02060b;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.dashboard-footer p { margin: 0; }

noscript {
  position: fixed;
  z-index: 200;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 18px;
  color: var(--arena);
  background: var(--amber);
}

@keyframes command-deck-in {
  from { opacity: 0.65; filter: blur(7px); clip-path: inset(0 0 18% 0); transform: translateY(18px); }
  to { opacity: 1; filter: none; clip-path: inset(0); transform: none; }
}

@media (max-width: 1180px) {
  .identity-grid { grid-template-columns: 1fr; }
  .online-directory { border-top: 1px solid var(--line); }
  .operations-grid { grid-template-columns: 1fr; }
  .health-console { border-top: 1px solid var(--line); }
  .health-list { grid-template-columns: repeat(3, 1fr); }
  .runtime-strip { margin-top: 40px; }
  .login-console { grid-template-columns: 1fr 0.95fr; }
  .access-notes { grid-template-columns: 1fr; }
  .access-notes p { border-right: 0; border-bottom: 1px solid var(--line); }
  .access-notes p:last-child { border-bottom: 0; }
}

@media (max-width: 900px) {
  .command-bar { grid-template-columns: 1fr auto; }
  .service-signal { grid-row: 2; grid-column: 1 / -1; min-height: 50px; border-top: 1px solid var(--line); border-right: 0; border-left: 0; }
  .command-actions { grid-column: 2; grid-row: 1; }
  .overview-grid { grid-template-columns: 1fr; grid-template-areas: "heading" "presence" "runway"; }
  .overview-heading h1 { max-width: 11ch; }
  .signal-runway { grid-template-columns: 1fr; }
  .runway-station { min-height: 112px; }
  .flow-path { grid-template-columns: 1fr; }
  .flow-connector { width: 1px; height: 22px; justify-self: center; background: linear-gradient(var(--line-strong), var(--cyan), var(--line-strong)); }
  .flow-node { min-height: 130px; }
  .activity-ledger { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .login-view { grid-template-columns: 16px 1fr 16px; padding: 18px 0; }
  .login-console { grid-template-columns: 1fr; clip-path: none; }
  .login-copy { grid-row: auto; min-height: 270px; padding: 34px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-copy h1 { font-size: clamp(3.3rem, 16vw, 5rem); }
  #login-form { padding: 28px; }
  .access-notes { grid-column: 1; grid-template-columns: 1fr; }
  .access-notes p:nth-child(n+2) { display: none; }
  .product-mark { padding: 0 14px; }
  .product-mark svg { width: 32px; }
  .product-mark small { display: none; }
  .quiet-command { padding: 0 10px; font-size: 0.64rem; }
  main { width: min(100% - 28px, 1540px); padding-top: 46px; }
  .overview-grid { gap: 28px; }
  .overview-heading h1 { font-size: clamp(3.1rem, 16vw, 4.8rem); }
  .presence-readout { min-height: 210px; grid-template-columns: 1fr; align-content: end; }
  .presence-value { font-size: clamp(5.2rem, 26vw, 8rem); }
  .presence-copy { padding: 22px 0 0; }
  .runway-station { padding: 20px; }
  .identity-grid, .operations-grid, .audit-console { margin-top: 48px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 14px; text-align: left; }
  .identity-heading .section-count { display: block; margin-top: 18px; }
  .match-pairing { gap: 10px; }
  .match-player { font-size: 1rem; }
  .online-entry { gap: 14px; }
  .flow-footer, .runtime-strip, .health-list { grid-template-columns: 1fr; }
  .flow-footer p, .runtime-strip p { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-footer p:last-child, .runtime-strip p:last-child { border-bottom: 0; }
  .health-list { gap: 24px; }
  .activity-ledger { padding: 28px; }
  .audit-heading .audit-filter { margin-top: 22px; }
  .audit-entry { grid-template-columns: 1fr; gap: 6px; }
  .dashboard-footer { display: grid; }
}

@media (max-width: 520px) {
  .match-pairing {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 7px;
  }

  .match-player:last-child {
    justify-content: flex-start;
    text-align: left;
  }

  .match-player:last-child::before { order: 0; }
  .versus-mark { margin-inline-start: 17px; }
  .match-detail { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
