.cost-page{background:var(--cream)}
.cost-page [hidden]{display:none!important}
.cost-workspace{padding:28px 0 56px}
.cost-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:20px}
.cost-heading h1{font-size:clamp(1.75rem,3vw,2.25rem);line-height:1.4}
.cost-heading p{margin:6px 0 0;color:var(--muted)}
.cost-actions{display:flex;gap:8px;flex-wrap:wrap}
.cost-page button:not(.mobile-menu){min-height:46px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--green);font-size:.875rem;line-height:1.5;font-weight:750}
.cost-page button:not(.mobile-menu):hover{background:var(--green-light)}
.cost-page button.cost-primary{background:var(--green-light);border-color:#b6cfbe;color:var(--green)}
.cost-result-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 16px;border:1px solid var(--green);border-radius:10px;background:var(--green);color:var(--white);font-size:.875rem;line-height:1.5;font-weight:750;text-align:center}
.cost-result-link:hover{background:var(--green-deep)}
.cost-page button:disabled{opacity:.5;cursor:not-allowed}
.cost-page input,.cost-page select{width:100%;min-width:0;min-height:48px;padding:10px 12px;border:1px solid #c7d8cd;border-radius:10px;background:var(--white);color:var(--ink);font:inherit;font-size:1rem;line-height:1.5}
.cost-page input[aria-invalid=true],.cost-page select[aria-invalid=true]{border-color:#a43121}
.cost-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);grid-template-areas:"basics results" "ingredients results";gap:22px;align-items:start}
.cost-panel{padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--white);min-width:0}
.cost-basics{grid-area:basics}
.cost-ingredients{grid-area:ingredients}
.cost-results{grid-area:results;position:sticky;top:calc(var(--site-header-height,76px) + 24px)}
.cost-results[data-sticky-fits="false"]{position:static}
.cost-panel h2,.cost-basis h2{margin:0 0 18px;font-size:1.25rem;line-height:1.5;letter-spacing:-.02em}
.cost-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cost-field{display:grid;gap:6px;min-width:0}
.cost-field>label{font-size:.875rem;font-weight:700}
.cost-field>label small{font-size:.875rem;font-weight:400;color:var(--muted)}
.cost-field-wide{grid-column:1/-1}
.cost-help{margin:10px 0 0;color:var(--muted);font-size:.875rem;line-height:1.8}
.cost-extra{margin-top:20px;border-top:1px solid var(--line)}
.cost-extra summary{padding:14px 0;cursor:pointer;font-size:.9375rem;font-weight:700;min-height:48px}
.cost-extra[open] summary{padding-bottom:16px}
.cost-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.cost-section-head h2{margin:0}
.cost-section-head p{margin:4px 0 0;color:var(--muted);font-size:.875rem}
.cost-ingredient{border-top:1px solid var(--line);padding:20px 0}
.cost-ingredient:first-child{margin-top:8px}
.cost-ingredient h3{font-size:1rem;line-height:1.6;margin:0 0 12px;color:var(--green)}
.cost-ingredient-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.cost-quantity{display:grid;grid-template-columns:minmax(0,1fr) 5.5rem;gap:8px}
.cost-quantity select{padding-inline:10px}
.cost-percent{position:relative}
.cost-percent input{padding-right:2.75rem}
.cost-percent>span{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.cost-ingredient-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
.cost-ingredient-value{margin:0;font-size:.875rem;color:var(--muted)}
.cost-ingredient-value strong{display:block;color:var(--green);font-size:1.125rem;line-height:1.7;font-variant-numeric:tabular-nums}
.cost-page .cost-remove{background:transparent;color:#a43121;min-height:44px;padding:8px 12px}
.cost-row-message{margin:12px 0 0;font-size:.875rem;line-height:1.7;color:var(--muted)}
.cost-row-message.is-error,.cost-action-status.is-error{color:#a43121}
.cost-bottom-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.cost-bottom-actions>*{flex:1;min-width:0}
.cost-action-status{min-height:26px;margin:8px 0 14px;font-size:.875rem;color:var(--green)}
.cost-action-status:empty{min-height:0;margin:0}
.cost-result-state{margin:-8px 0 14px;color:var(--muted);font-size:.875rem;line-height:1.7}
.cost-main-result{padding:18px 20px;border-radius:12px;background:var(--green);color:var(--white);min-width:0}
.cost-main-result>span{font-size:.875rem}
.cost-main-result>strong{display:block;margin-top:3px;font-size:clamp(1.875rem,3vw,2.25rem);line-height:1.5;letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cost-main-result p{margin:5px 0 0;color:#d4e6da;font-size:.8125rem}
.cost-summary{margin:16px 0 0;display:grid;gap:14px}
.cost-summary>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:10px}
.cost-summary dt{font-size:.875rem;color:var(--muted)}
.cost-summary dd{margin:0;font-size:1.125rem;font-weight:750;color:var(--green);font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
.cost-summary dd.is-loss{color:#a43121}
.cost-summary .cost-subnote{grid-column:1/-1;margin:-7px 0 0;color:var(--muted);font-size:.8125rem;font-weight:400;text-align:left}
.cost-target-result{margin-top:20px;padding:16px;border:1px solid #e7cfb3;border-radius:12px;background:#fff5e8}
.cost-target-result>span{display:block;font-size:.875rem;font-weight:700;color:#714420}
.cost-target-result strong{display:block;font-size:1.5rem;line-height:1.65;color:#98441d;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.cost-target-result p{margin:4px 0 0;color:#714420;font-size:.8125rem;line-height:1.8}
.cost-result-detail{margin-top:16px}
.cost-result-detail summary{min-height:44px;padding:10px 0;cursor:pointer;font-size:.875rem;font-weight:700}
.cost-result-detail .cost-summary{border-top:1px solid var(--line);padding-top:14px;margin-top:4px}
.cost-result-note{margin:18px 0 0;font-size:.875rem;line-height:1.8;color:var(--muted)}
.cost-alert{margin-top:14px;padding:12px 14px;border:1px solid #e5b9a9;border-radius:10px;background:#fff0eb;color:#a43121;font-size:.875rem}
.cost-basis{margin-top:32px}
.cost-basis .faq{background:var(--white);padding-inline:18px}
.cost-basis .faq-list{border:1px solid var(--line);border-radius:14px;overflow:hidden}
.cost-basis .faq:last-child{border-bottom:0}
.cost-empty{padding:18px 0;color:var(--muted);font-size:.9375rem}
.cost-noscript{padding:16px;border:1px solid #e5b9a9;background:#fff0eb;border-radius:12px}
@media(max-width:60rem){
  .cost-layout{grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:16px}
  .cost-panel{padding:20px}
}
@media(max-width:50rem){
  .cost-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"basics" "ingredients" "results"}
  .cost-results{position:static}
  .cost-summary{gap:12px}
  .cost-summary>div{grid-template-columns:minmax(0,1fr) auto}
  .cost-main-result>strong{font-size:2rem}
}
@media(max-width:38.75rem){
  .cost-workspace{padding-top:22px}
  .cost-heading{gap:14px}
  .cost-actions{width:100%}
  .cost-actions button,.cost-actions a{flex:1;min-width:0}
  .cost-panel{padding:20px 16px}
  .cost-grid,.cost-ingredient-fields{grid-template-columns:minmax(0,1fr);gap:16px}
  .cost-field-wide{grid-column:auto}
  .cost-quantity{grid-template-columns:minmax(0,1fr) 5.5rem}
  .cost-quantity input{padding-inline:9px}
  .cost-quantity select{padding-inline:7px}
  .cost-summary>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media(max-width:23.75rem){
  .cost-grid,.cost-ingredient-fields{grid-template-columns:minmax(0,1fr)}
  .cost-quantity{grid-template-columns:minmax(0,1fr) 5.5rem}
  .cost-field-wide{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){.cost-page *{scroll-behavior:auto!important}}
@media print{.cost-actions,.cost-remove,.cost-bottom-actions,.cost-section-head button,.cost-action-status,.cost-basis{display:none!important}.cost-page{background:white}.cost-layout{display:block}.cost-panel{margin-bottom:20px;break-inside:avoid}.cost-results{position:static}.cost-extra:not([open]){display:none}.cost-main-result{border:1px solid var(--green);background:white;color:var(--green)}.cost-main-result p{color:var(--muted)}}
