/* App shell: login screen, top bar, navigation, page container. */

/* ---------- login ---------- */
.login-wrap {
  min-height: 100dvh;
  display: grid; place-items: center;
  padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
}
.login-card {
  width: 100%; max-width: 380px; padding: 32px 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.login-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; margin-bottom: 4px;
}
.dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); display: inline-block;
}
.login-sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px;
  padding-top: calc(12px + var(--safe-top));
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; }
.page-title { display: none; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav button {
  border: none; background: transparent; color: var(--muted);
  padding: 8px 13px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.nav button:hover { background: var(--surface-2); color: var(--text); }
.nav button.active { background: rgba(210, 31, 31, .1); color: var(--primary); }

.user-chip { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.user-chip .uname { color: var(--text); font-weight: 600; }

/* ---------- page ---------- */
.container {
  /* wide enough to keep the week strip and the controls on one row, and to
     give the seven-day table more breathing room */
  max-width: 1360px; margin: 22px auto;
  padding: 0 max(20px, var(--safe-left)) 0 max(20px, var(--safe-right));
}
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 21px; margin: 0; }
