/* First profile only: one quiet panel, with an optional avatar. */
html body #reader-dialog.reader-onboarding{
 --reader-box-background:#fffdf9;
 background:#fffdf9!important;background-image:none!important;
 width:min(760px,calc(100% - 32px));height:min(850px,calc(100dvh - 32px));
 max-height:calc(100dvh - 32px);padding:28px!important;
 overflow:hidden;overscroll-behavior:none;border-radius:20px;
}
html body #reader-dialog.reader-onboarding>.reader-library-background,
html body #reader-dialog.reader-onboarding::before,
html body #reader-dialog.reader-onboarding::after{display:none!important}
html body #reader-dialog.reader-onboarding :is(.reader-heading,#reader-title){
 background:transparent!important;background-image:none!important;border:0!important;
 box-shadow:none!important;transform:none!important;text-align:left!important;
 padding:0!important;margin:0!important;
}
html body #reader-dialog.reader-onboarding>.reader-heading{display:block!important;width:100%;flex:none}
html body #reader-dialog.reader-onboarding .reader-heading-text{width:100%;min-width:0;margin:0;padding:0}
html body #reader-dialog.reader-onboarding #reader-title{font:500 29px/1.25 Lora,Georgia,serif;color:#44394b}
html body #reader-dialog.reader-onboarding #reader-form:not([hidden]){
 margin:22px 0 0!important;padding:0 6px 4px 0!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none;overscroll-behavior:contain;
}
html body #reader-dialog.reader-onboarding #reader-form #reader-choices{
 background:transparent!important;border:0!important;padding:0!important;border-radius:0;
 overflow:visible;max-height:none;height:auto;
}
html body #reader-dialog.reader-onboarding #reader-onboarding-avatar-card:not([hidden]){
 display:flex;align-items:center;gap:14px;margin:20px 0 25px;padding:14px;
 background:#f5f0e9;border:1px solid #e4dce2;border-radius:14px;
}
#reader-onboarding-avatar-preview{display:block;flex:0 0 62px;width:62px;height:62px;overflow:hidden;border:1px solid #c3aecb;border-radius:50%;background:#eee7ec}
#reader-onboarding-avatar-preview svg{display:block;width:100%;height:100%}
#reader-onboarding-avatar-card>div{min-width:0}
html body #reader-dialog.reader-onboarding #reader-onboarding-avatar{margin:0 0 4px;padding:0;min-height:32px;border:0;background:transparent;text-align:left;font-size:14px;font-weight:600;color:#655379}
#reader-onboarding-avatar-card small{display:block;color:#6a606e;font-size:12px;line-height:1.5}
html body #reader-dialog.reader-onboarding #reader-save{min-height:46px;margin-top:4px}
html body #reader-dialog.reader-onboarding>#reader-status:not(:empty){
 background:#f3edf5;border:1px solid #dfd4e4;border-radius:12px;
 padding:12px 14px;margin:18px 0 0;color:#63546b;font-size:13px;line-height:1.5;
}
html:has(#reader-dialog.reader-onboarding[open]),body:has(#reader-dialog.reader-onboarding[open]){overflow:hidden;overscroll-behavior:none}
@media(max-width:700px){
 html body #reader-dialog.reader-onboarding{width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:22px 18px!important}
 html body #reader-dialog.reader-onboarding #reader-title{font-size:26px}
 html body #reader-dialog.reader-onboarding #reader-form:not([hidden]){margin-top:18px!important;padding-right:3px!important}
 html body #reader-dialog.reader-onboarding #reader-form #reader-choices fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:24px}
 html body #reader-dialog.reader-onboarding #reader-form #reader-choices legend{grid-column:1/-1}
 html body #reader-dialog.reader-onboarding #reader-form #reader-choices label{min-width:0;width:100%;max-width:100%;min-height:42px;padding:9px 10px;font-size:13px;text-align:left}
 html body #reader-dialog.reader-onboarding #reader-onboarding-avatar-card:not([hidden]){padding:12px;gap:12px}
 html body #reader-dialog.reader-onboarding #reader-save{width:100%}
 html body #reader-dialog.reader-onboarding>#reader-status:not(:empty){margin-top:14px;padding:10px 12px;font-size:12px}
}
