/* Pop It Here v8.12.0 — Home grid, meal-intent continuity, action integrity */
:root{--pih-home-max:1120px}

/* One Home grid. Humans should not need a ruler to understand a dashboard. */
body:has(#homeNowSection) #homeNowSection,
body:has(#homeNowSection) #homeTodaySection,
body:has(#homeNowSection) #homeComingUpSection,
body:has(#homeNowSection) #p62HomeContextGrid,
body:has(#homeNowSection) #dailyQuizWidget{
  width:min(100%,var(--pih-home-max))!important;
  max-width:var(--pih-home-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
body:has(#homeNowSection) #homeNowSection{margin-top:22px!important}
body:has(#homeNowSection) #homeTodaySection,
body:has(#homeNowSection) #homeComingUpSection{margin-top:22px!important}
body:has(#homeNowSection) #p62HomeContextGrid{margin-top:22px!important;grid-template-columns:1fr!important;gap:12px!important}
body:has(#homeNowSection) #p62PopKnows[hidden],body:has(#homeNowSection) #p62NeedsHelp[hidden]{display:none!important}
body:has(#homeNowSection) .home-life-head{margin:0 2px 10px!important}
body:has(#homeNowSection) #homeTodaySummary,
body:has(#homeNowSection) #homeComingUpSummary{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
body:has(#homeNowSection) #homeTodaySummary>.home-plan-card{grid-column:span 6!important}
body:has(#homeNowSection) #homeComingUpSummary>.home-plan-card{grid-column:span 4!important}
body:has(#homeNowSection) #homeComingUpSummary>.home-coming-all{grid-column:1/-1!important;margin:0!important;justify-self:start!important}
body:has(#homeNowSection) #p62NeedsHelp,
body:has(#homeNowSection) #p62PopKnows{width:100%!important;box-sizing:border-box!important}
body:has(#homeNowSection) #dailyQuizWidget{margin-top:12px!important;margin-bottom:22px!important}
body:has(#homeNowSection) .home-plan-card.home-next-move{height:100%!important;min-height:154px!important}
body:has(#homeNowSection) .home-card-domain{margin-bottom:5px!important}
body:has(#homeNowSection) .home-plan-card .home-next-actions{align-self:flex-start!important}

/* Structured meal intent stays visible through the progressive flow. */
#mealWizardContext>.meal-wizard-requirements-chip{cursor:default!important;background:#fff3f0!important;border-color:#efb4aa!important;color:#8d342b!important}
.meal-wizard-required{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:12px}.meal-wizard-required>b{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#7e6a98}.meal-wizard-required>span{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border-radius:999px;border:1px solid #e4d6ef;background:#fbf7ff;font-size:11px;font-weight:800;color:#352747}
.p62-help-status{min-height:1em;margin-top:8px;font-size:10px;font-weight:750;color:var(--pop-muted,#6d7789)}.p62-help-choices button.is-working{opacity:.72;cursor:wait}.p62-help-choices button:disabled{cursor:wait;opacity:.62}

@media(max-width:980px){
  body:has(#homeNowSection) #homeTodaySummary>.home-plan-card,
  body:has(#homeNowSection) #homeComingUpSummary>.home-plan-card{grid-column:span 6!important}
}
@media(max-width:760px){
  body:has(#homeNowSection) #homeNowSection,
  body:has(#homeNowSection) #homeTodaySection,
  body:has(#homeNowSection) #homeComingUpSection,
  body:has(#homeNowSection) #p62HomeContextGrid,
  body:has(#homeNowSection) #dailyQuizWidget{width:calc(100% - 20px)!important;margin-left:10px!important;margin-right:10px!important}
  body:has(#homeNowSection) #homeNowSection{margin-top:15px!important}
  body:has(#homeNowSection) #homeTodaySection,
  body:has(#homeNowSection) #homeComingUpSection,
  body:has(#homeNowSection) #p62HomeContextGrid{margin-top:16px!important}
  body:has(#homeNowSection) #homeTodaySummary>.home-plan-card,
  body:has(#homeNowSection) #homeComingUpSummary>.home-plan-card{grid-column:1/-1!important}
  body:has(#homeNowSection) #dailyQuizWidget{margin-top:10px!important}
}
