.bec-wrap {
  max-width: 1100px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  color: #1d2327;
}

.bec-wrap * { box-sizing: border-box; }

.bec-header h2 { margin: 0 0 8px; }
.bec-header p { margin: 0 0 20px; line-height: 1.5; }

.bec-hypotheses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.bec-hypotheses label,
.bec-prior label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.bec-hypothesis,
.bec-label,
.bec-lr,
.bec-notes,
.bec-ratio-input input {
  width: 100%;
  border: 1px solid #8c8f94;
  border-radius: 6px;
  padding: 10px;
  font: inherit;
  background: #fff;
}

.bec-prior {
  margin-bottom: 20px;
}

.bec-ratio-input {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
}

.bec-table-wrap { overflow-x: auto; }

.bec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.bec-table th,
.bec-table td {
  border: 1px solid #dcdcde;
  padding: 10px;
  vertical-align: top;
}

.bec-table th {
  background: #f6f7f7;
  text-align: left;
}

.bec-table th:nth-child(1) { width: 30%; }
.bec-table th:nth-child(2) { width: 18%; }
.bec-table th:nth-child(3) { width: 47%; }
.bec-table th:nth-child(4) { width: 5%; }

.bec-remove {
  border: none;
  background: #b32d2e;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.bec-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 22px;
}

.bec-button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: #2271b1;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.bec-secondary { background: #50575e; }

.bec-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.bec-result-card {
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 16px;
  background: #f6f7f7;
}

.bec-result-label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: #50575e;
}

.bec-result-card strong {
  display: block;
  font-size: 22px;
}

.bec-warning,
.bec-method {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #fff8e5;
  border: 1px solid #dba617;
  line-height: 1.5;
}

.bec-method {
  background: #f0f6fc;
  border-color: #72aee6;
}

.bec-method h3 { margin-top: 0; }

@media (max-width: 800px) {
  .bec-hypotheses,
  .bec-results {
    grid-template-columns: 1fr;
  }

  .bec-wrap { padding: 16px; }
}

@media print {
  .bec-controls,
  .bec-remove {
    display: none !important;
  }

  .bec-wrap {
    border: none;
    margin: 0;
    max-width: none;
  }
}
