.ahfm .ahfm-self-navigation{display:grid;grid-template-columns:1fr 2fr;gap:1.25rem;margin-bottom:1.5rem}
.ahfm .ahfm-self-workspace{min-width:0}
.ahfm .ahfm-self-instructions{white-space:pre-line;font-size:1rem;line-height:1.65;margin:1.25rem 0 2rem}
.ahfm .ahfm-self-question{min-width:0;margin:1.5rem 0;padding:1.5rem;border:1px solid var(--ahfm-border);border-radius:var(--ahfm-radius);background:var(--ahfm-surface)}
.ahfm .ahfm-self-question legend{font-weight:600;color:var(--ahfm-primary);font-size:1rem;padding:0 .4rem;max-width:100%}
.ahfm .ahfm-self-question p{font-size:1rem;line-height:1.65;overflow-wrap:anywhere}
.ahfm .ahfm-self-choices{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}
.ahfm .ahfm-self-choices label{display:flex;align-items:center;gap:.6rem;min-height:48px;padding:.6rem 1rem;border:1px solid var(--ahfm-border);border-radius:var(--ahfm-radius);cursor:pointer}
.ahfm .ahfm-self-choices input[type=radio]{appearance:auto;width:1.25rem;height:1.25rem;min-height:0;margin:0;padding:0;flex:0 0 auto;accent-color:var(--ahfm-primary)}
.ahfm .ahfm-self-choices label:has(input:checked){border-color:var(--ahfm-primary);background:color-mix(in srgb,var(--ahfm-primary) 7%,var(--ahfm-surface))}
.ahfm .ahfm-self-question textarea,.ahfm .ahfm-self-workspace textarea{width:100%;max-width:100%;resize:vertical;min-height:7rem}
.ahfm .ahfm-self-success{color:var(--ahfm-success);min-height:1.8em;line-height:1.6;font-weight:600}
.ahfm .ahfm-self-workspace :is(input,textarea,select,button):focus-visible{outline:3px solid var(--ahfm-sage);outline-offset:3px}
.ahfm .ahfm-self-editor-card{margin:1.25rem 0;padding:1.5rem}
.ahfm .ahfm-self-editor-card label{display:block;margin:.9rem 0}
.ahfm .ahfm-self-preview{margin-top:1.5rem;border-top:2px solid var(--ahfm-sage);padding-top:1.5rem}
.ahfm .ahfm-self-workspace .ahfm-error{border-left:4px solid #9d2932;background:#fff2f2;color:#7b1821;margin:1rem 0;padding:1rem;overflow-wrap:anywhere}
.ahfm .ahfm-self-workspace [hidden],.ahfm-self [hidden]{display:none}
@media(max-width:700px){.ahfm .ahfm-self-navigation{grid-template-columns:1fr}.ahfm .ahfm-self-question,.ahfm .ahfm-self-editor-card{padding:1rem}.ahfm .ahfm-self-choices{align-items:stretch;flex-direction:column}.ahfm .ahfm-self-choices label{width:100%;box-sizing:border-box}}
