:root {
  font-family: Inter, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: #dce5ef;
  background: #10151d;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #364454;
  background: #253143;
  color: #edf6ff;
  border-radius: 7px;
  padding: 9px 14px;
}
button:hover {
  background: #33435a;
}
button.primary {
  background: #65d5b4;
  color: #10291f;
  border-color: #65d5b4;
  font-weight: 650;
}
button.danger {
  color: #ffadac;
  border-color: #71393e;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  width: 100%;
  background: #111923;
  border: 1px solid #384555;
  padding: 10px;
  border-radius: 6px;
  color: #edf6ff;
}
input[type='checkbox'] {
  width: auto;
}
textarea {
  min-height: 80px;
}
label {
  display: block;
  font-size: 13px;
  color: #a9b7c8;
  margin: 12px 0 6px;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.6px;
  font-weight: 600;
  margin: 0 0 8px;
}
h2 {
  font-size: 18px;
  font-weight: 550;
}
p {
  line-height: 1.7;
  color: #a9b7c8;
}
a {
  color: #7cdfbf;
}
aside {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 225px;
  background: #141d28;
  border-right: 1px solid #2a3542;
  padding: 32px 20px;
}
.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7cdfbf;
  margin-bottom: 42px;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 8px;
  color: #8798ac;
}
nav button {
  display: block;
  border: 0;
  text-align: left;
  width: 100%;
  margin: 6px 0;
  padding: 12px;
  background: transparent;
  color: #a9b7c8;
}
nav button.active {
  background: #263b3b;
  color: #9aecce;
}
main {
  margin-left: 225px;
  padding: 38px 44px;
  max-width: 1600px;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  color: #6f8d91;
  margin-bottom: 12px;
}
.panel {
  border: 1px solid #2a3849;
  background: #18222f;
  border-radius: 11px;
  padding: 22px;
  margin: 18px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.stat strong {
  display: block;
  font-size: 35px;
  font-weight: 500;
  margin: 15px 0 9px;
}
.stat small {
  color: #90a3b6;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  background: #2b3747;
  color: #b5c8db;
  font-size: 12px;
}
.badge.ok {
  color: #8fe0bf;
  background: #233e37;
}
.badge.warn {
  color: #efd093;
  background: #423926;
}
.badge.error {
  color: #ffa9a9;
  background: #432c35;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.muted {
  color: #879aac;
  font-size: 13px;
}
.notice {
  padding: 13px 17px;
  background: #29332d;
  color: #c2d9ae;
  border-left: 3px solid #c8d7a2;
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.8;
}
.login {
  max-width: 440px;
  margin: 12vh auto;
  padding: 32px;
}
.login button {
  width: 100%;
  margin-top: 24px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  color: #8e9fb2;
  font-weight: 450;
  padding: 13px 10px;
  border-bottom: 1px solid #344150;
}
td {
  padding: 15px 10px;
  border-bottom: 1px solid #263344;
  vertical-align: top;
  word-break: break-word;
}
td button {
  font-size: 12px;
  padding: 6px 9px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #b2c6da;
  background: #111923;
  padding: 12px;
  border-radius: 6px;
  max-height: 320px;
  overflow: auto;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  color: #afc5d5;
}
dialog {
  background: #18222f;
  color: #dce5ef;
  border: 1px solid #415467;
  border-radius: 12px;
  max-width: 720px;
  width: 94vw;
  padding: 26px;
}
dialog::backdrop {
  background: #02060cbf;
}
.countries {
  max-height: 180px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px;
  border: 1px solid #354454;
}
.countries label {
  margin: 0;
  padding: 4px;
}
#toast {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 540px;
  background: #365448;
  border: 1px solid #6d9a85;
  padding: 16px 20px;
  border-radius: 8px;
  z-index: 1000;
}
#toast.error {
  background: #502d35;
  border-color: #8d5361;
}
progress {
  width: 100%;
  accent-color: #6bdab6;
}
.tablewrap {
  overflow: auto;
}
footer {
  margin-top: 25px;
  color: #748899;
  font-size: 12px;
}
@media (max-width: 800px) {
  aside {
    position: static;
    width: auto;
    padding: 18px;
  }
  aside .brand {
    margin-bottom: 15px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
  }
  nav button {
    width: auto;
  }
  main {
    margin: 0;
    padding: 24px 16px;
  }
  .topline {
    align-items: flex-start;
    gap: 15px;
  }
  .countries {
    grid-template-columns: repeat(4, 1fr);
  }
}
