.att-counterfactual { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.att-counterfactual h3 { font-size: 1rem; margin: 0 0 8px; }
.att-counterfactual .lab-sub { max-width: 65ch; }
.att-controls { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; margin: 12px 0; }
.att-controls label { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.att-compare { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; }
.att-compare table { width: 100%; margin: 0; border-collapse: collapse; white-space: nowrap; font-size: .84rem; }
.att-compare th, .att-compare td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
.att-compare tr:last-child td { border-bottom: 0; }
.att-compare th { font-weight: 500; color: var(--graphite); background: #f5f3fa; }
.att-compare td:not(:first-child) { font-family: var(--f-num); }
.att-verdict { margin: 10px 0 0; padding: 10px 12px; background: #f5f3fa; border-left: 3px solid var(--lane-lang); font-size: .86rem; }
.att-quiz { margin-top: 16px; }
.att-quiz p { margin: 6px 0; font-size: .88rem; }
.att-quiz .btn-row { flex-wrap: wrap; }
.att-quiz button[aria-pressed="true"] { border-color: var(--lane-lang); background: #ece6f8; }
.att-bridge { display: flex; align-items: start; flex-wrap: wrap; gap: 12px; padding: 15px 0; }
.att-bridge p { margin: 0; flex: 1 1 320px; font-size: .9rem; }
.att-counterfactual button:focus-visible, .stage-tabs button:focus-visible, .handle:focus-visible { outline: 3px solid #8e6bc8; outline-offset: 3px; }
.stage-tabs button { min-height: 32px; }
@media (max-width: 600px) {
  .att-compare th, .att-compare td { padding: 8px; font-size: .76rem; }
  .att-controls { align-items: stretch; }
  .att-controls label { width: 100%; min-height: 36px; }
  .att-quiz .btn { width: 100%; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .w-dot, .w-score, .link, .q-arrow, .q-label, .out-g, .brow .bar, .handle { transition: none !important; }
}
.att-projection { margin: 24px 0; padding: 20px 22px; border: 1px solid #c6d5e0; border-radius: 12px; background: #f7fafc; }
.att-projection h3 { margin-top: 0; }
.att-projection > p { font-size: .9rem; }
.att-projection-controls, .att-projection-controls > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.att-projection-controls { gap: 14px; }
.att-projection-controls select, .att-projection-controls button { border: 1px solid #b4c7d5; border-radius: 7px; padding: 8px 12px; font: inherit; font-size: .84rem; background: #fff; color: #304c63; }
.att-projection-controls button { cursor: pointer; }
.att-projection-controls button[aria-pressed="true"] { background: #304c63; color: #fff; }
.att-projection-view { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 16px 0; }
.att-projection-input { flex: 0 0 100%; margin: 0; font-family: var(--f-num); }
.att-projection-view figure { margin: 0; }
.att-projection-view figcaption { font-size: .76rem; color: #647c8e; }
.att-projection-view td { padding: 6px 16px; text-align: center; border: 1px solid #c6d5e0; background: #fff; }
.att-projection-equations { font: .88rem/1.8 var(--f-num); overflow-wrap: anywhere; }
.att-projection-equations p { margin: 4px 0; }
.att-projection-controls :focus-visible { outline: 2px solid #446f8c; outline-offset: 3px; }
@media (max-width: 600px) { .att-projection { padding: 16px 13px; } }
