:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #111719;
  color: #edf2ee;
  --surface: #182124;
  --line: #344447;
  --muted: #acbdb9;
  --accent: #c0f080;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  border-bottom: 1px solid var(--line);
  padding: 1rem max(1.25rem, calc((100vw - 70rem) / 2));
  display: flex;
  gap: 1rem;
  align-items: baseline;
  white-space: nowrap;
  color: var(--muted);
}
header a { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: #fff; }
header a span { color: var(--accent); }
main { width: min(70rem, calc(100% - 2.5rem)); margin: 2.5rem auto; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.055em; margin: 0 0 1.75rem; }
h2 { font-size: 1.15rem; margin: 0; }
section { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; margin-bottom: 1rem; padding: 1.25rem; }
.section-head, .actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.section-head { justify-content: space-between; margin-bottom: 1rem; }
#refreshed, #result { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
td, th { border-top: 1px solid var(--line); padding: .75rem; }
th, label { font-size: .85rem; color: var(--muted); }
[data-health="healthy"] { color: var(--accent); }
[data-health="unreachable"] { color: #ffae9f; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .85rem; }
.wide { grid-column: 1 / -1; }
label { display: grid; align-content: start; gap: .35rem; }
input, textarea, select, button { font: inherit; color: #edf2ee; border-radius: .4rem; border: 1px solid var(--line); padding: .6rem .7rem; }
input, textarea, select { background: #101719; width: 100%; }
textarea { font-family: ui-monospace, monospace; resize: vertical; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: .5rem; margin: 1.25rem 0; padding: .85rem; }
legend { padding: 0 .4rem; font-weight: 650; }
button { background: #243035; cursor: pointer; font-weight: 650; }
button:disabled { cursor: wait; opacity: .55; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.primary { color: #172415; background: var(--accent); border-color: var(--accent); }
.remove { margin-top: .8rem; color: #ffae9f; }
.pause { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.pause input { width: auto; accent-color: var(--accent); }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .65rem; margin: 0 0 1.1rem; }
.totals div { background: #101719; border: 1px solid var(--line); border-radius: .5rem; padding: .8rem; }
.totals dt, .muted { color: var(--muted); font-size: .875rem; }
.totals dd { font-size: 1.4rem; font-weight: 600; margin: .25rem 0 0; }
.detail-list { padding: 0; margin: 0; list-style: none; }
.detail-list li { padding: .75rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
header { align-items: center; flex-wrap: wrap; gap: .5rem 1.4rem; }
header .brand { padding: .35rem 0; }
nav { display: flex; flex-wrap: wrap; gap: .25rem; }
nav a, .button-link { font-size: .9rem; font-weight: 650; color: var(--muted); padding: .55rem .7rem; border-radius: .4rem; text-decoration: none; }
nav a[aria-current="page"], nav a:hover, .button-link:hover { background: #243035; color: var(--accent); }
.button-link { border: 1px solid var(--line); color: #edf2ee; }
.revision-actions { margin-top: 1rem; }
.traffic-filters { align-items: end; }
.setting-list div { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: .8rem; border-bottom: 1px solid var(--line); padding: .8rem 0; }
.setting-list dt { color: var(--muted); }
.setting-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 38rem) {
  header { align-items: flex-start; }
  nav a { padding-inline: .45rem; }
  .setting-list div { grid-template-columns: 1fr; gap: .25rem; }
}
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.overview-grid section { margin: 0; }
.overview-grid a { color: var(--accent); font-size: .85rem; font-weight: 650; text-underline-offset: .2em; }
.overview-grid .setting-list { margin: 0; }
.overview-grid .setting-list div:last-child { border-bottom: 0; }
.overview-grid code { color: var(--muted); }
#account-search { align-items: end; }
#player-form .actions, #player-link { align-items: end; }
#player-link[hidden] { display: none; }
.tester-card { padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; }
.tester-card h3 { margin: 0; font-size: 1rem; }
.tester-card button { margin-top: .7rem; }
.sign-in { width: min(28rem, calc(100% - 2.5rem)); }
.sign-in form { display: grid; gap: 1rem; }
