/* Pop It Here v6.2 — one coherent consumer shell, themes and proactive intelligence */
:root{
  --p62-bg:#fff9ec;--p62-paper:#fffefa;--p62-ink:#14243d;--p62-muted:#66748a;--p62-line:rgba(20,36,61,.12);
  --p62-blue:#246bfd;--p62-red:#f06452;--p62-yellow:#f6ca49;--p62-green:#3a9d62;--p62-teal:#16a6a1;
  --p62-shadow:0 18px 55px rgba(19,39,68,.10);--p62-radius:20px;--p62-soft:#f5f1e8;
  --p62-shell-h:64px;--p62-motion:180ms;
}
html{background:var(--p62-bg);color-scheme:light}
html[data-pih-theme="sunshine"]{--p62-bg:#fff7d9;--p62-paper:#fffdf3;--p62-blue:#1767ff;--p62-red:#ff5f55;--p62-yellow:#ffd642;--p62-green:#25a867;--p62-teal:#08a4a0;--p62-soft:#fff0b8}
html[data-pih-theme="midnight"]{--p62-bg:#111827;--p62-paper:#182235;--p62-ink:#f4f7fb;--p62-muted:#aeb9ca;--p62-line:rgba(255,255,255,.13);--p62-blue:#74a2ff;--p62-red:#ff8174;--p62-yellow:#f5d45c;--p62-green:#69cb8b;--p62-teal:#5dd4ce;--p62-soft:#222f45;--p62-shadow:0 18px 55px rgba(0,0,0,.30);color-scheme:dark}
html[data-pih-theme="analog"]{--p62-bg:#f4eddf;--p62-paper:#fffaf0;--p62-ink:#21312d;--p62-muted:#6c746b;--p62-line:rgba(48,58,45,.15);--p62-blue:#376c85;--p62-red:#ba5b45;--p62-yellow:#dcbf61;--p62-green:#6c815b;--p62-teal:#4b8a83;--p62-soft:#e8dfce}
html[data-pih-theme="clean"]{--p62-bg:#f7f8fa;--p62-paper:#fff;--p62-ink:#161b25;--p62-muted:#697386;--p62-line:rgba(17,24,39,.11);--p62-blue:#315eea;--p62-red:#e25e55;--p62-yellow:#e9bc42;--p62-green:#37885a;--p62-teal:#318c89;--p62-soft:#f1f3f6;--p62-shadow:0 12px 36px rgba(15,23,42,.07)}

/* Pre-paint stability: never expose legacy headers/auth/page chrome for a signed-in navigation frame. */
html.pih-prepaint body:not(.pih-auth-needed){background:var(--p62-bg)!important}
html.pih-prepaint body:not(.pih-auth-needed)>*:not(.pih-prepaint-shell):not(.pih-global-shell){visibility:hidden!important}
.pih-prepaint-shell{position:fixed;inset:0 0 auto;z-index:10050;height:var(--p62-shell-h);display:flex;align-items:center;gap:22px;padding:0 clamp(12px,2vw,28px);background:color-mix(in srgb,var(--p62-paper) 96%,transparent);border-bottom:1px solid var(--p62-line);box-shadow:0 4px 20px rgba(20,36,61,.04);color:var(--p62-ink)}
.pih-prepaint-shell img{width:34px;height:34px}.pih-prepaint-shell strong{font:850 16px/1 Poppins,Inter,sans-serif}.pih-prepaint-brand{display:flex;align-items:center;gap:8px;white-space:nowrap}.pih-prepaint-nav{display:flex;align-items:center;gap:4px;margin:auto}.pih-prepaint-nav b{padding:10px 12px;border-radius:11px;color:var(--p62-muted);font:750 11px/1 Inter,sans-serif}.pih-prepaint-account{display:flex;align-items:center;min-height:40px;padding:0 12px;border:1px solid var(--p62-line);border-radius:12px;background:var(--p62-paper);font:800 11px/1 Inter,sans-serif}
html:not(.pih-prepaint) .pih-prepaint-shell{display:none!important}

body{background:var(--p62-bg);color:var(--p62-ink);transition:background var(--p62-motion) ease,color var(--p62-motion) ease}
html[data-pih-theme="analog"] body{background-image:radial-gradient(rgba(60,52,37,.035) .7px,transparent .7px);background-size:5px 5px}
html[data-pih-theme="midnight"] body :is(.home-widget,.pih-card,.panel,.section-card,.smart-shop-card,.store-card,.pih-sheet,.quick-pop-hero,.home-next-move,.p62-pop-knows,.p62-needs-help){background:var(--p62-paper)!important;color:var(--p62-ink)!important;border-color:var(--p62-line)!important}
html[data-pih-theme="midnight"] body :is(input,textarea,select){background:#111827!important;color:#f4f7fb!important;border-color:rgba(255,255,255,.15)!important}
html[data-pih-theme="midnight"] .pih-global-shell{background:rgba(24,34,53,.96)!important;color:var(--p62-ink)!important;border-color:var(--p62-line)!important}

/* One stable shell. It mounts before module data and visually survives document navigation. */
.pih-global-shell{min-height:var(--p62-shell-h)!important;height:var(--p62-shell-h)!important;background:color-mix(in srgb,var(--p62-paper) 95%,transparent)!important;border-bottom:1px solid var(--p62-line)!important;box-shadow:0 5px 24px rgba(20,36,61,.055)!important;backdrop-filter:blur(18px);view-transition-name:pih-shell}
.pih-global-brand img{width:36px!important;height:36px!important}.pih-global-brand strong{color:var(--p62-ink)!important}.pih-global-brand small{color:var(--p62-red)!important}.pih-global-nav a{border-radius:11px!important;color:var(--p62-muted)!important;transition:background var(--p62-motion),color var(--p62-motion),transform var(--p62-motion)}.pih-global-nav a:hover{background:color-mix(in srgb,var(--p62-blue) 8%,transparent)!important;color:var(--p62-ink)!important}.pih-global-nav a.active{background:color-mix(in srgb,var(--p62-blue) 12%,var(--p62-paper))!important;color:var(--p62-blue)!important}.pih-global-nav a.active:after{background:var(--p62-blue)!important}
.pih-global-shell-actions{min-width:max-content}
.pih-account-btn{min-height:42px!important;height:42px!important;display:flex!important;align-items:center!important;gap:8px!important;border:1px solid var(--p62-line)!important;border-radius:13px!important;padding:4px 9px 4px 5px!important;background:var(--p62-paper)!important;color:var(--p62-ink)!important;box-shadow:0 5px 16px rgba(20,36,61,.05)!important}.pih-account-avatar{width:32px;height:32px;border-radius:10px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,var(--p62-blue),#5b8cff);color:#fff;font-weight:900;font-size:11px}.pih-account-avatar img{width:100%;height:100%;object-fit:cover}.pih-account-label{font:800 12px/1 Inter,sans-serif}.pih-account-caret{font-size:10px;color:var(--p62-muted)}
.pih-icon-btn{background:var(--p62-paper)!important;border-color:var(--p62-line)!important;color:var(--p62-ink)!important}
.pih-sheet{background:var(--p62-paper)!important;color:var(--p62-ink)!important;border-color:var(--p62-line)!important}.pih-menu-card{color:var(--p62-ink)!important}.pih-menu-card:hover{background:var(--p62-soft)!important}.pih-menu-icon{background:color-mix(in srgb,var(--p62-blue) 10%,var(--p62-paper))!important;color:var(--p62-blue)!important}
.pih-sheet-account{padding:10px 10px 14px;display:grid;grid-template-columns:44px 1fr;gap:11px;align-items:center}.pih-sheet-account-avatar{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,var(--p62-blue),#6d95ff);color:#fff;font-weight:900;overflow:hidden}.pih-sheet-account-avatar img{width:100%;height:100%;object-fit:cover}.pih-sheet-account small{display:block;color:var(--p62-muted);margin-top:3px}

/* Home: explain by doing. */
.quick-pop-hero{position:relative;overflow:hidden;background:var(--p62-paper)!important;border-color:var(--p62-line)!important;box-shadow:var(--p62-shadow)!important}
.quick-pop-hero:before{content:"";position:absolute;width:270px;height:270px;border-radius:50%;right:-115px;top:-145px;background:color-mix(in srgb,var(--p62-yellow) 36%,transparent);pointer-events:none}.quick-pop-copy h2{font-size:clamp(30px,4vw,48px)!important;letter-spacing:-.045em!important}.quick-pop-copy p{max-width:680px!important;color:var(--p62-muted)!important}.p62-product-promise{display:block;margin-top:5px;color:var(--p62-ink);font-weight:750}.quick-pop-form{background:var(--p62-paper)!important;border-color:color-mix(in srgb,var(--p62-blue) 35%,var(--p62-line))!important;box-shadow:0 10px 34px color-mix(in srgb,var(--p62-blue) 11%,transparent)!important}.quick-pop-form:focus-within{border-color:var(--p62-blue)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--p62-blue) 10%,transparent),0 14px 40px color-mix(in srgb,var(--p62-blue) 13%,transparent)!important}.quick-pop-chip{background:color-mix(in srgb,var(--p62-paper) 86%,var(--p62-soft))!important;border-color:var(--p62-line)!important;color:var(--p62-ink)!important}
.home-now{margin-top:18px!important}.home-now-head{align-items:flex-end!important}.home-now-head .eyebrow{color:var(--p62-red)!important}.home-now-head h2{font-size:clamp(24px,2.6vw,34px)!important;margin:.15rem 0 0!important}.home-now-list{display:block!important}.home-next-move{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:15px;align-items:center;padding:18px 19px;border:1px solid var(--p62-line);border-radius:20px;background:var(--p62-paper);box-shadow:var(--p62-shadow);overflow:hidden}.home-next-move:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--next-accent,var(--p62-blue))}.home-next-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:color-mix(in srgb,var(--next-accent,var(--p62-blue)) 12%,var(--p62-paper));font-size:23px}.home-next-copy{min-width:0}.home-next-copy small{display:block;color:var(--next-accent,var(--p62-blue));font:900 9px/1.1 Inter,sans-serif;letter-spacing:.13em;text-transform:uppercase;margin-bottom:5px}.home-next-copy strong{display:block;font:850 clamp(16px,2vw,20px)/1.18 Poppins,Inter,sans-serif}.home-next-copy p{margin:5px 0 0;color:var(--p62-muted);font-size:13px;line-height:1.45}.home-next-actions{display:flex;align-items:center;gap:7px;justify-self:end}.home-next-actions a,.home-next-actions button{min-height:40px;border:0;border-radius:11px;padding:0 13px;background:var(--p62-blue);color:#fff;text-decoration:none;font-weight:850;font-size:12px;display:inline-flex;align-items:center}.home-next-actions .secondary{background:var(--p62-soft);color:var(--p62-ink)}.home-next-why{margin-top:9px;color:var(--p62-muted);font-size:10px}.home-next-why summary{cursor:pointer;font-weight:800;color:var(--p62-blue)}
.p62-home-context-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:12px;margin-top:12px}.p62-pop-knows,.p62-needs-help{padding:14px 16px;border:1px solid var(--p62-line);border-radius:17px;background:color-mix(in srgb,var(--p62-paper) 94%,var(--p62-soft));min-width:0}.p62-context-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.p62-context-head strong{font:850 13px Poppins,Inter,sans-serif}.p62-context-head a,.p62-context-head button{border:0;background:transparent;color:var(--p62-blue);font:800 11px Inter,sans-serif;padding:0}.p62-memory-chips{display:flex;gap:6px;flex-wrap:wrap}.p62-memory-chip{border:1px solid var(--p62-line);border-radius:999px;background:var(--p62-paper);padding:6px 9px;font-size:10px;color:var(--p62-ink)}.p62-memory-chip i{font-style:normal;color:var(--p62-muted);margin-left:4px}.p62-help-question strong{font-size:13px;display:block}.p62-help-question p{font-size:11px;line-height:1.42;color:var(--p62-muted);margin:5px 0 10px}.p62-help-choices{display:flex;gap:6px;flex-wrap:wrap}.p62-help-choices button{border:1px solid var(--p62-line);background:var(--p62-paper);color:var(--p62-ink);border-radius:10px;min-height:34px;padding:0 10px;font-weight:800;font-size:10px}.p62-help-choices button:first-child{border-color:color-mix(in srgb,var(--p62-blue) 35%,var(--p62-line));background:color-mix(in srgb,var(--p62-blue) 8%,var(--p62-paper));color:var(--p62-blue)}

/* Daily question becomes a small social beat after answering. */
.daily-quiz-answered{display:grid;gap:10px}.daily-quiz-result-line{display:flex;align-items:center;gap:9px;padding:10px 11px;border-radius:12px;background:var(--p62-soft)}.daily-quiz-result-line b{font-size:12px}.daily-quiz-answer-people{display:flex;gap:6px;flex-wrap:wrap}.daily-quiz-person{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid var(--p62-line);border-radius:999px;background:var(--p62-paper);font-size:10px}.daily-quiz-yesterday{margin-top:10px;padding-top:9px;border-top:1px dashed var(--p62-line)}.daily-quiz-yesterday summary{cursor:pointer;color:var(--p62-muted);font-size:10px;font-weight:850}

/* Ingredient thumbnails: visual scan aid, not ecommerce cosplay. */
.shopping-item-thumb{width:43px;height:43px;border-radius:12px;overflow:hidden;display:grid;place-items:center;flex:0 0 43px;background:var(--p62-soft);border:1px solid var(--p62-line);font-size:19px}.shopping-item-thumb img{width:100%;height:100%;object-fit:cover}.list-item.has-shopping-thumb{grid-template-columns:auto auto minmax(0,1fr) auto!important}.shopping-item-thumb[data-fallback="true"] img{display:none}.shopping-item-thumb[data-fallback="true"]:after{content:attr(data-glyph)}.p62-current-location{display:flex;align-items:center;gap:8px;margin-top:8px}.p62-current-location button{min-height:40px;border:1px solid var(--p62-line);border-radius:11px;background:var(--p62-paper);color:var(--p62-ink);font-weight:850;padding:0 12px}.p62-location-note{font-size:10px;color:var(--p62-muted);line-height:1.4}

/* Kitchen priority marker. */
.p62-planned-recipe{display:inline-flex;align-items:center;gap:4px;width:max-content;max-width:100%;margin-top:5px;padding:4px 7px;border-radius:999px;background:#fff1c5;color:#694e00;font:900 9px/1 Inter,sans-serif;letter-spacing:.04em}.recipe-card[data-p62-priority="today"],.pih-recipe-tile[data-p62-priority="today"]{outline:2px solid color-mix(in srgb,var(--p62-yellow) 70%,transparent);outline-offset:-2px}.pih-recipe-tile[data-p62-priority]{position:relative}.pih-recipe-tile .p62-planned-recipe{margin-top:6px}

/* Theme chooser / intelligence control center */
.p62-theme-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding:7px 8px 11px}.p62-theme{border:1px solid var(--p62-line);background:var(--p62-paper);border-radius:12px;padding:6px;min-height:64px;color:var(--p62-ink);font-size:9px;font-weight:850}.p62-theme.active{outline:2px solid var(--p62-blue);outline-offset:1px}.p62-theme-swatch{display:block;height:27px;border-radius:7px;margin-bottom:5px;background:linear-gradient(135deg,var(--sw1),var(--sw2))}.p62-intelligence-card{margin:8px;padding:11px;border:1px solid var(--p62-line);border-radius:14px;background:var(--p62-soft)}.p62-intelligence-card strong{font-size:12px}.p62-intelligence-card p{font-size:10px;color:var(--p62-muted);line-height:1.4;margin:4px 0 9px}.p62-intelligence-row{display:flex;gap:6px;flex-wrap:wrap}.p62-intelligence-row button,.p62-intelligence-row a{min-height:34px;border:1px solid var(--p62-line);border-radius:9px;padding:0 9px;background:var(--p62-paper);color:var(--p62-ink);font-weight:800;font-size:10px;text-decoration:none;display:inline-flex;align-items:center}.p62-source-status{font-size:9px;color:var(--p62-muted)}

/* Pricing toggle: one billing decision, not controls nested inside controls. */
.billing-toggle{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;width:min(340px,calc(100% - 24px))!important;padding:4px!important;border-radius:14px!important;background:#0b172a!important;border:1px solid #3b4b64!important}.billing-toggle button{min-height:45px!important;border-radius:10px!important;padding:8px 12px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-size:12px!important}.billing-toggle button.active{background:#fff!important;color:#132842!important;box-shadow:0 5px 16px rgba(0,0,0,.18)!important}.billing-toggle .billing-save{font-style:normal;font-size:8px;font-weight:900;background:#dff6e8;color:#17734b;border-radius:999px;padding:4px 6px;white-space:nowrap}.billing-toggle button:not(.active) .billing-save{background:rgba(223,246,232,.13);color:#b7e7c9}.price-card .billing-explainer{display:block;margin-top:6px;color:var(--green);font-size:10px;font-weight:800;min-height:15px}

/* Watch cards reserve social badge area from initial paint; later metadata cannot shift layout. */
.watch-library-art{contain:layout paint}.watch-comment-badge-slot{position:absolute;right:8px;bottom:8px;min-width:27px;height:27px;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:3px;padding:0 7px;background:rgba(255,255,255,.93);color:#172033;box-shadow:0 4px 13px rgba(15,35,57,.16);font-size:10px;font-weight:900;z-index:4;visibility:hidden}.watch-comment-badge-slot.has-comments{visibility:visible}.watch-library-art:has(.watch-comment-badge-slot)::after{display:none!important}

/* Reduce dead chrome and keep touch areas civilized. */
button,a,input,select,textarea{touch-action:manipulation}.pih-action-toast{background:var(--p62-ink)!important;color:var(--p62-paper)!important}.pih-action-toast button{color:var(--p62-yellow)!important}
@view-transition{navigation:auto}::view-transition-old(pih-shell),::view-transition-new(pih-shell){animation-duration:90ms;mix-blend-mode:normal}

@media(max-width:900px){.p62-home-context-grid{grid-template-columns:1fr}.home-next-move{grid-template-columns:auto minmax(0,1fr)}.home-next-actions{grid-column:1/-1;justify-self:stretch}.home-next-actions a,.home-next-actions button{flex:1;justify-content:center}.p62-theme-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){:root{--p62-shell-h:58px}.pih-prepaint-nav{display:none}.pih-prepaint-account{width:40px;padding:0;font-size:0;justify-content:center}.pih-prepaint-account:after{content:"ME";font-size:9px;font-weight:900}.pih-global-brand span{display:none!important}.pih-account-label,.pih-account-caret{display:none}.pih-account-btn{width:40px!important;padding:4px!important;border-radius:12px!important}.pih-account-avatar{width:30px;height:30px}.pih-global-shell-actions{min-width:0}.pih-prepaint-shell{height:58px}.quick-pop-hero:before{width:190px;height:190px;right:-90px;top:-115px}.p62-home-context-grid{margin-top:9px}.shopping-item-thumb{width:38px;height:38px;flex-basis:38px;border-radius:10px}.list-item.has-shopping-thumb{grid-template-columns:auto auto minmax(0,1fr) auto!important}.billing-toggle{margin-bottom:26px!important}}
@media(max-width:430px){.home-next-move{padding:15px 14px;gap:11px}.home-next-icon{width:42px;height:42px;border-radius:13px}.p62-theme-grid{grid-template-columns:repeat(2,1fr)}.p62-pop-knows,.p62-needs-help{padding:12px}.shopping-item-thumb{width:36px;height:36px;flex-basis:36px}.billing-toggle{width:100%!important}.billing-toggle button{padding:7px 8px!important;font-size:11px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}
.home-next-dismiss{position:absolute;right:8px;top:7px;width:27px;height:27px;border:0;border-radius:50%;background:transparent;color:var(--p62-muted);font:700 18px/1 system-ui;display:grid;place-items:center;cursor:pointer;opacity:.55}.home-next-dismiss:hover,.home-next-dismiss:focus-visible{opacity:1;background:var(--p62-soft);outline:none}.home-next-move:has(.home-next-dismiss) .home-next-actions{padding-right:20px}
@media(max-width:900px){.home-next-move:has(.home-next-dismiss) .home-next-actions{padding-right:0}.home-next-dismiss{right:6px;top:5px}}

/* Kitchen is ordered by real life first: upcoming planner meals, then newest recipes. */
.recipe-title-row-v62{display:flex;align-items:flex-start;gap:7px;min-width:0}.recipe-title-row-v62 .recipe-title{min-width:0;flex:1}.recipe-planned-badge{flex:0 0 auto;display:inline-flex;align-items:center;min-height:20px;padding:3px 6px;border-radius:999px;background:color-mix(in srgb,var(--p62-yellow) 22%,var(--p62-paper));color:var(--p62-ink);font-size:8px;font-weight:900;letter-spacing:.03em;border:1px solid rgba(20,32,58,.09)}

/* v6.2 Home: the onboarding helper is secondary to POP + The Next Move. */
body:has(#homeNowSection) .beta-journey-card{max-width:1120px;margin:12px auto 16px!important;padding:13px 15px!important;border-radius:17px!important;box-shadow:none!important;background:color-mix(in srgb,var(--p62-blue) 4%,var(--p62-paper))!important}
body:has(#homeNowSection) .beta-journey-head h2{font-size:17px!important;line-height:1.2!important}
body:has(#homeNowSection) .beta-journey-card>p{display:none!important}
body:has(#homeNowSection) .beta-journey-steps{margin-top:9px;gap:7px!important}
body:has(#homeNowSection) .beta-journey-steps button{padding:9px 10px!important;border-radius:12px!important;grid-template-columns:24px 1fr!important;column-gap:7px!important}
body:has(#homeNowSection) .beta-journey-steps button>span{width:22px!important;height:22px!important;font-size:10px!important}
body:has(#homeNowSection) .beta-journey-steps button strong{font-size:11px!important}
body:has(#homeNowSection) .beta-journey-steps button small{font-size:9.5px!important}
.daily-quiz-answered-compact{padding:8px 10px;font-size:10px;color:var(--p62-muted)}
@media(max-width:760px){body:has(#homeNowSection) .beta-journey-card{margin:10px!important}.beta-journey-steps{gap:6px!important}}
/* v6.2 first-paint guard: transient overlays must never peek through the app shell. */
html.pih-prepaint .toast,
html.pih-prepaint .watch-toast,
html.pih-prepaint .dashboard-undo-toast,
html.pih-prepaint #toast{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
@media(max-width:760px){
  body:has(#homeNowSection) .quick-pop-copy h2{white-space:normal!important;text-wrap:balance;max-width:100%!important}
  body:has(#homeNowSection) #popMemoryButton::after{content:"Pop memory"!important}
}
.p62-notif-grid{display:grid;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--p62-line)}
.p62-notif-grid label{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:750;color:var(--p62-ink)}
.p62-notif-grid input[type="checkbox"]{width:16px;height:16px;accent-color:var(--p62-blue)}
.p62-time-pair{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px!important;max-width:300px}
.p62-time-pair input{min-width:0;height:34px;border:1px solid var(--p62-line);border-radius:9px;background:var(--p62-paper);color:var(--p62-ink);padding:0 7px;font:inherit}
.p62-time-pair span{color:var(--p62-muted);font-weight:700}
.p62-notif-categories{display:flex;gap:7px 12px;flex-wrap:wrap}
@media(max-width:430px){.p62-time-pair{max-width:none}.p62-notif-categories{display:grid;gap:8px}}

/* v6.2 ultra-narrow People: give the title and primary action their own rows.
   320px phones should not turn a friendly heading into a vertical word puzzle. */
@media(max-width:360px){
  body:has(#friendsHub) .pih-friends-head{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-items:start!important}
  body:has(#friendsHub) .pih-friends-head>div{min-width:0!important}
  body:has(#friendsHub) .pih-friends-head .pih-btn{width:100%!important;max-width:none!important;justify-content:center!important}
}

/* v6.2 Home contrast + adaptive context layout. The desktop POP hero is navy,
   so its explanatory promise must not inherit dark theme tokens. */
@media(min-width:981px){
  body:has(#homeNowSection) .quick-pop-hero .quick-pop-copy p{color:rgba(255,255,255,.72)!important}
  body:has(#homeNowSection) .quick-pop-hero .p62-product-promise{color:#fff!important}
}
.p62-home-context-grid:has(#p62NeedsHelp[hidden]){grid-template-columns:1fr!important}
.p62-home-context-grid:has(#p62NeedsHelp[hidden]) #p62PopKnows{grid-column:1/-1!important}

/* v8.1 Home hierarchy: one priority, then quiet opportunities. */
body:has(#homeNowSection) #betaInviteStrip{display:none!important}
.home-opportunities{margin:13px 12px 0;padding:0 2px}.home-opportunities[hidden]{display:none!important}.home-opportunities-head{display:flex;align-items:center;gap:9px;margin:0 0 2px}.home-opportunities-head img{width:33px;height:33px;object-fit:contain}.home-opportunities-head .eyebrow{font-size:8px!important;color:var(--p62-purple,#8d5ce6)!important}.home-opportunities-head h3{margin:2px 0 0;font:850 14px/1.15 Poppins,Inter,sans-serif;color:var(--p62-ink)}.home-opportunities-list{margin-left:42px;border-top:1px solid var(--p62-line)}.home-opportunity-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--p62-line)}.home-opportunity-copy{min-width:0;display:grid;gap:2px}.home-opportunity-copy strong{font-size:13px;line-height:1.28}.home-opportunity-copy small{font-size:11px;line-height:1.42;color:var(--p62-muted)}.home-opportunity-action{appearance:none;border:1px solid color-mix(in srgb,var(--p62-blue) 24%,var(--p62-line));background:var(--p62-paper);color:var(--p62-blue);border-radius:9px;min-height:34px;padding:0 10px;text-decoration:none;font:800 10.5px/1 Inter,sans-serif;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;cursor:pointer}.home-opportunity-action.primary{background:color-mix(in srgb,var(--p62-blue) 8%,var(--p62-paper));border-color:color-mix(in srgb,var(--p62-blue) 35%,var(--p62-line))}

/* The recommendation is a recommendation, not a committee meeting. */
.home-next-actions{min-width:min(430px,34vw)!important}.next-resolution{width:100%;justify-items:end!important}.home-next-actions .next-primary,.next-resolution>.next-primary{min-height:42px!important;padding:0 15px!important;border-radius:11px!important;background:var(--p62-blue)!important;color:#fff!important;border:1px solid var(--p62-blue)!important;font-size:11px!important;font-weight:900!important;box-shadow:none!important}.next-alternatives{gap:3px 10px!important;justify-content:flex-end!important}.next-alternatives button{min-height:28px!important;padding:2px 1px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--p62-muted)!important;font-size:10px!important;font-weight:800!important;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--p62-muted) 35%,transparent);text-underline-offset:3px;box-shadow:none!important}.next-alternatives button:hover{color:var(--p62-blue)!important;text-decoration-color:currentColor}

/* Empty states should disappear rather than occupy rent-controlled acreage. */
#homeTodaySection[hidden],#homeComingUpSection[hidden],#p62HomeContextGrid[hidden]{display:none!important}.home-life-section{margin-top:1rem!important}.home-life-line{padding:.62rem .1rem!important}.home-life-copy small{font-size:11px}.home-coming-line{padding:.62rem 0!important}.p62-home-context-grid{margin-top:16px!important}.p62-pop-knows{padding:12px 14px!important;box-shadow:none!important}.p62-memory-chip{font-size:9.5px!important;padding:5px 8px!important}.p62-memory-chip i{opacity:.7}

/* Invites belong in utility chrome, not between life priorities. */
.pih-header-invites{display:inline-grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:5px;align-items:center;min-height:34px;padding:4px 8px;border:1px solid var(--v529-line,rgba(31,41,55,.13));border-radius:10px;background:transparent;color:inherit;cursor:pointer}.pih-header-invites>span{grid-row:1/3;font-size:15px;color:var(--p62-blue)}.pih-header-invites strong{font:800 10px/1 Inter,sans-serif}.pih-header-invites small{font:700 8px/1 Inter,sans-serif;color:var(--p62-muted)}.pih-header-invites:hover{background:var(--p62-soft)}

/* Missing ingredient reconciliation. */
.tonight-missing-check{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:10px!important;align-items:center!important;text-decoration:none!important;cursor:pointer}.tonight-missing-check input{width:18px;height:18px;accent-color:var(--p62-blue)}.tonight-missing-reconcile{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 4px}.tonight-missing-reconcile .pih-btn{min-height:38px}.tonight-missing-reconcile .secondary{background:transparent!important;color:var(--p62-ink)!important;border:1px solid var(--p62-line)!important}

@media(max-width:760px){.home-next-move{grid-template-columns:auto minmax(0,1fr)!important}.home-next-actions{grid-column:2;min-width:0!important;width:100%;justify-self:stretch!important}.next-resolution{justify-items:stretch!important}.next-alternatives{justify-content:flex-start!important;gap:2px 12px!important}.home-opportunities{margin:11px 2px 0}.home-opportunities-list{margin-left:0}.home-opportunities-head img{width:29px;height:29px}.home-opportunity-row{grid-template-columns:1fr;gap:7px}.home-opportunity-action{justify-self:start}.pih-header-invites{grid-template-columns:auto;grid-template-rows:auto;padding:6px 8px}.pih-header-invites>span,.pih-header-invites small{display:none}.pih-header-invites strong{font-size:9px}.home-life-line{grid-template-columns:74px minmax(0,1fr)!important}.home-life-action{grid-column:2!important}}

/* v8.6 release hardening: legible POP keyboard hints and a rail-safe utility cluster. */
body:has(#homeNowSection) .quick-pop-hint{color:rgba(255,255,255,.72)!important;opacity:1!important}
body:has(#homeNowSection) .quick-pop-hint kbd{background:rgba(255,255,255,.94)!important;color:#17233b!important;border-color:rgba(255,255,255,.82)!important;border-bottom-color:rgba(8,20,39,.32)!important;box-shadow:0 1px 0 rgba(0,0,0,.18)!important}
@media(min-width:1080px){
  .pih-global-shell-actions .pih-utility{display:grid!important;grid-template-columns:repeat(3,40px)!important;gap:7px!important;width:100%!important;justify-content:start!important;align-items:center!important}
  .pih-global-shell-actions .pih-owner-switch{grid-column:1/-1!important;width:100%!important;max-width:none!important;min-width:0!important;padding:5px 6px 5px 8px!important;background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.10)!important}
  .pih-global-shell-actions .pih-owner-switch span{color:rgba(255,255,255,.58)!important;font-size:8px!important}
  .pih-global-shell-actions .pih-owner-switch select{min-width:0!important;width:100%!important;max-width:none!important;background:rgba(255,255,255,.12)!important;color:#fff!important;border:0!important;padding-left:7px!important;padding-right:20px!important}
  .pih-global-shell-actions .pih-owner-switch select option{color:#17233b!important;background:#fff!important}
  .pih-global-shell-actions .pih-icon-btn,.pih-global-shell-actions .pih-header-invites{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;justify-content:center!important;border-radius:11px!important;background:rgba(255,255,255,.09)!important;color:#fff!important;border-color:rgba(255,255,255,.08)!important;box-shadow:none!important}
  .pih-global-shell-actions .pih-header-invites>span{color:#fff!important;grid-row:auto!important;font-size:17px!important}
  .pih-global-shell-actions .pih-header-invites strong,.pih-global-shell-actions .pih-header-invites small{display:none!important}
  .pih-global-shell-actions .pih-account-btn{grid-column:1/-1!important;width:100%!important;min-width:0!important;justify-content:flex-start!important;background:rgba(255,255,255,.09)!important;color:#fff!important;border-color:rgba(255,255,255,.08)!important;box-shadow:none!important}
  .pih-global-shell-actions .pih-account-label{display:block!important;color:#fff!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .pih-global-shell-actions .pih-account-caret{margin-left:auto!important;color:rgba(255,255,255,.65)!important}
}

/* v8.10 shell continuity: hydrated chrome stays visible while auth/bootstrap finishes. */
html.pih-prepaint .pih-global-shell{visibility:visible!important;opacity:1!important}
.pih-shell-hydrating{transition:none!important;animation:none!important}

/* v8.12.0 stable desktop shell prepaint: reserve the live utility geometry. */
@media(min-width:801px){
  .pih-shell-hydrating .pih-global-shell-actions{min-width:330px!important}
  .pih-shell-hydrating .pih-prepaint-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;width:330px;height:44px}
  .pih-shell-hydrating .pih-prepaint-actions>span{display:block;width:42px;height:42px;border:1.5px solid var(--p62-line);border-radius:13px;background:var(--p62-paper)}
  .pih-shell-hydrating .pih-prepaint-actions>.pih-prepaint-owner{width:150px;border-radius:12px}
  .pih-shell-hydrating .pih-prepaint-actions>.pih-prepaint-user{width:58px;border-radius:14px}
}
