#next-reading-dialog:not(:has(.next-reading-content)){
 width:min(680px,calc(100vw - 32px));height:fit-content;min-height:0;inset:0;margin:auto;padding:42px 48px 34px;border:1px solid #fffdf9;
 border-radius:28px;color:#413743;
 background:radial-gradient(ellipse at 100% 0%,#e9deed99,transparent 58%),radial-gradient(ellipse at 0% 100%,#eee4d47a,transparent 60%),#fffaf4;
 box-shadow:0 28px 100px #241b3433,0 2px 8px #36263d0a;
}
#next-reading-dialog:not(:has(.next-reading-content))::backdrop{background:#29202d61;backdrop-filter:blur(5px)}
#next-reading-dialog::before{content:none;display:none}
#next-reading-dialog:not(:has(.next-reading-content))>.eyebrow{padding:0;text-align:center;color:#8a6d89;font-size:10px;letter-spacing:2.7px;line-height:1.6}
#next-reading-dialog:not(:has(.next-reading-content)) h2{font:500 39px/1.2 Lora,Georgia,serif;letter-spacing:-1.1px;text-align:center;color:#49394b;margin:13px 0 34px;padding:0;width:100%;max-width:none}
#next-reading-dialog:not(:has(.next-reading-content))>label{font-size:15px;font-weight:500;color:#5e505e;margin:0 0 12px;line-height:1.5}
#next-reading-dialog:not(:has(.next-reading-content)) #next-reading-search{
 border:1px solid #dcd0dc;border-radius:14px;background:#fffdfb;
 min-height:57px;padding:16px 16px 16px 46px;font-size:14px;color:#49394b;
 box-shadow:0 3px 10px #65537905;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2395819a' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:16px center;
}
#next-reading-dialog:not(:has(.next-reading-content)) #next-reading-search::placeholder{color:#9a8d9d;opacity:1}
#next-reading-dialog:not(:has(.next-reading-content)) #next-reading-search:focus{outline:2px solid #b49abb;outline-offset:3px;border-color:#a58baa}
#next-reading-dialog .close{top:17px;right:17px;border:1px solid #e6dce6;border-radius:50%;width:34px;height:34px;background:#fffcfa99;color:#8d7d91;font-size:23px;display:grid;place-items:center;line-height:1;padding:0}
#next-reading-dialog:not(:has(.next-reading-content)) #next-reading-choices{margin-top:18px;gap:7px;max-height:34dvh;padding:2px}
#next-reading-dialog:not(:has(.next-reading-content)) #next-reading-choices:empty{margin:0;padding:0}
#next-reading-dialog:not(:has(.next-reading-content)) .next-reading-choice{padding:12px 14px;background:#ffffffb8;border:1px solid #e8dfe5;border-radius:13px;gap:15px;flex-shrink:0}
#next-reading-dialog:not(:has(.next-reading-content)) .next-reading-choice:hover{background:#f1e9f2;border-color:#cbb8ce}
#next-reading-dialog:not(:has(.next-reading-content)) .next-reading-choice-cover{background:#f2eae4}
#next-reading-dialog:not(:has(.next-reading-content)) .next-reading-choice-copy strong{font:500 16px/1.35 Lora,Georgia,serif;color:#49394b}
#next-reading-dialog:not(:has(.next-reading-content)) .next-reading-choice-copy small{color:#8a7b8b;font-size:12px;line-height:1.4}
@media(max-width:700px){
 #next-reading-dialog:not(:has(.next-reading-content)){padding:42px 23px 26px;border-radius:24px;width:calc(100vw - 28px);max-height:90dvh}
 #next-reading-dialog:not(:has(.next-reading-content)) h2{font-size:29px;letter-spacing:-.7px;margin:12px 0 28px}
 #next-reading-dialog:not(:has(.next-reading-content))>.eyebrow{font-size:9px;letter-spacing:2px}
 #next-reading-dialog:not(:has(.next-reading-content))>label{font-size:14px;text-align:center;width:100%;padding:0}
 #next-reading-dialog:not(:has(.next-reading-content)) #next-reading-search{font-size:12px;padding-left:39px;background-position:12px center;min-height:54px}
 #next-reading-dialog:not(:has(.next-reading-content)) .next-reading-choice-copy strong{font-size:14px}
}
#next-reading-dialog:has(.next-reading-content){
 width:min(960px,calc(100vw - 32px));height:fit-content;min-height:0;max-height:92dvh;inset:0;margin:auto;padding:42px 36px 26px;border:1px solid #fffdf9;border-radius:28px;color:#413743;
 background:radial-gradient(ellipse at 100% 0%,#e9deed99,transparent 58%),radial-gradient(ellipse at 0% 100%,#eee4d47a,transparent 60%),#fffaf4;
 box-shadow:0 28px 100px #241b3433,0 2px 8px #36263d0a;
}
#next-reading-dialog:has(.next-reading-content)::backdrop{background:#29202d61;backdrop-filter:blur(5px)}
#next-reading-dialog:has(.next-reading-content)>.eyebrow{padding:0;text-align:center;color:#8a6d89;font-size:9px;letter-spacing:2.5px;line-height:1.5}
#next-reading-dialog:has(.next-reading-content) h2{font:500 33px/1.2 Lora,Georgia,serif;letter-spacing:-.8px;text-align:center;padding:0;width:100%;max-width:none;margin:10px 0 22px;color:#49394b}
#next-reading-dialog:has(.next-reading-content)>label{font-size:13px;font-weight:500;text-align:center;margin:0 0 9px;color:#746375}
#next-reading-dialog:has(.next-reading-content) #next-reading-search{min-height:46px;padding:12px 16px;border:1px solid #dcd0dc;border-radius:12px;background:#fffdfb;color:#49394b;font-size:14px}
#next-reading-dialog:has(.next-reading-content) .next-reading-content{padding:0 2px 4px;scrollbar-width:thin;scrollbar-color:#cbb8ce transparent}
#next-reading-dialog:has(.next-reading-content) .next-reading-content h3{font:500 19px/1.4 Lora,Georgia,serif;text-align:center;color:#665068;margin:22px 0 16px}
#next-reading-dialog:has(.next-reading-content) .next-reading-grid{gap:12px;align-items:stretch}
#next-reading-dialog:has(.next-reading-content) .next-reading-card{background:#fffdfbe6;border:1px solid #e7dce7;border-radius:17px;padding:18px 12px;gap:9px;box-shadow:0 3px 10px #49394b04}
#next-reading-dialog:has(.next-reading-content) .next-reading-card:hover{background:#f4edf5;border-color:#cbb8ce}
#next-reading-dialog:has(.next-reading-content) .next-reading-card.next-reading-continuation{background:linear-gradient(150deg,#ece1f0,#f9f3f9);border-color:#d9c7df}
#next-reading-dialog:has(.next-reading-content) .next-reading-label{font-size:9px;letter-spacing:.7px;line-height:1.4;color:#87678f;text-transform:uppercase;min-height:26px;display:grid;place-items:center}
#next-reading-dialog:has(.next-reading-content) .next-reading-card img{height:145px;filter:drop-shadow(2px 4px 4px #34233b25);margin:3px 0 5px}
#next-reading-dialog:has(.next-reading-content) .next-reading-card strong{font:500 16px/1.4 Lora,Georgia,serif;color:#49394b}
#next-reading-dialog:has(.next-reading-content) .next-reading-card>span:not(.next-reading-label){color:#8c7c8d;font-size:12px;line-height:1.4}
#next-reading-dialog:has(.next-reading-content) .next-reading-card small{color:#8a778c;font-size:11px;line-height:1.5}
#next-reading-dialog:has(.next-reading-content) .next-reading-actions{background:transparent;justify-content:center;border-top:1px solid #e6dce4;padding-top:16px;margin-top:15px}
#next-reading-dialog:has(.next-reading-content) .next-reading-actions .button{border-radius:30px;background:#755877;border-color:#755877;padding:12px 29px;font-weight:500;box-shadow:0 4px 12px #75587712}
@media(max-width:700px){
 #next-reading-dialog:has(.next-reading-content){width:calc(100vw - 28px);height:calc(100dvh - 28px);max-height:calc(100dvh - 28px);padding:35px 16px 14px;border-radius:24px}
 #next-reading-dialog:has(.next-reading-content) h2{font-size:23px;margin:6px 0 10px;letter-spacing:-.6px}
 #next-reading-dialog:has(.next-reading-content)>.eyebrow{font-size:8px;letter-spacing:1.8px}
 #next-reading-dialog:has(.next-reading-content)>label{font-size:11px;margin:0 0 6px}
 #next-reading-dialog:has(.next-reading-content) #next-reading-search{min-height:40px;padding:8px 12px}
 #next-reading-dialog:has(.next-reading-content) #next-reading-results{overflow:hidden}
 #next-reading-dialog:has(.next-reading-content) .next-reading-content{display:flex;flex-direction:column;overflow:hidden}
 #next-reading-dialog:has(.next-reading-content) .next-reading-content h3{font-size:16px;margin:10px 0;flex-shrink:0}
 #next-reading-dialog:has(.next-reading-content) .next-reading-grid{gap:8px;flex:1;min-height:0;grid-auto-rows:minmax(0,1fr)}
 #next-reading-dialog:has(.next-reading-content) .next-reading-card{padding:10px 8px;gap:5px;border-radius:14px;min-height:0;justify-content:center}
 #next-reading-dialog:has(.next-reading-content) .next-reading-card img{height:clamp(54px,11dvh,98px);max-height:none;min-height:0;flex:0 1 auto;margin:0 0 2px}
 #next-reading-dialog:has(.next-reading-content) .next-reading-card strong{font-size:13px;line-height:1.25}
 #next-reading-dialog:has(.next-reading-content) .next-reading-label{font-size:8px;letter-spacing:.2px;min-height:0;line-height:1.3}
 #next-reading-dialog:has(.next-reading-content) .next-reading-card>span:not(.next-reading-label){font-size:10px;line-height:1.25}
 #next-reading-dialog:has(.next-reading-content) .next-reading-card small{font-size:10px;line-height:1.25}
 #next-reading-dialog:has(.next-reading-content) .next-reading-actions{padding-top:9px;margin-top:8px}
 #next-reading-dialog:has(.next-reading-content) .next-reading-actions .button{padding:9px 26px;font-size:13px}
}
/* Subtle magical artwork stays proportional and anchored to the dialog viewport. */
html #next-reading-dialog:not([hidden]){background-color:#fcf8ee;background-image:linear-gradient(#fffaf126,#fffaf126),url('next-reading-magic-desktop-v1.webp');background-size:cover;background-position:center bottom;background-repeat:no-repeat;background-attachment:scroll;border-color:#bca98a;overscroll-behavior:none}
@media(max-width:700px){html #next-reading-dialog:not([hidden]){background-image:linear-gradient(#fffaf126,#fffaf126),url('next-reading-magic-mobile-v1.webp')}}
/* Keep pointer focus quiet while preserving a keyboard-visible focus indicator. */
html #next-reading-dialog #next-reading-search:focus:not(:focus-visible){outline:none;box-shadow:none;border-color:#dcd0dc}
html #next-reading-dialog #next-reading-search:focus{outline:none;box-shadow:none;border-color:#dcd0dc}
html #next-reading-dialog #next-reading-search:focus-visible{outline:1px solid #9b8668;outline-offset:2px}
/* Search suggestions form one scrollable list rather than separate cards. */
html #next-reading-dialog #next-reading-choices:not(:empty){gap:0;grid-auto-rows:max-content;padding:0;border:1px solid #d9cbb7;border-radius:13px;background:#fffaf3ed;overflow-y:auto;overscroll-behavior:contain}
html #next-reading-dialog #next-reading-choices>.next-reading-choice{margin:0;width:100%;border:0;border-bottom:1px solid #e5dacb;border-radius:0;background:transparent;box-shadow:none}
html #next-reading-dialog #next-reading-choices>.next-reading-choice:last-child{border-bottom:0}
html #next-reading-dialog #next-reading-choices>.next-reading-choice:hover{background:#eee5d8}
html #next-reading-dialog #next-reading-choices>.next-reading-choice:focus-visible{outline:2px solid #9b8668;outline-offset:-3px}
html #next-reading-dialog #next-reading-choices>p{margin:0;padding:14px}
