.fc-model{border-top:2px solid #516d88;padding:18px 0;color:#172a40;min-width:0}
.fc-model h3{font-size:clamp(1.1rem,3vw,1.52rem);line-height:1.4;margin:0}
.fm-report .fc-model p{font-size:.84rem;line-height:1.55}
.fc-options{border:0;padding:0;margin:12px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.fc-options legend{font-size:.8rem;font-weight:750;margin-bottom:6px}
.fc-options label{border:1px solid #a0b4c8;background:#fff;display:grid;grid-template-columns:auto 1fr;gap:2px 6px;align-items:center;padding:8px;cursor:pointer}
.fc-options label:has(:checked){border-color:#426786;background:#e5eff7}
.fc-options input{appearance:auto;accent-color:#244560}
.fc-options small{grid-column:1/-1;font-size:.7rem;line-height:1.3}
.fm-report .fc-equation{margin:4px 0}
.fm-report .fc-number{background:#dce9f4;border-left:3px solid #50728f;padding:10px 8px;font-weight:800;margin:9px 0}
.fm-report .fc-steps caption{font-size:.87rem;padding:7px 5px}
.fm-report .fc-steps th,.fm-report .fc-steps td{padding:7px 5px;font-size:clamp(.69rem,2.2vw,.88rem)}
.fm-report .fc-steps tbody td:nth-child(2){white-space:normal}
.fc-steps tfoot{background:#e5eff7;font-weight:800}
.fc-inputs{background:#fff;border:1px solid #c5d3df;margin:10px 0;padding:8px 10px}
.fc-inputs summary{cursor:pointer;font-size:.85rem;font-weight:750}
.fc-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:9px 0}
.fc-fields label{font-size:.74rem;min-width:0}
.fc-fields input{width:100%;display:block;margin-top:3px;padding:5px;border:1px solid #8ea3b6;border-radius:3px;min-height:40px;font:inherit}
.fm-report .fc-model .fc-foot{font-size:.75rem;color:#435970;margin:6px 0 0}
.fc-foot a{text-decoration:underline;text-underline-offset:.18em}
@media(max-width:555px){.fc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.fc-options label{padding:6px}.fm-report .fc-steps th,.fm-report .fc-steps td{padding-inline:3px}}

#fc-model{scroll-margin-top:120px;margin-top:19px}.fm-report .fc-model .fc-options{margin-top:10px}
.fm-report .fc-costs{margin-top:10px}
.fm-report .fc-costs tbody tr:nth-child(4){background:#f1f6fa}
.fc-fields [hidden]{display:none!important}

/* A self-contained comparison: bills in, headquarters/store portions out. */
.fc-utility-panel{min-width:0;margin:18px 0;padding:12px clamp(9px,2.2vw,16px) 13px;background:#f3f7fb;border:1px solid #b8cad9;border-radius:4px}
.fc-utility-panel legend{font-size:clamp(.9rem,2.6vw,1.08rem);font-weight:800;padding:0 5px;color:#233e58}
.fm-report .fc-utility-panel .fc-utility-intro{margin:0;color:#415873;font-size:.8rem}
.fc-fields.fc-utility-fields{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:12px}
.fc-utility-fields #fc-prior-field{grid-column:1/-1}
.fc-utility-fields #fc-prior-field input{max-width:22em}
.fc-utility-fields input:focus-visible{outline:2px solid #426786;outline-offset:1px}
.fc-split{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;gap:1px;background:#c5d3df;border:1px solid #c5d3df}
.fc-split>div{background:#fff;min-width:0;padding:7px clamp(4px,1.2vw,10px)}
.fc-split>.fc-split-store{background:#dfeaf4}
.fc-split dt{font-size:clamp(.64rem,1.9vw,.76rem);line-height:1.25;color:#3c526b}
.fc-split dd{margin:3px 0 0;font-size:clamp(.79rem,2.7vw,1.11rem);font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fc-split-bar{margin:7px 0 0;height:5px;background:#aeccdf;--fc-aid-share:80%}
.fc-split-bar span{display:block;width:var(--fc-aid-share);height:100%;background:#52728e}
.fm-report .fc-utility-panel .fc-utility-rule{margin:8px 0 0;font-size:.76rem;color:#415873}
.fm-report .fc-utility-panel .fc-utility-error{margin:7px 0 0;font-size:.77rem;color:#8d3329}

.fc-amount-ink{display:inline-block;border-radius:3px;box-shadow:0 0 0 0 transparent}

#fc-result-summary,#fc-utility-panel,#fc-inputs{scroll-margin-top:120px}
.fc-result-summary{margin:14px 0 19px;padding:clamp(12px,3vw,22px);color:#18314a;background:#eaf2f8;border:1px solid #a9bfd2;border-top:3px solid #426786;border-radius:4px}
.fc-result-head{display:flex;gap:8px;justify-content:space-between;align-items:flex-start}
.fc-result-head h4{margin:0;font-size:clamp(1rem,3.8vw,1.43rem);font-weight:800;line-height:1.4}
.fm-report .fc-result-summary .fc-result-head p{margin:4px 0 0;font-size:.76rem}
.fc-result-tag{white-space:nowrap;padding:3px 7px;background:#fff;border:1px solid #a9bfd2;border-radius:3px;font-weight:800}
.fc-result-summary[data-profit-state="loss"] .fc-result-tag{color:#782e24;border-color:#c58e85}
.fm-report .fc-result-summary .fc-result-amount{display:flex;flex-wrap:wrap;align-items:baseline;gap:1px 9px;margin:8px 0 13px;line-height:1.07}
.fc-result-amount strong{font-size:clamp(1.95rem,6.3vw,3rem);font-weight:850;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fc-result-amount>span{font-size:.78rem;color:#40576d}
.fc-result-summary[data-profit-state="loss"] .fc-result-amount strong{color:#782e24}
.fc-result-bridge{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:21px;margin:0 0 10px}
.fc-result-bridge>div{position:relative;background:#fff;border:1px solid #c3d2df;padding:7px 8px;min-width:0}
.fc-result-bridge>div+div::before{content:"−";position:absolute;top:50%;left:-18px;transform:translateY(-50%);font-weight:800}
.fc-result-bridge dt{font-size:.73rem;color:#40576d;line-height:1.35}
.fc-result-bridge dd{margin:3px 0 0;font-size:clamp(.86rem,3vw,1.15rem);font-weight:750;overflow-wrap:anywhere}
#fc-edit-result{display:inline-block;color:#234d70;font-size:.8rem;font-weight:750;text-decoration:underline;text-underline-offset:.2em;padding:5px 0}

.fc-mode-options{padding:9px 10px 10px;margin:10px 0 16px;border:1px solid #b8cad9}
.fc-mode-options legend{padding:0 4px;font-size:.8rem;font-weight:750}
.fc-mode-options>div{display:flex;gap:6px 17px;flex-wrap:wrap}
.fc-mode-options label{display:inline-flex;align-items:center;gap:5px;min-height:32px;font-size:.84rem;cursor:pointer}
.fc-mode-options input{appearance:auto;accent-color:#244560}
.fc-mode-options [hidden]{display:none!important}
.fm-report .fc-mode-options p,.fm-report .fc-result-summary .fc-limit{margin:4px 0 0;font-size:.76rem;color:#40576d;line-height:1.55}
.fm-report .fc-result-summary .fc-limit{margin:5px 0 6px}

.fc-waste-entry{padding:8px 10px;margin:12px 0;border:1px solid #c5d3df;min-width:0}
.fc-waste-entry legend{font-size:.8rem;font-weight:750;padding:0 4px}
.fc-waste-entry>label{font-size:.77rem;display:flex;gap:.42rem;align-items:flex-start}
.fc-waste-entry>label input{margin-top:.21rem;flex-shrink:0}
.fc-waste-entry [hidden],.fc-steps tr[hidden]{display:none!important}
.fc-waste-entry .fc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:490px){.fc-waste-entry .fc-fields{grid-template-columns:minmax(0,1fr)}}
#fc-waste-entry{scroll-margin-top:120px}
#fc-edit-waste{text-decoration:underline;text-underline-offset:.15em}
