.sidebar {
  display: none;
}
.app-body {
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  padding: calc(10px + env(safe-area-inset-top))
    max(var(--page-padding), env(safe-area-inset-right)) 10px
    max(var(--page-padding), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.desktop-crumb {
  display: none;
  color: var(--text-3);
}
.crumb-divider {
  margin: 0 4px 0 16px;
  color: var(--border-strong);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  color: var(--text-3);
}
.search-hint,
kbd {
  display: none;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #303932;
  color: #cbd5c6;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #434d41;
}
.avatar-small {
  width: 32px;
  height: 32px;
  font-size: 10px;
}
main {
  padding: 28px max(var(--page-padding), env(safe-area-inset-right))
    calc(var(--bottom-height) + env(safe-area-inset-bottom) + 24px)
    max(var(--page-padding), env(safe-area-inset-left));
  max-width: 1480px;
  margin: 0 auto;
}
#view {
  min-width: 0;
  min-height: 60vh;
}
.bottom-nav {
  position: fixed;
  z-index: 30;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: calc(var(--bottom-height) + env(safe-area-inset-bottom));
  padding: 6px max(8px, env(safe-area-inset-right))
    calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: var(--sidebar);
  border-top: 1px solid var(--border);
}
.bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 10px;
  min-height: 50px;
  border-radius: 10px;
  position: relative;
}
.bottom-item .icon {
  width: 21px;
  height: 21px;
}
.bottom-item.active {
  color: var(--accent);
}
.bottom-item.active::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 28px;
  top: 2px;
  border-radius: 8px;
  background: var(--accent-soft);
  z-index: -1;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-3);
  font-size: 10px;
  border-top: 1px solid var(--border);
  margin-top: 36px;
  padding-top: 20px;
}
.footer-dot {
  margin: 0 7px;
}
.brand-mark {
  display: flex;
  align-items: center;
  position: relative;
  width: 42px;
  height: 42px;
  justify-content: center;
  background: var(--accent);
  border-radius: 12px;
  font-size: 23px;
  letter-spacing: -3px;
  color: var(--accent-ink);
  font-weight: 750;
  line-height: 1;
  padding-right: 3px;
  flex-shrink: 0;
}
.brand-mark span {
  font-weight: 500;
}
.brand-mark i {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-ink);
  border-radius: 50%;
  right: 6px;
  bottom: 9px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-radius: 10px;
  color: var(--text-2);
  padding: 10px 12px;
  font-size: 13px;
}
.nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-count {
  margin-left: auto;
  background: #344c40;
  border-radius: 6px;
  font-family: var(--mono);
  padding: 0 6px;
  font-size: 10px;
  line-height: 20px;
}
@media (min-width: 700px) {
  :root {
    --page-padding: 24px;
  }
  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    width: var(--sidebar-width);
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    padding: 28px 12px 16px;
    padding-top: max(28px, env(safe-area-inset-top));
  }
  .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
  }
  .brand-copy,
  .sidebar-label,
  .sidebar .nav-count,
  .profile > div,
  .online-dot {
    display: none;
  }
  .sidebar .nav-link {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 0;
    min-height: 58px;
    margin-bottom: 6px;
  }
  .sidebar .nav-text {
    display: block;
    font-size: 9px;
    white-space: nowrap;
  }
  .sidebar {
    overflow-y: auto;
  }
  .sidebar-bottom {
    margin-top: auto;
  }
  .profile {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }
  .app-body {
    margin-left: var(--sidebar-width);
  }
  .bottom-nav {
    display: none;
  }
  .desktop-crumb {
    display: inline;
  }
  main {
    padding-bottom: 28px;
  }
  .search-hint,
  kbd {
    display: inline;
  }
  kbd {
    font-family: var(--font);
    font-size: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 4px;
  }
  .topbar-search {
    font-size: 11px;
  }
}
@media (min-width: 1200px) {
  :root {
    --sidebar-width: 224px;
    --page-padding: 36px;
  }
  .sidebar {
    padding: 32px 16px 20px;
  }
  .brand {
    justify-content: flex-start;
    margin: 0 0 40px 4px;
  }
  .brand-copy {
    display: block;
    font-size: 18px;
    letter-spacing: -0.4px;
    font-weight: 600;
  }
  .brand-copy b {
    font-weight: 400;
  }
  .brand-copy small {
    display: block;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-3);
    margin-top: 5px;
  }
  .sidebar-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.8px;
    color: var(--text-3);
    margin: 0 12px 14px;
  }
  .sidebar .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
  }
  .sidebar .nav-text {
    font-size: 13px;
  }
  .sidebar .nav-link > span {
    display: block;
  }
  .profile {
    justify-content: flex-start;
    gap: 10px;
    margin: 20px 6px 0;
  }
  .profile > div {
    display: block;
    font-size: 11px;
  }
  .profile small {
    display: block;
    font-size: 9px;
    color: var(--text-3);
    margin-top: 3px;
  }
  .online-dot {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-strong);
    border-radius: 50%;
    align-self: center;
    margin-left: auto;
  }
}
@media (max-width: 359px) {
  :root {
    --page-padding: 14px;
  }
}
