/* Pop It Here v8.12.0 — continuity, plans, Kitchen and social-life polish */
@view-transition { navigation: auto; }
.pih-global-shell{view-transition-name:pih-shell}
::view-transition-old(pih-shell),::view-transition-new(pih-shell){animation:none!important;mix-blend-mode:normal}

/* Home: one visual language. The main Next Move stays dominant; Today/Coming Up use the same card grammar. */
body:has(#homeNowSection) .home-life-section{max-width:1180px;margin:1.25rem auto 0;padding:0!important}
body:has(#homeNowSection) .home-life-head{margin-bottom:.55rem}
body:has(#homeNowSection) .home-life-lines,
body:has(#homeNowSection) .home-coming-lines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:0!important}
body:has(#homeNowSection) #homeTodaySummary{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-plan-card.home-next-move{grid-template-columns:minmax(0,1fr) auto!important;gap:14px!important;align-items:stretch!important;min-height:142px;padding:16px 17px!important;border:2px solid var(--pop-ink)!important;border-radius:17px!important;background:var(--pop-paper,#fffaf2)!important;color:var(--pop-ink)!important;text-decoration:none!important;box-shadow:2px 3px 0 color-mix(in srgb,var(--pop-ink) 16%,transparent)!important;overflow:hidden!important}
.home-plan-card.home-next-move:before{width:5px!important;background:var(--next-accent,var(--pop-purple))!important}
.home-plan-card .home-action-content{display:flex;flex-direction:column;min-width:0}
.home-plan-card .home-card-title{font-family:var(--pop-display)!important;font-size:clamp(17px,1.5vw,20px)!important;line-height:1.08!important}
.home-plan-card p{font-size:12px!important;line-height:1.4!important;color:var(--pop-muted)!important;margin:6px 0 0!important}
.home-plan-card .home-next-actions{margin-top:auto!important;padding-top:10px!important;justify-self:start!important}
.home-plan-open{font-size:11px;font-weight:900;text-decoration:underline;text-underline-offset:3px}
.home-plan-card .home-action-media{width:118px!important;min-width:118px!important;align-self:stretch!important;border-radius:12px!important;overflow:hidden!important}
.home-plan-card .home-action-media img{width:100%!important;height:100%!important;min-height:108px!important;object-fit:cover!important;display:block!important}
.home-plan-warning{display:inline-flex;align-items:center;align-self:flex-start;margin-top:8px;padding:5px 8px;border-radius:999px;background:color-mix(in srgb,var(--pop-red,#f05252) 10%,white);border:1px solid color-mix(in srgb,var(--pop-red,#f05252) 35%,transparent);font-size:10px;font-weight:900;color:#9f2f2f}
.home-coming-all{display:inline-flex;margin-top:10px;font-weight:900;font-size:12px;color:var(--pop-ink);text-underline-offset:3px}
#p62NeedsHelp.p62-needs-help{position:relative;border:2px solid var(--pop-ink)!important;border-left:5px solid var(--pop-purple)!important;border-radius:17px!important;background:var(--pop-paper,#fffaf2)!important;box-shadow:2px 3px 0 color-mix(in srgb,var(--pop-ink) 14%,transparent)!important;padding:16px 18px!important}
#p62NeedsHelp .home-card-title{font-family:var(--pop-display)!important;font-size:17px!important;line-height:1.1!important}
#p62NeedsHelp .p62-help-question p{font-size:11.5px!important;line-height:1.45!important}
#p62NeedsHelp .p62-help-choices button{min-height:38px!important;border:2px solid var(--pop-ink)!important;border-radius:10px!important;background:white!important;color:var(--pop-ink)!important}
#p62NeedsHelp .p62-help-choices button:first-child{background:var(--pop-ink)!important;color:white!important}

/* Progressive meal summary values are real controls, not decorative pills. */
#mealWizardContext{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
#mealWizardContext>button,#mealWizardContext>span{min-height:44px!important;border:1px solid color-mix(in srgb,var(--pop-ink) 16%,transparent)!important;border-radius:999px!important;background:var(--pop-paper,#fffaf2)!important;color:var(--pop-ink)!important;padding:8px 12px!important;font:800 12px/1.15 var(--pop-body,Inter,sans-serif)!important;cursor:pointer!important;box-shadow:none!important}
#mealWizardContext>button:hover,#mealWizardContext>button:focus-visible{background:var(--pop-yellow-soft,#fff4c6)!important;border-color:var(--pop-ink)!important;outline:none!important}
.meal-wizard-date-quick{margin-bottom:12px!important}.meal-wizard-dish label{display:grid;gap:6px;font-weight:850}.meal-wizard-dish input[type=date]{min-height:44px;font-size:16px}

/* Kitchen library: protect the approved cookbook grid from legacy sidebar !important rules. */
body.recipe-library-only.pih-recipes-page .recipe-library-page{width:100%!important;max-width:1480px!important;margin:0 auto!important;padding-inline:clamp(16px,3vw,44px)!important}
body.recipe-library-only.pih-recipes-page .recipe-library-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;width:100%!important;align-items:start!important}
body.recipe-library-only.pih-recipes-page .recipe-library-grid .recipe-card{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;gap:0!important;align-items:stretch!important;width:100%!important;min-width:0!important;padding:0!important;border:1px solid color-mix(in srgb,var(--pop-ink) 13%,transparent)!important;border-radius:16px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 5px 14px rgba(23,35,59,.07)!important}
body.recipe-library-only.pih-recipes-page .recipe-library-grid .recipe-card .thumb,
body.recipe-library-only.pih-recipes-page .recipe-library-grid .recipe-card img.thumb{width:100%!important;height:auto!important;min-width:0!important;aspect-ratio:4/3!important;border:0!important;border-radius:0!important;object-fit:cover!important}
body.recipe-library-only.pih-recipes-page .recipe-library-grid .recipe-card-copy{display:grid!important;gap:5px!important;padding:12px 13px 14px!important;overflow:visible!important}
body.recipe-library-only.pih-recipes-page .recipe-library-grid .recipe-card .recipe-title{font-family:var(--pop-display)!important;font-size:16px!important;line-height:1.08!important;-webkit-line-clamp:2!important;min-height:2.16em!important}
body.recipe-library-only.pih-recipes-page .recipe-library-grid .recipe-card .recipe-meta{font-size:11px!important;white-space:normal!important;line-height:1.35!important}
body.recipe-library-only.pih-recipes-page .recipe-library-grid .recipe-card:hover{background:#fff!important;transform:translateY(-1px)}

/* Plans history toggle */
.plans-past-toggle{margin-left:auto!important;display:inline-flex!important;align-items:center!important;gap:7px!important;min-height:42px!important;border:1px solid var(--alive-line,#ddd)!important;border-radius:12px!important;background:var(--alive-paper,#fff)!important;color:var(--alive-ink,#17233b)!important;padding:0 12px!important;font-weight:800!important}
.plans-section-label{margin:26px 0 9px;font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#746d62}
.plan-row.is-past{opacity:.72}

/* Profile food preferences */
.profile-food-card{margin-top:18px;padding:18px;border:1px solid rgba(23,35,59,.13);border-radius:17px;background:#fff}.profile-food-card h2{margin:0 0 4px;font-size:20px}.profile-food-card>p{margin:0 0 13px;color:#6c7688;font-size:13px;line-height:1.45}.profile-food-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-food-grid label{display:grid;gap:6px;font-size:12px;font-weight:850}.profile-food-grid input,.profile-food-grid textarea{width:100%;min-height:44px;border:1px solid rgba(23,35,59,.17);border-radius:10px;padding:10px;font:inherit;font-size:16px;background:#fff}.profile-food-grid .allergy-field{border-left:4px solid #e05a57;padding-left:10px}.profile-food-actions{display:flex;align-items:center;gap:10px;margin-top:13px}.profile-food-actions button{min-height:42px}.profile-food-status{font-size:12px;color:#647087}

@media(max-width:980px){body:has(#homeNowSection) .home-life-lines,body:has(#homeNowSection) .home-coming-lines,body:has(#homeNowSection) #homeTodaySummary{grid-template-columns:1fr 1fr}body.recipe-library-only.pih-recipes-page .recipe-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:720px){body:has(#homeNowSection) .home-life-lines,body:has(#homeNowSection) .home-coming-lines,body:has(#homeNowSection) #homeTodaySummary{grid-template-columns:1fr}.home-plan-card.home-next-move{grid-template-columns:minmax(0,1fr) 92px!important}.home-plan-card .home-action-media{width:92px!important;min-width:92px!important}.home-plan-card .home-action-media img{min-height:96px!important}body.recipe-library-only.pih-recipes-page .recipe-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}.profile-food-grid{grid-template-columns:1fr}.plans-past-toggle{margin-left:0!important}}
@media(max-width:430px){body.recipe-library-only.pih-recipes-page .recipe-library-grid{grid-template-columns:1fr!important}.home-plan-card.home-next-move{grid-template-columns:1fr!important}.home-plan-card .home-action-media{display:none!important}}
.pih-welcome-page{margin:0;background:#f7f2e8;color:#13243d;font-family:Inter,system-ui,sans-serif;min-height:100%}.pih-welcome-shell{width:min(680px,calc(100% - 32px));margin:0 auto;padding:34px 0 64px}.pih-welcome-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.pih-welcome-brand img{width:48px;height:48px}.pih-welcome-brand div{display:grid}.pih-welcome-brand strong{font-size:1.05rem}.pih-welcome-brand small{color:#6d7789}.pih-welcome-card{background:#fffdf8;border:1px solid #d9d2c7;border-radius:24px;padding:clamp(22px,5vw,42px);box-shadow:0 18px 50px rgba(19,36,61,.08)}.pih-welcome-card h1{font-family:Fredoka,Inter,system-ui,sans-serif;font-size:clamp(2rem,6vw,3.2rem);line-height:.98;letter-spacing:-.045em;margin:.3rem 0 1rem}.pih-welcome-card>p{color:#647086;line-height:1.55}.pih-welcome-card form{display:grid;gap:18px;margin-top:26px}.pih-welcome-card label:not(.pih-welcome-check){display:grid;gap:7px;font-weight:800}.pih-welcome-card label span{font-weight:600;color:#7b8492;font-size:.78rem}.pih-welcome-card input[type=text],.pih-welcome-card input:not([type]){min-height:48px;border:1px solid #ccd3dd;border-radius:12px;padding:0 13px;font:inherit}.pih-welcome-card input:focus{outline:3px solid rgba(118,83,246,.22);border-color:#7653f6}.pih-welcome-check{display:flex;gap:10px;align-items:flex-start;padding:13px;border:1px solid #e0dbd2;border-radius:14px}.pih-welcome-check input{margin-top:3px}.pih-welcome-check span{display:grid;gap:3px}.pih-welcome-check strong{color:#13243d}.pih-welcome-card button.primary{min-height:50px;border:0;border-radius:13px;background:#1769ff;color:white;font:800 1rem Inter,system-ui;padding:0 18px;cursor:pointer}.pih-welcome-card button.primary:disabled{opacity:.6}.pih-kicker{font-size:.72rem;letter-spacing:.12em;color:#7653f6;font-weight:900}#welcomeStatus{min-height:1.3em;color:#7a4038;font-size:.86rem}
.admin-learning-routes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.admin-learning-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:10px 12px;border:1px solid rgba(23,35,59,.11);border-radius:12px;background:#fff}.admin-learning-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis}.admin-learning-row span{font-size:11px;font-weight:850;color:#7653f6}.admin-learning-row small{grid-column:1/-1;color:#6d7789}.admin-learning-examples{margin-top:14px}.admin-learning-examples summary{cursor:pointer;font-weight:850}.admin-learning-example{padding:10px 0;border-bottom:1px solid rgba(23,35,59,.1);display:grid;gap:3px}.admin-learning-example strong{font-size:13px;line-height:1.4}.admin-learning-example small{color:#788292;font-size:11px}@media(max-width:720px){.admin-learning-routes{grid-template-columns:1fr}}
