/* Shared short forms. Opt-in only: dashboards and workouts keep their layout. */
[data-flow] [hidden],.flow-progress[hidden],.flow-actions [hidden]{display:none!important}
.flow-shell{width:100%;max-width:760px;margin-inline:auto;min-width:0}
.fq-main>.fq-scroll>.flow-shell{max-width:760px}
.flow-card{border:1px solid var(--line);border-radius:16px;background:var(--card);padding:28px;min-width:0}
.flow-progress{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}
.flow-progress-caption{display:flex;justify-content:space-between;gap:12px;align-items:center;font:600 11px/1.5 var(--man);color:var(--muted)}
.flow-progress-caption strong{color:var(--lime);font-weight:600}
.flow-progress-track{display:flex;gap:8px}
.flow-marker{flex:1;min-width:0;border:0;border-radius:6px;background:var(--chip);height:7px;padding:0;cursor:pointer;position:relative}
.flow-marker.is-current{background:var(--lime)}
.flow-marker.is-complete{background:rgba(52,211,153,.5)}
.flow-marker:disabled{cursor:default;opacity:.6}
.flow-marker span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.flow-marker:focus-visible{outline:2px solid var(--lime);outline-offset:5px}
.flow-sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:-1px!important;padding:0!important}
[data-flow-step]{min-width:0;display:flex;flex-direction:column;gap:20px}
[data-flow-step]+[data-flow-step]{margin-top:24px}
.flow-enhanced [data-flow-step]{margin-top:0}
[data-step-heading]{color:var(--text);font:700 20px/1.4 var(--sora);letter-spacing:-.5px;margin:0}
[data-step-heading]:focus{outline:none}
.flow-step-copy{font:500 13px/1.7 var(--man);color:var(--muted);margin:-10px 0 0}
.flow-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:20px;border-top:1px solid var(--line);margin-top:8px;min-width:0}
.flow-actions-secondary,.flow-actions-primary{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.flow-actions-primary{margin-left:auto;justify-content:flex-end}
.flow-actions .ws-button{min-height:44px;padding:11px 20px;font-size:13px}
.flow-cancel{color:var(--muted);font:600 12px/1.5 var(--man);background:none;border:0;padding:8px 0;cursor:pointer}
.flow-cancel:hover{color:var(--text)}
.flow-actions [aria-disabled=true]{opacity:.65;cursor:wait}
.flow-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0;padding:0;min-width:0}
.flow-choice{display:flex;align-items:center;gap:12px;position:relative;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--card2);cursor:pointer;transition:border-color .15s,background .15s;min-width:0;color:var(--soft);font-size:13px}
.flow-choice input[type=radio],.flow-choice input[type=checkbox]{width:18px;height:18px;flex-shrink:0;margin:0;accent-color:var(--lime)}
.flow-choice>span{min-width:0;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
.flow-choice strong{font:700 13px/1.5 var(--man);color:var(--text)}
.flow-choice small{font:500 11px/1.6 var(--man);color:var(--muted)}
.flow-choice:hover{border-color:rgba(52,211,153,.4)}
.flow-choice:has(input:checked){border-color:var(--lime);background:rgba(52,211,153,.06)}
.flow-choice:has(input:focus-visible){outline:2px solid var(--lime);outline-offset:3px}
.flow-optional{border-top:1px solid var(--line);padding-top:16px;min-width:0}
.flow-optional>summary{font:600 12px/1.6 var(--man);color:var(--muted);cursor:pointer;min-height:24px}
.flow-optional[open]>summary{color:var(--soft);margin-bottom:18px}
.flow-optional>summary span{font-size:10px;font-weight:500;margin-left:6px;color:var(--muted)}
.flow-optional-body{display:flex;flex-direction:column;gap:18px;min-width:0}
.flow-shell textarea,.flow-card textarea{min-height:78px}
.flow-shell .ws-toolbar{align-items:flex-start}
.flow-shell .ws-toolbar h2{font-size:24px}
.flow-shell .ws-notice{font-size:12px}
.flow-plan-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:4px}
.flow-plan-summary strong{font:700 22px/1.4 var(--sora);white-space:nowrap}
.flow-plan-summary span{font-size:11px;color:var(--muted)}
.flow-plan-summary h3{font-size:15px}
.flow-note{color:var(--muted);font:500 12px/1.7 var(--man);margin:0}
@media(max-width:600px){.flow-card{padding:20px}.flow-choices{grid-template-columns:1fr}.flow-choice{padding:15px}.flow-actions{gap:10px}.flow-actions .ws-button{padding:11px 16px}.flow-cancel{font-size:11px}.flow-plan-summary{align-items:flex-start;flex-direction:column}.flow-progress-caption{font-size:10px}[data-step-heading]{font-size:18px}}
@media(prefers-reduced-motion:reduce){.flow-choice{transition:none}}
