:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    sans-serif;
  color: #e7edf6;
  background: #0b1019;
  font-size: 14px;
  --muted: #8d9aad;
  --line: #263244;
  --accent: #70d7c1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  background: var(--accent);
  color: #08231e;
  border: 0;
  border-radius: 7px;
  padding: 10px 17px;
  font-weight: 600;
}
button:disabled {
  opacity: 0.4;
  cursor: wait;
}
button.quiet {
  background: #202d3e;
  color: #cfdaeb;
}
button.danger {
  background: #713541;
  color: #ffe6e8;
}
input,
select,
textarea {
  background: #0d1521;
  color: #e7edf6;
  border: 1px solid #344358;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input:focus,
textarea:focus {
  outline: 2px solid #407f78;
}
label {
  display: grid;
  gap: 7px;
  margin: 15px 0;
  color: #bcc9dc;
}
.muted,
small {
  color: var(--muted);
  line-height: 1.8;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
}
h1 {
  font-size: 27px;
}
h2 {
  font-size: 18px;
  margin: 0 0 20px;
}
h3 {
  font-size: 15px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: #121c2a;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 70% 10%, #173d42, transparent 55%);
}
.login .card {
  width: min(410px, 94vw);
}
.login button {
  width: 100%;
  margin: 10px 0;
}
aside {
  width: 206px;
  background: #101926;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
}
.brand {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.brand span {
  color: var(--accent);
}
nav {
  display: grid;
  gap: 8px;
  margin-top: 35px;
}
nav button {
  background: transparent;
  color: #9facc0;
  text-align: left;
  padding: 13px;
}
nav button.active {
  background: #1e3c3b;
  color: #89e6d2;
}
.sidebar-foot {
  position: absolute;
  bottom: 25px;
  font-size: 10px;
  line-height: 2;
  color: #66788e;
  letter-spacing: 1px;
}
.workspace {
  margin-left: 206px;
}
header {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  gap: 20px;
}
header > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.badge {
  border: 1px solid #5d5634;
  background: #302d20;
  color: #e4d18d;
  border-radius: 5px;
  font-size: 11px;
  padding: 5px 8px;
}
#identity {
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 1400px;
  padding: 30px 32px;
  margin: auto;
}
.page-lead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.page-lead h1 {
  margin: 0 0 6px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.metric {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.7;
}
.metric-name {
  color: var(--muted);
  font-size: 12px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 20px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 15px;
}
.search {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.search input {
  flex: 1;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  color: var(--muted);
  font-weight: 400;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 8px;
  border-bottom: 1px solid #243043;
  word-break: break-word;
}
td button {
  padding: 6px 9px;
  font-size: 12px;
  margin: 2px;
}
.scroll {
  overflow-x: auto;
}
.mono,
pre {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 550px;
  overflow: auto;
  line-height: 1.7;
  color: #bac9dc;
}
.empty {
  padding: 35px;
  color: var(--muted);
  text-align: center;
}
.notice {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: #142b2d;
  margin-bottom: 20px;
  line-height: 1.8;
}
dialog {
  background: #182436;
  color: #e7edf6;
  border: 1px solid #425268;
  border-radius: 12px;
  max-width: 650px;
  width: 90vw;
  padding: 28px;
}
dialog::backdrop {
  background: #000a;
}
#toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  padding: 16px 22px;
  border: 1px solid #4a766e;
  background: #173631;
  border-radius: 8px;
  max-width: 600px;
  z-index: 10;
}
.error {
  color: #ffb6b6;
}
main > section + section,
#playerDetail > section + section {
  margin-top: 20px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  aside {
    width: 140px;
    padding: 20px 10px;
  }
  .workspace {
    margin-left: 140px;
  }
  header {
    padding: 15px;
    flex-wrap: wrap;
  }
  main {
    padding: 20px 14px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .sidebar-foot {
    font-size: 9px;
  }
}
@media (max-width: 520px) {
  aside {
    position: static;
    width: 100%;
    border-right: 0;
    padding: 15px;
  }
  .brand,
  aside small,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin: 0;
    gap: 3px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .workspace {
    margin: 0;
  }
}

#support-queue{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}#support-log{max-height:45vh;overflow:auto}.support-message{border-bottom:1px solid var(--line);padding:12px}.support-message p{white-space:pre-wrap;overflow-wrap:anywhere}#support-conversation textarea{min-height:90px}
#support-profile{margin-top:24px;min-width:0}#support-profile details{margin:12px 0}#support-profile summary{cursor:pointer;color:var(--gold)}#support-profile pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:55vh;overflow:auto}#support-profile td{white-space:pre-wrap;overflow-wrap:anywhere}#support-profile select{max-width:100%;margin:12px 8px 12px 0}
