.bec-tool {
	--bec-border: #d9e0e7;
	--bec-muted: #5b6672;
	--bec-accent: #1769aa;
	--bec-surface: #fff;
	color: #17212b;
	font: inherit;
	max-width: 900px;
	margin: 0 auto;
}
.bec-tool *, .bec-tool *::before, .bec-tool *::after { box-sizing: border-box; }
.bec-tool [hidden] { display: none !important; }
.bec-tool h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 .55rem; }
.bec-intro { color: var(--bec-muted); margin: 0 0 1.1rem; }
.bec-form, .bec-results, .bec-formulas { background: var(--bec-surface); border: 1px solid var(--bec-border); border-radius: 11px; margin: 0 0 1rem; padding: clamp(1rem, 3vw, 1.4rem); }
.bec-field { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 .9rem; min-width: 0; }
.bec-field > label { font-size: .95rem; font-weight: 650; }
.bec-field input, .bec-field select { background: #fff; border: 1px solid #aab7c3; border-radius: 6px; color: inherit; font: inherit; min-height: 42px; padding: .55rem .65rem; width: 100%; }
.bec-field input[aria-invalid="true"] { background: #fff8f7; border-color: #b42318; }
.bec-help { color: var(--bec-muted); font-size: .87rem; line-height: 1.45; }
.bec-field-error { color: #a51d2d; font-size: .87rem; font-weight: 600; }
.bec-optional-section { border: 1px solid var(--bec-border); border-radius: 8px; margin: .25rem 0 1rem; min-width: 0; padding: .9rem; }
.bec-optional-section legend { font-weight: 700; padding: 0 .35rem; }
.bec-optional-section > .bec-help { margin: 0 0 .9rem; }
.bec-actions { display: flex; justify-content: flex-end; }
.bec-button { appearance: none; background: #f5f7f9; border: 1px solid #aab7c3; border-radius: 7px; color: #17212b; cursor: pointer; font: inherit; font-weight: 650; min-height: 42px; padding: .55rem 1rem; }
.bec-button:hover { background: #edf1f5; }
.bec-button:focus-visible, .bec-field input:focus-visible, .bec-field select:focus-visible, .bec-formulas summary:focus-visible { outline: 3px solid #75b9ed; outline-offset: 2px; }
.bec-validation { background: #fff1f0; border-radius: 6px; color: #92251c; margin: .25rem 0 .8rem; padding: .7rem .8rem; }
.bec-validation[hidden] { display: none; }
.bec-empty-state { background: #f7f9fb; border: 1px dashed var(--bec-border); border-radius: 8px; color: var(--bec-muted); margin: 0 0 1rem; padding: 1rem; text-align: center; }
.bec-results h3 { font-size: 1.15rem; margin: 0 0 .65rem; }
.bec-status { border-radius: 6px; line-height: 1.5; margin: 0 0 .85rem; padding: .7rem .85rem; }
.bec-status.is-info { background: #eef6fc; color: #174f79; }
.bec-status.is-warning { background: #fff5e8; color: #77440b; font-weight: 600; }
.bec-metrics { border-top: 1px solid var(--bec-border); margin: 0; }
.bec-metric { align-items: baseline; border-bottom: 1px solid var(--bec-border); display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; padding: .7rem .1rem; }
.bec-metric dt { color: var(--bec-muted); }
.bec-metric dd { font-variant-numeric: tabular-nums; font-weight: 650; margin: 0; text-align: right; }
.bec-metric.is-profit dd { color: #176334; }
.bec-metric.is-loss dd { color: #a51d2d; }
.bec-formulas summary { cursor: pointer; font-weight: 700; }
.bec-formula-content { color: var(--bec-muted); line-height: 1.55; margin-top: .75rem; }
.bec-formula-content p { margin: .5rem 0; }
@media (max-width: 560px) {
	.bec-metric { display: block; }
	.bec-metric dd { margin-top: .25rem; text-align: left; }
}
