.bbc-calculator {
  --bbc-accent: #2f6f76;
  --bbc-background: #10182b;
  --bbc-text: #e8eef5;
  --bbc-muted: rgba(232, 238, 245, 0.78);
  --bbc-border: rgba(255,255,255,0.09);
  --bbc-input: #20293b;
  background: var(--bbc-background);
  color: var(--bbc-text);
  border-radius: 14px;
  padding: 22px 26px 18px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}
.bbc-calculator__header { margin-bottom: 14px; }
.bbc-calculator__title { margin: 0 0 5px; color: #fff; font-size: 1.4rem; line-height: 1.2; }
.bbc-calculator__description { margin: 0; color: rgba(232,238,245,.74); font-size: .94rem; }
.bbc-table-wrap { overflow-x: auto; }
.bbc-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; table-layout: fixed; }
.bbc-table th, .bbc-table td { border: 0; padding: 0 10px 0 0; vertical-align: middle; text-align: left; }
.bbc-table th { width: 36%; color: #fff; font-weight: 700; white-space: nowrap; padding-right: 22px; }
.bbc-table td:last-child, .bbc-table th:last-child { padding-right: 0; }
.bbc-table input[type="text"], .bbc-table input[type="number"] {
  width: 100%; min-width: 90px; height: 34px; border-radius: 4px; border: 1px solid var(--bbc-border);
  background: var(--bbc-input); color: #fff; padding: 6px 10px; box-sizing: border-box; box-shadow: none; appearance: none;
}
.bbc-table input[readonly] { background: color-mix(in srgb, var(--bbc-accent) 22%, #ffffff 2%); font-weight: 700; }
.bbc-unit { color: var(--bbc-muted); font-weight: 600; white-space: nowrap; font-size: .92rem; }
.bbc-inline-option { display: inline-flex; align-items: flex-start; gap: 7px; color: rgba(232,238,245,.86); font-weight: 500; line-height: 1.15; font-size: .92rem; }
.bbc-inline-option input { accent-color: var(--bbc-accent); margin-top: 2px; }
.bbc-note { margin: 12px 0 0; color: rgba(232,238,245,.64); font-size: .89rem; }
.bbc-error { margin-top: 12px; color: #fecaca; font-weight: 700; }
.bbc-table input.is-invalid { border-color: #f87171; box-shadow: 0 0 0 1px #f87171; }
@media (max-width: 900px) {
  .bbc-calculator { padding: 18px; }
  .bbc-table, .bbc-table tbody, .bbc-table tr, .bbc-table th, .bbc-table td { display: block; width: 100%; }
  .bbc-table th, .bbc-table td { padding: 0 0 8px; white-space: normal; }
  .bbc-table tr { margin-bottom: 10px; }
}
