.app-shell {
  width: 100%;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(234, 223, 217, 0.86);
  background: rgba(255, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-size: 20px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  transform: rotate(-7deg);
}

.desktop-nav { display: flex; gap: 6px; }

.nav-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.nav-button:hover,
.nav-button.is-active {
  color: var(--ink);
  background: #fff0e9;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 110px;
}

.page-narrow { width: min(760px, calc(100% - 40px)); }

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stack { display: grid; gap: 16px; }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mobile-nav { display: none; }

.almanac-feature { border-top: 5px solid #b74739; padding: 20px; background: linear-gradient(145deg, #fffaf3, #f7eee4); }
.almanac-feature h3 { margin-bottom: 8px; color: #2f2731; font-size: 20px; line-height: 1.3; }
.almanac-feature p { margin-bottom: 15px; color: #655966; font-size: 14px; line-height: 1.7; }
.almanac-feature .secondary-button { min-height: 40px; padding: 0 15px; font-size: 14px; }
.almanac-feature .almanac-tag { color: #fff8e8; background: #b74739; }

@media (min-width: 901px) {
  .home-almanac-card { padding: 16px; }
  .home-almanac-card .almanac-card-head { gap: 8px; padding-bottom: 12px; }
  .home-almanac-card .almanac-card-head h2 { margin-left: 7px; font-size: 26px; }
  .home-almanac-card .almanac-card-head p { margin-left: 45px; font-size: 12px; }
  .home-almanac-card .almanac-seal { width: 32px; height: 32px; font-size: 18px; }
  .home-almanac-card .almanac-month-actions { gap: 4px; }
  .home-almanac-card .almanac-month-actions .secondary-button { min-height: 34px; padding: 0 9px; font-size: 12px; }
  .home-almanac-card .almanac-legend { gap: 8px; padding: 12px 2px 8px; font-size: 11px; }
  .home-almanac-card .almanac-week, .home-almanac-card .almanac-grid { gap: 4px; }
  .home-almanac-card .almanac-grid { grid-auto-rows: minmax(48px, 1fr); }
  .home-almanac-card .almanac-day { min-height: 48px; padding: 5px; }
  .home-almanac-card .almanac-day strong { font-size: 16px; }
  .home-almanac-card .almanac-day small, .home-almanac-card .almanac-day em { font-size: 9px; }
  .home-almanac-card .almanac-day em { right: 4px; bottom: 4px; }
  .home-almanac-card .almanac-footer { grid-template-columns: 82px 1fr; gap: 8px; margin-top: 12px; padding-top: 10px; font-size: 11px; }
}

.onboarding-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  width: min(1080px, calc(100% - 40px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 44px 0;
  gap: 46px;
  align-items: center;
}

.onboarding-intro { padding: 12px; }

.onboarding-card { padding: 28px; }
