* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: #1f2937;
  background: #eef2f6;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 300px;
  display: flex;
  flex-direction: column;
  background: #182230;
  color: #fff;
  border-right: 1px solid #0f1720;
}

.title-block {
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.title-block h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.title-block p {
  margin: 6px 0 0;
  color: #aeb9c7;
  font-size: 12px;
}

.search-box {
  padding: 12px;
}

.search-box input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  color: #fff;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 6px;
  outline: none;
}

.search-box input::placeholder {
  color: #7f8ea3;
}

.page-nav {
  flex: 1;
  overflow: auto;
  padding: 0 8px 16px;
}

.group-label {
  margin: 14px 8px 6px;
  color: #8ea0b8;
  font-size: 12px;
  font-weight: 700;
}

.nav-button {
  width: 100%;
  min-height: 34px;
  margin: 2px 0;
  padding: 7px 10px;
  color: #d8e1ee;
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.nav-button.child {
  padding-left: 24px;
}

.nav-button:hover,
.nav-button.active {
  color: #fff;
  background: #0ea5e9;
}

.viewer {
  height: 100vh;
  margin-left: 300px;
  display: flex;
  flex-direction: column;
}

.viewer-header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  background: #fff;
  border-bottom: 1px solid #d8dee8;
}

.viewer-header p {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 12px;
}

.viewer-header h2 {
  margin: 0;
  font-size: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  color: #fff;
  background: #0ea5e9;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}

#prototypeFrame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 860px) {
  .sidebar {
    width: 240px;
  }

  .viewer {
    margin-left: 240px;
  }
}
