#nbAccountShell:has(#nbProfile90){max-width:680px}#nbProfile90{overflow:hidden;border-radius:24px;background:var(--surface);color:var(--text);border:1px solid var(--line)}.npHero{text-align:center;padding:34px 16px 0;overflow:hidden;position:relative}.npHero h2{margin:14px 0 4px;font-size:25px}.npHero p{margin:0;color:var(--muted)}.npAvatar{position:relative;width:116px;height:116px;padding:0!important;background:none!important;border:0!important;border-radius:50%;overflow:visible!important}.npAvatar svg{width:100%;height:100%;display:block}.npEdit{position:absolute;bottom:0;right:0;border-radius:50%;background:#fff5e9;color:#925032;width:32px;height:32px;display:grid;place-items:center;box-shadow:0 2px 8px #0002}.npWave{height:76px;margin:20px -16px 0;background:linear-gradient(125deg,#78432e,#b66d49,#d2a17e);border-radius:0 0 50% 50% / 0 0 55% 55%;position:relative;overflow:hidden}.npWave:before{content:'';position:absolute;inset:-70px -5% 28px;background:var(--surface);border-radius:0 0 50% 50%}.npMenu{padding:18px 24px}.npMenu button{display:flex;align-items:center;gap:18px;width:100%;text-align:left;background:transparent!important;color:inherit!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;padding:18px 8px!important;font-size:21px}.npMenu button span{font-size:16px}.npDialog{width:min(520px,92vw);max-height:85vh;overflow:auto;background:var(--surface);color:inherit;border:1px solid var(--line);border-radius:22px;padding:22px}.npDialog::backdrop{background:#251a16aa}.npChoices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.npChoices button{background:transparent!important;color:inherit!important;border:2px solid transparent!important;padding:6px!important;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;line-height:1.3}.npChoices button[aria-pressed=true]{border-color:#a65330!important;background:#a6533018!important}.npChoices svg{width:100%;max-width:80px}.npActions{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}#nbAccountShell:has(#nbProfile90) #nbLibrarySettings:not(.npOpen){display:none!important}#nbAccountShell:has(#nbProfile90) #nbExit{width:100%;margin-top:16px;background:transparent;color:var(--accent);border:1px solid var(--line)}html[data-premium-tab="4"] #nbRequests{display:none!important}@media(max-width:420px){.npChoices{grid-template-columns:repeat(2,minmax(0,1fr))}.npMenu{padding:12px}}
#nbProfile90{border:0;background:none}#nbProfileTop svg{width:100%;height:100%}#nbProfileTop{padding:2px!important}.bottom{grid-template-columns:repeat(4,minmax(0,1fr))!important}.bottom button{flex:1}.npPopup{text-align:center;padding:0 0 20px}.npBanner{height:100px;background:linear-gradient(120deg,#e9c6a3,#a65330);text-align:right;padding:12px}.npPortrait{width:112px;height:112px;margin:-56px auto 0;position:relative;border:4px solid #fff4e8;border-radius:50%;overflow:hidden}.npPortrait svg{width:100%;height:100%}.npPopup>button{display:block;width:85%;margin:12px auto}.npSettings label,.npAdmin label{display:block;margin:12px 0}.npSettings input,.npAdmin input{display:block;width:100%;padding:12px;margin-top:5px}.npSettings form{margin-bottom:20px}.npSettings>button{margin:8px}.npQuota{padding:12px}.npName{margin:12px}.npSettings,.npAdmin{color:var(--text);background:var(--surface)}
/* Account settings use a full-screen page-like dialog; admin remains modal. */
.npSettings[open]{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;box-sizing:border-box;padding:clamp(20px,5vw,48px);overflow-y:auto;overscroll-behavior:contain;}
.npSettings>*{max-width:760px;margin-left:auto!important;margin-right:auto!important;}
.npSettings form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;align-items:end;}
.npSettings form label{margin:0;min-width:0;}.npSettings form input{box-sizing:border-box;min-width:0;}.npSettings form button{align-self:end;justify-self:start;width:auto!important;height:auto!important;min-height:44px;padding:10px 18px!important;grid-column:1/-1;}.npSettings>button{display:block;min-height:44px;margin-top:12px!important;}.npSettings h3{margin-top:28px!important;}.npSettings .npChoices{margin-bottom:16px!important;}.npSettings [data-back]{margin-bottom:32px!important;}
@media(max-width:520px){.npSettings form{grid-template-columns:1fr;}}

/* Account editorial refresh */
.npSettings[open]{background:var(--bg,var(--surface));padding:clamp(18px,4vw,44px);}
.npSettings>*{max-width:820px;box-sizing:border-box;}
.npSettingsHeader{padding:12px 0 24px;}.npSettingsHeader span{font-size:11px;letter-spacing:.16em;color:var(--accent);font-weight:700}.npSettingsHeader h2{font-family:Georgia,serif;font-size:clamp(26px,4vw,36px);margin:10px 0 6px}.npSettingsHeader p,.npHint{color:var(--muted);font-size:14px;line-height:1.5;margin:4px 0 18px}
.npSection{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:clamp(16px,3vw,28px);margin-bottom:16px!important;box-shadow:0 4px 16px #39281908}.npSettings .npSection h3{font-size:19px;margin:0 0 4px!important;font-weight:650}.npSettings .npSection form{margin:0;gap:16px}.npSettings .npSection label{font-size:13px;font-weight:600}.npSettings .npSection input{border-radius:10px;min-height:46px;font-size:15px;font-weight:400}.npSettings .npSection input:focus{outline:2px solid var(--accent);outline-offset:2px}.npSettings .npSection button:not([data-id]){min-height:44px;border-radius:10px;padding:10px 18px}.npSettings [data-save]{display:block;margin:18px 0 0 auto;background:var(--accent);color:white}.npSettings .npChoices{gap:12px}.npSettings .npChoices button{border:1px solid var(--line)!important;border-radius:14px;padding:14px 6px!important;position:relative;font-size:12px;min-height:110px}.npSettings .npChoices button[aria-pressed=true]{border:2px solid var(--accent)!important;background:#a6533012!important}.npSettings .npChoices button[aria-pressed=true]:after{content:'✓';position:absolute;right:8px;top:8px;background:#a65330;color:white;border-radius:50%;width:20px;height:20px;display:grid;place-items:center}.npAdminSection{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.npAdminSection .npHint{margin-bottom:0}.npStatus:empty{display:none}.npStatus:not(:empty){position:sticky;bottom:12px;padding:14px;background:var(--surface);border:1px solid var(--accent);border-radius:12px;z-index:2}.npBanner [data-exit]{display:inline-grid;place-items:center;width:44px;height:44px;padding:10px!important;background:#fff9ef;color:#783e27;border-radius:12px}.npBanner [data-exit] svg,.npPopup [data-edit] svg{width:22px;height:22px;display:block}.npPopup [data-edit]{display:flex;align-items:center;justify-content:center;gap:10px}.npQuota{font-weight:600;font-size:15px}.npPopup [data-close]{color:var(--muted)}@media(max-width:520px){.npSettings .npChoices{grid-template-columns:repeat(2,minmax(0,1fr))}.npSettings .npSection form{grid-template-columns:1fr}.npAdminSection button{width:100%}}

/* Refined account layout: override global sticky header rules. */
.npSettings .npSettingsHeader{position:static!important;inset:auto!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:6px!important;background:transparent!important;border:0!important;box-shadow:none!important;z-index:auto!important;padding:8px 0 22px!important;}
.npSettingsHeader span,.npSettingsHeader h2,.npSettingsHeader p{display:block;margin:0!important;}
.npSettings .npSection h3{display:flex;align-items:center;gap:9px;line-height:1.35;}
.npSectionIcon{width:21px;height:21px;flex:0 0 21px;color:var(--accent,#a65330);}
.npSettings .npSection form button{justify-self:end!important;margin:0!important;}
.npSettings .npSection{box-shadow:none;border-radius:16px;}
.npPopup [data-edit]{gap:0;}

/* Keep the native iOS date picker inside the personal details card. */
.npSettings .npSection [data-account]>label{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.npSettings .npSection [data-account] input[type="date"]{display:block;box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;font-size:16px}
.npSettings .npSection [data-account] input[type="date"]::-webkit-date-and-time-value{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}

/* Profile popup keeps the existing literary portrait and arc. */
body.npProfileLocked{position:fixed;width:100%;overflow:hidden;overscroll-behavior:none}
.npPopup[open]{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-width:440px;max-height:min(85dvh,680px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 24px 72px #24171030;animation:npProfileOpen .22s cubic-bezier(.2,.75,.25,1) both}
.npPopup::backdrop{background:#261a17a6;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:npBackdropOpen .22s ease-out both}
.npPopup.npClosing{animation:npProfileClose .17s ease-in both}
.npPopup.npClosing::backdrop{animation:npBackdropClose .17s ease-in both}
.npPopup .npBanner{background:linear-gradient(120deg,#e9c6a3,#a65330);height:96px}
.npPopup .npAvatarBadge{position:relative;margin:0 auto;width:160px;max-width:100%;height:104px}
 .npPopup .npAvatarBadge .npPortrait{position:absolute;left:50%;top:3px;transform:translateX(-50%);margin:0;width:112px;height:112px}
.npPopup .npBrandArc{position:absolute;top:-48px;left:0;width:160px;height:92px;z-index:2;overflow:visible;pointer-events:none}
.npPopup .npBrandArc text{fill:var(--text);font-size:11px;font-weight:700;letter-spacing:.15em}
.npPopup [data-exit]{width:38px;height:38px;min-height:38px;border:1px solid #fff9ef88!important;background:#fff9efcc!important;color:#783e27!important;box-shadow:none!important;opacity:.82}
.npPopup [data-exit] svg{width:19px;height:19px}
.npPopup [data-exit]:hover,.npPopup [data-exit]:focus-visible{opacity:1}
.npPopup [data-edit],.npPopup [data-close]{box-sizing:border-box;width:calc(100% - 48px);max-width:340px;min-height:44px;margin:10px auto;padding:10px 16px;border-radius:12px;font-size:15px}
.npPopup [data-edit]{background:var(--accent)!important;color:#fff9ef!important;border:1px solid var(--accent)!important}
.npPopup [data-close]{background:transparent!important;color:var(--text)!important;border:1px solid var(--line)!important}
.npPopup .npQuota{font-size:14px;line-height:1.5;font-weight:500;margin:8px 16px 12px;padding:0;overflow-wrap:anywhere}
@keyframes npProfileOpen{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes npProfileClose{to{opacity:0;transform:translateY(8px) scale(.99)}}
@keyframes npBackdropOpen{from{opacity:0}to{opacity:1}}
@keyframes npBackdropClose{to{opacity:0}}
@media(prefers-reduced-motion:reduce){.npPopup[open],.npPopup::backdrop,.npPopup.npClosing,.npPopup.npClosing::backdrop{animation:none}}
@media(max-width:420px){.npPopup[open]{width:calc(100vw - 24px);max-height:calc(100dvh - 32px)}}
