:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #141414;
  --line: #333333;
  --ink: #f4f4f4;
  --muted: #a5a5a5;
  --accent: #ffffff;
  --presence: #b9c7d2;
  --ban: #d29991;
  --note: #b9adcd;
  --warning: #c9b68d;
  --kick: #96b2c4;
  --blacklist: #c8a1b7;
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 9px 12px;
  cursor: pointer;
}
button:hover {
  background: #242424;
  border-color: #999999;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
svg g:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select {
  background: #0e0e0e;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  width: 100%;
  padding: 10px 9px;
  margin-top: 7px;
  min-width: 0;
}
label {
  display: block;
  font-size: 12px;
  color: #cccccc;
  margin: 17px 0;
}
header {
  height: 85px;
  border-bottom: 1px solid var(--line);
  padding: 0 3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 750;
  letter-spacing: 3px;
}
.brand-mark {
  height: 40px;
  width: 40px;
  object-fit: contain;
}
.brand-wordmark {
  display: block;
  width: 170px;
  height: auto;
}
.brand small {
  font-size: 9px;
  display: block;
  letter-spacing: 2.5px;
  margin-top: 4px;
  color: var(--muted);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
main {
  max-width: 1920px;
  margin: auto;
  padding: 30px 3%;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 650;
  margin: 0 0 12px;
}
h1 {
  font-family: inherit;
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h2 {
  font-size: 15px;
  font-weight: 550;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.muted,
.hint {
  color: var(--muted);
  line-height: 1.5;
}
.muted {
  margin: 0;
}
.hint {
  font-size: 11px;
}
.live-status {
  font-size: 11px;
  color: var(--muted);
  max-width: 240px;
  line-height: 1.7;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 24px;
}
.metrics > div {
  padding: 19px 24px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.metrics > div:last-child {
  border: 0;
}
.metrics span {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.metrics strong {
  display: block;
  font-size: 30px;
  font-weight: 450;
  margin-top: 8px;
  letter-spacing: -1px;
}
.workspace {
  display: grid;
  grid-template-columns: 220px minmax(340px, 1fr) 275px;
  min-height: 725px;
  height: 760px;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: var(--panel);
}
.filters {
  overflow-y: auto;
  padding: 23px 18px;
  border-right: 1px solid var(--line);
}
.presets {
  display: flex;
  margin-top: 23px;
  gap: 5px;
}
.presets button {
  flex: 1;
  font-size: 11px;
  padding: 8px 4px;
}
.presets .active {
  background: #303030;
  color: var(--accent);
  border-color: #f4f4f4;
}
fieldset {
  min-inline-size: 0;
  border: 0;
  padding: 0;
  margin: 24px 0;
}
legend {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 12px;
}
.check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--presence);
}
.ban {
  background: var(--ban);
}
.note {
  background: var(--note);
}
.warning {
  background: var(--warning);
}
.kick {
  background: var(--kick);
}
.blacklist {
  background: var(--blacklist);
}
.damage {
  background: #d19b80;
}
.death {
  background: #c17f7f;
}
.radio {
  background: #a6b899;
}
.pm {
  background: #b7a3cc;
}
.communication {
  background: #91b7c6;
}
.other {
  background: #ababab;
}
.log-explorer {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  scroll-margin-top: 20px;
}
.log-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.log-heading .hint {
  margin-bottom: 0;
}
.log-controls {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 3fr;
  gap: 24px;
  align-items: start;
}
.log-player-picker {
  position: relative;
  min-width: 0;
}
.log-player-picker label {
  margin-bottom: 7px;
}
.log-player-options {
  position: absolute;
  z-index: 3;
  top: 100%;
  width: 100%;
  max-height: 250px;
  overflow: auto;
  background: #202020;
  box-shadow: 0 8px 16px #0009;
}
.log-player-options .person {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
}
#log-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  align-items: end;
  gap: 12px;
}
#log-filters label {
  min-width: 0;
  margin-bottom: 0;
}
#log-filters .primary {
  white-space: nowrap;
}
.log-selected,
.log-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
}
.player-chip {
  font-size: 11px;
  padding: 6px 9px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.log-status {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.log-results {
  display: grid;
  gap: 12px;
}
.log-record {
  padding: 18px;
  background: #101010;
  border: 1px solid var(--line);
  min-width: 0;
}
.log-record-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.8px;
}
.log-record-heading time {
  color: var(--muted);
}
.log-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.7;
}
.log-source {
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.log-source summary {
  cursor: pointer;
}
#log-more {
  margin-top: 18px;
}
@media (max-width: 1150px) {
  .log-controls {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 700px) {
  .log-explorer {
    padding: 16px;
  }
  #log-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .log-heading {
    display: block;
  }
  .log-heading > button {
    margin-top: 14px;
  }
  .log-record-heading {
    flex-direction: column;
    gap: 6px;
  }
}
.primary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 23px;
  font-weight: 650;
  padding: 12px;
}
.primary:hover {
  background: var(--accent);
  color: var(--bg);
}
.reading-note {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.reading-note strong {
  color: #dedede;
  font-weight: 500;
}
.graph-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #101010;
}
.graph-heading {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.graph-heading .hint {
  display: block;
  margin-top: 7px;
}
.graph-heading button {
  font-size: 11px;
  white-space: nowrap;
}
.graph-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background-image: radial-gradient(#292929 1px, transparent 1px);
  background-size: 22px 22px;
}
#graph {
  width: 100%;
  height: 100%;
  min-height: 0;
  position: absolute;
  touch-action: none;
}
.graph-footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
#edge-summary {
  max-width: 65%;
  text-align: right;
}
#notice {
  font-size: 11px;
  color: #c6c6c6;
  background: #ffffff06;
  padding: 10px 20px;
  line-height: 1.5;
}
#notice:empty {
  display: none;
}
#empty,
#loading {
  position: absolute;
  top: 40%;
  width: 100%;
  padding: 25px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}
#loading {
  top: 45%;
  background: #101010ed;
  color: var(--accent);
}
.people-panel {
  border-left: 1px solid var(--line);
  max-height: 760px;
  overflow: auto;
}
.people-search {
  padding: 24px 18px 10px;
}
.people-search label {
  margin: 0;
}
.directory {
  padding: 5px 10px;
  max-height: 740px;
  overflow: auto;
}
.person {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 12px 8px;
  border: 0;
  border-bottom: 1px solid #303030;
  border-radius: 0;
  text-align: left;
}
.person .avatar {
  width: 30px;
  height: 30px;
  background: #292929;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.person .name {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 150px;
}
.person small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
#detail {
  padding: 16px;
}
#detail h2 {
  font-family: inherit;
  font-size: 25px;
  margin: 24px 0 8px;
  overflow-wrap: anywhere;
}
#detail h3 {
  font-size: 12px;
  margin: 24px 0 10px;
}
#detail p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.detail-stat {
  display: inline-block;
  padding: 8px;
  background: #272727;
  color: var(--accent);
  font-size: 11px;
  border-radius: 0;
  margin-top: 8px;
}
.event {
  border-left: 2px solid var(--note);
  padding: 0 0 2px 12px;
  margin: 20px 0;
}
.event strong {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.event p {
  white-space: pre-wrap;
}
.event .meta {
  font-size: 10px;
  color: var(--muted);
}
.health {
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.health summary {
  cursor: pointer;
  color: var(--ink);
}
#health-detail {
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 4px;
  margin-top: 14px;
}
.health p {
  max-width: 1000px;
}
footer {
  padding: 0 3% 30px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.edge {
  cursor: pointer;
  vector-effect: non-scaling-stroke;
}
.network-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.network-controls label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.comparison-summary {
  overflow-x: auto;
  margin: 16px 0;
}
.comparison-summary:empty {
  display: none;
}
.comparison-kind {
  padding: 5px 10px;
  border: 1px solid #444;
  border-radius: 4px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 16px 0;
}
.comparison-table th,
.comparison-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #333;
}
.comparison-table th {
  font-size: 11px;
  color: var(--muted);
}
.comparison-table td {
  font-size: 12px;
}
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
}
.node {
  cursor: grab;
}
.node text {
  font-size: 11px;
  fill: #dddddd;
  paint-order: stroke;
  stroke: #101010;
  stroke-width: 4px;
  pointer-events: none;
}
.node:focus circle {
  stroke: white;
  stroke-width: 3px;
}
.node circle {
  transition: opacity 0.15s;
}
.node.selected circle {
  stroke: #fff;
  stroke-width: 3px;
}
.dim {
  opacity: 0.13;
}
.error {
  color: #f7a694 !important;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 240px minmax(500px, 1fr) 310px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    height: auto;
    grid-template-columns: 205px minmax(320px, 1fr);
  }
  .graph-wrap {
    min-height: 530px;
  }
  .people-panel {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: none;
  }
  .directory {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-height: 250px;
  }
  .people-search {
    max-width: 450px;
  }
  #detail {
    max-width: 750px;
  }
  .person .name {
    max-width: 130px;
  }
  .live-status {
    max-width: 180px;
  }
}
@media (max-width: 700px) {
  .brand-wordmark {
    width: 125px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .brand {
    gap: 9px;
  }
  header {
    height: 70px;
  }
  .header-right > span {
    display: none;
  }
  .intro {
    display: block;
  }
  .live-status {
    margin-top: 16px;
    max-width: none;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics > div {
    border-bottom: 1px solid var(--line);
  }
  .metrics strong {
    font-size: 26px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .filters {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  #filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 16px;
  }
  #filters > .eyebrow,
  #filters > h2,
  #filters > fieldset,
  #filters > .hint {
    grid-column: 1/-1;
  }
  .presets {
    grid-column: 1/-1;
  }
  fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 0 15px;
    margin: 10px 0;
  }
  .primary {
    align-self: center;
  }
  .reading-note {
    display: none;
  }
  .graph-wrap {
    height: 530px;
    flex: none;
  }
  .graph-heading {
    padding: 16px;
  }
  .graph-heading .hint {
    max-width: 220px;
  }
  .directory {
    grid-template-columns: repeat(2, 1fr);
  }
  footer {
    gap: 24px;
    line-height: 1.6;
  }
  .header-right button {
    font-size: 11px;
  }
}
.auth-page {
  max-width: 620px;
  margin: 12vh auto;
  padding: 32px;
}
.auth-page p {
  line-height: 1.7;
}
.auth-link {
  display: inline-block;
  margin-top: 24px;
  color: #fff;
}
[hidden] {
  display: none !important;
}

.access-page {
  max-width: 860px;
  margin: 5vh auto;
}
.access-page section {
  margin-top: 36px;
}
.access-card {
  border: 1px solid #384044;
  border-radius: 10px;
  padding: 20px;
  margin: 12px 0;
}
.access-card form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.access-id {
  overflow-wrap: anywhere;
  color: #b1babd;
}
#manage-access {
  color: inherit;
  font-size: 13px;
}
