.ml { max-width: 760px; }
.ml .ml-prompt { font-size: 1.1rem; font-weight: 650; line-height: 1.5; margin: .65rem 0 1rem; }
.ml-chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; margin: 1.25rem 0 1.75rem; list-style: none; gap: 1.3rem; }
.ml-node { position: relative; min-width: 0; min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .65rem .25rem; text-align: center; border-block: 1px solid var(--bh-line); }
.ml-node-label { font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.ml-node-caption { font-size: .72rem; color: var(--bh-muted); margin-top: .35rem; }
.ml-gap { background: var(--bh-selected); border-color: var(--bh-accent); color: #085c55; }
.ml-arrow { position: absolute; right: -1.1rem; top: calc(50% - .6rem); font-size: .9rem; color: var(--bh-muted); }
.ml-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.ml-choice { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; min-height: 70px; padding: .75rem .5rem; color: var(--bh-ink); background: #fff; border: 1px solid var(--bh-line); border-radius: 12px; overflow-wrap: anywhere; }
.ml-choice > span { font-size: 1.05rem; font-weight: 650; }
.ml-choice small { font-size: .75rem; margin-top: .2rem; }
.ml-choice small:empty { display: none; }
.ml-choice[aria-pressed="true"] { background: var(--bh-selected); color: #085c55; border-color: var(--bh-accent); }
.ml-choice:disabled { background: #f1f5f4; color: #586667; cursor: default; }
.ml-result-summary { font-size: .9rem; line-height: 1.5; color: var(--bh-muted); }
.ml-explanations article { padding: .7rem 0; }
.ml-explanations p { max-width: 68ch; margin: .45rem 0; line-height: 1.6; }
.ml-explanations strong { color: #085c55; }
.ml #ml-progress { font-variant-numeric: tabular-nums; }
@media (hover: hover) { .ml-choice:not(:disabled):hover { background: #f4f9f7; border-color: var(--bh-accent); } }
@media (max-width: 540px) {
    .ml-chain { grid-template-columns: minmax(0, 1fr); gap: .55rem; margin: .75rem 0 1rem; }
    .ml-node { min-height: 30px; padding: .25rem .5rem; flex-direction: row; gap: .65rem; }
    .ml-gap { min-height: 42px; }
    .ml-node-caption { margin-top: 0; }
    .ml-arrow { right: calc(50% - .4rem); top: auto; bottom: -.65rem; transform: rotate(90deg); font-size: .65rem; }
    .ml-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
    .ml-choice { min-height: 58px; }
    .ml .ml-prompt { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .ml .bh-result { animation: none; } }

.ml-challenge { margin: 1rem 0 1.4rem; padding: 1rem 0; border-block: 1px solid var(--bh-line); }
.ml-challenge h2 { margin: 0 0 .45rem; font-size: 1.08rem; line-height: 1.35; }
.ml-challenge p { margin: .4rem 0; line-height: 1.5; max-width: 68ch; font-size: .9rem; overflow-wrap: anywhere; }
.ml-challenge [data-target] { font-weight: 650; color: var(--bh-accent); }
.ml-challenge [data-target]:empty { display: none; }
.ml-challenge [data-handoff] { color: var(--bh-muted); }

.ml #ml-share-text { width: 100%; min-height: 180px; padding: .75rem; font: inherit; line-height: 1.5; color: var(--bh-ink); border: 1px solid var(--bh-line); border-radius: 8px; }
.ml #ml-share-text:focus-visible { outline: 3px solid var(--bh-accent); outline-offset: 3px; }
