:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #e8edf7;
  background: #0e1423;
  color-scheme: dark;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  border-bottom: 1px solid #29334b;
  padding: 22px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #111a2c;
}
.brand {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  font-size: 20px;
}
.mark {
  color: #a697ff;
  margin-right: 8px;
}
.badge {
  font-size: 10px;
  letter-spacing: 2px;
  border: 1px solid #485273;
  padding: 5px 7px;
  border-radius: 5px;
  margin-left: 10px;
}
#identity {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
main {
  max-width: 1280px;
  padding: 42px 24px;
  min-height: 80vh;
  margin: auto;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 10px 0 18px;
}
h2 {
  font-size: 19px;
  margin: 0 0 18px;
}
h3 {
  margin: 26px 0 12px;
  font-size: 16px;
}
.eyebrow {
  color: #b2a3ff;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
}
.muted {
  color: #9ba9c1;
}
.small {
  font-size: 13px;
  line-height: 1.6;
}
.card {
  border: 1px solid #2a354f;
  background: #151f33;
  border-radius: 16px;
  padding: 26px;
}
.login {
  max-width: 460px;
  margin: 25px auto;
}
.login p {
  line-height: 1.65;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 10px;
}
input,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #39465f;
  border-radius: 8px;
  background: #0e1728;
  color: #e8edf7;
  font: inherit;
}
input:focus,
textarea:focus {
  outline: 2px solid #a799ff;
  outline-offset: 2px;
}
button {
  background: #a897ff;
  color: #111326;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #25334e;
  color: #dae3f6;
}
.danger {
  background: #733541;
  color: #ffe3e5;
}
form > button {
  margin-top: 12px;
  width: 100%;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 24px;
}
.customer-list {
  max-height: 400px;
  overflow: auto;
  margin: 18px 0;
}
.customer {
  display: block;
  text-align: left;
  width: 100%;
  background: transparent;
  color: #dbe4f5;
  border: 1px solid transparent;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.customer.selected {
  background: #2b3052;
  border-color: #7061ae;
}
.customer span {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  color: #9ba9c1;
}
details {
  border-top: 1px solid #334059;
  padding-top: 20px;
  margin-top: 22px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.empty {
  text-align: center;
  color: #9ba9c1;
  padding: 60px 12px;
}
.detail-email {
  overflow-wrap: anywhere;
}
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pill {
  border: 1px solid #3b4b64;
  border-radius: 30px;
  padding: 6px 10px;
  font-size: 12px;
}
.pill.active {
  color: #8fe0bf;
  border-color: #386b60;
}
.pill.revoked {
  color: #ffa6ac;
  border-color: #794952;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.licence-box {
  padding: 18px;
  background: #10192b;
  border-radius: 10px;
}
.licence-box p {
  font-size: 13px;
  line-height: 1.6;
}
.device {
  padding: 16px 0;
  border-bottom: 1px solid #2b3851;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.device strong {
  display: block;
}
.device p {
  font-size: 12px;
  color: #9ba9c1;
  margin: 6px 0;
  line-height: 1.6;
}
.history {
  font-size: 13px;
  width: 100%;
  border-collapse: collapse;
}
.history th,
.history td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #2b3851;
  overflow-wrap: anywhere;
}
.history th {
  color: #9ba9c1;
  font-weight: 500;
}
.table-wrap {
  overflow-x: auto;
}
#notice {
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1px solid #4c6081;
  border-radius: 10px;
  background: #1b2c46;
  overflow-wrap: anywhere;
}
#notice.error {
  background: #38202b;
  border-color: #805062;
  color: #ffd5db;
}
footer {
  text-align: center;
  padding: 25px;
  color: #71829d;
  font-size: 12px;
}
dialog {
  background: #18233a;
  color: #e8edf7;
  border: 1px solid #4b5873;
  border-radius: 14px;
  padding: 26px;
  max-width: 440px;
}
dialog::backdrop {
  background: #000a;
}
dialog p {
  line-height: 1.6;
}
dialog button {
  width: auto;
}
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid #c4b8ff;
  outline-offset: 3px;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .heading,
  header {
    align-items: flex-start;
    flex-direction: column;
  }
  .heading button {
    margin: 10px 0;
  }
  .customer-list {
    max-height: 220px;
  }
  main {
    padding: 25px 16px;
  }
  .card {
    padding: 20px;
  }
  #identity {
    flex-wrap: wrap;
  }
  .device {
    align-items: flex-start;
  }
  .detail-email {
    font-size: 24px;
  }
}
a {
  color: #c3b5ff;
}
#password-dialog {
  width: min(440px, 94vw);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
textarea {
  resize: vertical;
}
.release-row {
  padding: 1rem 0;
  border-bottom: 1px solid #29334b;
}
.release-row p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#announcement-form,
#language-form {
  max-width: 760px;
}
#language-preview {
  margin: 1rem 0;
}

#affiliate-form {
  max-width: 760px;
}
#affiliate-list input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin-left: 0.75rem;
}
#affiliate-list input[type="number"] {
  max-width: 240px;
}
#dashboard > .card {
  margin-top: 1rem;
}
