/* Existing Settings, sign-in and top banner; auth and account actions are not replaced. */
html body [data-bb-account-polish]{--bbap-ink:#193f2e;--bbap-green:#246c47;--bbap-muted:#73806e;--bbap-line:#dce5d5;--bbap-card:#fffdf7;box-sizing:border-box}
html body [data-bb-account-polish] *,html body [data-bb-account-polish] *:before,html body [data-bb-account-polish] *:after{box-sizing:border-box}
html body .bbui-settings-overlay:has([data-bb-account-polish]){z-index:10000!important;background:#102d238c!important;backdrop-filter:blur(5px);padding:calc(14px + env(safe-area-inset-top,0px)) 12px calc(14px + env(safe-area-inset-bottom,0px))!important}
html body .bbui-settings-panel[data-bb-account-polish]{background:var(--bbap-card)!important;color:var(--bbap-ink)!important;border:1px solid #e4e8d9!important;border-radius:26px!important;padding:0 18px 20px!important;width:min(100%,480px)!important;max-height:calc(100dvh - 28px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;overflow-y:auto!important;overflow-x:hidden!important;box-shadow:0 24px 80px #0c291d33!important;scrollbar-width:thin;scrollbar-color:#b4c4ac transparent}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-heading{position:sticky!important;top:0!important;z-index:5!important;display:flex!important;align-items:flex-start!important;gap:12px!important;padding:23px 20px 22px!important;margin:0 -18px 17px!important;border-radius:25px 25px 0 0!important;border:0!important;color:#fffdf5!important;background:radial-gradient(ellipse at 100% 0%,#557b494f,transparent 65%),linear-gradient(120deg,#173f2e,#285c40)!important;box-shadow:0 6px 20px #163c2810!important}
html body .bbui-settings-panel[data-bb-account-polish] .bbap-heading-copy{flex:1;min-width:0}
html body [data-bb-account-polish] .bbap-eyebrow{font:750 9px/1.4 system-ui,-apple-system,sans-serif!important;letter-spacing:.15em!important;margin:0 0 8px!important;color:#b7aa75!important}
html body .bbui-settings-panel[data-bb-account-polish] .bbap-eyebrow{color:#e8cc87!important}
html body .bbui-settings-panel[data-bb-account-polish] #bbuiSettingsTitle{margin:0 0 8px!important;font:780 29px/1.12 system-ui,-apple-system,sans-serif!important;letter-spacing:-1px!important;color:white!important}
html body .bbui-settings-panel[data-bb-account-polish] .bbap-heading-note{font-size:11px!important;line-height:1.55!important;margin:0!important;color:#d3e3ce!important;max-width:230px}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-close{display:grid!important;place-items:center!important;flex:0 0 40px!important;min-width:40px!important;width:40px!important;min-height:44px!important;height:44px!important;margin:0!important;border:1px solid #a6c39d40!important;background:#ffffff0b!important;color:#f6f7e9!important;box-shadow:none!important;border-radius:14px!important;font-size:17px!important}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-switch{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;padding:4px!important;margin:0 0 18px!important;border:1px solid #e2e7d8!important;border-radius:15px!important;background:#edf1e4!important}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-switch button{min-height:44px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:#6f7d66!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-switch button[aria-selected=true]{background:white!important;color:#255c3d!important;box-shadow:0 2px 8px #23422d0b!important}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-section{display:grid!important;gap:9px!important;margin:0 0 13px!important;padding:16px!important;border:1px solid #e2e7d9!important;border-radius:18px!important;background:#fff!important;min-width:0!important}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-section>h3{display:flex!important;align-items:center!important;gap:9px!important;margin:0 0 6px!important;padding:0!important;font:750 13px/1.3 system-ui,-apple-system,sans-serif!important;letter-spacing:-.15px!important;color:#294d35!important}
html body .bbui-settings-panel[data-bb-account-polish] .bbap-section-icon{display:grid;place-items:center;width:29px;height:29px;background:#eff3e6;color:#53724a;border-radius:9px;flex:none}
html body .bbui-settings-panel[data-bb-account-polish] .bbap-section-icon svg{display:block;width:17px;height:17px}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-section button:not(.bb-account-deletion-open):not(.bb-account-deletion-submit):not(.bb-account-deletion-cancel){min-height:46px!important;max-width:100%!important;width:100%!important;padding:12px 13px!important;margin:0!important;border:1px solid #dce5d3!important;border-radius:12px!important;background:#f7f9f1!important;color:#2b603d!important;font:650 12px/1.4 system-ui,-apple-system,sans-serif!important;text-align:left!important;box-shadow:none!important;white-space:normal!important}
html body .bbui-settings-panel[data-bb-account-polish] #bb16AccountShortcut{min-height:49px!important;background:#246a46!important;color:white!important;border-color:#246a46!important;font-weight:750!important}
html body .bbui-settings-panel[data-bb-account-polish] .bb16-account-card{position:static!important;display:grid!important;width:100%!important;gap:8px!important}
html body .bbui-settings-panel[data-bb-account-polish] .bb172-privacy-footer{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;background:transparent!important;padding:5px 0!important;border:0!important;font-size:11px!important;line-height:1.6!important;margin:0!important}
html body .bbui-settings-panel[data-bb-account-polish] .bb172-privacy-footer a{display:inline-flex!important;align-items:center!important;min-height:36px!important;color:#59714f!important;font-size:11px!important;text-underline-offset:3px}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-tutorial-intro{font-size:12px!important;line-height:1.65!important;color:#74806c!important;padding:0 4px!important;margin:0 0 17px!important}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-tutorial-topic{margin:10px 0!important;border:1px solid #dfe6d4!important;border-radius:15px!important;background:white!important;overflow:hidden!important}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-tutorial-topic summary{min-height:50px!important;padding:15px!important;font-size:12px!important;color:#335c3e!important;font-weight:700!important}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-tutorial-body{padding:0 15px 16px!important;color:#64775d!important;font-size:12px!important;line-height:1.7!important}
html body .bbui-settings-panel[data-bb-account-polish] .bb-native-membership{background:#f5f7ee!important;border:1px solid #dfe7d4!important;border-radius:15px!important;padding:15px!important;margin:9px 0 0!important;color:#395b3d!important}
html body .bbui-settings-panel[data-bb-account-polish] .bb-native-membership h3{font-size:14px!important;margin:0 0 8px!important;letter-spacing:-.25px!important}
html body .bbui-settings-panel[data-bb-account-polish] .bb-native-membership p{font-size:11px!important;line-height:1.65!important;margin:8px 0!important;color:#75816d!important}
html body #cloud-panel.open:has([data-bb-account-polish]){background:#102d238f!important;backdrop-filter:blur(5px);display:grid!important;place-items:center!important;z-index:100001!important;padding:calc(15px + env(safe-area-inset-top,0px)) 14px calc(15px + env(safe-area-inset-bottom,0px))!important;overflow-y:auto!important;overscroll-behavior:contain!important}
html body #cloud-card[data-bb-account-polish]{position:relative!important;box-sizing:border-box!important;min-width:0!important;width:min(100%,420px)!important;max-width:420px!important;max-height:calc(100dvh - 30px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;margin:0!important;padding:27px 25px 23px!important;border-radius:26px!important;border:1px solid #e3e7d8!important;background:#fffdf7!important;color:#1b432e!important;box-shadow:0 26px 90px #0e2c2340!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}
html body #cloud-card[data-bb-account-polish] #cloud-close{position:absolute!important;right:15px!important;top:15px!important;display:grid!important;place-items:center!important;width:44px!important;min-width:44px!important;min-height:44px!important;height:44px!important;padding:0!important;margin:0!important;border:1px solid #e0e6d6!important;background:#f3f6e9!important;color:#68815b!important;border-radius:13px!important;box-shadow:none!important;font-size:15px!important;z-index:4!important}
html body #cloud-card[data-bb-account-polish] .bbap-account-mark{display:grid;place-items:center;width:45px;height:45px;border:1px solid #dce6d0;border-radius:15px;background:#edf3e2;color:#648452;margin:0 0 21px}
html body #cloud-card[data-bb-account-polish] .bbap-account-mark svg{width:23px;height:23px}
html body #cloud-card[data-bb-account-polish] h2{color:#1e4530!important;font:780 29px/1.13 system-ui,-apple-system,sans-serif!important;letter-spacing:-1px!important;padding:0!important;margin:0 0 10px!important;background:none!important;text-shadow:none!important}
html body #cloud-card[data-bb-account-polish] .bbap-account-note{font:400 12px/1.6 system-ui,-apple-system,sans-serif!important;color:#78846f!important;margin:0 0 18px!important;padding:0!important}
html body #cloud-card[data-bb-account-polish] #cloud-status{font-size:11px!important;line-height:1.6!important;background:#eff4e6!important;color:#617a53!important;border:1px solid #e0e8d4!important;border-radius:12px!important;padding:11px 12px!important;margin:0 0 20px!important;overflow-wrap:anywhere!important}
html body #cloud-card[data-bb-account-polish] #cloud-auth label{display:grid!important;gap:8px!important;font-size:12px!important;font-weight:700!important;color:#41613c!important;margin:0 0 17px!important;line-height:1.4!important}
html body #cloud-card[data-bb-account-polish] input{width:100%!important;min-width:0!important;min-height:49px!important;border:1px solid #d8e1cd!important;border-radius:13px!important;background:#fff!important;color:#20452f!important;padding:13px!important;font:400 16px/1.4 system-ui,-apple-system,sans-serif!important;margin:0!important;box-shadow:0 2px 5px #193f2e03!important}
html body #cloud-card[data-bb-account-polish] input::placeholder{color:#a0aa96!important;font-size:13px!important;opacity:1!important}
html body #cloud-card[data-bb-account-polish] input:focus-visible{outline:3px solid #d2e4ba!important;outline-offset:1px!important;border-color:#7fa265!important}
html body #cloud-card[data-bb-account-polish] #cloud-login{display:block!important;width:100%!important;min-height:49px!important;border:1px solid #246b46!important;background:#246b46!important;color:white!important;border-radius:13px!important;padding:13px 14px!important;margin:3px 0 10px!important;font-size:13px!important;font-weight:750!important;box-shadow:0 5px 12px #1c5c3210!important}
html body #cloud-card[data-bb-account-polish] #cloud-signup,html body #cloud-card[data-bb-account-polish] #cloud-upload,html body #cloud-card[data-bb-account-polish] #cloud-download,html body #cloud-card[data-bb-account-polish] #cloud-logout{width:100%!important;min-height:46px!important;border:1px solid #dce4d2!important;background:#f5f7ec!important;color:#41683e!important;border-radius:13px!important;padding:12px 14px!important;margin:0 0 10px!important;font-size:12px!important;font-weight:650!important;box-shadow:none!important}
html body #cloud-card[data-bb-account-polish] #cloud-upload{background:#246b46!important;border-color:#246b46!important;color:white!important}
html body #cloud-card[data-bb-account-polish] #cloud-logout{background:transparent!important;border-color:transparent!important;color:#7c886f!important}
html body #cloud-card[data-bb-account-polish] #cloud-message{font-size:10px!important;line-height:1.7!important;margin:14px 0 0!important;color:#909981!important;overflow-wrap:anywhere!important}
html body [data-bb-account-polish] button:focus-visible,html body [data-bb-account-polish] a:focus-visible{outline:3px solid #c6a454!important;outline-offset:3px!important}
html body [data-bb-account-polish] [hidden]{display:none!important}
html body .shell>header.top[data-bb-account-polish]{background:linear-gradient(120deg,#fffef9,#f6f8ef)!important;border:1px solid #dfe7d7!important;border-top:0!important;border-radius:0 0 21px 21px!important;box-shadow:0 5px 20px #23442d08!important;min-height:72px!important;padding:12px 14px!important;gap:10px!important}
html body .shell>header.top[data-bb-account-polish] .brand{min-width:0!important;gap:9px!important}
html body .shell>header.top[data-bb-account-polish] .brand .logo{background:#eef2e5!important;border:1px solid #dde5d1!important;border-radius:13px!important;box-shadow:none!important;width:39px!important;height:39px!important;min-width:39px!important;padding:3px!important}
html body .shell>header.top[data-bb-account-polish] .brand .logo svg{width:32px!important;height:32px!important}
html body .shell>header.top[data-bb-account-polish] .brand h1{font-size:20px!important;letter-spacing:-.7px!important;line-height:1.15!important;color:#214832!important;margin:0!important}
html body .shell>header.top[data-bb-account-polish] .brand h1 span{color:#3d8556!important}
html body .shell>header.top[data-bb-account-polish] #saveStatus{font-size:8px!important;font-weight:500!important;line-height:1.4!important;color:#8a947e!important;letter-spacing:.005em!important;margin-top:4px!important;max-width:170px!important}
html body .shell>header.top[data-bb-account-polish] .bbui-header-actions{gap:6px!important;min-width:0!important;flex-shrink:0!important}
html body .shell>header.top[data-bb-account-polish] .bbpol-header-pill{min-height:44px!important;font-size:10px!important;padding:8px 9px!important;background:#eff4e5!important;border-color:#dbe5cc!important;border-radius:12px!important;color:#487044!important;box-shadow:none!important}
html body .shell>header.top[data-bb-account-polish] .bbpol-upgrade{background:#f6edcf!important;border-color:#e9dab3!important;color:#7c6d3e!important}
html body .shell>header.top[data-bb-account-polish] #bbuiOpenSettings{display:grid!important;place-items:center!important;flex:none!important;width:44px!important;min-width:44px!important;min-height:44px!important;height:44px!important;padding:10px!important;background:#f5f7ee!important;border:1px solid #dbe5cf!important;border-radius:14px!important;box-shadow:none!important;color:#59784c!important}
html body .shell>header.top[data-bb-account-polish] #bbuiOpenSettings svg{width:21px!important;height:21px!important}
@media(max-width:440px){html body .bbui-settings-panel[data-bb-account-polish]{padding-left:14px!important;padding-right:14px!important;border-radius:23px!important}html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-heading{margin-left:-14px!important;margin-right:-14px!important;padding:21px 17px!important;border-radius:22px 22px 0 0!important}html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-section{padding:14px!important}html body #cloud-card[data-bb-account-polish]{padding:24px 22px 21px!important}html body .shell>header.top[data-bb-account-polish]{padding:10px!important;gap:7px!important}html body .shell>header.top[data-bb-account-polish] .brand{gap:6px!important}html body .shell>header.top[data-bb-account-polish] .brand h1{font-size:18px!important}html body .shell>header.top[data-bb-account-polish] .brand .logo{width:34px!important;min-width:34px!important;height:34px!important}html body .shell>header.top[data-bb-account-polish] .brand .logo svg{width:28px!important;height:28px!important}html body .shell>header.top[data-bb-account-polish] .bbpol-header-pill{font-size:9px!important;padding:7px!important;min-height:36px!important;max-width:88px!important}}
@media(max-width:355px){html body .shell>header.top[data-bb-account-polish] .brand h1{font-size:16px!important}html body .shell>header.top[data-bb-account-polish] .brand .logo{width:30px!important;min-width:30px!important;height:30px!important}html body .shell>header.top[data-bb-account-polish] .brand .logo svg{width:25px!important;height:25px!important}html body .shell>header.top[data-bb-account-polish] #saveStatus{font-size:7px!important;max-width:118px!important}html body .shell>header.top[data-bb-account-polish] .bbui-header-actions{gap:4px!important}html body .shell>header.top[data-bb-account-polish] .bbpol-header-pill{font-size:8px!important;padding:6px!important;max-width:73px!important}}
@media(prefers-reduced-motion:reduce){html body [data-bb-account-polish],html body [data-bb-account-polish] *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-section>h3::before{display:none!important}
/* A single row on wider screens, with a separate controls row on phones. */
html body .shell>header.top[data-bb-account-polish]{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important}
html body .shell>header.top[data-bb-account-polish]>.brand{width:auto!important;flex:1 1 auto!important}
html body .shell>header.top[data-bb-account-polish]>.bbui-header-actions{width:auto!important;flex:0 0 auto!important}
@media(max-width:620px){
 html body .shell>header.top[data-bb-account-polish]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;padding:10px!important}
 html body .shell>header.top[data-bb-account-polish]>.brand{width:100%!important;min-height:44px!important;padding-right:54px!important}
 html body .shell>header.top[data-bb-account-polish]>.brand>div:last-child{min-width:0!important}
 html body .shell>header.top[data-bb-account-polish]>.bbui-header-actions{display:grid!important;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;width:100%!important;gap:8px!important;margin:0!important}
 html body .shell>header.top[data-bb-account-polish] #bbpolRegionPill{grid-column:1!important}
 html body .shell>header.top[data-bb-account-polish] #bbpolUpgradePill{grid-column:2!important}
 html body .shell>header.top[data-bb-account-polish] #bbpolRegionPill,html body .shell>header.top[data-bb-account-polish] #bbpolUpgradePill{width:100%!important;min-width:0!important;max-width:none!important;min-height:44px!important;padding:8px!important;font-size:11px!important;white-space:normal!important;overflow-wrap:break-word!important}
 html body .shell>header.top[data-bb-account-polish] #bbuiOpenSettings{position:absolute!important;top:10px!important;right:10px!important;margin:0!important}
}
/* Phone landscape: compact heading and aligned columns inside one scroll area. */
@media(orientation:landscape) and (max-height:520px){
 html body .bbui-settings-overlay:has([data-bb-account-polish]){padding:8px max(14px,env(safe-area-inset-right,0px)) 8px max(14px,env(safe-area-inset-left,0px))!important}
 html body .bbui-settings-panel[data-bb-account-polish]{width:min(100%,740px)!important;max-width:740px!important;max-height:calc(100dvh - 16px)!important;border-radius:20px!important;padding:0 16px 16px!important}
 html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-heading{padding:13px 17px!important;margin:0 -16px 12px!important;border-radius:19px 19px 0 0!important;align-items:center!important}
 html body .bbui-settings-panel[data-bb-account-polish] #bbuiSettingsTitle{font-size:24px!important;margin-bottom:4px!important}
 html body .bbui-settings-panel[data-bb-account-polish] .bbap-eyebrow{margin-bottom:4px!important}
 html body .bbui-settings-panel[data-bb-account-polish] .bbap-heading-note{max-width:none!important}
 html body .bbui-settings-panel[data-bb-account-polish] #bbuiSettingsGeneral:not([hidden]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:start!important}
 html body .bbui-settings-panel[data-bb-account-polish] #bbuiLinksSection{grid-column:1/-1!important}
 html body .bbui-settings-panel[data-bb-account-polish] .bbui-settings-section{margin:0!important}
 html body #cloud-card[data-bb-account-polish]{width:min(100%,600px)!important;max-width:600px!important;padding:18px 22px!important;border-radius:20px!important}
 html body #cloud-card[data-bb-account-polish] .bbap-account-mark{display:none!important}
 html body #cloud-card[data-bb-account-polish] h2{font-size:25px!important}
 html body #cloud-card[data-bb-account-polish] #cloud-auth{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}
 html body #cloud-card[data-bb-account-polish] #cloud-login,html body #cloud-card[data-bb-account-polish] #cloud-signup{grid-column:1/-1}
}
/* Keep the exit reachable while a keyboard or short viewport scrolls the form.
   The existing close button stays in the card's own scroll area and focus order. */
html body #cloud-card[data-bb-account-polish] #cloud-close{position:sticky!important;top:0!important;right:auto!important;float:right!important;margin:-9px -9px 0 10px!important;background:#f3f6e9!important}
/* The visual viewport shrinks and pans when the iOS keyboard opens. Keep one
   scroll area inside the account card; the planner stays fixed behind it. */
html.bb-account-open body{position:fixed!important;top:var(--bbap-page-top,0px)!important;left:0!important;right:0!important;width:100%!important;overflow:hidden!important;overscroll-behavior:none!important}
html.bb-account-open body .shell,html.bb-account-open body .bbui-settings-overlay,html.bb-account-open body #bbNewOnboarding{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
html.bb-account-open body .shell .tabs,html.bb-account-open body nav.bb-r6-cook-nav{visibility:hidden!important;pointer-events:none!important}
html body #cloud-panel.open:has([data-bb-account-polish]){inset:auto!important;top:var(--bbap-viewport-top,0px)!important;left:var(--bbap-viewport-left,0px)!important;width:var(--bbap-viewport-width,100%)!important;height:var(--bbap-viewport-height,100dvh)!important;min-height:0!important;overflow:hidden!important;background:#f5f7ef!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body #cloud-panel #cloud-card[data-bb-account-polish]{max-height:calc(var(--bbap-viewport-height,100dvh) - 30px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;min-height:0!important;scroll-padding:52px 12px 16px}
html body #cloud-card[data-bb-account-polish] .bbap-pantry-sync{margin:14px 0;padding:16px;border:1px solid #d6dfd2;border-radius:18px;background:#f3f7ee;color:#173e2e}
html body #cloud-card[data-bb-account-polish] .bbap-pantry-sync h3{margin:0 0 8px;font-size:18px}
html body #cloud-card[data-bb-account-polish] .bbap-pantry-sync p{margin:8px 0;font-size:16px;line-height:1.45}
html body #cloud-card[data-bb-account-polish] .bbap-pantry-sync button{margin:12px 0 0;min-height:48px;font-size:16px}
