:root {
  color-scheme: dark;
  --bg: #101114;
  --card: #181a1f;
  --raised: #20232a;
  --text: #eceef5;
  --muted: #989eae;
  --line: #2a2e38;
  --accent: #5865f2;
  --green: #23c483;
  --red: #e5484d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.5 "Segoe UI",
    system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
body.light {
  color-scheme: light;
  --bg: #f5f6fa;
  --card: #fff;
  --raised: #f1f3f9;
  --text: #1b1e28;
  --muted: #677184;
  --line: #dde2ed;
}
button,
input,
a {
  font: inherit;
}
button,
a.primary {
  cursor: pointer;
}
button {
  border: 0;
  color: var(--text);
  border-radius: 9px;
  background: var(--raised);
  padding: 11px 16px;
  transition:
    background 0.15s,
    opacity 0.15s;
}
button:hover {
  opacity: 0.85;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}
.outline {
  border: 1px solid var(--line);
  background: transparent;
}
.text-button {
  background: none;
  color: var(--muted);
  padding: 10px 0;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  letter-spacing: 1.2px;
  font-size: 14px;
}
.logo {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  font-weight: 750;
  font-size: 26px;
}
.logo.big {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  font-size: 50px;
}
.eyebrow,
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 600;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 19px;
  font-weight: 600;
}
.error {
  color: var(--red);
  min-height: 0;
}
.error:not(:empty) {
  padding: 10px 0;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
}
.auth-story {
  padding: 48px 9%;
  background: #15171c;
  display: flex;
  flex-direction: column;
  color: #eceef5;
}
.auth-story .brand {
  margin-bottom: 110px;
}
.auth-story h1 {
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: -3px;
  margin: 22px 0;
}
.auth-story > p {
  font-size: 18px;
  color: #a3a9b8;
  margin: 0 0 38px;
}
.story-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a3a9b8;
  margin: 9px 0;
}
.auth-story small {
  color: #6b7282;
  margin-top: auto;
  padding-top: 60px;
}
.auth-content {
  display: grid;
  place-items: center;
  padding: 45px;
}
.auth-card {
  width: 100%;
  max-width: 370px;
}
.pill {
  font-size: 10px;
  letter-spacing: 1.3px;
  background: #5865f222;
  color: #97a0ff;
  border-radius: 6px;
  padding: 6px 9px;
}
.auth-card h2 {
  font-size: 31px;
  margin: 20px 0 8px;
}
.auth-card > p {
  color: var(--muted);
  margin-bottom: 25px;
}
.auth-card label {
  display: block;
  font-size: 12px;
  margin: 17px 0 0;
  color: var(--muted);
}
input {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 13px;
  outline: none;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #5865f214;
}
.auth-card input:not([type="checkbox"]) {
  width: 100%;
  margin-top: 7px;
  height: 46px;
}
.auth-card .checkbox {
  display: flex;
  gap: 9px;
  align-items: center;
}
.auth-card > button {
  width: 100%;
  margin-top: 15px;
}
.auth-card .auth-note {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
aside {
  border-right: 1px solid var(--line);
  background: var(--card);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.nav-label {
  display: block;
  margin: 46px 0 15px;
  font-size: 9px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
nav button {
  text-align: left;
  background: transparent;
  color: var(--muted);
  display: flex;
  gap: 14px;
  padding: 12px;
}
nav button span {
  font-size: 18px;
  width: 20px;
  line-height: 20px;
}
nav button.active {
  background: #5865f21c;
  color: #a8afff;
}
.aside-bottom {
  margin-top: auto;
}
.server-state {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 18px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 0 16px;
  margin-top: 6px;
}
.avatar {
  display: grid;
  place-items: center;
  height: 34px;
  width: 34px;
  background: #5865f223;
  color: #a8afff;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile b {
  font-size: 11px;
  display: block;
  word-break: break-all;
}
.profile small {
  font-size: 10px;
  color: var(--muted);
}
.aside-bottom > .outline {
  width: 100%;
  font-size: 12px;
}
main {
  padding: 36px 42px;
  max-width: 1700px;
  width: 100%;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
header h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.6px;
  margin-top: 8px;
}
header p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.metrics article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}
.metrics article > span {
  font-size: 12px;
  color: var(--muted);
}
.metrics strong {
  display: block;
  font-size: 35px;
  font-weight: 600;
  margin: 12px 0 3px;
}
.metrics small {
  font-size: 11px;
  color: var(--muted);
}
.metric-icon {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #5865f219;
  color: #96a0ff;
  border-radius: 10px;
}
.metric-icon.green {
  color: var(--green);
  background: #23c48315;
}
.metric-icon.purple {
  color: #b798fa;
  background: #b798fa16;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 17px;
}
.section-head input {
  padding: 9px 12px;
  width: 240px;
  font-size: 12px;
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.device-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 21px;
}
.device-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.computer-icon {
  background: var(--raised);
  color: #adb5cb;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 21px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  background: #23c48314;
  color: var(--green);
  border-radius: 6px;
  padding: 4px 7px;
}
.badge.offline {
  background: var(--raised);
  color: var(--muted);
}
.badge.danger {
  background: #e5484d18;
  color: var(--red);
}
.device-card h3 {
  margin: 18px 0 4px;
  font-size: 15px;
  font-weight: 600;
  word-break: break-word;
}
.device-os {
  font-size: 11px;
  color: var(--muted);
  min-height: 34px;
}
.device-id {
  font-size: 21px;
  letter-spacing: 1px;
  margin: 15px 0 4px;
}
.device-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.device-bottom small {
  color: var(--muted);
  font-size: 10px;
}
.copy-button {
  font-size: 12px;
  padding: 6px 9px;
  background: var(--raised);
}
.empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  padding: 45px;
  color: var(--muted);
}
.empty > span {
  font-size: 35px;
}
.empty h3 {
  color: var(--text);
  margin: 12px 0 8px;
}
.empty p {
  max-width: 480px;
  margin: auto;
}
.table-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  background: var(--card);
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
th,
td {
  padding: 16px 18px;
  text-align: left;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  background: var(--raised);
}
tbody tr:last-child td {
  border-bottom: 0;
}
.empty.small {
  padding: 24px;
  border: 0;
  background: none;
}
.privacy {
  font-size: 11px;
  color: var(--muted);
  padding-top: 14px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}
.download-card {
  display: flex;
  gap: 32px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 45px;
  border-radius: 16px;
}
.download-card h2 {
  font-size: 26px;
  margin: 14px 0;
}
.download-card p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 550px;
}
.admin-status {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  color: var(--muted);
}
.admin-action {
  font-size: 11px;
  padding: 7px 11px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 40px;
}
@media (max-width: 1200px) {
  main {
    padding: 28px;
  }
  .device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-shell {
    grid-template-columns: 210px 1fr;
  }
  .metrics article {
    padding: 18px;
  }
  .metric-icon {
    right: 15px;
  }
}
@media (max-width: 850px) {
  .auth-story {
    display: none;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .app-shell {
    display: block;
  }
  aside {
    height: auto;
    position: static;
    padding: 18px;
  }
  aside .nav-label,
  .aside-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 0;
  }
  nav button {
    font-size: 12px;
    padding: 10px;
  }
  main {
    padding: 22px;
  }
  .metrics {
    gap: 10px;
  }
  .metrics article {
    padding: 14px;
  }
  .metrics article small,
  .metric-icon {
    display: none;
  }
  .metrics strong {
    font-size: 29px;
  }
  .metrics article > span {
    font-size: 10px;
  }
}
@media (max-width: 560px) {
  .device-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .section-head input {
    width: 100%;
  }
  header h1 {
    font-size: 25px;
  }
  header {
    align-items: flex-start;
  }
  .download-card {
    padding: 25px;
    flex-direction: column;
    align-items: flex-start;
  }
  .metrics {
    gap: 8px;
  }
  .metrics article {
    padding: 10px;
  }
  .auth-content {
    padding: 25px;
  }
}
.dot.offline {
  background: var(--red);
}
