.bp-card { padding: 28px; }
.bp-title-bar { background: linear-gradient(135deg, var(--site-dark, #0f766e) 0%, var(--site-dark-2, #115e59) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.bp-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; }

.bp-top { display: grid; grid-template-columns: 110px 1fr; gap: 16px; margin-bottom: 6px; }
.bp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bp-field > label, .bp-field > .bp-label { font-weight: 600; font-size: .86em; color: #374151; }
.bp-input { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 8px; padding: 9px 11px; font-size: .95em; background: #fff; color: #23272f; }
.bp-input:focus, .bp-btn:focus-visible, .bp-remove:focus-visible, .bp-check input:focus-visible { outline: 3px solid rgba(20,184,166,.45); outline-offset: 2px; }
.bp-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 8px; padding: 9px 12px; font-size: .88em; margin-top: 8px; }
.bp-error[hidden] { display: none; }
.bp-note { font-size: .82em; color: #6b7280; line-height: 1.45; margin-top: 6px; }
.bp-note:empty { display: none; }

.bp-group { border: 1px solid #eee; border-radius: 10px; padding: 16px; margin-top: 18px; background: #fcfcfd; }
.bp-group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.bp-group-head h3 { font-size: 1em; margin: 0; color: #23272f; }
.bp-group-head p { margin: 2px 0 0; font-size: .82em; color: #6b7280; }
.bp-list { display: flex; flex-direction: column; gap: 8px; }
.bp-row { display: grid; grid-template-columns: 1fr 130px 38px; gap: 8px; align-items: center; }
.bp-row.bp-invalid .bp-amount { border-color: #dc2626; background: #fef2f2; }
.bp-remove { width: 38px; height: 38px; border-radius: 8px; border: 1px solid #ddd; background: #fff; color: #6b7280; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bp-remove:hover { color: #b91c1c; border-color: #fca5a5; }

.bp-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--site-light, #14b8a6); background: #f0fdfa; color: var(--site-dark, #0f766e); border-radius: 30px; padding: 7px 14px; font-weight: 600; font-size: .85em; cursor: pointer; }
.bp-btn:hover { background: #ccfbf1; }

.bp-custom { margin-top: 18px; border: 1px dashed #d1d5db; border-radius: 10px; padding: 14px 16px; }
.bp-check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9em; color: #374151; }
.bp-check input { width: 18px; height: 18px; accent-color: var(--site-dark, #0f766e); }
.bp-pct-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.bp-pct-fields[hidden] { display: none; }

.bp-message { text-align: center; color: #6b7280; font-size: .95em; margin: 22px 0 0; }
.bp-message:empty { display: none; }
.bp-results { margin-top: 24px; border-top: 1px solid #eee; padding-top: 22px; }
.bp-results[hidden] { display: none; }
.bp-results h3 { font-size: 1.02em; color: #23272f; margin: 0 0 10px; }
.bp-subsection { margin-top: 24px; }

.bp-table-wrap { overflow-x: auto; }
.bp-table { width: 100%; border-collapse: collapse; font-size: .9em; min-width: 520px; }
.bp-table th, .bp-table td { border-bottom: 1px solid #eee; padding: 10px 8px; text-align: left; vertical-align: top; }
.bp-table thead th { color: #374151; font-size: .8em; text-transform: uppercase; letter-spacing: .04em; }
.bp-table tbody th { font-weight: 600; color: #23272f; }
.bp-table td { font-variant-numeric: tabular-nums; color: #374151; }

.bp-bars { display: flex; flex-direction: column; gap: 14px; }
.bp-bar-row { display: grid; grid-template-columns: 130px 1fr 150px; gap: 12px; align-items: center; }
.bp-bar-name { font-weight: 600; font-size: .88em; color: #23272f; }
.bp-bar-track { position: relative; height: 18px; background: #eef2f5; border-radius: 9px; overflow: visible; }
.bp-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--site-light, #14b8a6); border-radius: 9px; transition: width .3s ease; }
.bp-bar-fill.bp-over { background: #f59e0b; }
.bp-bar-marker { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; background: #23272f; border-radius: 2px; }
.bp-bar-value { font-size: .82em; color: #374151; font-variant-numeric: tabular-nums; text-align: right; }
.bp-legend { font-size: .82em; color: #6b7280; margin-top: 10px; }
.bp-legend span { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
.bp-swatch { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.bp-swatch-actual { background: var(--site-light, #14b8a6); }
.bp-swatch-over { background: #f59e0b; }
.bp-swatch-target { width: 3px; height: 14px; background: #23272f; border-radius: 2px; }

.bp-verdict { margin-top: 16px; background: #f7f8fa; border: 1px solid #eee; border-radius: 10px; padding: 14px 16px; font-size: .92em; line-height: 1.55; color: #374151; }

.bp-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bp-summary-grid h4 { font-size: .92em; margin: 0 0 8px; color: #23272f; }

@media (max-width: 600px) {
    .bp-card { padding: 20px 16px; }
    .bp-title-bar { margin: -20px -16px 20px; }
    .bp-top { grid-template-columns: 1fr; }
    .bp-row { grid-template-columns: 1fr 1fr 38px; }
    .bp-row .bp-label-input { grid-column: 1 / -1; }
    .bp-pct-fields { grid-template-columns: 1fr; }
    .bp-bar-row { grid-template-columns: 1fr; gap: 6px; }
    .bp-bar-value { text-align: left; }
    .bp-summary-grid { grid-template-columns: 1fr; }
}
