.be-sv{box-sizing:border-box;max-width:1200px;margin:32px auto;padding:clamp(16px,4vw,40px);font:16px/1.6 system-ui,sans-serif;color:#1d3026;background:#f7faf4;border:1px solid #c9d9c8;border-radius:14px}
.be-sv *{box-sizing:border-box}.be-sv h2{font-size:clamp(25px,4vw,39px);margin:.3em 0}.be-sv h3{font-size:19px;margin:0 0 10px}.be-sv-heading{margin-bottom:26px}.be-sv-eyebrow{font-weight:800;letter-spacing:.12em;font-size:12px;color:#355242}
.be-sv-grid,.be-sv-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.be-sv-scenario,.be-sv-result,.be-sv-metadata{min-width:0;padding:22px;background:#fff;border:1px solid #b9cdb9;border-radius:10px}
.be-sv-metadata{margin-bottom:20px}.be-sv-scenario legend,.be-sv-metadata legend{padding:0 8px;font-weight:800;color:#204532}.be-sv label{display:block;font-size:14px;font-weight:650;margin:0 0 12px}
.be-sv input:not([type=file]),.be-sv textarea{display:block;width:100%;min-height:44px;margin-top:5px;padding:9px 10px;background:#fff;color:#1d3026;border:1px solid #708879;border-radius:5px;font:inherit}.be-sv textarea{resize:vertical}
.be-sv-actions{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0}
.be-sv button,.be-sv-upload{display:inline-flex;align-items:center;min-height:44px;padding:9px 14px;border-radius:6px;color:#fff;background:#21543c;border:1px solid #21543c;font:inherit;font-weight:700;cursor:pointer}
.be-sv-upload{position:relative;overflow:hidden;margin:0}.be-sv-upload input{position:absolute;width:1px;height:1px;opacity:0;inset:auto;left:0;bottom:0}.be-sv-upload:focus-within{outline:3px solid #174caa;outline-offset:3px}
.be-sv button:disabled{background:#dae2da;color:#4e6554;border-color:#aab9aa;cursor:not-allowed}.be-sv :is(button,input,textarea,summary,a):focus-visible{outline:3px solid #174caa;outline-offset:3px}
.be-sv-results{margin-bottom:18px}.be-sv-result p{margin:5px 0}.be-sv-difference{font-weight:700;background:#e0f0e0;padding:16px;border-radius:7px}.be-sv-method{margin:18px 0}.be-sv-method summary{cursor:pointer;font-weight:700;min-height:44px;padding:8px 0}.be-sv-note{font-size:14px;background:#e9f0e7;padding:14px;border-radius:7px}.be-sv-status{font-weight:650;color:#204532}.be-sv a{color:#174b30;text-decoration:underline}.be-sv-print{display:none}
@media(max-width:720px){.be-sv-grid,.be-sv-results{grid-template-columns:minmax(0,1fr)}.be-sv-scenario,.be-sv-result,.be-sv-metadata{padding:15px}}
@media print { .be-sv{max-width:none;border:0;padding:0;margin:0;background:#fff;color:#000;font:11pt/1.35 Georgia,serif}.be-sv > :not(.be-sv-print){display:none!important}.be-sv .be-sv-print{display:block!important}.be-sv-print h2{font:700 17pt Georgia,serif}.be-sv-print h3{font:700 13pt Georgia,serif;break-after:avoid}.be-sv-print p{margin:3px 0;break-inside:avoid} }

/* Iteration 48 / version 0.3.0 – embedded biogas comparison */
.be-sv-gas{border-top:2px solid #c2d5c4;padding-top:28px;margin:36px 0 22px}.be-sv-gas .be-sv-heading{max-width:850px}.be-sv-gas-scenario label{line-height:1.5}.be-sv-gas .be-sv-difference{background:#e8f1e5}

/* Version 0.4.0: documented input provenance (not independently verified). */
.be-sv select{display:block;width:100%;min-height:44px;margin-top:5px;padding:9px 10px;background:#fff;color:#1d3026;border:1px solid #708879;border-radius:5px;font:inherit}
.be-sv :is(select):focus-visible{outline:3px solid #174caa;outline-offset:3px}
.be-sv-quality{margin:22px 0 28px;padding:20px 0;border-top:1px solid #c2d5c4}
.be-sv-quality>h3{margin:0 0 14px}.be-sv-quality-card{min-width:0;background:#fff;border:1px solid #b9cdb9;border-radius:10px;padding:18px}
.be-sv-quality-card h4{margin:0 0 8px;font-size:16px}.be-sv-quality-status{font-weight:700;color:#344e3c}
.be-sv-quality-card p{margin:4px 0 8px;font-size:14px}.be-sv-quality-card ul{margin:8px 0 0;padding-left:23px;font-size:13px}
.be-sv-quality-card li{margin:3px 0}.be-sv-quality-ok{color:#294a34}.be-sv-quality-missing{color:#8b3c1d}
@media(max-width:720px){.be-sv-quality-card{padding:15px}}

/* 0.5.0 · locally rendered structured report with responsive preview and printable A4 output */
.be-sv .be-sv-print[data-preview-open]:not([hidden]){display:block;margin:30px 0;padding:clamp(18px,3vw,34px);border:2px solid #aabfa9;background:#fff;color:#22372b;border-radius:12px;box-shadow:0 6px 20px #1a46201a}
.be-sv-report-cover{padding-bottom:14px;border-bottom:3px solid #22543e;margin-bottom:20px}
.be-sv-report-cover>p:first-child{font-weight:800;text-transform:uppercase;color:#355242;letter-spacing:.08em;font-size:12px}
.be-sv-report-cover h2{font-size:clamp(23px,3.5vw,35px)!important;line-height:1.15}
.be-sv-report-warning{font-weight:800;padding:12px;border:1px solid #995c37;background:#fff2e5;color:#683719}
.be-sv-report-section{margin:16px 0 22px;break-inside:auto}
.be-sv-report-section>h3{margin:0 0 12px;font-size:21px;border-bottom:1px solid #cfddce;padding-bottom:7px}
.be-sv-report-subsection{margin:18px 0 22px;padding:12px 16px;background:#f6f9f4;border:1px solid #d6e2d4;border-radius:7px;break-inside:avoid}
.be-sv-report-subsection>h3{font-size:17px;border:0}
.be-sv-report-note{white-space:pre-wrap;overflow-wrap:anywhere}
.be-sv-report-table-wrap{min-width:0;overflow-x:auto;margin:12px 0 18px}
.be-sv-report-table-wrap h4,.be-sv-report-chart h4{font-size:15px;margin:0 0 8px}
.be-sv-report-table{border-collapse:collapse;width:100%;font:13px/1.4 system-ui,sans-serif}
.be-sv-report-table th,.be-sv-report-table td{padding:8px;border:1px solid #c5d4c3;text-align:left;overflow-wrap:anywhere}
.be-sv-report-table th{background:#e9f1e8;color:#1d3b28}
.be-sv-report-table tbody tr:nth-child(even){background:#f5f8f3}
.be-sv-report-chart{padding:14px;border:1px solid #c5d4c3;border-radius:6px;margin:12px 0 18px}
.be-sv-report-barrow{display:grid;grid-template-columns:minmax(85px,1fr) minmax(70px,2fr) minmax(80px,1fr);gap:9px;align-items:center;margin:10px 0;font-size:13px}
.be-sv-report-barrow>span{overflow-wrap:anywhere}
.be-sv-report-track{background:#d9e6da;height:18px;border-radius:3px;overflow:hidden}
.be-sv-report-fill{background:#2b6244;height:100%;min-width:0}
.be-sv-report-barrow strong{text-align:right;font-size:12px;white-space:normal}
.be-sv-report-footer{margin-top:25px;padding-top:12px;border-top:1px solid #bcd0b8;font-size:12px;color:#41584a}
@media(max-width:430px){.be-sv .be-sv-print[data-preview-open]:not([hidden]){padding:12px}.be-sv-report-table{font-size:11px}.be-sv-report-table th,.be-sv-report-table td{padding:5px}.be-sv-report-barrow{grid-template-columns:minmax(55px,1fr) minmax(60px,2fr);font-size:12px}.be-sv-report-barrow strong{grid-column:2;text-align:left}}
@media print{
 @page{size:A4;margin:14mm}
 .be-sv .be-sv-print{display:block!important}
 .be-sv-report-cover{break-after:avoid}
 .be-sv-report-section>h3{break-after:avoid}
 .be-sv-report-table-wrap{overflow:visible;break-inside:auto}
 .be-sv-report-table{width:100%;font:9pt/1.3 Arial,sans-serif}
 .be-sv-report-table th,.be-sv-report-table td{padding:4pt;word-break:break-word}
 .be-sv-report-table tr{break-inside:avoid}
 .be-sv-report-technology ~ .be-sv-report-technology{break-before:page}
 .be-sv-report-subsection{break-inside:auto}
 .be-sv-report-chart{break-inside:avoid}
 .be-sv-report-warning{background:#fff2e5!important;color:#683719!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .be-sv-report-fill{background:#2b6244!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* 0.6.0 · one-at-a-time sensitivity analysis */
.be-sv-sensitivity{border-top:2px solid #c2d5c4;margin-top:36px;padding-top:24px}
.be-sv-sensitivity>label{max-width:440px}.be-sv-sensitivity h3{margin:22px 0 13px}
.be-sv-sensitivity-note{font-size:14px;line-height:1.6;padding:12px 14px;background:#e8f1e5;border-left:3px solid #22543e}
.be-sv-sensitivity-card{padding:16px;min-width:0;background:#fff;border:1px solid #b9cdb9;border-radius:10px}
.be-sv-sensitivity-card h4{font-size:17px;margin:0 0 8px}
.be-sv-sensitivity-scroll{overflow-x:auto;max-width:100%}
.be-sv-sensitivity-table{border-collapse:collapse;width:100%;min-width:620px;font-size:12px;line-height:1.45}
.be-sv-sensitivity-table caption{text-align:left;font-weight:700;padding:6px 0}
.be-sv-sensitivity-table th,.be-sv-sensitivity-table td{padding:6px;text-align:left;border:1px solid #cfdfcd;vertical-align:top}
.be-sv-sensitivity-table thead th{background:#e9f1e8;color:#1d3b28}
.be-sv-sensitivity-table tbody tr:nth-child(even){background:#f6f9f5}
.be-sv-sensitivity-track{margin:4px 0 0;width:100%;height:7px;background:#e0e9e1;border-radius:3px;overflow:hidden}
.be-sv-sensitivity-fill{height:100%;background:#275e46}
@media print{.be-sv-sensitivity{display:none!important}}


/* 0.7.0: client-only economics, tied to existing physical scenario results */
.be-sv-economics{border-top:2px solid #c2d5c4;margin-top:36px;padding-top:24px}
.be-sv-economics h3{margin:24px 0 14px}.be-sv-economics-grid{margin-bottom:20px}
.be-sv-economics-note{padding:12px 14px;background:#e8f1e5;border-left:3px solid #22543e;font-size:14px}
.be-sv-economics-card{padding:16px;background:#fff;border:1px solid #b9cdb9;border-radius:10px;min-width:0}
.be-sv-economics-card h4{font-size:17px;margin:0 0 8px}.be-sv-economics-card p{font-size:14px;margin:5px 0;overflow-wrap:anywhere}
.be-sv-economics-results{margin:18px 0}
@media print{.be-sv-economics{display:none!important}}

/* v0.8.0 · environmental inventory, conservative comparable-data guard */
.be-sv-environment{border-top:2px solid #c2d5c4;margin:38px 0 25px;padding-top:28px}
.be-sv-environment>h3{margin:25px 0 14px}.be-sv-env-panel{min-width:0}.be-sv-env-comparison,.be-sv-decision-matrix{margin:16px 0 26px;padding:18px;background:#fff;border:1px solid #b9cdb9;border-radius:10px;min-width:0}
.be-sv-env-comparison h4,.be-sv-decision-matrix h3{margin:0 0 10px;font-size:19px}.be-sv-env-coverage{font-weight:700;color:#214b35}
.be-sv-env-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.be-sv-env-table{border-collapse:collapse;width:100%;min-width:640px;font-size:13px;line-height:1.4}
.be-sv-env-table th,.be-sv-env-table td{border:1px solid #c5d4c3;padding:8px;vertical-align:top;text-align:left;overflow-wrap:anywhere}
.be-sv-env-table thead th{background:#e9f1e8;color:#1d3b28}.be-sv-env-table tbody tr:nth-child(even){background:#f6f9f5}
.be-sv-env-note{font-size:14px;line-height:1.6;border-left:3px solid #22543e;background:#e8f1e5;padding:12px 14px}
.be-sv-env-comparison p,.be-sv-decision-matrix p{font-size:14px;overflow-wrap:anywhere}
@media(max-width:720px){.be-sv-env-comparison,.be-sv-decision-matrix{padding:12px}}
@media print{.be-sv-environment{display:none!important}}

/* 0.9.0 · VSME-informed S/G at undertaking reporting-year level */
.be-sv-sg{border-top:2px solid #b6cfbe;margin:38px 0 26px;padding-top:28px}
.be-sv-sg-general{padding:18px;background:#fff;border:1px solid #b9cdb9;border-radius:10px;margin-bottom:22px}
.be-sv-sg details{margin:16px 0;padding:14px;background:#fff;border:1px solid #b9cdb9;border-radius:9px}
.be-sv-sg details summary{font-weight:750;color:#204532;cursor:pointer;padding:5px 0;min-height:44px;display:flex;align-items:center}
.be-sv-sg-row{padding:12px 0;border-top:1px solid #e0e8df}
.be-sv-sg-row:first-of-type{border-top:0}
.be-sv-sg-row .be-sv-sg-hint{font-size:12px;color:#43634c;margin:4px 0 8px}
.be-sv-sg-row select{display:block;width:100%;min-height:44px;margin-top:5px;padding:9px;border:1px solid #708879;border-radius:5px;background:#fff;color:#1d3026;font:inherit}
.be-sv-sg-row select:focus-visible{outline:3px solid #174caa;outline-offset:2px}
.be-sv-sg-row label{margin:0}
.be-sv-sg-evidence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.be-sv-sg-summary{padding:18px;background:#fff;border:1px solid #b9cdb9;border-radius:9px}
.be-sv-sg-summary h3{margin:0 0 10px}
.be-sv-sg-summary p{margin:6px 0}
.be-sv-sg-report{break-before:page}
@media(max-width:720px){.be-sv-sg-evidence{grid-template-columns:minmax(0,1fr)}.be-sv-sg-general{padding:12px}}
@media print{.be-sv-sg{display:none!important}.be-sv-sg-report .be-sv-report-table{font-size:8pt}}

/* 1.0.0: local ESG action plan and provenance/source register */
.be-sv-action-source{border-top:2px solid #b6cfbe;margin:38px 0 26px;padding-top:28px}
.be-sv-action-source > .be-sv-heading{max-width:950px}
.be-sv-as-section{border:1px solid #bdcfbc;background:#fff;padding:14px 18px;margin:18px 0;border-radius:9px}
.be-sv-as-section>summary{cursor:pointer;min-height:44px;font-weight:750;color:#204532;padding:8px}
.be-sv-as-section[open]>summary{border-bottom:1px solid #d7e5d4;margin-bottom:12px}
.be-sv-as-card{background:#f7faf4;border:1px solid #cadbca;border-radius:8px;margin:12px 0;padding:12px;min-width:0}
.be-sv-as-card>summary{font-weight:700;cursor:pointer;padding:8px;overflow-wrap:anywhere}
.be-sv-as-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:9px;padding:13px 5px}
.be-sv-as-fields>label{min-width:0;margin:0}
.be-sv-as-fields>label span{display:block}
.be-sv-as-fields>label input,.be-sv-as-fields>label select,.be-sv-as-fields>label textarea{width:100%;min-width:0}
.be-sv-as-buttons{display:flex;gap:8px;flex-wrap:wrap;align-items:center;grid-column:1/-1}
.be-sv-as-issues{grid-column:1/-1;font-size:13px;border-left:3px solid #94764c;padding:10px;background:#fff3e4;overflow-wrap:anywhere}
.be-sv-as-summary{background:#eff5ed;border:1px solid #bdcfbc;border-radius:8px;margin:24px 0;padding:16px}
.be-sv-as-summary h3{margin-bottom:8px}
.be-sv-as-resources{font-size:14px;line-height:1.8}
.be-sv-as-transfer{border:1px solid #b7d1bb;border-radius:8px;padding:15px}
.be-sv-as-transfer label{max-width:430px}
@media(max-width:720px){.be-sv-as-fields{grid-template-columns:minmax(0,1fr)}.be-sv-as-section{padding:9px}}
@media print{.be-sv-action-source{display:none!important}}

.be-sv .be-sv-as-confirm{display:flex;align-items:flex-start;gap:9px;max-width:780px;margin:12px 0}.be-sv .be-sv-as-confirm input{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:4px 0 0}.be-sv .be-sv-as-confirm:focus-within{outline:2px solid #174caa;outline-offset:3px}

/* HALM2 API import prototype 1.1.0 */
.be-sv-dst{margin:18px 0;padding:16px;background:#edf4eb;border:1px solid #a9c9b2;border-radius:9px}
.be-sv-dst>summary{font-weight:800;cursor:pointer;min-height:44px;padding:7px 0}
.be-sv-dst-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.be-sv-dst select{display:block;width:100%;max-width:100%;min-height:44px;margin-top:6px;border:1px solid #708879;border-radius:5px;padding:9px;color:#1d3026;background:#fff;font:inherit}
.be-sv-dst-preview dl{display:grid;grid-template-columns:minmax(0,40%) minmax(0,60%);gap:4px 10px;overflow-wrap:anywhere;font-size:14px}
.be-sv-dst-preview dt{font-weight:700}.be-sv-dst-preview dd{margin:0}
@media(max-width:720px){.be-sv-dst-grid{grid-template-columns:minmax(0,1fr)}.be-sv-dst-preview dl{grid-template-columns:minmax(0,1fr)}}

/* 1.4.0: contain inherited 320px-level table rounding/scroll overflow.
   Nested .be-sv-env-scroll remains horizontally scrollable for wide tables. */
@media (max-width: 360px) {
  .be-sv { overflow-x: hidden !important; }
}
