.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  background: #0d111b;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  height: 71px;
  padding: 19px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #6861f2;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}
.brand strong {
  display: block;
  font-size: 14px;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 10px var(--mono);
}
.navigation {
  padding: 18px 12px;
}
.nav-caption {
  margin: 0 12px 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.1px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 2px;
  border-radius: 8px;
  color: #93b1d0;
  font-size: 14px;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link:hover {
  background: #171e2e;
  color: #c4c1ff;
}
.nav-link.is-active {
  color: #827bff;
  background: #1c1d3b;
  font-weight: 600;
}
.nav-upgrade {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 8px 12px 14px;
  padding: 11px 12px;
  border: 1px solid #6366f155;
  border-radius: 8px;
  background: #171733;
  color: #c4c1ff;
  text-decoration: none;
}
.nav-upgrade:hover,
.nav-upgrade.is-active {
  border-color: #817aff99;
  background: #20204a;
  color: #fff;
}
.nav-upgrade-icon {
  color: #f4c96a;
  font-size: 17px;
}
.nav-upgrade strong,
.nav-upgrade small {
  display: block;
}
.nav-upgrade strong {
  font-size: 12px;
}
.nav-upgrade small {
  margin-top: 3px;
  color: #8d8bb9;
  font: 9px var(--mono);
}
.nav-icon {
  flex-shrink: 0;
}
.profile {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #253145;
  color: #b1c9e4;
  font: 10px var(--mono);
}
.profile strong {
  display: block;
  font-size: 12px;
}
.profile small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
}
.workspace {
  margin-left: 228px;
}
.topbar {
  height: 45px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  color: var(--muted);
}
.topbar time {
  font: 12px var(--mono);
}
.system-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.system-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ab80;
}
@media (max-width: 900px) {
  .sidebar {
    width: 190px;
  }
  .workspace {
    margin-left: 190px;
  }
  .brand {
    padding-left: 20px;
  }
}
@media (max-width: 600px) {
  .sidebar {
    position: static;
    width: 100%;
  }
  .brand {
    height: 62px;
    padding: 14px 20px;
  }
  .navigation {
    padding: 8px;
    display: flex;
    overflow-x: auto;
  }
  .nav-caption,
  .profile {
    display: none;
  }
  .nav-link {
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    font-size: 11px;
    margin: 0;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    padding: 0 20px;
  }
  .topbar time {
    font-size: 10px;
  }
  .system-status {
    font-size: 10px;
    gap: 6px;
  }
}
