    *, *::before, *::after { box-sizing: border-box; }
    .be-shell { max-width: 860px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

    .be-card { background: #ffffff; border: 1px solid #d0d8e0; border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; box-shadow: 0 1px 4px rgba(15,25,35,.07); }
    .be-section-title { font-size: .95rem; font-weight: 700; color: #0f1923; margin: 0 0 1.1rem; padding-bottom: .55rem; border-bottom: 2px solid #b8d9f0; }

    .be-field { display: flex; flex-direction: column; gap: .3rem; }
    .be-field label { font-size: .8rem; font-weight: 700; color: #cbd5e1 !important; } 
    .be-field input { padding: .65rem .9rem; font-size: .9rem; border: 2px solid #d0d8e0; border-radius: 8px; background: #ffffff; color: #0f1923; transition: border-color .15s; }
    .be-field input:focus { outline: none; border-color: #005fa3; box-shadow: 0 0 0 3px rgba(0,95,163,.15); }
    .be-field .be-helper { font-size: .78rem; font-weight: 600; color: #0f1923; margin: .2rem 0 0; }
    .be-row { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: .85rem; }
    .f-sm { width: 130px; } .f-md { width: 180px; } .f-lg { flex: 1; min-width: 160px; }

    /* ── Cost table ──────────────────────────────────────── */
    .be-cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
    .be-cost-col { border-radius: 10px; padding: 1rem 1.25rem; background: #ffffff; border: 1px solid #d0d8e0; }
    .be-cost-col.fixed-col   { border-top: 4px solid #5da8d8; background: #f0f7fd; }
    .be-cost-col.variable-col{ border-top: 4px solid #b07800; background: #fffbf0; }
    .be-cost-col-title { font-size: .85rem; font-weight: 700; color: #0f1923; margin: 0 0 .75rem; }
    .be-cost-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
    .be-cost-row input[type="text"]   { flex: 1; padding: .4rem .6rem; font-size: .82rem; border: 1.5px solid #b0bcc8; border-radius: 6px; background: #ffffff; color: #0f1923; }
    .be-cost-row input[type="number"] { width: 100px; padding: .4rem .6rem; font-size: .82rem; border: 1.5px solid #b0bcc8; border-radius: 6px; background: #ffffff; color: #0f1923; font-variant-numeric: tabular-nums; }
    .be-cost-row input:focus { outline: none; border-color: #005fa3; }
    .be-del-btn { padding: .35rem .55rem; font-size: .75rem; font-weight: 700; background: #f5c0c0; color: #0f1923; border: 1.5px solid #d08080; border-radius: 5px; cursor: pointer; flex-shrink: 0; }
    .be-del-btn:hover { background: #f0a0a0; }

    /* ── Toggle / buttons ────────────────────────────────── */
    .be-toggle { display: flex; gap: .5rem; flex-wrap: wrap; }
    .be-toggle-btn { padding: .4rem .9rem; font-size: .8rem; font-weight: 700; border: 2px solid #b0bcc8; border-radius: 999px; background: #ffffff; color: #0f1923; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
    .be-toggle-btn:hover:not(.active) { border-color: #005fa3; background: #e8f4fb; }
    .be-toggle-btn.active { background: #2d3f52; border-color: #2d3f52; color: #ffffff; }
    .be-add-btn { padding: .45rem .9rem; font-size: .8rem; font-weight: 700; background: #b8d9f0; color: #0f1923; border: 2px solid #7ec8f0; border-radius: 7px; cursor: pointer; transition: background .15s; margin-top: .5rem; display: block; }
    .be-add-btn:hover { background: #90c5e8; }
    .be-run-btn { padding: .75rem 1.5rem; font-size: .95rem; font-weight: 700; background: #b8d9f0; color: #0f1923; border: 2px solid #7ec8f0; border-radius: 10px; cursor: pointer; transition: background .15s, transform .1s; box-shadow: 0 1px 4px rgba(15,25,35,.08); }
    .be-run-btn:hover { background: #90c5e8; } .be-run-btn:active { transform: scale(.97); }

    /* ── Results ─────────────────────────────────────────── */
    .be-results-header { background: #2d3f52; border-radius: 16px; padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; box-shadow: 0 4px 16px rgba(15,25,35,.12); }
    .be-results-header h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 .2rem; color: #ffffff; }
    .be-results-header p  { margin: 0; font-size: .875rem; color: #b8d0e8; }

    .results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: .85rem; }
    .result-card { border-radius: 8px; padding: .9rem 1rem; background: #b8d9f0; border: 1px solid #5da8d8; }
    .result-card .result-label { color: #0f1923; font-size: .75rem; font-weight: 700; margin: 0 0 .25rem; }
    .result-card .result-value { color: #0f1923; font-size: 1.35rem; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }
    .result-card.dark { background: #2d3f52; border-color: #1e2d3d; }
    .result-card.dark .result-label { color: #b8d0e8; }
    .result-card.dark .result-value { color: #ffffff; }
    .result-card.good { background: #a8d8b8; border-color: #3d9a5a; }
    .result-card.warn { background: #f0d080; border-color: #b07800; }
    .result-card.good .result-label, .result-card.good .result-value,
    .result-card.warn .result-label, .result-card.warn .result-value { color: #0f1923; }

    .be-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; flex-shrink: 0; }
    .badge-ok   { background: #a8d8b8; color: #0f1923; border: 1px solid #3d9a5a; }
    .badge-warn { background: #f0d080; color: #0f1923; border: 1px solid #b07800; }
    .badge-info { background: #b8d9f0; color: #0f1923; border: 1px solid #5da8d8; }

    .be-divider { border: none; border-top: 1px solid #d0d8e0; margin: 1rem 0; }
    .be-note { font-size: .8rem; font-weight: 700; color: #0f1923 !important; margin: .5rem 0 0; line-height: 1.5; }

    .be-explainer { border: 1px solid #d0d8e0; border-radius: 10px; margin-top: 1.5rem; background: #ffffff; overflow: hidden; }
    .be-explainer-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .9rem 1.25rem; background: #ffffff; border: none; cursor: pointer; font-size: .95rem; font-weight: 700; color: #0f1923; text-align: left; transition: background .15s; }
    .be-explainer-head:hover { background: #f0f4f8; }
    .be-explainer-head svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
    .be-explainer-head[aria-expanded="true"] svg { transform: rotate(180deg); }
    .be-explainer-body { display: none; padding: 1rem 1.25rem 1.25rem; border-top: 1px solid #d0d8e0; }
    .be-explainer-body h3 { font-size: .9rem; font-weight: 700; margin: 1rem 0 .25rem; color: #0f1923; }
    .be-explainer-body h3:first-child { margin-top: 0; }
    .be-explainer-body p  { font-size: .875rem; margin: 0 0 .3rem; line-height: 1.55; color: #0f1923; }

    .hc-disclaimer { margin-top: 1.5rem; padding: .9rem 1.1rem; background: #b8d9f0; border: 1px solid #5da8d8; border-radius: 10px; font-size: .8rem; line-height: 1.5; }
    .hc-disclaimer p { color: #0f1923; margin: 0; font-weight: 600; }

    /* ── Overrides ───────────────────────────────────────── */
    .be-card label, .be-card .be-section-title, .be-card .be-helper,
    .be-card input, .be-cost-row input, .be-cost-col-title,
    .be-explainer-body p, .be-explainer-body h3, .be-explainer-head,
    .hc-disclaimer p { color: #0f1923 !important; }
    .be-results-header h2 { color: #ffffff !important; }
    .be-results-header p  { color: #b8d0e8 !important; }
    .be-toggle-btn.active { color: #ffffff !important; }
    .result-card .result-label, .result-card .result-value { color: #0f1923 !important; }
    .result-card.dark .result-label { color: #b8d0e8 !important; }
    .result-card.dark .result-value { color: #ffffff !important; }

    @media (max-width: 640px) { .be-cost-grid { grid-template-columns: 1fr; } .be-row { flex-direction: column; align-items: stretch; } .results-grid { grid-template-columns: 1fr 1fr; } }
    @media print { nav, header, footer, .be-add-btn, .be-run-btn, .be-del-btn, .be-explainer, .hc-disclaimer { display: none !important; } .be-results-header { background: #2d3f52 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }