/* Goal entry and the in-page ration builder share the existing system palette. */
.goal-section{padding:42px 0 8px}
.goal-section .eyebrow{margin-bottom:10px}
.goal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.goal-card{display:flex;flex-wrap:wrap;align-items:center;gap:15px;padding:22px;text-align:left;min-height:138px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink)}
.goal-number{width:100%;font-size:10px;letter-spacing:1.5px;color:var(--muted)}
.goal-card strong{flex:1;font-size:14px;font-weight:650;line-height:1.4}
.goal-card svg{width:17px;height:17px;flex-shrink:0}
.goal-card.active{background:var(--accent);color:var(--bg);border-color:var(--accent)}
.goal-card.active .goal-number{color:inherit;opacity:.8}
.goal-answer{display:flex;justify-content:space-between;gap:20px;align-items:center;min-height:82px;padding:20px 0}
.goal-answer p{color:var(--muted);font-size:12px;max-width:510px;margin-top:5px}
.goal-links{display:flex;gap:8px;flex-shrink:0}
.goal-links a{font-size:11px;padding:12px 16px;gap:8px}
.order-page .page-head h1{margin-top:10px}
.order-introduction{color:var(--muted);font-size:13px;line-height:1.8;max-width:650px}
.order-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:30px;align-items:start}
.order-main{min-width:0}
.order-picture{border-radius:22px;overflow:hidden;margin-bottom:24px}
.order-picture .detail-picture{aspect-ratio:2.5;border-radius:22px;box-shadow:none}
.order-step{padding:26px;border:1px solid var(--line);background:var(--surface);border-radius:22px;margin-bottom:18px}
.order-step-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:22px}
.order-step-head>span{flex-shrink:0;display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:10px;font-size:10px;color:var(--accent)}
.order-step-head h2{font-size:27px;letter-spacing:-.035em;line-height:1.2}
.order-step-head p{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.7}
.calorie-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.calorie-choice{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;min-height:103px;padding:16px 13px;border:1px solid var(--line);border-radius:13px;background:var(--bg);color:var(--ink)}
.calorie-choice small{font-size:9px;color:var(--muted);letter-spacing:.6px}
.calorie-choice strong{font-size:17px;white-space:nowrap;font-weight:650}
.calorie-choice span{font-size:10px;color:var(--muted)}
.calorie-choice.active,.period-choice.active{border-color:var(--accent);background:var(--tint);box-shadow:inset 0 0 0 1px var(--accent)}
.order-help{display:inline-flex;align-items:center;gap:10px;margin-top:18px;font-size:11px;text-decoration:underline;text-underline-offset:4px;color:var(--accent)}
.order-help svg{width:15px;height:15px;flex-shrink:0}
.order-caution{font-size:11px;line-height:1.7;color:var(--muted);padding-top:14px;max-width:560px}
.order-format{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:18px;background:var(--tint);border-radius:13px}
.order-format>span{font-size:12px;color:var(--muted)}
.order-modes{display:flex;gap:6px;padding:5px;border:1px solid var(--line);border-radius:14px;margin-bottom:16px;background:var(--bg)}
.order-modes button{flex:1;min-width:0;min-height:46px;padding:10px;font-size:11px;border-radius:10px;background:transparent;color:var(--muted)}
.order-modes button.active{background:var(--accent);color:var(--bg)}
.order-page button:disabled{cursor:not-allowed}
.period-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.period-choice{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;padding:16px 12px;min-height:110px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:13px}
.period-choice strong{font-size:12px;font-weight:650}
.period-choice>span{font-size:16px;font-weight:650;white-space:nowrap}
.period-choice small{font-size:9px;color:var(--muted)}
.order-small{font-size:10px;line-height:1.75;color:var(--muted);margin-top:14px}
.order-summary{position:sticky;top:108px;padding:26px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:var(--shadow)}
.order-summary-main>p{font-size:11px;color:var(--muted);margin-top:5px}
.order-summary-main .order-summary-name{font-size:17px;font-weight:650;color:var(--ink)}
.order-summary dl{margin:20px 0 0;font-size:11px}
.order-summary dl>div{display:flex;gap:12px;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line)}
.order-summary dt{color:var(--muted)}
.order-summary dd{margin:0;text-align:right;font-weight:650}
.order-summary-main .order-goal{margin-top:15px;font-size:10px}
.order-total{padding:22px 0}
.order-total>span,.order-total>small{display:block;font-size:10px;color:var(--muted)}
.order-total>strong{display:block;font-size:34px;letter-spacing:-1px;line-height:1.5;font-weight:600;font-variant-numeric:tabular-nums}
.order-checkout,.order-save{width:100%;font-size:11px;gap:8px;min-height:48px}
.order-save{margin-top:9px}
.order-share{background:none;margin-top:16px;font-size:10px;gap:10px}
.order-promotion{font-size:10px;color:var(--muted);line-height:1.7;border-top:1px solid var(--line);padding-top:14px;margin-top:14px}
.order-menu{padding:26px;border-radius:22px;background:var(--tint);margin:24px 0}
.order-menu h2{font-size:28px;margin:12px 0}
.order-menu p:not(.eyebrow){color:var(--muted);font-size:12px;line-height:1.8;max-width:550px}
.order-menu .order-menu-selection{font-weight:650;margin-bottom:8px;color:var(--ink)}
.order-menu .secondary{margin-top:18px;font-size:11px}
.order-media-details{margin-bottom:12px}
.order-reel{display:block;width:100%;max-height:350px;border-radius:16px;margin-top:16px;background:var(--tint)}
.order-dock{display:none}
@media(max-width:1050px){.goal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.goal-answer{align-items:flex-start;flex-direction:column}.order-layout{grid-template-columns:minmax(0,1fr) 300px;gap:20px}.order-step,.order-summary{padding:20px}.calorie-grid,.period-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-total>strong{font-size:30px}}
@media(max-width:700px){
.goal-section{padding-top:28px}.goal-grid{gap:9px}.goal-card{padding:17px;min-height:126px;gap:12px;border-radius:16px}.goal-card strong{font-size:12px}.goal-links{flex-wrap:wrap;flex-shrink:1}.goal-answer p{font-size:11px}.goal-answer{gap:14px;padding-bottom:12px}
.order-page .page-head{padding-top:20px}.order-page .page-head .eyebrow{font-size:8px;letter-spacing:1.1px;margin-top:12px}.order-page .page-head h1{font-size:36px}.order-introduction{font-size:12px;line-height:1.75}
.order-layout{grid-template-columns:1fr;gap:24px}.order-main{display:contents}.order-picture{order:0;margin:0}.order-picture .detail-picture{aspect-ratio:2.1;border-radius:18px}
#order-config{order:1}.order-summary{order:2;position:static;padding:22px}.order-menu{order:3;margin:0;padding:22px}.order-media-details{order:4}.order-layout>details,.order-main>details:not(.order-media-details){order:5}
.order-step{padding:20px 16px;border-radius:18px;margin-bottom:16px}.order-step:last-child{margin-bottom:0}.order-step-head{gap:10px;margin-bottom:18px}.order-step-head h2{font-size:24px}.order-step-head p{font-size:10px}.order-step-head>span{width:28px;height:28px;font-size:9px}
.calorie-grid,.period-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.calorie-choice{min-height:100px;padding:14px 12px}.calorie-choice strong{font-size:16px}.calorie-choice:last-child:nth-child(odd),.period-choice:last-child:nth-child(odd){grid-column:1/-1}.period-choice{padding:14px 12px;min-height:106px}
.order-modes button{font-size:10px;padding:10px 7px}.order-help{font-size:10px;line-height:1.6}.order-caution{font-size:10px}.order-small,.order-promotion{font-size:10px}.order-menu h2{font-size:26px}.order-menu p:not(.eyebrow){font-size:11px}
.order-dock{display:flex;position:fixed;left:16px;right:16px;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 78px);z-index:39;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}
.order-dock>div{min-width:0}.order-dock strong{display:block;font-size:20px;white-space:nowrap;font-variant-numeric:tabular-nums}.order-dock small{display:block;font-size:8px;color:var(--muted)}.order-dock .primary{min-height:46px;padding:12px 14px;font-size:11px;gap:8px;flex-shrink:0}.order-dock svg{width:15px;height:15px}
.order-page .footer{padding-bottom:215px}.order-page .recommendations{margin-top:34px}.order-page .order-summary dl{font-size:12px}.order-summary .order-checkout,.order-summary .order-save{font-size:12px}
}

/* Client-supplied daily KBJU, scoped to the calorie selection step. */
.order-nutrition{margin-top:18px;padding:18px 16px;background:var(--tint);border:1px solid var(--line);border-radius:14px;min-height:144px}
.nutrition-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.nutrition-heading h3{font-size:13px;font-weight:650;letter-spacing:.01em}
.nutrition-heading>span{font-size:10px;color:var(--muted);white-space:nowrap}
.nutrition-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
.nutrition-grid>div{min-width:0}.nutrition-grid dt{color:var(--muted);font-size:10px;margin-bottom:5px}
.nutrition-grid dd{margin:0;font-size:14px;font-weight:650;line-height:1.5;font-variant-numeric:tabular-nums;white-space:nowrap}
.nutrition-grid dd small{font-size:10px;font-weight:400;color:var(--muted)}
.nutrition-source,.nutrition-empty{font-size:10px;line-height:1.65;color:var(--muted)}.nutrition-source{margin-top:12px}.nutrition-empty{max-width:300px}
@media(max-width:1050px){.nutrition-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.order-nutrition{min-height:210px}}
@media(max-width:700px){.order-nutrition{padding:16px 14px;margin-top:16px}.nutrition-grid dd{font-size:14px}.nutrition-heading{margin-bottom:12px}}

/* Guided selection: one clear stage, the same state on mobile and desktop. */
.goal-hint{font-size:12px;line-height:1.7;color:var(--muted);margin:18px 0 22px}
.order-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.order-builder{min-width:0;position:static;scroll-margin-top:0}
.order-builder [hidden]{display:none!important}
.order-builder .order-summary{position:static;box-shadow:none}
.order-builder .order-step{margin-bottom:0}
.builder-progress{display:flex;gap:8px;margin-bottom:16px}
.builder-progress button{display:flex;align-items:center;justify-content:center;flex:1;gap:8px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);font-size:11px}
.builder-progress button>span{font-size:10px;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:var(--tint)}
.builder-progress button[aria-current=step]{color:var(--ink);border-color:var(--accent);font-weight:700}
.builder-progress button[aria-current=step]>span{background:var(--accent);color:var(--bg)}
.builder-back{display:inline-flex;align-items:center;background:transparent;color:var(--accent);font-size:12px;min-height:44px;padding:8px 0;text-decoration:underline;text-underline-offset:4px;line-height:1.5}
.order-step>.builder-back{margin:-10px 0 12px}.builder-edit-actions{display:flex;flex-wrap:wrap;gap:8px 24px;margin:-8px 0 18px}
.builder-selection{display:grid;gap:4px;padding:14px 16px;margin-bottom:18px;background:var(--tint);border-radius:12px}
.builder-selection strong{font-size:16px}.builder-selection span{font-size:11px;color:var(--muted)}
.builder-extra{margin-top:20px}.builder-extra summary{font-size:11px;min-height:44px;cursor:pointer;padding:10px 0;color:var(--muted)}
.order-format-next{margin-top:18px}
@media(max-width:1050px){.order-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}}
@media(max-width:700px){
.order-layout{grid-template-columns:1fr;gap:18px}.order-builder{order:1;position:static;scroll-margin-top:0}.order-picture{order:0}.order-menu{order:2}.order-main>.order-media-details{order:3}.order-main>details:not(.order-media-details){order:4}
.order-builder .order-summary{padding:22px}.order-builder .order-step{padding:20px 16px}.builder-progress{gap:6px;margin-bottom:12px}.builder-progress button{font-size:11px;gap:7px;padding:8px 6px}
.builder-edit-actions{gap:4px 20px;margin-top:-4px}.builder-back{font-size:11px}.goal-hint{font-size:11px;margin:16px 0 12px}
.order-builder .order-checkout{display:none}.order-builder .order-summary .order-total{padding-bottom:10px}
}
.order-summary .nutrition-grid{margin:0}
.order-summary .nutrition-grid>div{display:block;padding:0;border:0}
.order-summary .nutrition-grid dd{text-align:left}
.builder-context{font-size:12px;color:var(--muted);line-height:1.5;margin-bottom:12px}

/* Photographic goal cards keep the whole surface clickable. */
.goal-card{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;padding:0;min-height:0;overflow:hidden}
.goal-visual{display:block;position:relative;aspect-ratio:1.9;background:var(--tint);overflow:hidden}
.goal-visual img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 40%}
.goal-number{position:absolute;left:12px;top:12px;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#fbfaf6ed;color:#3e4936;font-size:9px;letter-spacing:0;box-shadow:0 1px 6px #17270e12}
.goal-caption{display:flex;align-items:center;gap:12px;min-height:74px;padding:16px 18px}.goal-caption strong{min-width:0}
.goal-card:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.order-picture>.photo-note{padding:12px 4px 0;margin:0}
@media(max-width:700px){.goal-card{padding:0;gap:0;min-height:0}.goal-visual{aspect-ratio:1.65}.goal-caption{min-height:65px;padding:12px;gap:8px}.goal-number{left:9px;top:9px;width:24px;height:24px}}

[data-order-goal=gain] .goal-visual img,[data-order-goal=help] .goal-visual img{object-position:center top}
.order-picture:has(.photo-note) .detail-picture{aspect-ratio:1.8}
.order-picture:has(.photo-note) .detail-picture img{object-position:center top}
