/* Recipe views share the action library's palette; all rules are scoped. */
.recipes-active .page-header{margin-bottom:20px;align-items:center}.recipes-active .page-header h1{font-size:24px;font-weight:550;letter-spacing:0}.recipes-active .page-header .eyebrow{display:none}.recipes-active .app-scroll{padding-top:16px}.recipe-detail-active .page-header{display:none}.recipe-detail-active .app-scroll{padding-top:0}.recipes-page{padding-bottom:65px;color:var(--white);font-size:14px;line-height:1.6}.recipes-page h1,.recipes-page h2,.recipes-page h3,.recipe-dialog h2,.recipe-dialog h3{font-weight:550;letter-spacing:0}.recipes-page button,.recipe-dialog button,.recipes-page a{touch-action:manipulation}.recipes-page input,.recipe-dialog input,.recipe-dialog select{font-family:inherit}.recipes-page button:focus-visible,.recipe-dialog button:focus-visible,.recipe-dialog input:focus-visible,.recipes-page input:focus-visible{outline:2px solid var(--white);outline-offset:3px}.recipe-intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}.recipe-intro h2{font-size:20px;line-height:1.4}.recipe-intro p{font-size:13px;color:var(--muted);margin-top:7px}.recipe-round{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;flex:none}.recipe-search{height:46px;display:flex;align-items:center;gap:10px;padding:0 12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--muted)}.recipe-search input{font-size:14px;width:100%;border:0;outline:none;background:none;color:var(--white);height:44px;min-width:0}.recipe-search button{width:32px;height:40px;display:grid;place-items:center;flex:none}.recipe-categories{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin:18px -22px 0;padding:0 22px 4px;scroll-padding-inline:22px}.recipe-categories button{height:40px;padding:0 14px;white-space:nowrap;display:flex;align-items:center;gap:6px;flex:none;border:1px solid var(--line);border-radius:20px;font-size:13px;color:var(--muted)}.recipe-categories button small{font-size:10px;opacity:.75;font-variant-numeric:tabular-nums}.recipe-categories button[aria-pressed=true]{background:var(--white);border-color:var(--white);color:var(--bg);font-weight:500}.recipe-filterbar{display:flex;align-items:center;justify-content:space-between;margin:10px 0 12px;color:var(--muted);font-size:12px}.recipe-filterbar button{display:flex;gap:6px;align-items:center;min-height:44px}.recipe-filterbar b{font-size:10px;background:var(--raised);border-radius:50%;width:16px;height:16px;text-align:center;color:var(--white)}.recipe-filters{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:20px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.recipe-filters label{display:grid;gap:6px;font-size:12px;color:var(--muted);min-width:0}.recipe-filters select{width:100%;border:1px solid var(--line);border-radius:7px;background:var(--raised);color:var(--white);font:inherit;min-height:40px;padding:0 8px}.recipe-filters>button{grid-column:1/-1;text-align:right;min-height:36px;font-size:12px}.recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.recipe-card{min-width:0;display:flex;flex-direction:column;background:none}.recipe-card-open{width:100%;display:block;padding:0;text-align:left;border-radius:10px}.recipe-cover{padding:0;margin:0;overflow:hidden}.recipe-card .recipe-cover{width:100%;aspect-ratio:1.18;border-radius:11px;background:var(--surface)}.recipe-cover img{display:block;width:100%;height:100%;object-fit:cover}.recipe-card-copy{padding-top:10px}.recipe-card h3{font-size:14px;font-weight:500;line-height:1.5;min-height:42px;overflow-wrap:anywhere}.recipe-card-nutrition{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px;font-size:11px;color:var(--muted);margin-top:8px;white-space:nowrap}.recipe-card-nutrition b{font-size:17px;font-weight:500;color:var(--white);font-variant-numeric:tabular-nums}.recipe-card-nutrition>i{width:2px;height:2px;background:var(--subtle);border-radius:50%;align-self:center;margin:0 3px}.recipe-card-time{font-size:11px;color:var(--muted);line-height:1.6;margin-top:3px}.recipe-card-source{font-size:10px;color:var(--muted);line-height:1.5;padding:10px 0 2px;overflow-wrap:anywhere;min-height:32px}.recipe-card-source:hover{text-decoration:underline}.recipe-footer{margin-top:32px;border-top:1px solid var(--line);padding-top:20px;color:var(--subtle);font-size:11px}.recipe-footer p{line-height:1.85;margin-bottom:10px}.recipe-footer button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;font-size:13px;color:var(--muted);border-bottom:1px solid var(--line)}.recipe-footer button+ p{margin-top:18px}.recipe-floating{position:absolute;right:22px;bottom:calc(93px + env(safe-area-inset-bottom,0px));z-index:8;display:flex;align-items:center;gap:9px;padding:0 12px 0 15px;height:46px;background:var(--white);color:var(--bg);border:1px solid #fff5;border-radius:25px;font-size:13px;font-weight:500;box-shadow:0 4px 20px #08090b66}.recipe-floating-dot{width:6px;height:6px;display:block;background:#73766b;border-radius:50%}.recipe-floating-count{min-width:22px;height:22px;display:grid;place-items:center;background:#deded7;color:#34352f;border-radius:50%;font-size:11px}.recipe-toast{position:absolute;left:50%;bottom:154px;transform:translateX(-50%);background:var(--white);color:var(--bg);border-radius:10px;padding:10px 16px;font-size:12px;z-index:9;white-space:nowrap}.recipe-empty{padding:48px 20px;display:grid;justify-items:center;text-align:center;gap:12px}.recipe-empty h3{font-size:17px}.recipe-empty p{color:var(--muted);font-size:13px}.recipe-empty button{min-height:44px;text-decoration:underline}.recipe-loading{padding:40px;text-align:center;color:var(--muted)}
/* Detail: a quiet title, small photo, then equal visual weight for ingredients and steps. */
.recipe-toolbar{position:sticky;top:0;z-index:7;display:flex;align-items:center;justify-content:space-between;background:var(--bg);min-height:58px;border-bottom:1px solid var(--line);margin-bottom:20px;padding-top:env(safe-area-inset-top,0px)}.recipe-toolbar button,.recipe-toolbar a{min-height:44px;display:flex;align-items:center;gap:5px;font-size:13px}.recipe-toolbar a{color:var(--muted)}.recipe-detail h1{font-size:21px;line-height:1.45;margin:0 0 10px;font-weight:550}.recipe-meta{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;line-height:1.6}.recipe-time-note{font-size:11px;color:var(--muted);margin:5px 0 0}.recipe-notice{margin-top:12px;padding:10px 12px;background:var(--surface);border-radius:8px;font-size:12px;color:var(--muted)}.recipe-cover-detail{max-width:360px;margin:18px auto 22px}.recipe-cover-detail img{height:136px;border-radius:12px;object-fit:cover}.recipe-cover-detail figcaption{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);margin-top:7px;line-height:1.5}.recipe-cover-detail figcaption a{max-width:75%}.recipe-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.recipe-section-title h2,.recipe-section-title h3{font-size:15px;line-height:1.4;font-weight:550}.recipe-section-title>span{font-size:11px;color:var(--muted)}.recipe-section-title button{font-size:12px;color:var(--muted);min-height:36px}.recipe-nutrient-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:4px 0 14px}.recipe-nutrient-grid>div{display:grid;gap:5px}.recipe-nutrient-grid b{font-size:21px;font-weight:500;line-height:1.4;font-variant-numeric:tabular-nums}.recipe-nutrient-grid span{font-size:11px;color:var(--muted)}.recipe-nutrient-grid small{font-size:10px}.recipe-small{font-size:11px;line-height:1.7;color:var(--muted)}.recipe-review{display:inline-block;margin-left:8px;border-bottom:1px dotted var(--muted)}.recipe-disclosure{border-bottom:1px solid var(--line);font-size:12px}.recipe-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;cursor:pointer;min-height:44px;color:var(--muted)}.recipe-disclosure>summary::-webkit-details-marker{display:none}.recipe-disclosure[open]>summary svg{transform:rotate(90deg)}.recipe-disclosure>div{padding:4px 0 16px;font-size:12px;color:var(--muted);line-height:1.8}.recipe-disclosure p{margin:0 0 10px}.recipe-table-wrap{overflow-x:auto;width:100%;margin:12px 0}.recipe-table-wrap table{width:100%;border-collapse:collapse;font-size:10px;text-align:right}.recipe-table-wrap th,.recipe-table-wrap td{border-bottom:1px solid var(--line);padding:7px 6px;white-space:nowrap;font-weight:400}.recipe-table-wrap th:first-child{text-align:left;max-width:90px;white-space:normal}.recipe-ingredients{margin-top:24px}.recipe-ingredient{display:flex;align-items:center;gap:9px;min-height:46px;padding:7px 0;border-bottom:1px solid #2b2c3166;cursor:pointer}.recipe-ingredient:last-child{border-bottom:0}.recipe-ingredient input{width:15px;height:15px;accent-color:var(--white);flex:none;margin:0}.recipe-ingredient>span:not(.recipe-ingredient-quantity){display:grid;min-width:0;gap:2px}.recipe-ingredient b{font-weight:400;font-size:14px}.recipe-ingredient small{color:var(--muted);font-size:10px}.recipe-ingredient-quantity{margin-left:auto;font-size:12px;color:var(--muted);text-align:right;flex-shrink:0;max-width:43%}.recipe-ingredient.is-checked b{text-decoration:line-through;color:var(--subtle)}.recipe-seasonings .recipe-ingredient{border-bottom:1px solid var(--line)}.recipe-steps{margin-top:28px}.recipe-steps ol{list-style:none;margin:0;padding:0}.recipe-steps li{display:flex;gap:14px;margin-bottom:22px}.recipe-steps li>span{font-size:11px;color:var(--muted);padding-top:3px;min-width:18px;font-variant-numeric:tabular-nums}.recipe-steps p{font-size:14px;line-height:1.8}.recipe-steps small{display:block;font-size:10px;line-height:1.8;color:var(--muted);margin-top:6px}.recipe-tips{margin-top:24px}.recipe-tips h2{font-size:15px;margin-bottom:10px}.recipe-tips p{font-size:12px;color:var(--muted);line-height:1.8}.recipe-source-link{display:flex;justify-content:space-between;gap:12px;min-height:50px;align-items:center;margin-top:20px;color:var(--muted);font-size:11px;border-top:1px solid var(--line)}.recipe-source-link>span:last-child{display:flex;align-items:center;white-space:nowrap;gap:3px}
/* Dialogs are native modal layers: focus stays inside and Escape returns to the same page. */
.recipe-dialog{color:var(--white);background:var(--surface);border:1px solid #35363b;box-shadow:0 -12px 60px #0004;border-radius:22px 22px 0 0;position:fixed;inset:auto 0 0;margin:0 auto;padding:0;width:min(100%,560px);max-width:560px;max-height:88dvh;max-height:88vh;overflow:hidden;font-family:inherit;line-height:1.6}.recipe-dialog[open]{display:flex;flex-direction:column}.recipe-dialog::backdrop{background:#05060999;backdrop-filter:blur(2px)}.recipe-dialog-head{flex:none;padding:10px 22px 5px;background:var(--surface);position:relative}.recipe-dialog-head>i{display:block;width:32px;height:4px;background:#55565e;border-radius:4px;margin:0 auto 12px}.recipe-dialog-head>div{display:flex;align-items:center;justify-content:space-between;min-height:40px}.recipe-dialog-head h2{font-size:19px;font-weight:550}.recipe-dialog-head button{width:44px;height:44px;display:grid;place-items:center;margin-right:-10px;color:var(--muted)}.recipe-dialog-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:4px 22px 22px;scrollbar-width:thin;flex:1}.recipe-dialog-footer{padding:12px 22px calc(16px + env(safe-area-inset-bottom,0px));flex:none;background:var(--surface);border-top:1px solid var(--line)}.recipe-dialog-footer>p{font-size:10px;color:var(--muted);margin:6px 0 12px}.recipe-primary{display:flex;align-items:center;justify-content:center;min-height:46px;width:100%;background:var(--white);color:var(--bg);font:500 14px/1.4 inherit;border-radius:9px;padding:10px 14px}.recipe-goal-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}.recipe-goal-line button{min-height:40px;display:flex;align-items:center;gap:4px}.recipe-goal-form{padding:16px 0;border-bottom:1px solid var(--line);margin-bottom:16px}.recipe-goal-form>p{font-size:12px;color:var(--muted);margin-bottom:12px}.recipe-goal-form>div{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px;margin-bottom:18px}.recipe-goal-form label{font-size:12px;display:grid;gap:7px;color:var(--muted)}.recipe-goal-form label>span{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:7px;background:var(--raised);padding:0 8px}.recipe-goal-form input{width:100%;height:42px;color:var(--white);background:none;border:0;font-size:16px;outline:none}.recipe-goal-form small{font-size:10px}.recipe-text-button{min-height:44px;display:flex;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:12px;width:100%}.recipe-plan-totals{padding:12px 0 24px;border-bottom:1px solid var(--line)}.recipe-plan-energy{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.recipe-plan-energy>span{font-size:12px;color:var(--muted)}.recipe-plan-energy p{line-height:1.3;font-variant-numeric:tabular-nums;white-space:nowrap}.recipe-plan-energy b{font-size:24px;font-weight:500}.recipe-plan-energy p>span{font-size:12px;color:var(--muted)}.recipe-plan-energy small{font-size:10px;color:var(--muted)}.recipe-progress{display:flex;align-items:stretch;width:100%;height:5px;border-radius:4px;background:#36373c;overflow:hidden}.recipe-progress span{height:100%;background:#777880}.recipe-progress i{height:100%;background:var(--white)}.recipe-progress.is-over{outline:1px solid #a4a5ad;outline-offset:2px}.recipe-plan-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin:11px 0 21px}.recipe-plan-legend>span{display:flex;align-items:center;gap:5px}.recipe-plan-legend i{width:6px;height:6px;border-radius:50%;background:#777880}.recipe-plan-legend>span:last-child:not(:first-child) i{background:var(--white)}.recipe-plan-macros{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.recipe-plan-macros>div>span{font-size:11px;color:var(--muted)}.recipe-plan-macros p{margin:6px 0 9px;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap}.recipe-plan-macros b{font-size:15px;font-weight:500}.recipe-plan-macros small{font-size:9px;color:var(--muted)}.recipe-plan-macros em{font-style:normal;color:var(--muted);font-size:10px;display:block;margin-top:7px}.recipe-adjust{padding-top:23px}.recipe-adjust>.recipe-section-title{margin-bottom:6px}.recipe-adjust>p{font-size:13px;color:var(--muted)}.recipe-adjust>.recipe-small{font-size:11px;margin:4px 0 13px}.recipe-weight{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:52px;border-bottom:1px solid #2b2c3188}.recipe-weight>span:first-child{display:grid;gap:1px;font-size:13px}.recipe-weight small{font-size:10px;color:var(--muted)}.recipe-weight-input{display:flex;align-items:center;background:var(--raised);border:1px solid #36373d;border-radius:7px;padding-right:10px;flex:none;width:92px;height:36px;color:var(--muted);font-size:11px}.recipe-weight input{width:100%;height:100%;min-width:0;border:0;color:var(--white);background:none;text-align:right;outline:none;padding:0 6px 0 4px;font-size:16px;font-variant-numeric:tabular-nums}.recipe-weight input::-webkit-inner-spin-button{appearance:none}.recipe-weight input[aria-invalid=true]{outline:1px solid var(--white)}.recipe-inline-error{color:var(--white);font-size:12px;margin-top:8px}.recipe-planned{padding-top:22px}.recipe-planned .recipe-section-title{margin-bottom:8px}.recipe-plan-empty{padding:13px 0;color:var(--muted);font-size:12px}.recipe-plan-item{display:flex;align-items:center;gap:10px;padding:5px 0;border-bottom:1px solid var(--line)}.recipe-plan-item>button:first-child{flex:1;min-width:0;display:grid;gap:3px;text-align:left;padding:7px 0;font-size:12px;min-height:48px}.recipe-plan-item small{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--muted)}.recipe-plan-item>button:last-child{width:44px;height:44px;flex:none;display:grid;place-items:center;color:var(--muted)}.recipe-local-note{font-size:10px;color:var(--muted);margin-top:18px}.recipe-remaining{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.recipe-remaining b{font-size:17px;font-weight:500;color:var(--white);font-variant-numeric:tabular-nums}.recipe-remaining small{font-weight:400;font-size:10px;color:var(--muted)}.recipe-about h3{font-size:15px;font-weight:500;margin:18px 0 8px}.recipe-about p{font-size:13px;line-height:1.85;color:var(--muted)}.recipe-dialog-wide{max-height:94dvh}.recipe-calculator .diet-intro h2{font-size:20px}.recipe-calculator .diet-section-title h2{font-size:17px}.recipe-calculator .diet-intro{margin-top:12px}.recipe-calculator .diet-page{padding-bottom:12px}.recipe-calculator .diet-principles{margin-top:24px}.recipe-calculator .diet-fields{grid-template-columns:1fr 1fr}.recipe-calculator #diet-result{scroll-margin-top:16px}
@media(min-width:620px){.recipe-dialog{bottom:20px;border-radius:22px;max-height:88dvh;width:520px}.recipe-dialog-wide{max-height:94dvh}.recipe-cover-detail img{height:150px}.recipe-grid{gap:26px 18px}}
@media(max-width:360px){.recipe-plan-macros{gap:9px}.recipe-plan-macros b{font-size:14px}.recipe-card-nutrition{font-size:10px}.recipe-plan-energy b{font-size:22px}.recipe-dialog-scroll,.recipe-dialog-head,.recipe-dialog-footer{padding-left:18px;padding-right:18px}}
@media(prefers-reduced-motion:no-preference){.recipe-dialog[open]{animation:recipe-rise .22s cubic-bezier(.2,.7,.3,1)}@keyframes recipe-rise{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}}
.recipes-active .page-header{display:flex;min-height:44px;gap:16px;margin-bottom:10px}.recipes-active .page-header .header-copy{order:0;flex:1}.recipes-active .page-header .header-tools{order:1;position:static;margin:0;justify-content:flex-end;gap:4px}.recipes-active .page-header h1{margin:0;font-size:24px;font-weight:500}.recipe-intro{margin-bottom:18px}.recipe-intro p{margin:0}.recipe-intro .recipe-round{height:36px;width:36px;border:0}.recipe-detail h1{font-weight:500;font-size:20px}.recipe-primary{font-family:inherit;font-size:14px;font-weight:500;line-height:1.4}
.recipes-active.recipe-detail-active .page-header{display:none}

/* Two-column browsing and a full-width detail photo follow the approved composition. */
.recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
.recipe-card .recipe-cover{aspect-ratio:4/3;background:var(--surface)}
.recipe-card .recipe-cover img{object-fit:cover;object-position:center 55%}
.recipe-card h3{font-size:14px;min-height:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recipe-card-condition{font-size:10px;line-height:1.6;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.recipe-card-source{margin-top:0;padding:5px 0 0;min-height:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recipe-overview{margin:18px 0 22px}
.recipe-overview h1{font-size:22px;line-height:1.45;margin-bottom:8px}
.recipe-overview .recipe-cover-detail{width:100%;max-width:none;margin:16px 0 0;overflow:visible}
.recipe-cover-detail img{width:100%;height:auto;aspect-ratio:2.15;object-fit:cover;object-position:center 55%;border-radius:12px}
.recipe-cover-detail figcaption{margin-top:8px;font-size:10px}
.recipe-cover-detail figcaption a{max-width:100%}
.recipe-nutrient-grid{padding:6px 0 18px;gap:0}
.recipe-nutrient-grid>div{text-align:center}
.recipe-nutrient-grid>div:last-child{border-right:0}
.recipe-nutrition{border:0}
.recipe-ingredients{margin-top:16px;border:0;padding-bottom:0}
.recipe-ingredient-tabs{display:flex;align-items:center;gap:22px}
.recipe-ingredient-tabs button{min-height:42px;font-size:15px;color:var(--muted);border-bottom:2px solid transparent}
.recipe-ingredient-tabs button[aria-pressed=true]{color:var(--white);border-bottom-color:var(--white);font-weight:550}
.recipe-ingredients .recipe-section-title{margin-bottom:3px}
.recipe-ingredient{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;min-height:38px;padding:4px 0;border:0;cursor:default;align-items:center}
.recipe-ingredient-quantity{margin:0;max-width:none;text-align:left;white-space:nowrap;font-size:12px}
.recipe-steps{margin-top:22px}
.recipe-steps li{gap:10px;margin-bottom:18px}
.recipe-steps li>span{border-radius:50%;width:25px;height:25px;min-width:25px;display:grid;place-items:center;padding:0;background:var(--surface);margin-top:2px;font-size:10px;color:var(--white)}
.recipe-steps p{font-size:13px;line-height:1.85}
.recipe-detail>.recipe-disclosure{margin-top:12px}
.recipe-small{padding-bottom:12px}
.recipe-plan-totals{padding-bottom:18px}
.recipe-plan-macros{display:grid;grid-template-columns:1fr;gap:16px}.recipe-plan-macros>div{display:grid;grid-template-columns:44px minmax(0,1fr) 60px;gap:0 12px;align-items:center;border:0;padding:0}.recipe-plan-macros>div>span{grid-column:1;grid-row:1}.recipe-plan-macros p{grid-column:3;grid-row:1;margin:0;text-align:right}.recipe-plan-macros.has-target>div{grid-template-columns:44px minmax(0,1fr) 104px}.recipe-plan-macros .recipe-progress{grid-column:2;grid-row:1;height:7px}.recipe-plan-macros em{grid-column:2/-1;grid-row:2;margin-top:5px;text-align:right}
.recipe-plan-macros>div:last-child{border:0;padding-right:0}
.recipe-plan-remaining{display:flex;justify-content:space-between;align-items:center;border-radius:9px;background:var(--raised);padding:12px;margin-top:18px;font-size:12px}
.recipe-plan-remaining b{font-size:19px;font-weight:500}.recipe-plan-remaining small{font-size:11px;font-weight:400}
.recipe-save-status{display:flex;align-items:center;gap:8px;padding:10px 12px;margin:4px 0 10px;border:1px solid var(--line);border-radius:8px;font-size:13px;background:var(--raised)}
.recipe-adjust>.recipe-ingredient-tabs{margin-top:8px}
.recipe-primary:disabled{opacity:.45;cursor:not-allowed}

/* Ordinary sections use spacing; borders remain only on functional controls. */
.recipe-detail .recipe-disclosure,.recipe-dialog .recipe-disclosure,.recipe-plan-totals,.recipe-weight,.recipe-plan-item{border:0}
.recipe-dialog-footer{border-top:0}
.recipe-ingredient-tabs{gap:16px}
/* List cards: inline nutrients, one shared time/source row. */
.recipe-card-copy{padding-top:9px}
.recipe-card-nutrition{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px;margin-top:5px;line-height:1.5}
.recipe-card-energy{display:inline-flex;align-items:baseline;gap:3px;white-space:nowrap}
.recipe-card-macros{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px;margin:0}
.recipe-card-macros>span{display:inline-flex;align-items:baseline;gap:3px;white-space:nowrap}
.recipe-card-macros>span>span{font-size:11px;color:var(--muted)}
.recipe-card-macros b{font-size:11px;font-weight:500;line-height:1.5}
.recipe-card-macros small{font-size:10px;color:var(--muted);font-weight:400;margin-left:1px}
.recipe-card-meta{display:flex;align-items:center;gap:8px;margin-top:2px;min-width:0;font-size:11px;line-height:1.5}
.recipe-card-meta .recipe-card-time{margin:0;flex:none;white-space:nowrap;font-size:inherit;line-height:inherit}
.recipe-card-meta .recipe-card-source{margin:0;padding:4px 0;min-width:0;min-height:24px;box-sizing:border-box;font-size:inherit;line-height:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.recipe-weight{display:grid;grid-template-columns:110px 92px;gap:16px;justify-content:start;min-height:46px}
.recipe-adjust{padding-top:22px}
.recipe-adjust>.recipe-section-title{margin-bottom:3px}
.recipe-adjust>.recipe-ingredient-tabs{margin-top:0}
.recipe-plan-legend{margin-bottom:20px}
.recipe-plan-macros>div:last-child{padding:0}
.recipe-ingredient-quantity{overflow-wrap:normal}
@media(max-width:360px){.recipe-ingredient{grid-template-columns:86px minmax(0,1fr);gap:12px}.recipe-plan-macros>div{gap:0 8px}.recipe-weight{grid-template-columns:96px 92px;gap:12px}}

/* Local account onboarding: same sheet language as the recipe plan. */
.recipe-account-strip{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:var(--muted);margin:0 0 12px;min-height:28px}
.recipe-account-strip button{min-height:32px;text-decoration:underline;white-space:nowrap}
.recipe-onboarding{background:#0e0f11;color:#f2f1ed;width:min(100%,560px);max-height:calc(100dvh - 16px);border:1px solid #2b2c31;border-radius:16px 16px 0 0}
.recipe-onboarding>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.recipe-onboarding .recipe-dialog-head{padding:16px 20px 8px;flex:none}
.recipe-onboarding .recipe-dialog-head>i{display:none}
.recipe-onboarding .recipe-dialog-head h2{font-size:22px;line-height:30px}
.recipe-onboarding .recipe-dialog-scroll{padding:8px 20px 16px;overflow:auto;min-height:0}
.recipe-onboarding .recipe-dialog-footer{padding:12px 20px 20px;flex:none;background:#0e0f11;border-top:1px solid #2b2c31}
.recipe-onboarding .recipe-primary{min-height:48px;width:100%;border-radius:8px;font-size:14px}
.recipe-onboarding .recipe-primary:disabled{opacity:.4;cursor:not-allowed}
.recipe-onboarding-lead{font-size:14px;line-height:22px;color:#a4a5ad;margin:0 0 18px}
.recipe-demo-note{padding:12px;background:#202125;border-radius:8px;font-size:12px;line-height:20px;color:#c5c6cc;margin-bottom:20px}
.recipe-onboarding-field{display:grid;gap:8px;font-size:14px;line-height:22px;margin-bottom:18px;min-width:0}
.recipe-onboarding input{background:#202125;border:1px solid #34353b;border-radius:8px;color:#f2f1ed;min-width:0;width:100%;height:46px;padding:0 12px;font:inherit;box-sizing:border-box;font-size:16px}
.recipe-unit-input{display:flex;align-items:center;position:relative}.recipe-unit-input input{padding-right:60px}.recipe-unit-input>span{position:absolute;right:12px;color:#a4a5ad;font-size:12px;pointer-events:none}
.recipe-code-row{display:flex;gap:10px}.recipe-code-row input{flex:1;width:0}.recipe-code-row button{padding:0 12px;white-space:nowrap;border:1px solid #42434a;border-radius:8px;min-height:46px;font-size:12px}
.recipe-code-hint{font-size:13px;color:#f2f1ed;margin:0 0 14px}.recipe-onboarding-error{font-size:13px;line-height:20px;color:#f2b8aa;margin:12px 0}
.recipe-onboarding-footnote{font-size:12px;line-height:20px;color:#a4a5ad;margin:12px 0 0}
.recipe-onboarding-choices{border:0;padding:0;margin:0 0 18px;min-width:0}.recipe-onboarding-choices legend{font-size:14px;margin-bottom:8px}.recipe-onboarding-choices>div,.recipe-mode-tabs{display:flex;gap:8px}.recipe-onboarding-choices>div>button,.recipe-mode-tabs button{flex:1;min-height:44px;border:1px solid #34353b;border-radius:8px;font-size:14px;white-space:nowrap}.recipe-onboarding-choices button[aria-pressed=true],.recipe-mode-tabs button[aria-pressed=true]{background:#f2f1ed;color:#0e0f11;border-color:#f2f1ed}.recipe-onboarding-choices p{font-size:12px;line-height:20px;color:#a4a5ad;margin:8px 0 0}
.recipe-quiet-link{font-size:12px;min-height:36px;text-decoration:underline;color:#a4a5ad}
.recipe-custom{padding:12px;background:#18191c;border-radius:8px;margin:8px 0 16px}.recipe-mode-tabs{margin-bottom:14px}.recipe-custom-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.recipe-custom-values label{margin:0}.recipe-custom-values small{font-size:11px;color:#a4a5ad}
.recipe-target-preview{margin:16px 0 0;padding:16px 0;border-top:1px solid #2b2c31;border-bottom:1px solid #2b2c31}.recipe-target-preview>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.recipe-target-preview h3{font-size:16px}.recipe-target-preview>div:first-child>span{font-size:12px;color:#a4a5ad}.recipe-setup-nutrients{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.recipe-setup-nutrients>div>span{font-size:12px;color:#a4a5ad}.recipe-setup-nutrients p{display:flex;gap:3px;align-items:baseline;margin:6px 0 0;flex-wrap:wrap}.recipe-setup-nutrients b{font-size:21px;font-weight:500}.recipe-setup-nutrients small{font-size:11px;color:#a4a5ad}.recipe-target-preview details{font-size:12px;color:#a4a5ad;line-height:20px;margin-top:12px}.recipe-target-preview summary{cursor:pointer;min-height:32px;display:flex;align-items:center}
@media(max-width:380px){.recipe-onboarding-choices>.recipe-hours{display:grid;grid-template-columns:1fr 1fr}.recipe-setup-nutrients{grid-template-columns:1fr 1fr;row-gap:12px}}
