@font-face {
  font-family: "Inter Tight";
  src: url("InterTight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font: 400 15px/1.5 "Inter Tight", sans-serif;
  color: #eeedee;
  background: #08060a;
  font-variant-numeric: tabular-nums;
  --muted: #b6afb8;
  --line: rgb(255 255 255 / 7.275%);
  --focus: #db7739;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 62rem; margin: auto; padding: 1.5rem clamp(1rem, 4vw, 2rem); }
header { padding: .4rem 0 1.25rem; }
header a { color: inherit; font-weight: 700; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; font-weight: 600; margin: 0 0 .65rem; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; margin-top: 1rem; }
p { color: var(--muted); margin: 0 0 1rem; }
section {
  margin: 0 0 .75rem;
  padding: 1rem;
  background: linear-gradient(rgb(255 255 255 / 4.225%), transparent 6rem), #121014;
  border: 1px solid var(--line);
  border-radius: 8px;
}
label { display: grid; gap: .25rem; font-size: .875rem; font-weight: 500; }
.pair-code { max-width: 16rem; margin-bottom: .75rem; }
input, select, button, .button {
  min-height: 38px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 6px;
  font: inherit;
  padding: .4rem .65rem;
  color: inherit;
}
input { width: 100%; min-width: 0; background: #111014; box-shadow: inset 0 1px 3px #08060a; }
input[readonly] { color: var(--muted); }
select { background: #111014; width: 100%; }
.muted, .member-id { color: var(--muted); font-size: .85rem; }
.member-id, .detail { display: block; margin-top: .25rem; overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.25rem 0; }
.metrics > div { padding: 1rem; background: #121014; border: 1px solid var(--line); border-radius: 8px; }
.metrics span { display: block; color: var(--muted); font-size: .85rem; }
.metrics strong { display: block; font-size: 1.8rem; font-weight: 600; }
.tabs { display: flex; gap: 1.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.tabs a { color: var(--muted); text-decoration: none; padding: .65rem 0; }
.tabs a[aria-current] { color: #eeedee; border-bottom: 2px solid #da510e; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.filters { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: .75rem; margin: 1rem 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: var(--muted); font-size: .8rem; font-weight: 500; }
th, td { padding: .8rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td { font-size: .9rem; }
.actions { display: grid; gap: .4rem; min-width: 9rem; }
.actions button { width: 100%; font-size: .8rem; }
.badge { display: inline-block; font-size: .8rem; padding: .15rem .4rem; border-radius: 4px; background: #252128; }
.badge.active { background: #173322; color: #b0dfbb; }
.badge.blocked, .error { color: #ffb9b0; }
.access-note { margin: 1rem 0 0; font-size: .8rem; }
.sync-progress { border-left: 2px solid #da510e; padding: .7rem 1rem; margin: 1rem 0; }
.sync-progress p { margin-bottom: .4rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.pagination span { color: var(--muted); margin-right: auto; font-size: .85rem; }
[hidden] { display: none !important; }
@media (max-width: 550px) { .filters { grid-template-columns: 1fr; } .section-heading { flex-direction: column; } .metrics { gap: .4rem; } .metrics > div { padding: .65rem; } }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgb(255 255 255 / 4.225%), rgb(0 0 0 / 3.9%)), #201e22;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
.primary { background: #da510e; color: #101010; border-color: transparent; }
button:hover, .button:hover { filter: brightness(1.13); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.map-form { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: .65rem; align-items: end; padding: .65rem 0; }
.map-form + .map-form, .player + .player { border-top: 1px solid var(--line); }
.player { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: .6rem 0; }
.player span { overflow-wrap: anywhere; }
@media (max-width: 710px) { .map-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 550px) { .map-form { grid-template-columns: 1fr; } }
