:root {
  font-family:
    Segoe UI,
    system-ui,
    sans-serif;
  background: #0b1018;
  color: #dce5ed;
  --accent: #6be6cb;
  --line: #2b394c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: #101722;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.1em;
  color: white;
  text-decoration: none;
}
.brand span {
  color: var(--accent);
}
#identity {
  margin-left: auto;
}
.layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  max-width: 1500px;
  margin: auto;
}
nav {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
nav a {
  padding: 10px;
  text-decoration: none;
  color: #c0cfdf;
  border-radius: 6px;
}
nav a:hover,
nav a.active {
  background: #193333;
  color: var(--accent);
}
main {
  padding: 30px;
  min-width: 0;
}
h1 {
  font-size: 32px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.7;
  color: #b8c6d6;
}
a {
  color: var(--accent);
}
article,
.panel,
details {
  background: #121d2b;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 9px;
  margin: 16px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 18px;
}
form {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
}
input,
textarea,
select {
  background: #0b1420;
  border: 1px solid #3b5267;
  border-radius: 5px;
  padding: 10px;
  color: #ecf3fb;
  font: inherit;
  max-width: 100%;
  width: 100%;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.check input {
  width: auto;
}
button,
.button {
  border: 0;
  border-radius: 5px;
  background: var(--accent);
  color: #0a2520;
  font-weight: 650;
  padding: 10px 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.secondary {
  background: #25354a;
  color: #dce5ed;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.small,
small {
  font-size: 12px;
  color: #9fb1c8;
}
#notice {
  padding: 15px;
  border: 1px solid #448373;
  background: #18372e;
  margin-bottom: 20px;
}
#notice.error {
  border-color: #b76a69;
  background: #402526;
}
.table {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td,
th {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  color: #a6b9ce;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.7;
}
.document {
  max-width: 900px;
  margin: auto;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.battle-round {
  font-size: 13px;
}
.pill {
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
footer {
  padding: 30px;
  text-align: center;
  font-size: 12px;
  color: #8c9fb5;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
  nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    gap: 3px;
    padding: 12px;
  }
  nav a {
    padding: 7px;
    font-size: 13px;
  }
  main {
    padding: 18px;
  }
  header {
    padding: 16px;
  }
  #identity {
    margin-left: 0;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
