.license-key {
  display: block;
  min-width: 220px;
  max-width: 370px;
  overflow-wrap: anywhere;
  user-select: all;
}
td small { display: block; color: var(--muted); }
:root {
  color-scheme: dark;
  --bg: #0c1018;
  --card: #151c28;
  --line: #293244;
  --muted: #94a3ba;
  --accent: #81e4c0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #edf3fb;
  font:
    15px/1.55 Inter,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  padding: 11px 18px;
  background: var(--accent);
  color: #10231f;
  font-weight: 600;
  transition: filter 0.2s;
}
button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #222d3f;
  color: #d4dfef;
  border: 1px solid #354158;
}
input,
textarea {
  width: 100%;
  background: #0f1520;
  color: #eef4fd;
  border: 1px solid #354157;
  border-radius: 8px;
  padding: 12px;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #81e4c015;
}
label {
  display: block;
  color: #c3cfe0;
  font-size: 13px;
}
label input {
  margin-top: 7px;
}
p {
  color: var(--muted);
}
h1,
h2,
h3 {
  line-height: 1.2;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 6px 0 0;
}
h2 {
  font-size: 24px;
  margin: 0 0 12px;
}
h3 {
  font-size: 18px;
}
article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 26px;
}
.brand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.2px;
}
.brand span {
  color: var(--accent);
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 60% 25%, #1c354440, transparent 65%);
}
.login-card {
  width: min(440px, 92vw);
  padding: 38px;
  background: #141c29;
  border: 1px solid #303e54;
  border-radius: 20px;
  box-shadow: 0 32px 100px #0006;
}
.login h1 {
  font-size: 27px;
  margin-top: 32px;
}
.login label {
  margin: 18px 0;
}
.login button {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.login #loginError {
  color: #ffa3a3;
  min-height: 20px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 242px;
  background: #111721;
  border-right: 1px solid var(--line);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
aside small {
  color: #667992;
  letter-spacing: 2px;
  font-size: 10px;
  margin-top: 9px;
}
nav {
  display: grid;
  gap: 7px;
  margin-top: 48px;
}
nav button {
  text-align: left;
  background: transparent;
  color: #9eacc0;
  font-weight: 500;
}
nav button.selected {
  background: #81e4c016;
  color: var(--accent);
  box-shadow: inset 3px 0 var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  color: #9eacc0;
}
.sidebar-bottom button {
  display: block;
  background: transparent;
  color: #94a3ba;
  padding-left: 0;
  margin-top: 16px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 100%;
  margin-right: 7px;
}
main {
  margin-left: 242px;
  padding: 36px 44px;
  max-width: 1600px;
}
header,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header {
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #90a5c4;
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.metrics p {
  margin: 0 0 16px;
}
.metrics strong {
  font-size: 34px;
  letter-spacing: -1px;
}
.metric-link {display:block;background:none;color:var(--accent);padding:8px 0 0;font-size:12px;}
.client-filters {display:grid;grid-template-columns:minmax(200px,2fr) minmax(190px,1fr);gap:18px;margin:24px 0;}
select {width:100%;margin-top:7px;background:#0f1520;color:#eef4fd;border:1px solid #354157;border-radius:8px;padding:12px;font:inherit;}
.empty-state {text-align:center;padding:38px 12px;color:#c3cfe0;}
.empty-state small,.subtle {color:var(--muted);font-size:12px;}
.badge.idle {background:#293244;color:#a9b7cb;}
.warning {color:#f8c980;}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){.client-filters{grid-template-columns:1fr;}}
.welcome {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  background: linear-gradient(115deg, #17293b, #192334 65%, #253450);
  margin-bottom: 22px;
}
.welcome h2 {
  font-size: 34px;
  margin-top: 14px;
}
.welcome p {
  max-width: 480px;
}
.orb {
  width: 160px;
  height: 160px;
  position: absolute;
  right: 55px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    #d1fff2,
    #68c4ae 35%,
    #43628d 70%,
    #243345
  );
  box-shadow: 0 0 90px #81e4c027;
  opacity: 0.8;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.inline-form {
  display: flex;
  gap: 18px;
  align-items: end;
  margin: 26px 0;
}
.inline-form label:first-child {
  flex: 1;
}
.inline-form input[type="number"] {
  width: 120px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  color: #8798b1;
  font-weight: 500;
}
th,
td {
  padding: 17px 12px;
  border-bottom: 1px solid var(--line);
}
td button {
  font-size: 11px;
  padding: 7px 9px;
  margin: 3px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 8px;
  background: #81e4c019;
  color: var(--accent);
  white-space: nowrap;
}
.badge.bad {
  background: #ff90901b;
  color: #ffb0b0;
}
code {
  font-family: "Cascadia Code", monospace;
  font-size: 12px;
  color: #b5dfd3;
}
textarea {
  font-family: "Cascadia Code", monospace;
  margin: 16px 0;
  resize: vertical;
}
.key-result {
  padding: 18px;
  background: #81e4c010;
  border: 1px solid #81e4c050;
  border-radius: 10px;
  margin-bottom: 20px;
}
.key-result code {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}
#message {
  color: var(--accent);
  margin-bottom: 18px;
  min-height: 8px;
}
footer {
  color: #64758d;
  font-size: 12px;
  margin-top: 36px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  aside {
    position: relative;
    width: 100%;
    padding: 18px;
  }
  aside small,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
  }
  main {
    margin: 0;
    padding: 22px;
  }
  .orb {
    right: -65px;
    opacity: 0.3;
  }
  .inline-form {
    flex-wrap: wrap;
  }
  .metrics {
    gap: 10px;
  }
  .metrics article {
    padding: 16px;
  }
  .metrics strong {
    font-size: 25px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  header {
    align-items: flex-start;
  }
  header button {
    font-size: 12px;
  }
  h1 {
    font-size: 24px;
  }
}
