:root {
  --ink: #17283b;
  --muted: #758291;
  --line: #e3e8ed;
  --paper: #f4f6f8;
  --nav: #102232;
  --teal: #087c77;
  --green: #15826d;
  --amber: #a26c13;
  --red: #ba4551;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.5 "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--teal);
}
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 7px;
  font-weight: 600;
}
button:hover {
  background: #edf3f5;
}
button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
button.primary:hover {
  background: #066561;
}
button.danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
button.ghost {
  background: transparent;
  border: 0;
  padding: 5px 8px;
}
button.small {
  font-size: 12px;
  padding: 6px 10px;
}
input,
select,
textarea {
  border: 1px solid #d8e0e6;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  max-width: 100%;
}
input:focus,
textarea:focus {
  border-color: var(--teal);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 15px 0 6px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 8px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}
h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}
.mono {
  font:
    12px/1.5 Consolas,
    monospace;
}
.sidebar {
  width: 228px;
  position: fixed;
  top: 0;
  bottom: 0;
  background: var(--nav);
  color: #a9bbc9;
  display: flex;
  flex-direction: column;
  padding: 28px 18px;
  z-index: 2;
}
.brand {
  padding: 0 9px 30px;
}
.brand img {
  width: 168px;
  height: auto;
}
.brand .eyebrow {
  font-size: 9px;
  letter-spacing: 2.8px;
  margin-top: 12px;
  color: #aac1ce;
}
.nav-label {
  padding: 5px 14px;
  margin: 15px 0 7px;
  color: #627e92;
  font-size: 10px;
  letter-spacing: 1.6px;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  color: #a9bbc9;
  border: 0;
  margin-bottom: 5px;
  text-align: left;
  padding: 12px 14px;
  font-weight: 500;
}
.nav-btn:hover {
  background: #193448;
  color: white;
}
.nav-btn.active {
  background: #1d414d;
  color: #8ee0d0;
}
.nav-icon {
  width: 20px;
  font-size: 17px;
  text-align: center;
  font-weight: 400;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #294151;
  padding: 20px 9px 0;
}
.side-bottom .indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a6c5c0;
  font-size: 12px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9d84;
}
.side-bottom p {
  font-size: 11px;
  color: #7794a7;
  margin: 8px 0 0;
}
.shell {
  margin-left: 228px;
}
.topbar {
  height: 73px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
}
.crumb strong {
  font-weight: 500;
  color: var(--ink);
}
.top-right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.mode-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--amber);
  background: #fff5de;
  border: 1px solid #f2e2b7;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 700;
}
.avatar {
  width: 31px;
  height: 31px;
  background: #e9f1f3;
  color: #365568;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.account {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
}
.account span small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.content {
  padding: 30px 36px 42px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.notice {
  border: 1px solid #d9e7e9;
  background: #edf5f5;
  border-radius: 7px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #476971;
  font-size: 12px;
}
.notice strong {
  color: #246367;
}
.notice .notice-icon {
  font-size: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 19px 22px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.stat-value {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 9px 0 3px;
}
.stat-foot {
  font-size: 11px;
  color: var(--muted);
}
.green {
  color: var(--green);
}
.amber {
  color: var(--amber);
}
.red {
  color: var(--red);
}
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}
.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.filters {
  display: flex;
  gap: 10px;
  padding: 16px 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.search {
  flex: 1;
  max-width: 360px;
}
.search input {
  width: 100%;
  background: #f8fafb;
  font-size: 12px;
}
.filters select {
  font-size: 12px;
}
.result-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  padding: 11px 22px;
  background: #fafbfc;
  color: #788694;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
}
td {
  padding: 15px 22px;
  border-top: 1px solid #edf0f3;
  font-size: 12px;
}
tr.device-row:hover {
  background: #f8fbfc;
}
.device-name {
  font-size: 12px;
  font-weight: 600;
}
.secondary {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.group-row td {
  background: #f4f7f9;
  padding: 10px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #52677b;
  font-weight: 600;
}
.group-row .project {
  color: #738899;
  font-weight: 400;
  margin-left: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: #eef2f5;
  color: #647585;
}
.badge.active {
  background: #e8f5f0;
  color: #237a63;
}
.badge.suspended {
  background: #fceef0;
  color: #a83e4d;
}
.badge.online {
  background: #edf8f4;
  color: #278166;
}
.badge.offline {
  background: #f0f2f5;
  color: #7d8793;
}
.badge.warning {
  background: #fff5df;
  color: #9a6b1b;
}
.columns {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}
.panel-body {
  padding: 22px;
}
.distribution {
  display: flex;
  gap: 28px;
  align-items: center;
}
.donut {
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}
.legend {
  flex: 1;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 12px;
}
.legend-row strong {
  margin-left: auto;
  font-size: 12px;
}
.legend-dot {
  height: 8px;
  width: 8px;
  border-radius: 2px;
}
.caption {
  font-size: 10px;
  color: var(--muted);
  margin: 16px 0 0;
}
.activity {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #eef1f4;
}
.activity:last-child {
  border: 0;
}
.activity-symbol {
  height: 27px;
  width: 27px;
  background: #f1f5f7;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #758e9e;
  font-size: 12px;
  flex-shrink: 0;
}
.activity-text {
  font-size: 11px;
  flex: 1;
}
.activity-text strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.activity-time {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.table-footer {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tab {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 11px 2px;
  color: var(--muted);
}
.tab.active {
  border-bottom: 2px solid var(--teal);
  color: var(--teal);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.setting {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.setting p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}
.setting:last-child {
  border: 0;
}
.lock {
  background: #eaf3f1;
  color: var(--teal);
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
}
.login-story {
  background: #102232;
  color: white;
  padding: 55px 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story img {
  width: 230px;
}
.login-story .eyebrow {
  color: #8ca5b7;
  margin-top: 15px;
  letter-spacing: 3px;
}
.story-content {
  margin: auto 0;
  position: relative;
  z-index: 1;
}
.story-content h1 {
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -1.8px;
  line-height: 1.15;
  max-width: 500px;
}
.story-content p {
  color: #9db2c3;
  max-width: 410px;
  font-size: 15px;
  line-height: 1.8;
}
.orbit {
  width: 360px;
  height: 360px;
  border: 1px solid #274354;
  border-radius: 50%;
  position: absolute;
  right: -80px;
  bottom: 90px;
}
.orbit:before {
  content: "";
  position: absolute;
  inset: 55px;
  border: 1px solid #274354;
  border-radius: 50%;
}
.orbit:after {
  content: "";
  width: 12px;
  height: 12px;
  position: absolute;
  top: 45px;
  left: 50px;
  background: #81ccbd;
  border-radius: 50%;
}
.story-foot {
  color: #7793a6;
  font-size: 11px;
  letter-spacing: 1px;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 45px;
}
.login-form {
  width: 100%;
  max-width: 370px;
}
.login-form h1 {
  font-size: 27px;
}
.login-form > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 27px;
}
.login-form input {
  width: 100%;
}
.login-form button.primary {
  width: 100%;
  margin-top: 23px;
  padding: 12px;
}
.login-form .forgot {
  display: block;
  margin: 12px 0 0 auto;
  font-size: 11px;
  color: var(--teal);
  font-weight: 500;
}
.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a97a3;
  font-size: 10px;
  margin: 24px 0;
}
.separator:before,
.separator:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.demo-btn {
  width: 100%;
  padding: 12px;
  background: #f3f7f8;
}
.login-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.7;
}
.login-mode {
  margin-bottom: 23px;
  display: inline-block;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #10223280;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  background: #fff;
  width: 560px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  border-radius: 10px;
}
.modal.wide {
  width: 780px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 20px;
}
.modal-body {
  padding: 24px 25px;
}
.modal-body input,
.modal-body select,
.modal-body textarea {
  width: 100%;
}
.modal-foot {
  padding: 17px 25px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}
.modal-foot button.primary {
  width: auto;
  margin: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.detail-grid strong {
  font-size: 12px;
  font-weight: 500;
}
.changelog {
  white-space: pre-wrap;
  font:
    12px/1.8 Consolas,
    monospace;
  background: #f7f9fa;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 400px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.error {
  color: #a73544;
  background: #fff0f1;
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
  margin-top: 12px;
}
.hidden {
  display: none !important;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 30;
  background: #183b41;
  color: #fff;
  padding: 14px 20px;
  border-radius: 7px;
  max-width: 440px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
.upload-zone {
  border: 1px dashed #b7cbd3;
  background: #f6fafb;
  padding: 20px;
  text-align: center;
  border-radius: 7px;
}
.upload-zone input {
  border: 0;
  background: none;
}
.checkline {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  margin: 15px 0;
}
.checkline input {
  width: auto;
}
.footer-note {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.firmware-title {
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.mobile-brand {
  display: none;
}
.chart-bar {
  height: 6px;
  background: #edf2f5;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}
.chart-bar span {
  display: block;
  height: 100%;
  background: #318b86;
}
.release-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
}
.release-info {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  font-size: 12px;
}
.release-info strong {
  margin-left: auto;
}
.subheading {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1700px) {
  .content {
    padding-top: 40px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 195px;
  }
  .brand img {
    width: 150px;
  }
  .shell {
    margin-left: 195px;
  }
  .content {
    padding: 25px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .columns,
  .release-layout {
    grid-template-columns: 1fr;
  }
  .account span {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px;
    display: block;
  }
  .brand {
    padding: 0 0 15px;
  }
  .brand img {
    width: 145px;
  }
  .brand .eyebrow {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .nav-label,
  .side-bottom {
    display: none;
  }
  .nav-btn {
    width: auto;
    padding: 9px;
    white-space: nowrap;
    font-size: 11px;
    margin: 0;
  }
  .nav-icon {
    display: none;
  }
  .shell {
    margin: 0;
  }
  .topbar {
    height: 56px;
    padding: 0 17px;
  }
  .content {
    padding: 22px 16px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters {
    flex-wrap: wrap;
    padding: 14px;
  }
  .search {
    max-width: none;
    flex-basis: 100%;
  }
  .result-count {
    display: none;
  }
  .panel-head {
    padding: 16px;
  }
  .columns,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 30px;
    min-height: 230px;
  }
  .login-story img {
    width: 170px;
  }
  .story-content {
    margin: 25px 0 0;
  }
  .story-content h1 {
    font-size: 29px;
  }
  .story-content p,
  .story-foot,
  .orbit {
    display: none;
  }
  .login-form-wrap {
    padding: 30px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .top-right {
    gap: 7px;
  }
  td,
  th {
    padding: 12px 15px;
  }
  .notice {
    align-items: flex-start;
  }
}
