.bt-shell {padding-block: clamp(2rem, 6vw, 5rem);}
.bt-shell h1 {font-size:clamp(2.35rem, 5vw, 4.05rem); max-width:20ch;}
.bt-form, .bt-card {background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:clamp(1rem, 3vw, 1.8rem);}
.bt-form fieldset {border:0; padding:0; margin:0 0 1rem; min-width:0;}
.bt-form legend {font-weight:650; margin-bottom:.85rem;}
.bt-grid,.bt-results {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%, 225px),1fr)); gap:1rem;}
.bt-results {grid-template-columns:repeat(auto-fit,minmax(min(100%, 310px),1fr)); margin-bottom:2rem;}
.bt-form label {display:flex; flex-direction:column; gap:.25rem; justify-content:space-between; font-weight:600;}
.bt-form input:not([type=checkbox]),.bt-form select {width:100%; min-height:46px; padding:.45rem .6rem; color:var(--ink); background:var(--paper); border:1px solid var(--muted); border-radius:8px;}
.bt-form label.bt-check {flex-direction:row; align-items:center; justify-content:flex-start; gap:.65rem; min-height:46px;}
.bt-check input {width:1.35rem; height:1.35rem;}
.bt-button {display:inline-flex; min-height:46px; align-items:center; color:white; background:var(--dark); border:0; padding:.55rem 1rem; border-radius:8px; font-weight:700;}
.bt-math {margin-block:1.5rem; background:var(--wash); border-radius:var(--radius); padding:1.1rem;}
.bt-math ul {margin:0;}
.bt-note {color:var(--muted);}
.bt-links {display:flex; flex-wrap:wrap; gap:.4rem 1.1rem;}
.bt-links a,.bt-card summary {display:inline-flex; align-items:center; min-height:44px;}
.bt-card summary {cursor:pointer; text-decoration:underline;}
.bt-card h3 {overflow-wrap:anywhere;}
.bt-card p {margin-bottom:.65rem;}
.bt-shell details[open] summary {margin-bottom:.4rem;}
.bt-crumb {margin-bottom:1rem; overflow-wrap:anywhere;}
.bt-form .bt-button {margin-top:1rem; cursor:pointer;}
.bt-shell .bt-form :is(input,select,button):focus-visible {outline:2px solid var(--ink); outline-offset:2px;}
.bt-shell .bt-grid > *, .bt-shell .bt-card {min-width:0;}
.bt-shell :is(h1,p,li) {overflow-wrap:anywhere;}

.bt-tool-catalog { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 1.35rem; }
.bt-tool-catalog section { min-width: 0; border: 1px solid var(--line); padding: .9rem 1rem; border-radius: .55rem; }
.bt-tool-catalog h2 { margin: 0 0 .62rem; font-size: 1rem; }
.bt-tool-catalog ul { list-style: none; padding: 0; margin: 0; }
.bt-tool-catalog li + li { border-top: 1px solid var(--line); }
.bt-tool-catalog a { display: block; min-height: 44px; padding: .58rem 0; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
@media (max-width:720px) { .bt-tool-catalog { grid-template-columns: 1fr; } }
