/* MiStudio round 0.73: question sheet (web/sheet.js), unsaved state (web/unsaved.js), autosave settings */

/* ---- the question sheet: what is affected, the consequences, buttons that say what they do */
.sheet.ask{width:min(440px,calc(100vw - 32px))}
.sheet.ask h2{margin-bottom:6px}
.ask-lines{margin:0 0 14px;padding:8px 10px;list-style:none;border:1px solid var(--line);border-radius:10px;background:var(--hover);
 font-size:12.5px;line-height:1.45;max-height:220px;overflow:auto}
.ask-lines li+li{margin-top:4px}
.ask-lines li.more{color:var(--mute)}
.ask-btns{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ask-btns .btn{min-width:84px;justify-content:center}
.btn.danger-fill{background:var(--bad);color:#fff;border:1px solid transparent}
.btn.danger-fill:hover{background:var(--bad);filter:brightness(1.08)}
.ask-btns .btn:focus-visible{outline:2px solid var(--acc);outline-offset:2px}

/* ---- Save while there are unsaved changes: accent text and a dot (the split arrow keeps its look) */
#bSave.unsaved{color:var(--acc);font-weight:600;position:relative}
#bSave.unsaved::after{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--acc);margin-left:6px;vertical-align:1px}
@media (prefers-contrast:more){#bSave.unsaved{outline:1px solid var(--acc)}}

/* ---- the crash-recovery bar: asked once */
#recover .btn{flex:0 0 auto}

/* ---- Settings > Autosave */
.as-row{display:flex;align-items:center;gap:10px;margin:6px 0}
.as-row input[type=number]{width:72px}
.as-note{color:var(--mute);font-size:12px;margin:4px 0 0}
#recover{width:max-content;max-width:min(620px,calc(100% - 24px))}#recover span{min-width:180px}
