.bep-page{--ink:#16283b;--muted:#5a6c7d;--line:#d7e2e8;--teal:#007d6c;--pale:#e9f5f1;--orange:#b85b28;color:var(--ink);font-size:16px;line-height:1.65}
.bep-page *{box-sizing:border-box}
.bep-page [hidden]{display:none!important}
.bep-page h1,.bep-page h2,.bep-page h3,.bep-page p{letter-spacing:0}
.bep-page h1{font-size:2.15rem;line-height:1.3;margin:.4rem 0 .8rem;font-weight:800}
.bep-page h2{font-size:1.5rem;line-height:1.35;margin:0 0 1rem;font-weight:750}
.bep-page h3{font-size:1.2rem;line-height:1.4;margin:0 0 .6rem;font-weight:700}
.bep-page p{margin:0 0 1rem}
.bep-crumb{display:flex;gap:.5rem;align-items:center;color:var(--muted);font-size:.85rem;margin:0 0 1.1rem}
.bep-crumb a,.bep-guide a{color:var(--teal);text-decoration:underline;text-underline-offset:2px}
.bep-head{padding:0 0 1.5rem;border-bottom:1px solid var(--line);margin-bottom:1.5rem}
.bep-head>p:last-child{font-size:1rem;color:var(--muted);max-width:68ch;margin:0}
.bep-kicker{color:var(--teal);font-size:.85rem;font-weight:800;margin:0!important}
.bep-workspace,.bep-results{border:1px solid var(--line);border-radius:8px;background:#fff;padding:1.4rem;margin:0 0 1.5rem}
.bep-section-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.15rem}
.bep-section-head h2,.bep-section-head h3{margin:0}
.bep-section-head>p,.bep-section-head>span{font-size:.8rem;color:var(--muted);margin:0;max-width:35ch;text-align:right}
.bep-page fieldset{border:0;padding:0;margin:0 0 1.4rem;min-width:0}
.bep-page legend{font-size:.9rem;font-weight:800;padding:0;margin:0 0 .55rem;color:var(--ink)}
.bep-segment>div{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}
.bep-segment label{position:relative;cursor:pointer;margin:0}
.bep-segment input{position:absolute;opacity:0;width:1px;height:1px}
.bep-segment span{display:block;text-align:center;padding:.72rem .45rem;border:1px solid var(--line);border-radius:6px;font-weight:700;line-height:1.3;min-height:46px}
.bep-segment input:checked+span{border-color:var(--teal);background:var(--pale);color:var(--teal)}
.bep-segment input:focus-visible+span{outline:3px solid #9cd4ca;outline-offset:2px}
.bep-row,.bep-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem 1rem}
.bep-row:has(> .bep-field:only-child){grid-template-columns:1fr 1fr}
.bep-field{display:flex;flex-direction:column;gap:.25rem;margin:0;min-width:0}
.bep-field>span:first-child{font-size:.9rem;font-weight:750;color:var(--ink)}
.bep-field small{display:block;font-size:.72rem;line-height:1.4;color:var(--muted);min-height:1em}
.bep-input{position:relative;display:block;width:100%}
.bep-input input,.bep-field select{display:block;width:100%;height:45px;border:1px solid #c6d6df;border-radius:6px;background:#fff;color:var(--ink);font:inherit;padding:.5rem 3.3rem .5rem .75rem;box-shadow:none;letter-spacing:0}
.bep-field select{padding-right:.75rem}
.bep-input b{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);font-size:.8rem;color:var(--muted)}
.bep-input input:focus,.bep-field select:focus{border-color:var(--teal);outline:2px solid #b8dfd7;outline-offset:0}
.bep-cost{border-top:1px solid var(--line)!important;padding-top:1rem!important;margin-top:1.2rem!important}
.bep-compact-choice{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:.9rem}
.bep-compact-choice label,.bep-check{display:flex;align-items:center;gap:.35rem;font-size:.84rem;color:var(--ink);font-weight:600;cursor:pointer}
.bep-compact-choice input,.bep-check input{width:17px;height:17px;accent-color:var(--teal);margin:0}
.bep-check{margin:.65rem 0 1.2rem}
.bep-target{border-top:1px solid var(--line);padding-top:1rem;margin-top:1.2rem}
.bep-examples{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;margin:1.2rem 0}
.bep-examples>span{font-size:.8rem;color:var(--muted);font-weight:700;margin-right:.3rem}
.bep-page button{height:auto;min-height:40px;border-radius:6px;box-shadow:none;font-size:.85rem;line-height:1.25;font-weight:700;letter-spacing:0;text-transform:none;padding:.55rem .9rem;white-space:normal}
.bep-examples button,.bep-actions button:not(.bep-primary),.bep-result-actions button{background:#fff;color:var(--ink)!important;border:1px solid var(--line)}
.bep-examples button:hover,.bep-actions button:not(.bep-primary):hover,.bep-result-actions button:hover{border-color:var(--teal);color:var(--teal)!important;background:#f7fbfa}
.bep-actions,.bep-result-actions{display:flex;flex-wrap:wrap;gap:.55rem}
.bep-primary{background:var(--teal)!important;border:1px solid var(--teal);color:#fff!important;min-width:145px}
.bep-primary:hover{background:#006858!important}
.bep-error{border-left:3px solid #b84338;background:#fff4f2;color:#8a2d24;padding:.7rem .8rem;margin:.8rem 0 0!important;font-size:.86rem}
.bep-note{background:#f4f8fa;border-top:1px solid var(--line);padding:1rem 1.4rem;margin:1.35rem -1.4rem -1.4rem;border-radius:0 0 8px 8px;color:var(--muted);font-size:.82rem}
.bep-note strong{color:var(--ink)}
.bep-note p{margin:.25rem 0 0}
.bep-status{border-left:4px solid var(--teal);background:var(--pale);padding:.65rem .8rem;font-weight:700;font-size:.9rem;margin-bottom:1rem!important}
.bep-status[data-state="loss"],.bep-status[data-state="warning"]{border-color:var(--orange);background:#fff3e9}
.bep-status[data-state="neutral"]{border-color:#697f91;background:#f0f5f8}
.bep-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin:0 0 1.5rem}
.bep-result-card{border:1px solid var(--line);border-radius:6px;padding:.75rem .9rem;min-width:0;display:flex;flex-direction:column;gap:.12rem}
.bep-result-main{border-color:#9acfc5;background:#f4fbf9}
.bep-result-card>span{font-size:.78rem;font-weight:700;color:var(--muted)}
.bep-result-card strong{font-size:1.2rem;color:var(--ink);line-height:1.4;overflow-wrap:anywhere}
.bep-result-card small{color:var(--muted);font-size:.7rem;line-height:1.35}
.bep-chart-wrap,.bep-scenarios{border-top:1px solid var(--line);padding-top:1.3rem;margin-top:1.3rem}
.bep-chart-legend{display:flex;flex-wrap:wrap;gap:.5rem 1rem;font-size:.76rem;color:var(--muted);margin:0 0 .7rem}
.bep-chart-legend>span{display:flex;align-items:center;gap:.3rem}
.bep-chart-legend i{width:16px;height:3px;background:var(--teal);display:inline-block}
.bep-chart-legend .bep-line-cost{background:#e47940}
.bep-chart-legend .bep-dot{background:#182b43;width:7px;height:7px;border-radius:50%}
.bep-canvas-box{position:relative;width:100%;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff}
.bep-canvas-box canvas{width:100%;display:block}
.bep-chart-tip{position:absolute;bottom:15px;transform:translateX(-50%);max-width:min(90%,340px);padding:.35rem .5rem;border-radius:4px;background:#172a3de8;color:#fff;font-size:.68rem;line-height:1.35;text-align:center;pointer-events:none}
.bep-chart-summary,.bep-scenarios>p,.bep-footnote{font-size:.79rem;color:var(--muted);line-height:1.6}
.bep-chart-summary{margin:.55rem 0 0!important}
.bep-table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:6px}
.bep-scenarios table{width:100%;min-width:620px;margin:0;font-size:.79rem;border-collapse:collapse}
.bep-scenarios th,.bep-scenarios td{padding:.55rem .5rem;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
.bep-scenarios th{background:#f4f8fa;color:var(--ink)}
.bep-scenario-current{background:#eaf6f2;font-weight:700}
.bep-result-actions{margin:1.2rem 0 .5rem}
#bep-action-status{font-size:.8rem;color:var(--teal);min-height:1.2em;margin:.3rem 0}
.bep-footnote{border-top:1px solid var(--line);padding-top:.8rem;margin-top:1rem!important}
.bep-guide{border-top:1px solid var(--line);padding:1.7rem 0;margin:0}
.bep-guide p:last-child{margin-bottom:0}
.bep-formula{border-left:3px solid var(--teal);background:#f3f8f7;padding:.8rem 1rem;margin:.8rem 0 1rem;font-size:.9rem;line-height:1.85;overflow-wrap:anywhere}
.bep-faq details{border-top:1px solid var(--line);padding:.8rem 0}
.bep-faq summary{cursor:pointer;font-weight:700;color:var(--ink)}
.bep-faq details p{margin:.6rem 0 0;color:var(--muted);font-size:.9rem}
.bep-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.bep-related-grid a{display:flex;flex-direction:column;gap:.25rem;min-height:85px;padding:.8rem;border:1px solid var(--line);border-radius:6px;text-decoration:none;color:var(--ink)}
.bep-related-grid a:hover{border-color:var(--teal);background:#f7fbfa}
.bep-related-grid strong{font-size:.9rem}
.bep-related-grid span{font-size:.78rem;color:var(--muted)}
@media(max-width:760px){.bep-page h1{font-size:1.65rem}.bep-workspace,.bep-results{padding:1rem}.bep-section-head{align-items:start;flex-direction:column;gap:.25rem}.bep-section-head>p,.bep-section-head>span{text-align:left}.bep-note{margin:1.1rem -1rem -1rem;padding:1rem}.bep-result-card strong{font-size:1rem}}
@media(max-width:480px){.bep-row,.bep-fields,.bep-result-grid,.bep-related-grid{grid-template-columns:1fr}.bep-segment>div{grid-template-columns:1fr 1fr}.bep-segment span{font-size:.78rem}.bep-page button{font-size:.8rem}.bep-result-grid{gap:.5rem}.bep-result-card{padding:.65rem .75rem}}
@media print{.bep-subpage #header,.bep-subpage #sidebar,.bep-subpage #copyright,.bep-subpage .bep-workspace,.bep-subpage .bep-guide,.bep-subpage .bep-result-actions,.bep-subpage .adsbygoogle,.bep-subpage ins.adsbygoogle{display:none!important}.bep-subpage #content,.bep-subpage .col-8{width:100%!important;max-width:none!important}.bep-subpage .bep-results{display:block!important;border:0;padding:0}.bep-chart-tip{display:none!important}}
