/* ── Shell ──────────────────────────────────────────────────── */
.shell { height: 100vh; overflow: hidden; display: grid; grid-template-columns: 260px 1fr; }
aside {
  background: var(--sidebar-bg);
  color: #fff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

/* ── Brand ──────────────────────────────────────────────────── */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 16px;
}
.brand-icon { width: 64px; height: 64px; border-radius: 50%; background: #fff; overflow: hidden; flex-shrink: 0; }
.brand-icon img { width: 100%; height: 170%; object-fit: cover; object-position: 50% 8%; display: block; }
.brand-name {
  font-size: 12px; font-weight: 800; letter-spacing: 0.25em;
  text-transform: uppercase; color: #fff; text-align: center; line-height: 1.55;
}
.brand-sub { color: rgba(255,255,255,.4); font-size: 11px; text-align: center; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav { display: grid; gap: 6px; }
.nav button, .ghost {
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: #c8c4c0;
  border-radius: 9999px;
  padding: 11px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.nav button.active { background: var(--red); border-color: var(--red); color: #fff; }
.nav button:hover:not(.active) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.ghost { color: rgba(255,255,255,.35); margin-top: auto; border-radius: 9999px; }
.login-form .ghost { color: var(--ink); border-color: var(--line); text-align: center; margin-top: 0; }
.login-form .ghost:hover { color: var(--red); border-color: var(--red); background: var(--surface); }

/* ── Main ───────────────────────────────────────────────────── */
main { padding: 28px; overflow-y: auto; min-height: 0; }
main::before {
  content: "";
  position: fixed;
  inset: 0;
  left: 260px;
  background: url("../assets/extracted/Trainingssheet___Niklas_image1.png") center center / 36% no-repeat;
  opacity: .05;
  pointer-events: none;
  z-index: 0;
}
.top { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 20px; position: relative; z-index: 1; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 52px); line-height: 1; letter-spacing: -.01em; }
h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.muted { color: var(--muted); }

/* ── Panels / Cards ─────────────────────────────────────────── */
.panel, .metric, .day, .login-card, .client-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(20,16,12,.06), 0 8px 32px rgba(20,16,12,.04);
}
.panel { padding: 20px; position: relative; z-index: 1; }

/* ── Bumper: views never clip at bottom ─────────────────────── */
main { padding-bottom: 40px; }
.view { padding-bottom: 24px; }
