/* Royal Codes · The Private Entrance */
#portalGate[hidden],.royal-entry [hidden]{display:none!important}
.royal-entry{position:relative;z-index:10;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);min-height:100dvh;min-height:100vh;overflow:hidden;background:#fdfdfd;color:#202020;font-family:'IM Fell French Canon',Arial,sans-serif}
.royal-entry *{box-sizing:border-box}
.entry-background{position:absolute;inset:0;z-index:-1;background:#fff;pointer-events:none}
.royal-entry::after{content:"";position:absolute;inset:3.2% 2.2%;border:1px solid rgba(0,0,0,0.150);border-radius:17px;pointer-events:none}
.entry-brand{display:flex;flex-direction:column;justify-content:space-between;min-height:100%;padding:clamp(32px,4.1vw,70px) clamp(28px,6vw,106px);position:relative}
.entry-brand::after{content:"";position:absolute;right:0;top:7%;height:86%;width:1px;background:linear-gradient(to bottom,transparent,rgba(0,0,0,0.031),transparent)}
.entry-brandline{display:flex;align-items:center;gap:11px;letter-spacing:.16em}
.entry-brandline img{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 0 8px rgba(0,0,0,0.075))}
.entry-brandline strong{display:block;font-weight:700;font-size:.73rem;letter-spacing:.16em}
.entry-brandline small{display:block;color:#555;font-size:.53rem;letter-spacing:.2em;margin-top:3px}
.entry-brand-center{display:flex;flex-direction:column;align-items:flex-start;position:relative;padding:13px 0 35px;max-width:620px}
.entry-flourish{position:relative;display:grid;place-items:center;height:clamp(190px,26vw,330px);width:clamp(190px,26vw,330px);margin:0 auto clamp(18px,2vw,32px);align-self:center}
.entry-flourish img{z-index:1;width:82%;height:82%;object-fit:contain;filter:drop-shadow(0 0 32px rgba(0,0,0,0.054));animation:entry-flower-in 1s ease both}
.entry-orbit{position:absolute;border:1px solid rgba(0,0,0,0.150);border-radius:50%;inset:2%}
.entry-orbit-two{inset:12%;border-color:rgba(0,0,0,0.150);transform:rotate(28deg);box-shadow:0 0 75px rgba(0,0,0,0.024)}
.entry-overline{color:#555;font-size:.65rem;font-weight:700;letter-spacing:.25em;line-height:1.6;margin:0 0 13px}
.entry-brand-center h1{color:#202020;font:400 clamp(2.2rem,4.1vw,5.1rem)/1.17 'IM Fell French Canon',Georgia,serif;letter-spacing:-.056em;margin:0 0 21px;text-wrap:balance}
.entry-brand-center h1 em{font-weight:400;color:#202020}
.entry-brand-description{max-width:440px;color:#555;font:400 clamp(.85rem,1vw,.97rem)/1.9 'IM Fell French Canon',Arial,sans-serif;margin:0}
.entry-brand-foot{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#202020;font-size:.57rem;letter-spacing:.12em;line-height:1.6}
.entry-foot-separator{color:#202020;font-size:.75rem}
.entry-right{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:clamp(28px,5vw,75px) clamp(21px,5vw,80px);min-width:0}
.entry-card{width:min(100%,510px);padding:clamp(28px,4.4vw,56px);border:1px solid rgba(0,0,0,0.200);background:linear-gradient(140deg,rgba(255,255,255,0.93),rgba(255,255,255,0.94));border-radius:22px;box-shadow:0 33px 100px rgba(0,0,0,0.129),inset 0 1px rgba(0,0,0,0.020);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.entry-card-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:clamp(23px,3.5vw,42px);color:#202020;font-size:.6rem;letter-spacing:.13em;font-weight:700}
.entry-card-top .entry-step{color:#202020;white-space:nowrap}
.entry-tabs{display:grid;grid-template-columns:1fr 1.45fr;gap:7px;border-bottom:1px solid rgba(0,0,0,0.160);margin-bottom:29px}
.entry-tabs button{appearance:none;padding:0 5px 15px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:transparent;color:#202020;font:600 clamp(.76rem,1vw,.86rem)/1.3 'IM Fell French Canon',Arial,sans-serif;cursor:pointer}
.entry-tabs button.is-active{color:#202020;border-bottom-color:#555}
.entry-panel h2{font:400 clamp(1.8rem,2.65vw,2.75rem)/1.23 'IM Fell French Canon',Georgia,serif;color:#202020;letter-spacing:-.04em;margin:0 0 11px}
.entry-panel .entry-intro,.entry-result>p:not(.entry-overline){font-size:.87rem;line-height:1.77;color:#555;margin:0 0 26px}
.entry-panel label{display:block;margin:18px 0 8px;color:#202020;font-size:.74rem;font-weight:600;letter-spacing:.015em}
.entry-panel input{display:block;width:100%;appearance:none;border-radius:9px;border:1px solid rgba(0,0,0,0.240);background:rgba(255,255,255,0.93);color:#202020;font:400 1rem/1.45 'IM Fell French Canon',Arial,sans-serif;min-height:52px;padding:14px 15px;outline:none;transition:border-color .15s,box-shadow .15s}
.entry-panel input::placeholder{color:#555}
.entry-panel input:focus{border-color:#aaa;box-shadow:0 0 0 3px rgba(0,0,0,0.058)}
.entry-password-field{position:relative}
.entry-password-field input{padding-right:74px}
.entry-password-field button{position:absolute;right:11px;top:50%;transform:translateY(-50%);border:0;background:none;color:#202020;cursor:pointer;font-size:.75rem;font-weight:700;padding:9px}
.entry-password-hint{font-size:.72rem;line-height:1.5;color:#555;margin:12px 0 0}
.entry-primary{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;margin-top:25px;border:1px solid #aaa;border-radius:9px;padding:16px 19px;background:#fff;color:#202020;min-height:53px;font:700 .91rem/1.2 'IM Fell French Canon',Arial,sans-serif;text-decoration:none;cursor:pointer;transition:transform .16s,background .16s}
.entry-primary:hover:not(:disabled){background:#efefef;transform:translateY(-1px)}
.entry-primary:disabled,.entry-secondary:disabled{opacity:.55;cursor:wait}
.entry-primary span:last-child{font-size:1.18rem;font-weight:400}
.entry-text-link{display:block;border:0;background:transparent;color:#202020;font:600 .78rem/1.4 'IM Fell French Canon',Arial,sans-serif;margin:20px auto 0;cursor:pointer;text-decoration:underline;text-decoration-color:rgba(0,0,0,0.240);text-underline-offset:4px}
.entry-buyer-hint{padding:13px 0 0;border-top:1px solid rgba(0,0,0,0.150);margin:24px 0 0;font-size:.74rem;line-height:1.65;color:#555;text-align:center}
.entry-form-error{display:block;margin:14px 0 0;border-left:3px solid #b66b66;padding:9px 11px;background:#fff5f4;color:#982c28;font-size:.78rem;line-height:1.56}
.entry-result{text-align:center}
.entry-result-flower{width:90px;height:90px;object-fit:contain;margin:0 auto 23px;filter:drop-shadow(0 0 19px rgba(0,0,0,0.068))}
.entry-result .entry-primary{margin-top:20px}
.entry-result-detail{color:#202020;font-size:.76rem;margin:13px 0 0;overflow-wrap:anywhere}
.entry-result-actions .entry-secondary{width:100%;margin-top:12px}
.entry-secondary{display:block;border:1px solid rgba(0,0,0,0.344);border-radius:9px;color:#202020;background:rgba(0,0,0,0.011);font:700 .83rem/1.3 'IM Fell French Canon',Arial,sans-serif;padding:14px 17px;min-height:48px;cursor:pointer}
.entry-result-actions a{display:inline-block;font-size:.74rem;color:#202020;margin-top:23px;text-decoration:underline;text-underline-offset:4px}
.entry-message-icon{font:400 3rem/1 Georgia,serif;color:#202020;margin:0 auto 20px}
.entry-footer{display:flex;gap:8px;justify-content:center;align-items:flex-start;border-top:1px solid rgba(0,0,0,0.150);margin-top:30px;padding-top:18px}
.entry-footer span{font-size:.84rem;color:#202020;margin-top:2px}
.entry-footer p{color:#202020;font-size:.69rem;line-height:1.6;margin:0}
.entry-postscript{color:#202020;font-size:.59rem;font-weight:600;letter-spacing:.17em;line-height:1.5;margin:23px 0 0;text-align:center}
.royal-entry :is(button,a,input):focus-visible{outline:2px solid #333;outline-offset:3px}
@keyframes entry-flower-in{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
@media(min-width:1250px){.entry-brand-center{margin-top:-18px}.entry-card{transform:translateY(-6px)}}
@media(max-width:900px){.royal-entry{grid-template-columns:1fr}.entry-brand{padding:25px 24px 0;min-height:0}.entry-brand::after,.entry-brand-foot{display:none}.entry-brand-center{display:none}.entry-brandline{justify-content:center}.entry-right{padding:30px 18px 34px;justify-content:flex-start}.entry-card{width:min(100%,520px);padding:clamp(24px,5vw,39px)}.entry-postscript{margin:20px 0 0}.royal-entry::after{inset:10px;border-radius:13px}.entry-card-top{margin-bottom:25px}}
@media(max-width:480px){.entry-brand{padding-top:24px}.entry-brandline img{width:35px;height:35px}.entry-right{padding-top:23px}.entry-card{border-radius:16px;padding:25px 20px}.entry-card-top{font-size:.55rem}.entry-tabs{margin-bottom:25px}.entry-panel h2{font-size:2rem}.entry-panel input{min-height:52px}.entry-footer{margin-top:26px}.entry-postscript{font-size:.51rem}}
@media(prefers-reduced-motion:reduce){.entry-flourish img{animation:none}.entry-primary{transition:none}.entry-primary:hover:not(:disabled){transform:none}}

/* Signed-in account panel: no duplicate sign-in form over the private book. */
#authDialog .portal-account-profile[hidden]{display:none!important}
#authDialog .portal-account-profile{position:relative;padding:36px 30px 30px;text-align:center}
#authDialog .portal-account-profile>img{width:88px;height:88px;object-fit:contain;filter:drop-shadow(0 0 18px rgba(0,0,0,0.082));margin:0 auto 19px}
#authDialog .portal-account-profile .overline{color:#555}
#authDialog .portal-account-profile h2{color:#202020;font:400 1.8rem/1.3 'IM Fell French Canon',Georgia,serif;margin:10px 0}
#authDialog .portal-account-profile>p:not(.overline){color:#555;font-size:.82rem;line-height:1.8;margin:10px auto 15px;max-width:320px}
#authDialog .portal-account-profile .portal-account-email{font-weight:700;font-size:.9rem;overflow-wrap:anywhere;color:#202020}
#authDialog .portal-account-profile #authProfileSignOut{width:100%;margin-top:24px;min-height:46px}

/* A clear, restrained acquisition path for visitors without a paid edition. */
.entry-acquire-link{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;padding:18px 15px 16px;margin:18px 0 0;background:linear-gradient(145deg,rgba(0,0,0,0.011),rgba(0,0,0,0.004));border:1px solid rgba(0,0,0,0.200);border-radius:10px;color:#202020;text-decoration:none;transition:border-color .17s ease,background .17s ease}
.entry-acquire-link>span{color:#202020;font-size:.68rem;font-weight:500;letter-spacing:.025em}
.entry-acquire-link strong{font-size:.84rem;line-height:1.42;font-weight:700;color:#202020}
.entry-acquire-link strong span{font-size:1.05em;margin-left:5px}
.entry-acquire-link:hover,.entry-acquire-link:focus-visible{background:rgba(0,0,0,0.045);border-color:rgba(0,0,0,0.536)}
@media(max-width:480px){.entry-acquire-link{margin-top:15px;padding:15px 12px}}


/* WHITE-ON-WHITE ESTATE · shared with Unlock Royal Codes, 2026-11-23.
   No layout, entitlement, playback, account or persistence logic is overridden. */
:root {color-scheme:light; font-family:'IM Fell French Canon',Georgia,serif; --estate-ink:#171717;--estate-line:#bcbcbc;--estate-shadow:0 12px 42px rgba(0,0,0,.07)}
body,.site-shell,.royal-entry {color:#171717;background:#fff}
.entry-background {background:#fff!important}
.site-shell h1,.site-shell h2,.site-shell h3,.royal-entry h1,.royal-entry h2,dialog h2,.identity-title,.song-title h2,.tab-arrival h2,#panel-read .book-page .codex-heading {font-family:'Felipa','IM Fell French Canon',Georgia,serif!important;font-weight:400;letter-spacing:normal}
.site-shell :is(button,input,select,textarea),.royal-entry :is(button,input,select,textarea),dialog :is(button,input,select,textarea) {font-family:'IM Fell French Canon',Georgia,serif}
:where(input,textarea,select)::placeholder {color:#626262;opacity:1}
:where(button,a,input,textarea,select,[tabindex]):focus-visible {outline-color:#252525}
:where(.primary-action,.entry-primary,.chapter-picker-trigger,.header-account,.codex-resume) {border-color:#555;background:#fff;color:#171717}
.entry-card,.listening-card,.notes-panel,.interactive-panel,.reader-side,.modal,.chapter-picker-dialog,.playlist-modal {box-shadow:var(--estate-shadow)}
.entry-assurances {border-color:#bcbcbc!important;color:#414141!important;font-family:'IM Fell French Canon',Georgia,serif!important}
.royal-fleur,.portal-loading-fleur,.entry-brandline img,.entry-flourish img,.entry-result-flower,#authDialog .portal-account-profile>img {filter:grayscale(1) drop-shadow(0 0 .65px #262626) drop-shadow(0 0 .65px #262626) drop-shadow(0 3px 7px rgba(0,0,0,.14))!important}
.family-list-emblem,.jurisdiction-emblem,.album-family-emblem,.path-family-emblem img,.chapter-family-art img,img[src*="family-icons/"] {filter:brightness(0) opacity(.82)!important}
.album-art:not(.has-cover) {background:#fff!important;border:1px solid #bcbcbc}
.album-art.has-cover .album-family-emblem {filter:brightness(0) drop-shadow(0 0 2px #fff)!important}
.entry-orbit {border-color:#c9c9c9!important}
#panel-read .book-frame.theme-paper {background:#fff!important;color:#181818!important}
#panel-read .book-frame.theme-paper .book-page {color:#181818!important}
#panel-read .book-page {font-family:'IM Fell French Canon',Georgia,serif!important}
#panel-read .book-frame.theme-dark {color-scheme:dark}
#panel-read .book-frame.theme-dark .book-page :is(.codex-paragraph,.codex-heading,.codex-standfirst,.codex-list,.codex-formula,.codex-quotation,.codex-core,.codex-soul,.codex-source-note) {color:inherit}
#panel-read .book-frame.theme-dark .book-page .passage-note-editor {color:#171717;background:#fff}
#panel-read .book-frame.theme-dark .book-page mark {color:#181818!important}
#panel-read .book-frame.theme-dark .book-page .passage-note-editor :is(label,textarea,button,.passage-note-kicker,.passage-note-quote) {color:#171717}
#panel-read .book-frame.theme-sepia {color-scheme:light}
#panel-read .book-page mark,#panel-listen .follow-word.is-current-word,.cue-word.active-word {background:#f3e0a1!important;color:#171717!important;box-decoration-break:clone;-webkit-box-decoration-break:clone}
::selection {background:#f3e0a1;color:#171717}
.reader-progress-track {background:#e4e4e4}
.reader-progress-track>span {background:#353535}
progress,input[type=range],input[type=checkbox],input[type=radio] {accent-color:#333}
.mobile-dock button.active,.tab.active {color:#171717!important;border-color:#252525!important}
.mobile-dock button.active {background:#ededed!important}
:where(.form-error,.entry-form-error,[aria-invalid="true"]) {border-color:#b66b66}
@media(max-width:720px){.site-shell h1,.royal-entry h1 {overflow-wrap:break-word}.mobile-dock {background:rgba(255,255,255,.98)!important}}
