/* Browser-only data tools. Scoped extension of the existing BCT design kit. */
.bcd { min-width: 0; }
.bcd .bcd-form { display: grid; gap: 20px; margin: 0; }
.bcd .bcd-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; min-width: 0; }
.bcd .bct-field { min-width: 0; }
.bcd .bct-label,.bcd .bcd-check,.bcd .bcd-options legend { font-size: 16px; }
.bcd .bct-input,.bcd .bct-textarea,.bcd .bct-select { font-size: 16px; max-width: 100%; }
.bcd .bct-textarea { width: 100%; min-height: 160px; resize: vertical; tab-size: 4; }
.bcd .bct-hint { margin: 0; line-height: 1.5; }
.bcd .bcd-options { margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.bcd .bcd-options legend { padding: 0 6px; font-weight: 600; }
.bcd .bcd-check { display: flex; align-items: center; gap: 10px; min-height: 44px; line-height: 1.4; cursor: pointer; }
.bcd .bcd-check input { width: 18px; height: 18px; flex: 0 0 18px; font-size: 16px; accent-color: var(--accent); margin: 0; }
.bcd .bcd-actions { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.bcd .bct-btn { min-height: 44px; max-width: 100%; white-space: normal; line-height: 1.4; }
.bcd .bcd-status { margin: 20px 0 10px; font-size: 16px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.bcd .bcd-error,.bcd .bcd-warning { margin: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--wash); color: var(--ink); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.bcd .bcd-error { border-color: #ba3946; }
.bcd [aria-invalid="true"] { border-color: #ba3946; }
.bcd .bcd-stats,.bcd .bcd-local,.bcd .bcd-error-count { font-size: 14px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.bcd .bcd-stats { margin: 10px 0; }
.bcd .bcd-local { margin: 20px 0 0; }
.bcd .bcd-result { margin-top: 18px; display: grid; gap: 14px; min-width: 0; }
.bcd .bcd-result .bct-textarea { font-family: var(--f-mono,monospace); font-size: 16px; }
.bcd .bcd-errors-box { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.bcd .bcd-errors { max-height: 280px; overflow: auto; padding-left: 30px; line-height: 1.5; font-size: 14px; }
.bcd .bcd-errors li { padding-left: 4px; margin-bottom: 6px; overflow-wrap: anywhere; }
.bcd :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 680px) {
  .bcd .bcd-grid { grid-template-columns: minmax(0,1fr); }
  .bcd .bcd-actions > .bct-btn { flex: 1 1 150px; }
  .bcd .bcd-options { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .bcd * { scroll-behavior: auto; transition: none; animation: none; } }
/* Inline URL examples are prose, not preformatted blocks: allow narrow-screen wrapping. */
.bct-longread :not(pre) > code { overflow-wrap: anywhere; }
