@import url('./admin-dashboard.css');
.account-workspace{max-width:1240px;margin:auto;padding-top:60px}.account-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.account-heading h1{font-size:clamp(42px,6vw,80px);margin:8px 0 12px}.account-heading>div:last-child{display:flex;align-items:center;gap:16px}.account-notice{padding:14px 20px;background:#e9eef4;border-radius:8px;font-size:13px}.account-tabs{display:flex;gap:10px;overflow:auto;border-bottom:1px solid #dce2e8;padding:18px 0 0}.account-tabs button{white-space:nowrap;border:0;background:none;padding:14px 18px;font:inherit;color:#596876;cursor:pointer}.account-tabs [aria-current=page]{border-bottom:3px solid #214d7b;color:#214d7b}.account-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:26px;align-items:start}.account-card{background:#fff;border:1px solid #dce3e9;border-radius:18px;padding:28px;margin-bottom:24px}.account-card h2{font-size:34px;margin-top:0;line-height:1.1}.account-card h3{font-size:23px}.account-card label{display:block;margin:16px 0;font-size:14px}.account-card input:not([type=checkbox]),.account-card select,.account-card textarea{display:block;width:100%;border:1px solid #bdc9d4;border-radius:8px;padding:12px;background:#fcfdff;margin-top:7px;font:inherit;color:#183650;box-sizing:border-box}.account-card .check-label{display:flex;align-items:start;gap:10px;line-height:1.4}.account-card input[type=checkbox]{margin:4px 0;flex:none}.account-ingredient{display:grid;grid-template-columns:40px 1fr 95px auto;gap:14px;align-items:center;padding:17px 0;border-bottom:1px solid #e7ebef}.account-ingredient label{margin:0;text-align:right}.account-ingredient input{max-width:95px}.account-ingredient small,.account-report small,.account-row small{display:block;font-size:12px;color:#657787;margin-top:5px}.account-ingredient strong{font-size:16px}.account-ingredient .demo-element{width:38px;height:38px;font-size:19px}.account-add{display:flex;align-items:center;gap:18px}.account-add label{flex:1}.account-context{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.account-flag{font-size:13px;border-left:3px solid #b3bdc7;padding-left:12px}.account-flag strong{text-transform:capitalize}.account-plan{padding:20px;border:1px solid #b8c9d9;background:#f5f8fc;border-radius:12px;margin-bottom:15px}.account-plan h3{font-size:31px;margin:12px 0}.account-plan h3 small{font-size:15px;white-space:nowrap}.account-plan s{color:#657787;margin-right:10px}.account-price .button{width:100%;justify-content:center}.account-message{min-height:24px;color:#39597a;font-size:14px}.account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e7ebef}.account-report{padding:18px 0;border-bottom:1px solid #e7ebef}.account-order{padding:20px;border-radius:12px;background:#eff5f5;margin-bottom:24px;overflow-wrap:anywhere}.account-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:24px 0}.account-metrics>div{background:#f2f6fa;padding:20px;border-radius:10px}.account-metrics strong{display:block;font-size:32px}.account-feedback{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.account-card.narrow{max-width:650px}.account-card .table-wrap{overflow:auto}.account-card th,.account-card td{text-align:left;padding:14px 10px;border-bottom:1px solid #e4e9ef;font-size:13px}.account-card details{margin:20px 0}.account-card summary{cursor:pointer;font-size:14px}.account-card p{line-height:1.55}.account-card .button-row{flex-wrap:wrap}.account-card .file-button input{max-width:100%}@media(max-width:800px){.account-grid{grid-template-columns:1fr}.account-heading{align-items:start;flex-direction:column}.account-card{padding:20px}.account-metrics{grid-template-columns:1fr 1fr}.account-context{grid-template-columns:1fr}}@media(max-width:500px){.account-ingredient{grid-template-columns:32px 1fr 80px;gap:9px}.account-ingredient>button{grid-column:2/4;justify-self:end}.account-add{flex-direction:column;align-items:stretch;gap:0}.account-tabs button{padding:12px 9px}}

.account-workspace .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.account-card input[aria-invalid=true]{border-color:#9b3434}

/* Apiece graphic language: editorial type, tactile paper, consistent Lucide strokes. */
.apiece-icon{width:22px;height:22px;stroke-width:1.6;flex:none;vertical-align:middle}.story-shell{max-width:1240px;margin:auto;padding:36px 42px 64px;color:#40362e}.story-steps{list-style:none;padding:0;margin:0 0 42px;display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #d8d6cd}.story-steps li{display:flex;align-items:center;gap:10px;padding:0 0 22px;font-size:13px;color:#6e7167}.story-steps li[aria-current]{color:#354d3d;border-bottom:2px solid #354d3d}.story-steps li.complete{color:#354d3d}.story-steps li>span{display:flex;align-items:center;justify-content:center}.story-welcome{display:grid;grid-template-columns:1.1fr 1fr;gap:64px;align-items:center}.story-shell h1{font-size:clamp(52px,6.1vw,78px);line-height:.98;letter-spacing:-.035em;margin:18px 0 24px}.story-shell h1 em{color:#354d3d}.story-lead{font-size:17px;line-height:1.65;max-width:590px;color:#63655c}.story-art{position:relative;align-self:stretch;min-height:490px;background:#faf8f1;overflow:hidden}.story-art img{width:100%;height:100%;object-fit:cover;min-height:490px}.story-art>div{position:absolute;top:28px;left:30px}.story-art p{font:42px/1.03 var(--serif);margin:18px 0}.story-pair{display:grid;grid-template-columns:1fr 1.25fr;gap:18px}.story-shell label{display:block;font-size:13px;margin:20px 0;color:#40362e}.story-shell input:not([type=checkbox]),.story-shell select,.story-shell textarea{display:block;width:100%;margin-top:9px;padding:13px 12px;border:1px solid #c4c8bc;background:#fffefa;color:#40362e;border-radius:6px;font:inherit;box-sizing:border-box}.story-shell input:focus,.story-shell select:focus,.story-shell textarea:focus{outline:2px solid #627860;outline-offset:2px}.story-shell .story-check{display:flex;gap:11px;align-items:flex-start;font-size:12px;line-height:1.6}.story-check input{margin:4px 0;flex:none;accent-color:#354d3d}.story-shell a{text-underline-offset:3px}.story-shell .button{background:#354d3d;color:#fffdf5;border-color:#354d3d;gap:15px;border-radius:6px;min-height:48px;justify-content:center}.story-micro{font-size:12px;line-height:1.6;color:#62675e}.story-login{font-size:14px;margin:25px 0 0}.story-login button{font:inherit}.story-service-note{font-size:12px;line-height:1.6;padding:15px 18px;background:#efeee4;border-left:2px solid #acb3a1;margin-top:24px}.story-shell .story-honey{display:none}.story-content{max-width:820px;margin:0 auto}.story-content h2{font-size:30px;margin:32px 0 8px}.story-consent{padding:15px 18px;background:#f0f1e8;border-radius:5px}.story-fields{border:0;padding:0;margin:0;min-width:0}.story-fields:disabled{opacity:.5}.story-goals{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:25px 0 36px}.story-goals button{display:flex;align-items:center;gap:15px;text-align:left;font:inherit;font-size:15px;padding:19px 18px;border:1px solid #c6cbbb;background:#fffef9;color:#40362e;border-radius:8px;cursor:pointer;min-height:70px}.story-goals button span{flex:1}.story-goals button[aria-pressed=true],.story-pills button[aria-pressed=true],.story-lab-choices button[aria-pressed=true]{background:#e7ecdE;border-color:#354d3d;color:#294331}.story-pills{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.story-pills button{border:1px solid #c6cbbb;border-radius:30px;background:transparent;padding:11px 18px;font:inherit;font-size:13px;cursor:pointer;color:inherit}.story-essentials{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.story-actions{display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid #d8d6cd;margin:35px 0 20px;padding-top:25px}.story-actions>div{display:flex;align-items:center;gap:22px}.story-actions .text-button{font-size:13px}.story-sandbox{font-size:11px;letter-spacing:.04em;text-align:center;color:#77786e;margin-top:30px}#story-status{font-size:13px;color:#354d3d;line-height:1.6;margin:18px 0;min-height:22px;white-space:pre-wrap}.story-content+#story-status{max-width:820px;margin:18px auto}.story-lab-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:34px 0}.story-lab-choices button{padding:24px 20px;border:1px solid #c6cbbb;background:#fffef9;border-radius:8px;text-align:left;cursor:pointer;color:inherit;font:inherit;display:flex;flex-direction:column;gap:14px;align-items:flex-start}.story-lab-choices .apiece-icon{width:32px;height:32px;margin-bottom:7px}.story-lab-choices strong{font-size:16px;font-weight:500}.story-lab-choices span{font-size:13px;line-height:1.6;color:#62675e}.story-upload,.story-testing,.story-documents{padding:4px 25px 20px;background:#f1f0e6;border-radius:8px;margin:25px 0}.story-documents small{display:block}.story-documents a{font-size:13px}.story-shell .story-file input{padding:14px;background:#fffef9;font-size:13px}.story-shell .sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;padding:0;border:0;overflow:hidden}.account-renew{display:flex!important;gap:14px;align-items:center;padding:16px;background:#edf0e6;border-radius:8px}.account-renew input{appearance:none;width:42px;height:24px;border-radius:20px;background:#92998e;position:relative;cursor:pointer;flex:none}.account-renew input:checked{background:#354d3d}.account-renew input:before{content:'';position:absolute;width:18px;height:18px;top:3px;left:3px;border-radius:50%;background:#fff;transition:transform .15s}.account-renew input:checked:before{transform:translateX(18px)}.account-renew small{display:block;margin-top:4px;color:#596457;font-size:12px}.account-story-summary{background:#f0f1e9;border-radius:10px;padding:20px 24px;margin-bottom:26px}.account-story-summary p{margin:8px 0}.account-workspace .account-notice{background:#efeee4}.account-tabs [aria-current=page]{border-color:#354d3d;color:#354d3d}.account-card{border-color:#d7d9ce;background:#fffefa}.account-plan{background:#f0f3e9;border-color:#bcc7b1}.account-card input:not([type=checkbox]),.account-card select,.account-card textarea{color:#40362e;background:#fffefb;border-color:#c4c8bc}.account-message{color:#354d3d}
@media(max-width:900px){.story-welcome{gap:30px}.story-pair{grid-template-columns:1fr}.story-art{min-height:480px}.story-shell{padding:26px 24px 48px}.story-steps{gap:12px}.story-steps li{font-size:12px}.story-art p{font-size:35px}.story-art>div{left:20px}}
@media(max-width:650px){.story-shell{padding:24px 20px 44px}.story-steps{margin-bottom:26px;gap:5px}.story-steps li{flex-direction:column;gap:9px;text-align:center;font-size:10px;padding-bottom:16px}.story-welcome{grid-template-columns:1fr;gap:26px}.story-art{min-height:0;height:260px;order:2}.story-art img{min-height:0;object-position:50% 58%}.story-art>div{top:18px}.story-art p{font-size:27px}.story-art .eyebrow{font-size:9px}.story-shell h1{font-size:54px}.story-pair{grid-template-columns:1fr}.story-goals{gap:10px}.story-goals button{padding:16px 12px;font-size:13px;gap:10px;min-height:84px;flex-wrap:wrap}.story-goals button span{flex-basis:calc(100% - 35px)}.story-goals button>.apiece-icon:last-child:not(:first-child){display:none}.story-essentials{grid-template-columns:1fr}.story-lab-choices{grid-template-columns:1fr;gap:10px}.story-lab-choices button{display:grid;grid-template-columns:35px 1fr;gap:5px 16px;padding:20px}.story-lab-choices button>.apiece-icon{grid-row:1/3;margin:0}.story-lab-choices button>span{grid-column:2}.story-actions{gap:12px}.story-actions>div{gap:12px;flex-wrap:wrap;justify-content:flex-end}.story-actions .button{padding:13px 17px;font-size:13px}.story-upload,.story-testing,.story-documents{padding:4px 18px 20px}.story-lead{font-size:16px}}

.story-auth{margin:28px 0 20px;max-width:440px}.story-auth>h2{font-size:30px;margin:0 0 12px}.story-auth>p{font-size:14px;line-height:1.7}.story-auth .cl-rootBox,.story-auth .cl-cardBox{width:100%;max-width:100%}.story-auth .cl-footer{background:transparent}.story-pair>label{margin:12px 0}.story-pair{row-gap:0}
.public-heading{display:flex;align-items:center;justify-content:space-between;gap:40px}.public-heading h1{font-size:clamp(48px,6vw,78px);line-height:1;letter-spacing:-.025em;margin:16px 0 25px}.public-heading h1 em{color:#354d3d}.public-heading .lead{max-width:650px}.public-heading>a{white-space:nowrap}.public-note{font-size:13px;line-height:1.7;padding:18px 22px;background:#efeee4;margin:28px 0 35px}.sample-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.sample-person{padding:30px;background:#fffef9;border:1px solid #d5d8cb;border-radius:12px;display:flex;flex-direction:column}.sample-person-heading{display:flex;gap:20px;align-items:center;margin-bottom:24px}.sample-monogram{font:48px/1 var(--serif);width:70px;height:70px;display:grid;place-items:center;background:#e8eddf;border-radius:50%;color:#354d3d;flex:none}.sample-person:nth-child(3n+2) .sample-monogram{background:#eee2b2}.sample-person:nth-child(3n) .sample-monogram{background:#dce7e9}.sample-person-heading small{font-size:10px;letter-spacing:.14em}.sample-person h2{font-size:31px;margin:8px 0 0}.sample-person h3{font-size:25px;margin:4px 0 10px}.sample-person>p{font-size:14px;line-height:1.7;color:#657061}.sample-person dl{margin:15px 0 20px;flex:1}.sample-person dl>div{display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #e8e9df;font-size:13px}.sample-person dd{margin:0;white-space:nowrap}.sample-card-prices{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0 24px}.sample-card-prices span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em}.sample-card-prices strong{font-size:21px;font-weight:500;display:block;margin-top:10px}.sample-card-prices strong small{font-size:12px}.sample-card-prices p{font-size:12px;line-height:1.7}.sample-card-prices s{color:#6c7068}.sample-person .button{align-self:flex-start}.sample-gallery .button,.public-builder .button{background:#354d3d;border-color:#354d3d;color:#fffdf7;gap:15px}.public-plan{display:flex;flex-direction:column;text-align:left;gap:12px;font:inherit;border:1px solid #cad2bd;background:#fffefa;padding:22px;width:100%;border-radius:10px;margin:15px 0;cursor:pointer;color:#40362e}.public-plan[aria-pressed=true]{background:#e9eedf;border:2px solid #354d3d;padding:21px}.public-plan>span{font-size:13px;line-height:1.6}.public-plan strong{font-size:30px;font-weight:500}.public-plan strong small{font-size:14px}.public-plan s{margin-right:12px;color:#6c7068}#public-message{font-size:13px;line-height:1.6;color:#354d3d}.public-builder{max-width:1280px;margin:auto}.public-builder .account-ingredient label{font-size:12px}.public-builder .account-price h2{margin-top:15px}
@media(max-width:850px){.public-heading{display:block}.public-heading>a{display:inline-flex;margin-top:15px}.sample-person{padding:24px}.sample-person-heading{gap:12px}.sample-person h2{font-size:26px}.sample-monogram{width:50px;height:50px;font-size:38px}.sample-card-prices{grid-template-columns:1fr}.sample-card-prices>div+div{border-top:1px solid #d8ddce;padding-top:16px}}
@media(max-width:620px){.sample-gallery-grid{grid-template-columns:1fr}.sample-card-prices{grid-template-columns:1fr 1fr;gap:16px}.sample-card-prices>div+div{border:0;padding:0}.sample-person{padding:24px 20px}.sample-card-prices strong{font-size:20px}.public-heading h1{font-size:55px}.sample-gallery .lead,.public-builder .lead{font-size:16px}.public-note{padding:16px}.story-actions{flex-wrap:wrap}.story-actions>div{margin-left:auto}}

/* Keep mobile fields readable without triggering automatic input zoom. */
@media(max-width:650px){.account-card input:not([type=checkbox]),.account-card select,.account-card textarea,.story-shell input:not([type=checkbox]),.story-shell select,.story-shell textarea{font-size:16px}.account-ingredient>button{min-height:44px}.account-ingredient>div{min-width:0}}
/* Ingredient browsing, saved account navigation and cart. */
.ingredient-purpose{font-size:14px;line-height:1.55;margin:.45rem 0}.ingredient-price{font-size:12px;line-height:1.5;color:var(--forest,#354d3d);margin:.4rem 0}.ingredient-facts{font-size:12px;margin:.65rem 0}.ingredient-facts summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}.ingredient-facts p{font-size:12px;line-height:1.55}.ingredient-picker{border-top:1px solid #d8d7cc;margin-top:24px;padding-top:24px}.ingredient-options{display:grid;gap:12px;margin:20px 0}.ingredient-options article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;padding:16px;border:1px solid #d8d7cc;border-radius:12px}.ingredient-options article[hidden],.live-catalog-grid article[hidden]{display:none}.ingredient-options .button{align-self:start}.account-ingredient{align-items:start}.account-ingredient>div{min-width:0}.live-catalog>label{display:block;max-width:580px;margin:32px 0 20px}.live-catalog input{width:100%;padding:15px;border:1px solid #c8cbbf;border-radius:8px;background:#fff;font:inherit}.live-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:32px}.live-catalog-grid h3{font-size:23px}.cart-nav{display:inline-flex;gap:5px;align-items:center;min-height:44px}.cart-nav span{font-size:12px}.cart-line{padding:20px 0;border-bottom:1px solid #ddd}.cart-line>span{float:right}.cart-total{font-size:38px!important}.stock-status{display:block;font-size:12px;color:#354d3d}.account-row>div{display:flex;gap:8px}.account-ingredient input{max-width:95px}.account-tabs{flex-wrap:wrap}@media(max-width:1000px){.live-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.live-catalog-grid{grid-template-columns:1fr}.account-ingredient{grid-template-columns:35px minmax(0,1fr)}.account-ingredient>label{grid-column:2}.account-ingredient>button{grid-column:2;justify-self:start}.nav-actions{gap:12px}.nav-actions .account-link{display:inline-block}.ingredient-options article{grid-template-columns:1fr}.cart-line>span{display:block;float:none}}

/* Supply estimates keep each cost component distinct, including unknown fees. */
.account-price-breakdown{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.5rem 1rem;margin:1rem 0}
.account-price-breakdown dt{font-size:.86rem;line-height:1.45}
.account-price-breakdown dd{margin:0;font-size:.9rem;line-height:1.45;overflow-wrap:anywhere}

/* Readiness reasons remain visible at narrow widths without sideways scrolling. */
.readiness-controls{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.readiness-controls li{padding:1rem;border:1px solid #d8d7cc;border-radius:10px;min-width:0}
.readiness-controls h4{margin:0 0 .75rem;overflow-wrap:anywhere}
.readiness-controls dl{display:grid;grid-template-columns:4rem minmax(0,1fr);gap:.5rem;margin:0}
.readiness-controls dt{font-size:.85rem;font-weight:600}
.readiness-controls dd{margin:0;font-size:.9rem;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:650px){.readiness-controls{grid-template-columns:1fr}.readiness-controls dl{grid-template-columns:1fr;gap:.25rem}.readiness-controls dd{margin-bottom:.65rem}}

/* Progressive goal disclosure must override the chip's flex display. */
.goal-explorer-chip[hidden]{display:none}

/* Compact blend editor: preserve the paper/forest palette while giving each
   ingredient a readable amount control and optional education disclosure. */
.public-builder{max-width:1480px;margin-inline:auto}
.compact-formula-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.compact-formula-row{min-width:0;padding:12px 0;border-bottom:1px solid #d8d7cc}
.compact-row-main{display:grid;grid-template-columns:minmax(120px,1fr) minmax(160px,1.25fr) auto;gap:12px;align-items:center}
.compact-ingredient-name{min-width:0;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.compact-row-main>.text-button,.compact-row-main>button{min-height:44px;max-width:100%;white-space:normal}
.compact-formula-row .dose-control{min-width:0;margin:0}
.compact-formula-row .dose-heading{gap:8px;flex-wrap:wrap}
.compact-formula-row .dose-heading>span{flex-wrap:wrap;max-width:100%}
.compact-formula-row .dose-control input[type=number]{min-height:44px;width:86px;max-width:100%;padding:8px;font-size:16px}
.compact-formula-row .dose-control button{min-height:44px;min-width:44px;padding:6px}
.compact-formula-row .dose-control .caption{margin:6px 0 0;font-size:12px;line-height:1.4}
.compact-formula-row .compact-ingredient-details{margin:8px 0 0}
.compact-ingredient-details>summary{min-height:44px;display:list-item;padding:10px 0;font-size:13px;cursor:pointer}
.compact-ingredient-details .ingredient-education{padding:8px 0}
.public-builder .ingredient-options{max-height:440px;overflow-y:auto;overscroll-behavior:contain;padding:4px;scroll-padding:8px}
.public-builder .ingredient-options article{gap:10px;padding:12px;min-width:0}
.public-builder .ingredient-options article strong{overflow-wrap:anywhere}
.public-builder .account-price{align-self:start;position:static;min-width:0}
@media(max-width:700px){.compact-row-main{grid-template-columns:minmax(0,1fr) auto;gap:8px}.compact-row-main>.dose-control{grid-column:1/-1;grid-row:2}.compact-row-main>.text-button,.compact-row-main>button{grid-column:2;grid-row:1}.public-builder .ingredient-options{max-height:360px}.public-builder .account-price{position:static}.compact-formula-row .dose-heading{align-items:flex-start}}

/* Full-width editor avoids trading useful ingredient space for a fixed sidebar. */
.public-builder,.account-workspace:has(.account-formula-editor){max-width:1520px}
.public-builder .account-grid,.account-formula-editor{grid-template-columns:minmax(0,1fr)}
.compact-formula-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));column-gap:20px}
.compact-row-main{grid-template-columns:minmax(0,1fr) auto;gap:8px}
.compact-row-main>.dose-control,.compact-row-main>.compact-request{grid-column:1/-1;grid-row:2}
.compact-row-main>.compact-remove{grid-column:2;grid-row:1}
.compact-formula-row{padding:8px 0}
.compact-formula-row .compact-stepper>label{margin:0;font-size:12px;line-height:1.4}
.compact-formula-row .dose-stepper-controls{display:flex;align-items:center;gap:6px;max-width:100%;flex-wrap:wrap}
.compact-formula-row .dose-stepper-controls button{width:44px;min-height:44px;border:1px solid #aaaca0;border-radius:6px;background:#fffdf8;font:inherit;color:inherit;cursor:pointer}
.compact-formula-row .dose-stepper-controls button:disabled{cursor:default;opacity:.55}
.compact-formula-row .compact-request{min-width:0;max-width:100%}
.compact-formula-row .compact-request input{min-height:44px;max-width:100%;font-size:16px}
.account-formula-editor>aside,.public-builder .account-grid>.account-price{grid-column:1/-1;min-width:0}
.account-formula-editor>aside .account-price,.public-builder .account-grid>.account-price{position:static}
@media(min-width:900px){.account-formula-editor>aside .account-price,.public-builder .account-grid>.account-price{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px}.account-formula-editor>aside .account-price>*,.public-builder .account-grid>.account-price>*{min-width:0;margin-block:4px}.compact-ingredient-details>summary{min-height:20px;padding:4px 0}.compact-formula-row .compact-ingredient-details{margin-top:2px}}
@media(min-width:1280px){.compact-ingredient-name{font-size:14px}.compact-formula-row .dose-control .caption{font-size:11px}}
@media(max-width:899px){.compact-formula-list{grid-template-columns:1fr}.compact-ingredient-details>summary{min-height:44px}.compact-row-main>.compact-remove{min-height:44px}}

/* The disclosure is a fourth cell; expanding education gets the whole row. */
@media(min-width:900px){.compact-formula-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr))}.compact-row-main{grid-template-columns:minmax(80px,1fr) auto auto auto;gap:6px}.compact-row-main>.dose-control,.compact-row-main>.compact-request{grid-column:2;grid-row:1}.compact-row-main>.compact-remove{grid-column:3;grid-row:1}.compact-row-main>.compact-ingredient-details{grid-column:4;grid-row:1;margin:0}.compact-row-main>.compact-ingredient-details[open]{grid-column:1/-1;grid-row:2}.compact-formula-row .dose-stepper-controls{flex-wrap:nowrap;gap:4px}.compact-formula-row .dose-control input[type=number]{width:68px}.compact-formula-row .compact-request input{width:68px}.compact-row-main>.compact-ingredient-details>summary{min-height:44px;padding:12px 0;white-space:nowrap}.compact-review-label{display:none}.compact-formula-row{padding:6px 0}}
@media(max-width:899px){.compact-row-main>.compact-ingredient-details{grid-column:1/-1;grid-row:3;min-width:0}}

/* Accessible supporting text remains available without expanding every row. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.dose-review-status{display:block;font-size:11px;line-height:1.3;color:#52634d}
.compact-pending{font-size:12px;line-height:1.4}
.compact-remove{min-width:44px;font-size:22px!important}
.compact-formula-row .compact-ingredient-details[open]{border-top:1px solid #d8d7cc;padding-top:8px}

.public-builder #public-dock .purchase-dock,.account-workspace #account-live-dock .purchase-dock{position:static;width:auto;inset:auto;margin-top:16px;box-shadow:none}

.dose-input-error{display:block;color:#923e28;font-size:12px;line-height:1.4;margin-top:4px;max-width:240px}.dose-input-error[hidden]{display:none}

/* Discovery controls: compact filters and explicit compound selection. */
.picker-filter-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.picker-filter-row>label{min-width:160px;margin:0}.picker-filter-row .check-label{min-height:44px;align-items:center}.picker-filter-row select{max-width:100%}
.compound-picker{min-width:0;border:1px solid #d8d7cc;border-radius:10px;padding:16px}.compound-picker-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:6px;max-height:360px;overflow:auto;overscroll-behavior:contain}.compound-picker-options>label{display:flex;align-items:center;gap:10px;margin:0!important;min-height:44px;padding:8px}.compound-picker-options input[type=checkbox]{flex:none;width:20px!important;height:20px;margin:0}.compound-picker-options small{display:block;font-size:12px}.compound-picker-options [hidden]{display:none}.compound-picker [data-compound-selected]{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.compound-picker [data-compound-remove]{min-height:44px;border:1px solid #c8cbbf;border-radius:8px;padding:6px 10px;overflow-wrap:anywhere}
@media(max-width:600px){.picker-filter-row{align-items:stretch}.picker-filter-row>label{width:100%}.compound-picker{padding:12px}.compound-picker-options{grid-template-columns:1fr}}

/* Interactive review areas use quiet surfaces, wrapped identities and separate actions. */
.public-builder .account-card,.account-formula-editor .account-card,.cart-page .account-card,.ingredient-picker{background-image:none}
.cart-page .cart-review-lines{min-width:0}
.cart-page .cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px;align-items:start}
.cart-page .cart-line>strong{min-width:0;overflow-wrap:anywhere;line-height:1.5}
.cart-page .cart-line>span{float:none;max-width:100%;text-align:right;line-height:1.5;overflow-wrap:anywhere}
.cart-page .cart-line>.ingredient-education{grid-column:1/-1;min-width:0}
.cart-page .cart-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0;min-width:0}
.cart-page .cart-actions .button,.cart-page .cart-actions .text-button{position:static;width:auto;max-width:100%;min-height:44px;margin:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.cart-page .cart-actions .text-button{padding:10px 4px;gap:8px}
.cart-page .cart-actions .button{padding:12px 18px;gap:12px}
.public-builder .purchase-dock,.account-formula-editor .purchase-dock{position:static;inset:auto;box-shadow:none;backdrop-filter:none;flex-wrap:wrap;margin-top:20px;grid-column:1/-1;padding:16px;border:1px solid #bec4b3;border-radius:6px}
body:has(.public-builder .purchase-dock),body:has(.account-formula-editor .purchase-dock){padding-bottom:0}
.public-builder .purchase-dock>.button,.account-formula-editor .purchase-dock>.button{max-width:100%;white-space:normal}
.public-builder .public-heading{gap:20px;flex-wrap:wrap}
.public-builder .ingredient-picker input[type=search]{max-width:100%;min-height:44px;font-size:16px}
.public-builder .ingredient-options button{white-space:normal;max-width:100%}
@media(max-width:600px){.cart-page .cart-line{grid-template-columns:minmax(0,1fr)}.cart-page .cart-line>span{text-align:left}.cart-page .cart-actions{align-items:stretch}.cart-page .cart-actions .button{flex:1 1 100%;justify-content:center}.cart-page .cart-actions .text-button{flex:0 1 auto}.public-builder .public-heading{display:block}.public-builder .public-heading>.text-button{min-height:44px;margin:12px 0}.public-builder .purchase-dock,.account-formula-editor .purchase-dock{gap:12px}}

.cart-page .cart-review-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
.cart-review-blend,.cart-review-summary{min-width:0}
.cart-review-lines{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.cart-review-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,auto);gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid #d8d7cc}
.cart-review-line>strong{min-width:0;overflow-wrap:anywhere;line-height:1.5}
.cart-review-amount{text-align:right;float:none;line-height:1.5;overflow-wrap:anywhere}
.cart-review-amount>span,.cart-review-amount>small{display:block}
.cart-review-summary dl{margin:12px 0}
.cart-review-summary dl>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:10px 0;border-bottom:1px solid #d8d7cc}
.cart-review-summary dt,.cart-review-summary dd{margin:0;min-width:0;overflow-wrap:anywhere}
.cart-review-summary dd{text-align:right}
.cart-review-hold{padding:12px 16px;background:#edf0e5;line-height:1.5;overflow-wrap:anywhere}
.cart-review-details>summary{min-height:44px;padding:10px 0;cursor:pointer}
@media(min-width:1100px){.cart-page .cart-review-grid{grid-template-columns:minmax(0,1fr) minmax(280px,360px)}}
@media(max-width:500px){.cart-review-line{grid-template-columns:minmax(0,1fr);gap:4px}.cart-review-amount{text-align:left}.cart-review-amount>span,.cart-review-amount>small{display:inline}.cart-review-amount>small{margin-left:6px}.cart-review-summary dl>div{grid-template-columns:minmax(0,1fr)}.cart-review-summary dd{text-align:left}}

/* Educational ingredient visuals stay inside their cards and never sit behind controls. */
.ingredient-library-card{display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;background:#fcfaf3;border:1px solid #d8d7cc;border-radius:8px}
.ingredient-card-visual{height:200px;min-width:0;overflow:hidden;background:#edf0e5;border-bottom:1px solid #d8d7cc}
.ingredient-category-visual{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;height:100%;margin:0;padding:20px;box-sizing:border-box;color:#354d3d;background-image:none}
.ingredient-category-visual>svg{display:block;width:100%;height:100%;max-width:230px;max-height:140px;flex:1 1 auto;min-height:0}
.ingredient-category-visual>figcaption{max-width:100%;font-size:12px;line-height:1.4;text-align:center;overflow-wrap:anywhere}
.ingredient-card-copy{display:flex;flex-direction:column;flex:1 1 auto;gap:10px;min-width:0;padding:20px}
.ingredient-card-copy h3{margin:0;font-size:24px;line-height:1.2;overflow-wrap:anywhere}
.ingredient-card-copy p{margin:0;line-height:1.5;overflow-wrap:anywhere}
.ingredient-card-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 20px 20px;margin-top:auto}
.ingredient-card-actions .button,.ingredient-card-actions .text-button{min-height:44px;max-width:100%;white-space:normal;line-height:1.5;gap:8px}
.ingredient-card-actions .button{padding:10px 14px}
.ingredient-card-actions .text-button{padding:10px 0}
.ingredient-detail-page{max-width:1240px;margin-inline:auto}
.ingredient-detail-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:clamp(24px,4vw,60px);align-items:start;margin:28px 0}
.ingredient-detail-visual{min-width:0;height:360px;border:1px solid #d8d7cc;border-radius:8px;background:#edf0e5;overflow:hidden}
.ingredient-detail-visual .ingredient-category-visual{padding:36px}
.ingredient-detail-visual .ingredient-category-visual>svg{max-width:320px;max-height:260px}
.ingredient-detail-main{min-width:0;overflow-wrap:anywhere}
.ingredient-detail-main h1{font-size:clamp(36px,4vw,60px);line-height:1.1;margin-top:0}
.ingredient-detail-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0;position:static}
.ingredient-detail-actions .button,.ingredient-detail-actions .text-button{min-height:44px;max-width:100%;white-space:normal;gap:10px}
.ingredient-detail-facts{padding:20px;border:1px solid #d8d7cc;background:#fcfaf3;border-radius:6px;background-image:none}
.ingredient-detail-facts dl{margin:0}
.ingredient-detail-facts dl>div{display:grid;grid-template-columns:minmax(100px,.6fr) minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid #d8d7cc}
.ingredient-detail-facts dt,.ingredient-detail-facts dd{margin:0;line-height:1.5;overflow-wrap:anywhere}
.ingredient-detail-facts dt{font-weight:600}
.ingredient-detail-facts dl>div:last-child{border-bottom:0}
@media(max-width:700px){.ingredient-detail-layout{grid-template-columns:minmax(0,1fr);gap:24px}.ingredient-detail-visual{height:240px}.ingredient-detail-visual .ingredient-category-visual{padding:24px}.ingredient-detail-visual .ingredient-category-visual>svg{max-height:170px}.ingredient-card-visual{height:160px}.ingredient-card-copy{padding:18px}.ingredient-card-actions{padding:0 18px 18px}.ingredient-detail-actions{gap:12px}.ingredient-detail-facts dl>div{grid-template-columns:minmax(0,1fr);gap:4px}.ingredient-card-copy h3{font-size:22px}}

/* Final shared contracts: facts is the definition list, not a wrapper around it. */
dl.ingredient-detail-facts{margin:0}
dl.ingredient-detail-facts>div{display:grid;grid-template-columns:minmax(100px,.6fr) minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid #d8d7cc}
dl.ingredient-detail-facts>div:last-child{border-bottom:0}
.cart-page>h1{font-size:clamp(36px,4.5vw,64px);line-height:1.08;margin:12px 0 28px}
.public-builder .public-heading h1{font-size:clamp(36px,4.5vw,64px);line-height:1.08;margin:12px 0 20px}
.cart-page .purchase-dock{position:static;inset:auto;box-shadow:none;backdrop-filter:none;flex-wrap:wrap;padding:16px;margin:20px 0;border:1px solid #bec4b3;border-radius:6px}
body:has(.cart-page .purchase-dock){padding-bottom:0}
.cart-page .purchase-dock .button{max-width:100%;white-space:normal}
.library-discovery-details>summary{min-height:44px;cursor:pointer;padding:10px 0;line-height:1.5}
.library-discovery-details{margin:16px 0}
.live-catalog input[type=search]{min-height:44px;width:100%;min-width:0;max-width:100%;font-size:16px}
.live-catalog .library-goals{flex-wrap:wrap;gap:8px}
.live-catalog .library-goals button{min-height:44px;max-width:100%;white-space:normal}
.sample-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}
.sample-actions .button,.sample-actions .text-button{min-height:44px;max-width:100%;white-space:normal;gap:10px;line-height:1.5}
.builder-sample-context{padding:12px 16px;margin:16px 0;background:#edf0e5;border:1px solid #c4ccb9;border-radius:6px;overflow-wrap:anywhere;background-image:none}
.builder-sample-context p{font-size:14px;line-height:1.5;margin:6px 0}
@media(max-width:700px){dl.ingredient-detail-facts>div{grid-template-columns:minmax(0,1fr);gap:4px}.sample-actions{align-items:stretch}.sample-actions .button{flex:1 1 100%;justify-content:center}.builder-sample-context{padding:12px}.cart-page .purchase-dock{gap:12px}}
