/* Layout — Shell, Main, Topbar, Content */

/* ── Hide old header/footer ── */
header { display: none; }
footer { display: none; }

/* ── Userbox (auth page compat) ── */
.userbox { display: flex; align-items: center; gap: 8px; }
.userbox .login {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.userbox .avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

/* ── Icon button ── */
.icon-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.icon-btn.small { width: 28px; height: 28px; }

/* ── Shell — full-viewport flex ── */
.shell {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* ── Main content area ── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ── Topbar (breadcrumb + actions) ── */
.topbar {
  display: flex;
  align-items: center;
  padding: 16px 32px;
  min-height: 81px;
  box-sizing: border-box;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
  flex-shrink: 0;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb strong {
  color: var(--text-primary);
  font-weight: 500;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.topbar-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.topbar-btn svg,
.topbar-btn i svg {
  width: 14px;
  height: 14px;
}

/* ── Content area with dot-grid ── */
.content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px;
  position: relative;
}

.content::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 260px;
  background-image: radial-gradient(circle at 1px 1px, rgba(28,30,42,0.015) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.content > * { position: relative; z-index: 1; }

.content::-webkit-scrollbar { width: 6px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.content-inner {
  width: 100%;
  max-width: 860px;
  animation: fadeUp 0.4s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Team row inline ── */
.team-row { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.team-row select { flex: 1 1 auto; min-width: 0; }
.team-row button { flex: 0 0 auto; white-space: nowrap; }

/* ── Responsive: main content offset ── */
@media (max-width: 900px) {
  main { margin-left: 72px; }
  .content::before { left: 72px; }
}
