.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  color: #041018;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25);
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
}

.brand small {
  display: block;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.main-nav {
  display: flex;
  align-items: center;
  flex: none;
  gap: 4px;
  margin-left: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: color 0.16s ease-out, background 0.16s ease-out;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-link.active {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--module, var(--brand));
  border-radius: 2px;
}

.nav-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  flex: 0 1 260px;
  min-width: 120px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.search-pill input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
}

.search-pill kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--surface-2);
}

.icon-btn {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1e3a5f, #312e81);
  color: #dbeafe;
  font-size: 12px;
  border: 1px solid var(--border-strong);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--sp-6);
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 80px;
}

.app-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--sp-7);
  padding: var(--sp-5) 0 calc(var(--sp-5) + 56px);
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tabbar {
  display: none;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
