.bh-tool,
.bh-tool * { box-sizing: border-box; }
.bh-tool {
  --bh-ink: #171a1c;
  --bh-muted: #667085;
  --bh-line: #d8dee3;
  --bh-soft: #f4f7f8;
  --bh-blue: #0170b9;
  --bh-blue-dark: #005b96;
  --bh-red: #b42318;
  --bh-teal: #0f766e;
  color: var(--bh-ink);
  background: #fff;
  border: 1px solid var(--bh-line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 26, 28, .08);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  margin: 24px auto;
  max-width: 1440px;
  overflow: hidden;
}
.bh-tool button,
.bh-tool input,
.bh-tool select,
.bh-tool textarea { font: inherit; }
.bh-header {
  align-items: center;
  border-bottom: 1px solid var(--bh-line);
  display: flex;
  justify-content: space-between;
  padding: 22px 26px 18px;
}
.bh-header h2,
.bh-panel h3,
.bh-preview h3 { letter-spacing: 0; margin: 0; }
.bh-header h2 { font-size: 25px; line-height: 1.2; }
.bh-eyebrow {
  color: var(--bh-blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.bh-badge {
  background: #e7f5f2;
  border: 1px solid #b9ded8;
  border-radius: 4px;
  color: var(--bh-teal);
  font-size: 12px;
  font-weight: 750;
  padding: 5px 8px;
}
.bh-tabs {
  background: var(--bh-soft);
  border-bottom: 1px solid var(--bh-line);
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 26px;
}
.bh-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--bh-muted);
  cursor: pointer;
  font-weight: 700;
  min-height: 50px;
  padding: 0 20px;
  white-space: nowrap;
}
.bh-tabs button:first-child { padding-left: 0; }
.bh-tabs button.is-active { border-bottom-color: var(--bh-blue); color: var(--bh-ink); }
.bh-tabs button:focus-visible,
.bh-tool button:focus-visible,
.bh-tool input:focus-visible,
.bh-tool select:focus-visible,
.bh-tool textarea:focus-visible { outline: 3px solid rgba(1, 112, 185, .22); outline-offset: 2px; }
.bh-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .75fr); }
.bh-workspace { min-width: 0; padding: 24px 26px 30px; }
.bh-panel[hidden] { display: none; }
.bh-panel-heading {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.bh-panel h3,
.bh-preview h3 { font-size: 18px; line-height: 1.25; }
.bh-panel-heading p,
.bh-preview-heading p { color: var(--bh-muted); margin: 3px 0 0; }
.bh-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bh-tool button { border-radius: 5px; min-height: 38px; }
.bh-secondary,
.bh-primary,
.bh-copy-actions button {
  border: 1px solid var(--bh-line);
  cursor: pointer;
  font-weight: 700;
  padding: 7px 12px;
}
.bh-secondary { background: #fff; color: var(--bh-ink); }
.bh-secondary:hover { background: var(--bh-soft); }
.bh-primary { background: var(--bh-blue); border-color: var(--bh-blue); color: #fff; }
.bh-primary:hover { background: var(--bh-blue-dark); }
.bh-link-button { background: transparent; border: 0; color: var(--bh-blue); cursor: pointer; margin-left: 8px; padding: 7px 10px; }
.bh-field { display: grid; gap: 6px; }
.bh-field > span:first-child,
.bh-point-grid legend {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}
.bh-field input,
.bh-field select,
.bh-paste-panel textarea,
.bh-input-table input {
  background: #fff;
  border: 1px solid #bfc8cf;
  border-radius: 4px;
  color: var(--bh-ink);
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}
.bh-field input:disabled { background: #eef1f3; color: #475467; cursor: not-allowed; }
.bh-field-compact { margin-bottom: 16px; max-width: 230px; }
.bh-input-unit { align-items: stretch; display: flex; }
.bh-input-unit input { border-radius: 4px 0 0 4px; min-width: 0; }
.bh-input-unit small {
  align-items: center;
  background: var(--bh-soft);
  border: 1px solid #bfc8cf;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  color: #475467;
  display: flex;
  padding: 0 9px;
  white-space: nowrap;
}
.bh-paste-panel {
  background: #eef7fc;
  border: 1px solid #bad8ea;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 14px;
}
.bh-paste-panel textarea { min-height: 112px; resize: vertical; }
.bh-paste-panel > div { margin-top: 8px; }
.bh-table-wrap { border: 1px solid var(--bh-line); border-radius: 6px; max-height: 560px; overflow: auto; }
.bh-input-table { border-collapse: collapse; min-width: 810px; width: 100%; }
.bh-input-table th {
  background: #eef1f3;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
  padding: 9px 6px;
  position: sticky;
  text-align: left;
  top: 0;
  z-index: 1;
}
.bh-input-table td { border-top: 1px solid #e6eaed; padding: 5px; }
.bh-input-table tbody tr:hover { background: #fafcfc; }
.bh-input-table td:first-child { color: var(--bh-muted); font-size: 12px; text-align: center; width: 38px; }
.bh-input-table th:nth-child(2), .bh-input-table td:nth-child(2) { width: 92px; }
.bh-input-table th:nth-child(3), .bh-input-table td:nth-child(3) { width: 110px; }
.bh-input-table th:nth-child(4), .bh-input-table td:nth-child(4) { width: 105px; }
.bh-input-table th:nth-child(5), .bh-input-table td:nth-child(5),
.bh-input-table th:nth-child(6), .bh-input-table td:nth-child(6) { width: 96px; }
.bh-input-table input { min-height: 34px; padding: 5px 7px; }
.bh-derived { color: var(--bh-red); font-variant-numeric: tabular-nums; font-weight: 750; text-align: right; }
.bh-alignment-table-wrap { max-height: 440px; }
.bh-alignment-table { min-width: 690px; }
.bh-alignment-table th:first-child,
.bh-alignment-table td:first-child { text-align: left; width: 120px; }
.bh-alignment-table th:nth-child(2),
.bh-alignment-table td:nth-child(2),
.bh-alignment-table th:nth-child(3),
.bh-alignment-table td:nth-child(3) { width: 145px; }
.bh-alignment-table th:nth-child(4),
.bh-alignment-table td:nth-child(4),
.bh-alignment-table th:nth-child(5),
.bh-alignment-table td:nth-child(5) { width: 120px; }
.bh-point-kind { color: #344054; font-size: 13px; }
.bh-delete {
  background: transparent;
  border: 0;
  color: #98a2b3;
  cursor: pointer;
  font-size: 22px;
  height: 34px;
  min-height: 34px !important;
  padding: 0;
  width: 34px;
}
.bh-delete:hover { color: var(--bh-red); }
.bh-check { align-items: center; display: flex; font-weight: 650; gap: 9px; margin-bottom: 18px; }
.bh-check input { accent-color: var(--bh-blue); height: 18px; width: 18px; }
.bh-point-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bh-point-grid fieldset {
  border: 1px solid var(--bh-line);
  border-radius: 6px;
  display: grid;
  gap: 11px;
  margin: 0;
  min-width: 0;
  padding: 14px;
}
.bh-point-grid fieldset.is-emphasis { border-top: 3px solid var(--bh-red); padding-top: 12px; }
.bh-point-grid legend { padding: 0 5px; }
.bh-form-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bh-metrics { display: grid; gap: 1px; margin-top: 20px; }
.bh-metrics-2 { grid-template-columns: repeat(2, 1fr); }
.bh-metrics-4 { grid-template-columns: repeat(4, 1fr); }
.bh-metrics > div { background: var(--bh-soft); min-width: 0; padding: 12px; }
.bh-metrics span { color: var(--bh-muted); display: block; font-size: 12px; }
.bh-metrics strong { display: block; font-size: 16px; font-variant-numeric: tabular-nums; margin-top: 4px; overflow-wrap: anywhere; }
.bh-curve-callout {
  align-items: center;
  border-left: 4px solid var(--bh-blue);
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding: 10px 14px;
}
.bh-curve-callout > span { color: #344054; font-weight: 700; }
.bh-curve-callout strong { color: var(--bh-blue); font-size: 22px; }
.bh-results-table-wrap { margin-top: 22px; max-height: 390px; }
.bh-results-table { border-collapse: collapse; min-width: 760px; width: 100%; }
.bh-results-table th {
  background: #eef1f3;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
  padding: 9px 8px;
  position: sticky;
  text-align: left;
  top: 0;
  z-index: 1;
}
.bh-results-table td { border-top: 1px solid #e6eaed; font-variant-numeric: tabular-nums; padding: 9px 8px; white-space: nowrap; }
.bh-results-table td:nth-child(5) { white-space: normal; }
.bh-empty-result { color: var(--bh-muted); padding: 22px !important; text-align: center; }
.bh-preview {
  background: #fbfcfc;
  border-left: 1px solid var(--bh-line);
  min-width: 0;
  padding: 24px 22px 28px;
}
.bh-preview-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 12px; }
.bh-preview-heading > span { color: var(--bh-muted); font-size: 12px; }
.bh-canvas-wrap { background: #fff; border: 1px solid var(--bh-line); border-radius: 6px; min-height: 270px; overflow: hidden; width: 100%; }
.bh-canvas-wrap canvas { display: block; max-width: 100%; }
.bh-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 11px 0 18px; }
.bh-legend span { align-items: center; color: #475467; display: inline-flex; font-size: 12px; gap: 6px; }
.bh-legend span::before { background: currentColor; content: ""; height: 3px; width: 18px; }
.bh-legend .is-terrain { color: var(--bh-ink); }
.bh-legend .is-design { color: var(--bh-red); }
.bh-legend .is-curve { color: var(--bh-blue); }
.bh-copy-actions { display: grid; gap: 8px; }
.bh-copy-actions button { background: #fff; color: var(--bh-ink); text-align: left; }
.bh-copy-actions button:hover { border-color: var(--bh-blue); color: var(--bh-blue); }
.bh-copy-actions .bh-copy-full { background: var(--bh-blue); border-color: var(--bh-blue); color: #fff; text-align: center; }
.bh-copy-actions .bh-copy-full:hover { background: var(--bh-blue-dark); border-color: var(--bh-blue-dark); color: #fff; }
.bh-status { color: var(--bh-teal); font-size: 13px; font-weight: 700; min-height: 20px; margin: 9px 0 0; }
.bh-error { background: #fff0ee; border-left: 3px solid var(--bh-red); color: #8f1d15; margin: 10px 0 0; padding: 9px 10px; }
.bh-output-details { border-top: 1px solid var(--bh-line); margin-top: 14px; padding-top: 12px; }
.bh-output-details summary { color: #475467; cursor: pointer; font-size: 13px; font-weight: 700; }
.bh-output-details pre { background: #1f2428; border-radius: 5px; color: #ecf2f5; font: 12px/1.55 Consolas, monospace; max-height: 230px; overflow: auto; padding: 12px; white-space: pre; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }

@media (max-width: 1020px) {
  .bh-layout { grid-template-columns: 1fr; }
  .bh-preview { border-left: 0; border-top: 1px solid var(--bh-line); }
}
@media (max-width: 700px) {
  .bh-tool { border-left: 0; border-radius: 0; border-right: 0; margin: 14px 0; }
  .bh-header { align-items: flex-start; padding: 18px 16px 15px; }
  .bh-header h2 { font-size: 21px; }
  .bh-badge { margin-left: 10px; }
  .bh-tabs { padding: 0 16px; }
  .bh-tabs button { padding: 0 14px; }
  .bh-tabs button:first-child { padding-left: 0; }
  .bh-workspace, .bh-preview { padding: 18px 16px 22px; }
  .bh-panel-heading { display: block; }
  .bh-panel-actions { margin-top: 12px; }
  .bh-point-grid, .bh-form-grid { grid-template-columns: 1fr; }
  .bh-table-wrap { max-height: 500px; }
  .bh-metrics-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-curve-callout { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 420px) {
  .bh-badge { display: none; }
  .bh-metrics-2 { grid-template-columns: 1fr; }
}
