/* Keep the recovery code and both actions in the visible mobile viewport. */
body[data-screen="recovery"] #app>.topbar,
body[data-screen="recovery"] #inapp{display:none}
#s-recovery{height:100vh;height:100dvh;min-height:0;flex:none;padding:18px 22px;padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom));gap:12px}
.recovery-logo{width:138px;max-height:48px;margin:0 auto;flex:none}
.recovery-main{flex:1;display:flex;flex-direction:column;justify-content:center;gap:12px;min-height:min-content}
#s-recovery .recovery-char .mascot{width:90px;height:108px;margin:0}
#s-recovery h1{font-size:26px;line-height:1.25;margin:0}
#s-recovery .recovery-main>p{font-size:14px;line-height:1.5;margin:0}
#s-recovery .code{font-size:clamp(36px,11vw,48px);padding:16px 10px;margin:2px 0;letter-spacing:.12em;line-height:1.2;direction:ltr;user-select:all}
#s-recovery .recovery-main>.recovery-warn{font-size:12px;color:var(--muted)}
.recovery-actions{flex:none;display:flex;flex-direction:column;gap:7px}
.recovery-actions>button{margin:0;min-height:48px;padding:10px 14px;font-size:15px}
#recovery-save-status{font-size:12px;line-height:1.4;min-height:2.8em;margin:2px 0 0}
.recovery-actions>.recovery-help{min-height:32px;padding:4px 8px;background:none;color:var(--deep);font-size:12px;text-decoration:underline;text-underline-offset:3px}
#recovery-save-dialog{width:min(92vw,460px);max-height:90vh;max-height:90dvh;border:1px solid var(--line);border-radius:22px;padding:20px;background:var(--paper);color:var(--ink);text-align:center;overflow:auto}
#recovery-save-dialog::backdrop{background:#10271fcc}
#recovery-save-dialog h2{font-size:20px;margin:0 0 14px}
#recovery-save-preview{display:block;width:100%;height:auto;border-radius:12px;-webkit-touch-callout:default;user-select:auto}
.recovery-download{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 16px;border-radius:14px;background:var(--theme);color:white;font-weight:750;text-decoration:none}
#recovery-save-dialog button{margin-bottom:0}
@media(max-height:650px){#s-recovery{gap:8px;padding-left:18px;padding-right:18px}.recovery-main{gap:8px}#s-recovery .recovery-char{display:none}#s-recovery h1{font-size:24px}#s-recovery .code{padding:13px 8px}.recovery-actions{gap:5px}}
@media(max-height:480px){#s-recovery{padding-top:10px;padding-bottom:10px;gap:6px}.recovery-logo{max-height:32px;width:115px}#s-recovery h1{font-size:21px}#s-recovery .recovery-main>p{font-size:13px}#s-recovery .code{font-size:34px;padding:10px 8px}.recovery-main{gap:6px}}
