/* Shared purchase journey: the formula remains the focus; price stays in view. */
.dose-ingredient.account-ingredient{display:block;padding:26px 0}.dose-ingredient-title{display:flex;align-items:center;gap:12px}.dose-ingredient-title>strong{flex:1;font-size:18px}.dose-ingredient-title>.text-button{font-size:14px;min-height:44px}.dose-control{margin:22px 0 12px}.dose-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.dose-heading>label{margin:0;font-size:14px}.dose-heading>span{display:flex;align-items:center;gap:8px}.dose-control input[type=number]{width:100px;max-width:100px;min-height:46px;margin:0;padding:10px;font-size:16px;text-align:right;border:1px solid #aaaca0;border-radius:6px;background:#fffdf8}.dose-control input[aria-invalid=true]{border:2px solid #9b412f}.dose-control input[type=range]{appearance:auto;display:block;width:100%;max-width:none;height:44px;margin:5px 0 0;padding:0;accent-color:#354d3d;cursor:pointer;touch-action:pan-y}.dose-extents{display:flex;justify-content:space-between;font-size:13px;color:#625c52}.dose-control .caption{font-size:12px;line-height:1.5;margin-top:10px}.dose-ingredient .ingredient-range{display:none}.dose-ingredient .ingredient-purpose{font-size:15px;line-height:1.6}.dose-ingredient .goal-tags{margin:.7rem 0}.account-price .public-plan{width:100%;text-align:left;border:1px solid #b8beb0;border-radius:10px;padding:20px;margin:12px 0;gap:8px;background:#fdfbf6}.account-price .public-plan[aria-pressed=true]{border:2px solid #354d3d;padding:19px;background:#edf0e6}.public-plan .plan-saving{color:#354d3d;font-size:13px;line-height:1.45}.account-price>.button{width:100%;margin-top:12px}.account-price [role=status]{font-size:14px;line-height:1.5;min-height:22px}.account-renew{align-items:center}.account-renew small{line-height:1.5}.purchase-dock{display:none}#account-live-dock{grid-column:1/-1}.account-grid>*,.account-formula-editor>*,.public-builder .account-card{min-width:0}.account-ingredients input,.public-builder input{scroll-margin-bottom:140px}.ingredient-picker [data-ingredient-filter]{font-size:16px}.account-workspace .account-tabs{overflow-x:auto;white-space:nowrap}.account-workspace .account-tabs button{min-height:48px}.account-grid .button,.account-grid button.text-button{min-height:44px}.account-grid .check-label{align-items:start}.account-grid .check-label input{flex-shrink:0;margin-top:4px}.account-renew input[role=switch]{flex-shrink:0}.cart-checkout input[type=email],#guest-email{width:100%;font-size:16px;min-height:48px}.cart-checkout label{display:block}.cart-checkout .check-label{display:flex}.cart-checkout .button{width:100%;margin:12px 0}.cart-checkout input,.cart-checkout button{scroll-margin-bottom:140px}
/* Clerk mutates the mount element's classes. Style its stable ID instead. */
:is(#apiece-sign-up,#apiece-sign-in){width:100%;max-width:440px;margin:24px 0 18px}:is(#apiece-sign-up,#apiece-sign-in) .cl-cardBox,:is(#apiece-sign-up,#apiece-sign-in) .cl-card,:is(#apiece-sign-up,#apiece-sign-in).cl-rootBox{width:100%;max-width:440px;box-shadow:none}:is(#apiece-sign-up,#apiece-sign-in) .cl-card{padding:0;background:transparent}:is(#apiece-sign-up,#apiece-sign-in) .cl-formFieldLabel{margin:0;font-size:14px;line-height:1.4}:is(#apiece-sign-up,#apiece-sign-in) .cl-formFieldRow{gap:6px}:is(#apiece-sign-up,#apiece-sign-in) .cl-form{gap:18px}:is(#apiece-sign-up,#apiece-sign-in) .cl-formFieldInput{margin-top:0;min-height:48px;font-size:16px;padding:12px;border-radius:6px}:is(#apiece-sign-up,#apiece-sign-in) .cl-socialButtonsBlockButton,:is(#apiece-sign-up,#apiece-sign-in) .cl-formButtonPrimary{width:100%;min-height:48px;font-size:16px;border-radius:6px}:is(#apiece-sign-up,#apiece-sign-in) .cl-socialButtonsBlockButtonText{font-size:15px}:is(#apiece-sign-up,#apiece-sign-in) .cl-socialButtonsProviderIcon{width:20px;height:20px}:is(#apiece-sign-up,#apiece-sign-in) .cl-footer{background:transparent;border-radius:0}:is(#apiece-sign-up,#apiece-sign-in) .cl-footerAction{padding:16px 0}:is(#apiece-sign-up,#apiece-sign-in) .cl-formFieldAction,:is(#apiece-sign-up,#apiece-sign-in) .cl-footerActionLink{font-size:14px;min-height:32px;display:inline-flex;align-items:center}:is(#apiece-sign-up,#apiece-sign-in) .cl-formResendCodeLink{min-height:44px}.story-welcome{align-items:start}.story-welcome .story-lead{max-width:440px}.story-login{display:none}
/* Natural portrait framing preserves hair, hands and ordinary surroundings. */
.persona-photo{aspect-ratio:4/5}.persona-photo img,.persona-detail-photo{object-position:50% 0%}.persona-detail-photo{max-height:none}.persona-photo:hover img{transform:none}.persona-photo span{max-width:calc(100% - 2rem);line-height:1.4}.persona-grid{max-width:1120px;margin-inline:auto}
.goal-explorer{background:#e9ecdf}.goal-explorer-heading{max-width:680px;margin-bottom:36px}.goal-explorer-heading h2{font-size:clamp(42px,5vw,72px);line-height:1.03}.goal-explorer-heading>p:last-child{line-height:1.65;max-width:600px}.goal-explorer-layout{display:grid;grid-template-columns:1fr 1fr;gap:38px;align-items:start}.goal-explorer-choices{display:flex;flex-wrap:wrap;gap:9px;align-content:start}.goal-explorer-chip{display:inline-flex;align-items:center;gap:8px;min-height:48px;border:1px solid #a4ae98;border-radius:28px;background:transparent;padding:11px 15px;font:inherit;font-size:14px;text-align:left;cursor:pointer}.goal-explorer-chip svg{width:19px;height:19px;flex-shrink:0}.goal-explorer-chip[aria-pressed=true]{background:#354d3d;color:#fffdf5;border-color:#354d3d}.goal-explorer-panel{background:#fcfaf3;border:1px solid #d9dccf;padding:30px;min-height:360px;border-radius:4px}.goal-explorer-panel h3{font-size:36px;margin:8px 0 16px}.goal-explorer-summary{line-height:1.6}.goal-explorer-ingredients{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px;margin:26px 0}.goal-explorer-ingredient h4{font-family:inherit;font-weight:650;font-size:16px;margin:0 0 8px}.goal-explorer-ingredient p,.goal-explorer-evidence p{font-size:14px;line-height:1.6}.goal-explorer-source{display:inline-block;font-size:12px;text-decoration:underline;text-underline-offset:3px;line-height:1.5;margin-top:7px}.goal-explorer-evidence{border-top:1px solid #d9dccf;padding-top:16px}.goal-explorer-empty{font-size:17px;line-height:1.5;font-weight:550;margin:24px 0}.goal-explorer-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:32px}.goal-explorer-actions .caption{flex-basis:100%;margin:0}.goal-explorer button:focus-visible,.dose-control input:focus-visible,.purchase-dock button:focus-visible{outline:3px solid #94632e;outline-offset:3px}
@media(max-width:780px){.goal-explorer-layout{grid-template-columns:1fr;gap:24px}.goal-explorer-panel{min-height:0;padding:23px}.goal-explorer-choices{gap:8px}.goal-explorer-chip{font-size:13px;padding:10px 12px;min-height:46px}.goal-explorer-actions{gap:20px}.story-welcome h1{font-size:46px;margin-bottom:14px}.story-welcome .story-lead{font-size:16px;line-height:1.6}.story-welcome .story-art{margin-top:20px}.purchase-dock{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:45;gap:14px;align-items:center;justify-content:space-between;padding:14px max(18px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));border-top:1px solid #bec4b3;background:#f9f7efeF;backdrop-filter:blur(12px);box-shadow:0 -4px 20px #383b2b0a}.purchase-dock>div{min-width:0}.purchase-dock strong{display:block;font-size:16px;line-height:1.35}.purchase-dock small{display:block;font-size:12px;line-height:1.4;margin-top:4px}.purchase-dock .button{flex-shrink:0;min-height:48px;font-size:14px;padding:12px 18px;margin:0}.purchase-dock button:disabled{opacity:.55}body:has(.purchase-dock){padding-bottom:110px}.public-builder .account-price{position:static}.dose-ingredient-title>strong{font-size:17px}.account-workspace .account-heading{gap:20px;align-items:start}.account-workspace .account-heading h1{font-size:42px}.account-workspace .account-heading>div:last-child{max-width:100%;overflow-wrap:anywhere}.account-workspace .account-row{flex-wrap:wrap}.account-workspace .account-row>div{display:flex;gap:8px;flex-wrap:wrap}.persona-photo{aspect-ratio:4/5}.persona-detail-photo{max-height:none}.story-shell{padding-top:36px}.story-welcome{gap:24px}}
@media(max-width:380px){.purchase-dock{gap:8px;padding-left:12px;padding-right:12px}.purchase-dock .button{padding:12px;font-size:13px}.purchase-dock strong{font-size:14px}.goal-explorer-ingredients{grid-template-columns:1fr}}

.goal-explorer-back{display:none}.goal-explorer-panel{scroll-margin-top:20px}@media(max-width:780px){.goal-explorer-back{display:inline-flex;min-height:44px;margin-bottom:15px;font-size:14px}}

:is(#apiece-sign-up,#apiece-sign-in) .cl-formFieldInputShowPasswordButton{min-width:44px;min-height:44px}
/* Compact, labeled forms in both onboarding and the full profile editor. */
.story-essentials,.questionnaire-editor .story-essentials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;align-items:start}
.story-fields label,.questionnaire-editor label{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-size:15px;line-height:1.5;min-width:0}
.story-fields input:not([type=checkbox]),.story-fields select,.story-fields textarea,.questionnaire-editor input:not([type=checkbox]),.questionnaire-editor select,.questionnaire-editor textarea{width:100%;max-width:100%;margin:0;min-height:48px;padding:12px 14px;font:inherit;font-size:16px;border:1px solid #b8c0b0;border-radius:7px;background:#fffefa;box-sizing:border-box}
.story-fields fieldset{min-width:0}.reproductive-context{grid-column:1/-1}.reproductive-context summary{padding:14px 0;cursor:pointer}.questionnaire-editor{max-width:1000px}.questionnaire-editor>section{padding:28px;margin:24px 0;background:#fffefa;border:1px solid #d7d9ce;border-radius:10px}.questionnaire-editor h1{font-size:38px}.questionnaire-editor .story-lead{font-size:17px}.questionnaire-editor .story-fields{border:0;padding:0;min-width:0}.questionnaire-editor .story-goals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.questionnaire-editor .goal-label{min-width:0}.questionnaire-editor .story-goals button{min-height:90px}.questionnaire-editor .story-pills{display:flex;flex-wrap:wrap;gap:8px}.questionnaire-editor .story-pills button{padding:12px;border:1px solid #b8c0b0;border-radius:24px;background:transparent}.questionnaire-editor .story-pills button[aria-pressed=true]{background:#354d3d;color:white}
.profile-menu{position:relative}.profile-menu>summary{cursor:pointer;list-style:none;padding:12px}.header .profile-menu nav{position:absolute;right:0;top:100%;display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:210px;padding:12px;background:#fffefa;border:1px solid #d7d9ce;border-radius:10px;box-shadow:0 12px 30px #40362e18;z-index:100}.profile-menu nav a,.profile-menu nav button{padding:12px;text-align:left;white-space:nowrap}
.formula-overview-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.formula-summary{padding:24px;background:#f0f1e8;border:1px solid #c4ccb9;border-radius:10px;margin:20px 0}.formula-summary>summary{cursor:pointer;display:flex;justify-content:space-between;gap:16px}.formula-summary ul{list-style:none;padding:0}.formula-summary li{display:flex;justify-content:space-between;border-bottom:1px solid #d7d9ce;padding:12px 0;gap:14px}.formula-summary .account-grid{margin-top:28px}.formula-summary:not([open])+ .account-formula-editor{display:none}.formula-summary[open]+ .account-formula-editor{display:grid}.order-progress{display:flex;flex-wrap:wrap;gap:24px;padding:24px;background:#f0f1e8}.order-progress li{margin-left:20px;max-width:250px}.testing-options{display:grid;grid-template-columns:1fr;gap:18px}.testing-options article{padding:16px;background:#fffefa;border-radius:8px}.testing-options li{margin:12px 0;line-height:1.65}
@media(max-width:650px){.story-essentials,.questionnaire-editor .story-essentials,.questionnaire-editor .story-goals{grid-template-columns:1fr}.questionnaire-editor>section{padding:18px}.questionnaire-editor h1{font-size:32px}.formula-summary{padding:18px}.formula-summary>summary{flex-direction:column}.formula-overview-heading h2{font-size:34px}.header .profile-menu nav{display:flex}.story-welcome h1{font-size:clamp(44px,12vw,64px)}}
.library-goals{display:flex;gap:9px;flex-wrap:wrap;margin:28px 0}.library-goals button{border:1px solid #a4ae98;border-radius:28px;padding:12px 17px;background:transparent;font:inherit;font-size:14px;min-height:44px;cursor:pointer}.library-goals button[aria-pressed=true]{background:#354d3d;color:white}.library-ingredient-photo{width:100%;height:190px;object-fit:cover;border-radius:5px;margin-bottom:18px}.live-catalog-grid>[hidden]{display:none!important}.persona-photo{aspect-ratio:auto!important}.persona-photo img{display:block;width:100%;height:auto!important;object-fit:contain!important}.persona-detail-photo{height:auto!important;object-fit:contain!important}
.story-essentials>label,.questionnaire-editor .story-essentials>label{margin:0}.story-essentials{margin:24px 0}.questionnaire-editor .story-essentials{gap:20px 24px}.story-fields legend.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}
/* Shared ingredient taxonomy: types are distinct from outcome associations. */
.ingredient-label{font-size:14px!important;font-weight:650;margin:1rem 0 .45rem}.supplement-tags,.goal-tags{display:flex;flex-wrap:wrap;gap:7px}.supplement-tags button,.goal-tags a{font:inherit;font-size:14px;line-height:1.4;display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;border:1px solid #9ba992;border-radius:24px;color:#263b2c;background:#e9edde;text-decoration:none;cursor:pointer}.goal-tags a{background:transparent;border-color:#c4c2b7;color:#514b43}.supplement-tags button:hover,.goal-tags a:hover{background:#dce4cf}.supplement-tags button:focus-visible,.goal-tags a:focus-visible,.explorer-modes button:focus-visible,.library-goals button:focus-visible{outline:3px solid #94632e;outline-offset:3px}.explorer-modes{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}.explorer-modes button{border:1px solid #354d3d;border-radius:4px;padding:12px 20px;min-height:46px;font:inherit;background:transparent;cursor:pointer}.explorer-modes button[aria-pressed=true]{background:#354d3d;color:#fffdf5}.goal-explorer-choices[hidden]{display:none!important}.goal-category-links{margin:20px 0}.library-filter-title{font-family:inherit;font-size:18px;font-weight:650;margin:30px 0 12px}.live-catalog .library-goals{margin:12px 0 22px}.library-category-detail{padding:22px 25px;background:#e9ecdf;border-radius:5px;max-width:850px}.library-category-detail h2{font-size:30px;margin:0 0 10px}.library-category-detail p{line-height:1.6}.library-category-detail a{font-size:14px;text-decoration:underline}.supplement-dialog{width:min(760px,calc(100% - 32px));max-height:85vh;overflow:auto;border:1px solid #b7bdae;border-radius:8px;padding:36px;background:#fcfaf3;color:#302c25}.supplement-dialog::backdrop{background:#24271fb3}.supplement-dialog h3{font-family:var(--serif,serif);font-size:40px;margin:12px 0 18px}.supplement-dialog p{font-size:16px;line-height:1.6}.supplement-dialog .caption{font-size:14px}.supplement-dialog .modal-close{float:right;position:sticky;top:0;width:44px;height:44px;border:1px solid #a4ae98;border-radius:50%;background:#fcfaf3;font-size:24px;cursor:pointer}.category-ingredient-list{list-style:none;padding:0;margin:16px 0 24px;max-height:430px;overflow:auto;overscroll-behavior:contain}.category-ingredient-list li{padding:14px 0;border-bottom:1px solid #dddccf}.category-ingredient-list a{font-size:16px;font-weight:600;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.category-ingredient-list p{font-size:14px;line-height:1.55;margin:6px 0}.goal-explorer-panel>h4{font-family:inherit;font-size:17px;margin-top:22px}.live-catalog .ingredient-purpose{font-size:16px}.live-catalog .account-card{min-width:0}.live-catalog h3{overflow-wrap:anywhere}.live-catalog .ingredient-facts,.live-catalog .ingredient-facts p{font-size:14px}@media(max-width:780px){.goal-explorer-chip{font-size:14px}.supplement-dialog{padding:22px}.library-category-detail{padding:20px}.category-ingredient-list{max-height:350px}}
