.bwcr .fhr-lab,.bwcr .fhr-check{margin:1.5rem 0;padding:clamp(.8rem,3vw,1.4rem);border:1px solid currentColor;border-radius:.6rem}
.bwcr .fhr-lab{background:linear-gradient(125deg,rgba(133,111,188,.08),transparent 70%);box-shadow:inset 0 0 0 1px rgba(133,111,188,.05)}
.bwcr .fhr-controls{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:1rem 0}
.bwcr :is(.fhr-lab,.fhr-check,#walkthrough) :is(button,select){font:inherit;line-height:1.45;min-height:44px;max-width:100%;padding:.55rem .75rem;color:inherit;background:transparent;border:1px solid currentColor;border-radius:.3rem;overflow-wrap:anywhere;cursor:pointer}
.bwcr :is(.fhr-lab,.fhr-check,#walkthrough) :is(button,select):focus-visible{outline:3px solid #9270cf;outline-offset:3px}
.bwcr :is(.fhr-lab,.fhr-check,#walkthrough) button[aria-pressed="true"]{box-shadow:inset 0 0 0 2px currentColor;background:rgba(133,111,188,.13);font-weight:700}
.bwcr :is(.fhr-lab,.fhr-check,#walkthrough) button:disabled{opacity:.58;cursor:default}
.bwcr .fhr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.bwcr .fhr-fields label{display:grid;gap:.35rem;min-width:0}
.bwcr .fhr-fields select{width:100%;white-space:normal}
.bwcr select option{background:#fffefa;color:#172139}
.bwcr .fhr-lab figure{margin:1rem 0}
.bwcr svg[data-fhr-trace]{display:block;width:100%;height:auto;max-width:100%;background:#fffefa;color:#172139}
.bwcr svg[data-fhr-trace] text{fill:#172139;font-family:inherit}
.bwcr .fhr-line{fill:none;stroke:#54358c;stroke-width:2.7;stroke-linejoin:round}
.bwcr .contraction-line{fill:none;stroke:#126677;stroke-width:2.7;stroke-linejoin:round}
.bwcr .fhr-guides line{stroke:#9d94b3;stroke-width:.8;stroke-dasharray:4 5}
.bwcr .fhr-axis{stroke:#756c89;stroke-width:1}
.bwcr .fhr-grid{stroke:#cfc8da;stroke-width:.8}
.bwcr .fhr-legend{font-size:1rem;line-height:1.6;margin:.5rem 0}
.bwcr .fhr-legend span{display:inline-block;margin-right:.75rem}
.bwcr .fhr-legend span::before{content:"";display:inline-block;width:1.25rem;border-top:3px solid #54358c;vertical-align:middle;margin-right:.4rem}
.bwcr .fhr-legend span+span::before{border-color:#126677}
.bwcr [role="status"]{min-height:1.5em}
.bwcr .wt-navigation{border-block:1px solid currentColor;padding:.8rem 0;margin:1.5rem 0}
.bwcr .wt-card{scroll-margin-top:1.5rem;padding:1rem 0}
.bwcr .wt-case-heading{outline-offset:.3rem}
.bwcr .wt-stem{font-size:1.125rem;line-height:1.75}
.bwcr .wt-options{list-style:none;margin:1.2rem 0;padding:0}
.bwcr .wt-option-row{margin:.6rem 0}
.bwcr #walkthrough .wt-option{display:flex;gap:.75rem;align-items:flex-start;width:100%;text-align:left;min-height:48px;-webkit-touch-callout:none;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.bwcr .wt-letter{font-weight:700;min-width:1.1rem}
.bwcr #walkthrough .wt-option.wt-eliminated .wt-option-text{text-decoration:line-through;text-decoration-thickness:2px}
.bwcr #walkthrough .wt-option.wt-marked{outline:3px solid #a68a19;outline-offset:1px}
.bwcr #walkthrough .wt-option.wt-selected{box-shadow:inset 0 0 0 2px currentColor;background:rgba(133,111,188,.13)}
.bwcr #walkthrough .wt-option:disabled{opacity:1}
.bwcr .wt-clue{font-weight:inherit;color:inherit}
.bwcr .wt-answered .wt-clue{font-weight:700;text-shadow:0 0 12px rgba(133,111,188,.4)}
.bwcr .wt-reference{margin:1.5rem 0}
.bwcr .wt-reference>summary,.bwcr .wt-chain>summary{min-height:44px;padding:.65rem 0;cursor:pointer;line-height:1.6}
.bwcr .wt-chain{border-top:1px solid currentColor;padding:.5rem 0}
.bwcr .wt-chain-beat{margin:.8rem 0 1.25rem}
.bwcr .wt-chain-beat p{margin:.5rem 0}
.bwcr #walkthrough [data-reveal-beat]{text-align:left;width:100%}
.bwcr #walkthrough [data-reveal-beat]:disabled{opacity:1;border-color:transparent;padding-left:0;font-weight:600}
.bwcr .wt-rule{font-size:1.125rem}
.bwcr .wt-photo-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.5rem}
.bwcr .wt-photo-strip figure{margin:0;min-width:0}
.bwcr .wt-photo-strip button[data-photo]{display:block;width:100%;padding:.3rem}
.bwcr .wt-photo-strip img{width:100%;height:135px;object-fit:contain;background:#fffefa}
.bwcr .wt-photo-strip figcaption{font-size:.95rem;line-height:1.6;margin-top:.5rem;overflow-wrap:anywhere}
.bwcr .fhr-photo img{width:100%;height:auto}
.bwcr .fhr-photo button{display:block;width:100%;padding:.3rem;background:#fffefa;border:1px solid currentColor;cursor:zoom-in}
.bwcr .fhr-photo figcaption{font-size:1rem;line-height:1.6;overflow-wrap:anywhere}
#fhr-photo-dialog{width:min(94vw,70rem);max-height:90dvh;max-height:90vh;overflow:auto;padding:1rem;border:1px solid #6d6385;border-radius:.5rem;background:#fffefa;color:#172139}
#fhr-photo-dialog::backdrop{background:rgba(8,15,30,.8)}
#fhr-photo-dialog .fhr-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
#fhr-photo-dialog h2{font-size:1.25rem;line-height:1.4;margin:0;overflow-wrap:anywhere}
#fhr-photo-dialog button{min-height:44px;min-width:44px;font:inherit;padding:.5rem;background:#fffefa;color:#172139;border:1px solid #6d6385;cursor:pointer}
#fhr-photo-dialog figure{margin:1rem 0}
#fhr-photo-dialog img{display:block;max-width:100%;max-height:65vh;width:auto;height:auto;margin:auto}
#fhr-photo-dialog figcaption{font-size:1rem;line-height:1.6;margin-top:1rem}
#fhr-photo-dialog a{color:#513089}
.bwcr [hidden],#fhr-photo-dialog [hidden]{display:none!important}
@media(max-width:440px){.bwcr .fhr-fields{grid-template-columns:minmax(0,1fr)}.bwcr .wt-photo-strip{grid-template-columns:minmax(0,1fr)}.bwcr .fhr-controls button{flex:1 1 auto}.bwcr .wt-photo-strip img{height:180px}}
@media(prefers-reduced-motion:reduce){.bwcr .fhr-lab *,.bwcr #walkthrough *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.bwcr [data-js-controls]{display:none!important}.bwcr .wt-card,.bwcr .wt-reference,.bwcr .wt-chain-beat,.bwcr .wt-answer,.bwcr .wt-rule{display:block!important}}

.bwcr .bwcr-table-wrap:focus-visible{outline:3px solid #9270cf;outline-offset:3px}
