.topbar {
  height: 64px;
  margin: 8px 10px 0;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 170px minmax(500px, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 28px rgba(128, 121, 189, .10);
  backdrop-filter: blur(24px);
  position: relative;
  top: auto;
  z-index: 20;
}

.dashboard {
  width: min(1500px, calc(100vw - 28px));
  min-height: calc(100vh - 88px);
  margin: 18px auto 28px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(720px, 1fr);
  gap: 0;
}
.home-dashboard { place-items: stretch; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.dashboard-shell { display: none; }
.is-authenticated .dashboard-shell { display: block; }

.dashboard-shell {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: transparent;
}
.dashboard-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url('/assets/backgrounds/lobby-window-bg.jpg?v=20260622-lobby-bg-1') center center / cover no-repeat;
  transform: translateZ(0);
}
.dashboard-shell::after {
  content: none;
  display: none;
}
.is-authenticated body,
body:has(.dashboard-shell) {
  background-color: #e9e5ff;
}

.is-authenticated .login-gate { display: none; }
.needs-auth .dashboard-shell { display: none; }

.login-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 34px;
  text-align: center;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}
.login-card h1 {
  margin: 8px 0 12px;
  color: #6557d8;
  font-size: clamp(34px, 7vw, 56px);
  line-height: .95;
  letter-spacing: -.05em;
}
.login-mascot { margin: 0 auto 14px; transform: scale(1.25); }
.eyebrow { color: #8a72d6; font-weight: 1000; text-transform: uppercase; letter-spacing: .08em; }
.login-copy { color: #6f6888; font-weight: 800; line-height: 1.55; margin: 0 auto 22px; max-width: 440px; }
.google-signin-slot { display: grid; place-items: center; min-height: 44px; margin-bottom: 12px; }
.dev-login {
  width: min(360px, 100%);
  height: 54px;
  border: 0;
  border-radius: 18px;
  color: white;
  font-weight: 1000;
  background: linear-gradient(135deg, #7162e9, #9b8cff);
  box-shadow: 0 16px 28px rgba(119,103,232,.25);
}
.google-config-note, .login-status { margin-top: 12px; color: #8a83a2; font-size: 13px; font-weight: 800; line-height: 1.45; }
.login-status { color: #6d64d9; }
