/* 2027 is a year planner. The year itself is the scene; natal pillars never appear in loading. */
.ny-reading{--ny-accent:var(--t-ink);--ny-ink:#393237;--ny-red:#d94a47;--ny-panel-h:calc(100dvh - 16px);--ny-year:64px;--ny-heading:76px;--ny-month:34px;--ny-gap:5px;--ny-x:17px;--ny-space:10px;--ny-binding:10px;--ny-reference:52px;--ny-source:32px;--ny-source-type:22px;--ny-natal:26px;--ny-natal-type:20px;--ny-avatar:34px;--ny-intro:18px;--ny-observation:20px;--ny-speech:17px;--ny-final:25px;width:100%;max-width:412px!important;margin:0 auto!important;padding:0!important;text-align:left;color:var(--ny-ink);text-size-adjust:100%;-webkit-text-size-adjust:100%}
.ny-reading .ny-room{position:relative;isolation:isolate;overflow:hidden;height:var(--ny-panel-h);min-height:0;box-sizing:border-box;border:1px solid #e9dfd0;border-radius:4px 5px 9px 4px;background:linear-gradient(108deg,#f4eddf 0,#fffdf7 5%,#fffdf8 89%,#f7f1e6);box-shadow:0 13px 32px #4f3a2a0d,0 3px 0 -1px #f8f0e2,0 4px 0 -1px #ded2be}
.ny-reading .ny-room:before{content:"";position:absolute;left:10px;top:20px;bottom:19px;width:1px;background:linear-gradient(transparent,#d9cbb7 12%,#d9cbb7 88%,transparent);opacity:.42;pointer-events:none}
.ny-reading .ny-paper{display:flex;flex-direction:column;height:100%;min-height:0;padding:4px var(--ny-x) 10px;overflow:hidden;box-sizing:border-box}
/* The year and all twelve months occupy the top of every scene. */
.ny-reading .ny-calendar{position:relative;padding:0 0 var(--ny-space);opacity:0;visibility:hidden;flex-shrink:0}
.ny-reading .ny-calendar.ny-ready{opacity:1;visibility:visible}
.ny-reading .ny-binding{height:var(--ny-binding);display:flex;justify-content:space-between;padding:0 19%;align-items:center}
.ny-reading .ny-binding i{width:6px;height:6px;border-radius:50%;background:#d7cbb9;box-shadow:0 1px 1px #fff,inset 0 1px 2px #74634e38}
.ny-reading .ny-calendar-heading{display:flex;align-items:center;gap:13px;min-height:var(--ny-heading);padding:2px 2px 8px;border-bottom:1px solid #dacfbb}
.ny-reading .ny-calendar-heading>strong{font-family:Georgia,"Times New Roman",serif;font-size:var(--ny-year);font-weight:400;line-height:1;letter-spacing:-.075em;color:var(--ny-accent);font-variant-numeric:lining-nums}
.ny-reading .ny-calendar-heading>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.ny-reading .ny-calendar-heading>div>span{font-size:21px;line-height:1.3;font-weight:850;letter-spacing:-.05em;color:#4b423b;white-space:nowrap}
.ny-reading .ny-calendar-heading>div>small{font-size:10px;line-height:1.5;font-weight:550;color:#a08d79;word-break:keep-all}
.ny-reading .ny-calendar-status{opacity:0;visibility:hidden;display:flex;align-items:baseline;justify-content:flex-start;gap:8px;padding:8px 1px 7px;min-height:31px}
.ny-reading .ny-calendar-status h2{margin:0!important;padding:0!important;font-family:inherit;font-size:15px!important;line-height:1.4!important;font-weight:850!important;letter-spacing:-.035em;color:#5e5147;word-break:keep-all}
.ny-reading [data-ny-caption]{font-size:10px;line-height:1.4;font-weight:550;color:#ac9985;text-align:right;word-break:keep-all;max-width:47%}
.ny-reading .ny-months{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--ny-gap);perspective:1000px}
.ny-reading .ny-month{position:relative;min-width:0;height:var(--ny-month);display:flex;align-items:center;justify-content:center;border:1px solid #e9dfce;border-radius:2px;background:#fffdf8;transform-origin:center top}
.ny-reading .ny-month>span{display:flex;align-items:baseline;gap:3px}
.ny-reading .ny-month b{font-family:Georgia,"Times New Roman",serif;font-size:21px;font-weight:400;line-height:1;letter-spacing:-.04em;color:#685c4f;font-variant-numeric:lining-nums}
.ny-reading .ny-month small{font-size:10px;font-weight:600;line-height:1;color:#a2907c}
.ny-reading .ny-month-ink{position:absolute;left:20%;right:20%;bottom:4px;height:1.5px;background:var(--ny-accent);transform-origin:left;transform:scaleX(0);opacity:0}
.ny-reading .ny-month-corner{position:absolute;right:-1px;top:-1px;width:11px;height:11px;background:linear-gradient(45deg,#e6d7bc 49%,#fffaf1 50%);border-left:1px solid #d9c5a4;border-bottom:1px solid #d9c5a4;transform-origin:right top;opacity:0}
.ny-reading .ny-scene-details{position:relative;margin-top:7px;min-height:27px}
.ny-reading .ny-detail{display:none;opacity:0;visibility:hidden}
/* A compact source strip shows the precise glyphs being used for this part. */
.ny-reading[data-stage="0"] .ny-scene-details{display:none}
/* Familiar sister typography, now speaking underneath a year rather than a large natal chart. */
.ny-reading .ny-voice{position:relative;padding:0 1px 3px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.ny-reading .ny-byline{display:flex;align-items:center;gap:7px;margin-bottom:var(--ny-space);opacity:0;visibility:hidden}
.ny-reading .ny-byline>img{display:block;width:var(--ny-avatar)!important;height:var(--ny-avatar)!important;border-radius:50%;object-fit:cover;object-position:50% 18%;border:1px solid #e5d8c8;flex:0 0 var(--ny-avatar)}
.ny-reading .ny-byline>span{font-size:12px;font-weight:800;line-height:1.4;color:var(--ny-accent)}
.ny-reading .ny-byline>i{height:1px;flex:1;margin-left:7px;background:linear-gradient(90deg,color-mix(in srgb,var(--ny-accent) 20%,#e7dbd0),transparent)}
.ny-reading .ny-intro,.ny-reading .ny-observation,.ny-reading .ny-speech{margin:0;padding:0;font-family:inherit;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty;text-wrap:balance;letter-spacing:-.035em;opacity:0;visibility:hidden;transform-origin:left top}
.ny-reading .ny-intro{font-size:var(--ny-intro);font-weight:900;line-height:1.45;color:var(--ny-ink);margin-bottom:7px}
.ny-reading .ny-observation{font-size:var(--ny-observation);line-height:1.5;font-weight:600;color:#51484b}
.ny-reading .ny-speech{font-size:var(--ny-speech);line-height:1.55;font-weight:550;color:#66584b;margin-top:9px}
.ny-reading .ny-observation strong,.ny-reading .ny-speech strong{color:var(--ny-ink);font-weight:850;white-space:normal}
.ny-reading .ny-sentence{display:block;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty;text-wrap:balance}.ny-reading .ny-sentence+.ny-sentence{margin-top:.28em}
.ny-reading[data-stage="0"] .ny-intro{display:none}
.ny-reading[data-stage="0"] .ny-observation{font-size:var(--ny-observation)}.ny-reading[data-stage="0"] .ny-observation strong{font-size:1.2em;font-weight:950;color:var(--ny-accent)}
.ny-reading[data-stage="0"] .ny-speech{font-size:var(--ny-speech);margin-top:9px}
.ny-reading .ny-ready{opacity:1;visibility:visible}
/* The planner opens upward, unlike the 1:1 book's side-to-side cover. */
.ny-reading .ny-cover{display:none;position:absolute;inset:-1px;z-index:10;perspective:1500px;pointer-events:none;border-radius:inherit}
.ny-reading.ny-opening .ny-cover{display:block}
.ny-reading .ny-cover-leaf{position:absolute;inset:0;transform-origin:top center;transform-style:preserve-3d}
.ny-reading .ny-cover-front,.ny-reading .ny-cover-back{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border:1px solid #dacdb8;border-radius:4px 5px 9px 4px;overflow:hidden;box-sizing:border-box}
.ny-reading .ny-cover-front{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:34px;background:repeating-linear-gradient(0deg,#ffffff04,#ffffff04 2px,#d9ccb204 2px,#d9ccb204 4px),linear-gradient(125deg,#f0e7d4,#fffaf0 75%,#eee2cc);color:var(--ny-accent);box-shadow:inset 0 0 0 5px #fff9,0 5px 12px #34251d0d}
.ny-reading .ny-cover-front>small{font-size:12px;font-weight:650;letter-spacing:.04em;color:#ab9578}
.ny-reading .ny-cover-front>strong{font-family:Georgia,serif;font-size:104px;font-weight:400;line-height:1;letter-spacing:-.075em;margin:28px 0}
.ny-reading .ny-cover-front>strong>span{font-family:inherit;display:block;font-size:27px;font-weight:650;letter-spacing:-.04em;line-height:1.5;margin-top:10px;color:#806c52}
.ny-reading .ny-cover-front>p{font-size:14px;line-height:1.75;color:#a18b6d;font-weight:550;letter-spacing:-.025em;margin:0}
.ny-reading .ny-cover-front>i{display:block;width:56px;border-top:1px solid #cbbb9e;margin-top:32px}
.ny-reading .ny-cover-back{transform:rotateX(180deg);border-color:#d6c8b4;background:linear-gradient(180deg,#dfd1bb,#fffaf0 12%,#fbf5e9 90%,#ede2d0)}
.ny-reading .ny-cover-back:after{content:"";position:absolute;inset:18px 16px;border:1px solid #9475511f}
.ny-reading .ny-handoff{display:none;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;flex-direction:column;justify-content:flex-start;padding:var(--ny-space) 2px 4px;opacity:0;visibility:hidden}
.ny-reading[data-stage="5"] .ny-handoff{display:flex}
.ny-reading .ny-handoff .ny-byline{opacity:1;visibility:visible;margin-bottom:12px}
.ny-reading .ny-handoff>[data-ny-final-intro]{font-size:18px;font-weight:650;line-height:1.6;margin:0 0 12px;word-break:keep-all;text-wrap:balance}
.ny-reading .ny-handoff>strong{font-size:var(--ny-final);line-height:1.5;font-weight:900;letter-spacing:-.055em;color:var(--ny-accent);word-break:keep-all;margin-bottom:12px}
.ny-reading .ny-handoff>[data-ny-final-copy]{font-size:18px;line-height:1.65;font-weight:550;word-break:keep-all;margin:0;color:#9b856c}
.ny-reading .ny-handoff.ny-ready{opacity:1;visibility:visible}
.ny-reading .ny-progress{display:flex;gap:5px;margin:8px 4px 0}
.ny-reading .ny-progress>span{position:relative;flex:1;min-width:0;height:2px;background:#e9dfcf}
.ny-reading .ny-progress>span>i{display:block;height:2px;width:100%;background:transparent}.ny-reading .ny-progress [aria-current]>i{background:var(--ny-accent)}
.ny-reading .ny-progress>span>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ny-reading .ny-wait{position:relative;margin:10px 0 0;padding:0 0 0 13px;background:transparent;text-align:left;color:#776f68;font-size:13px;font-weight:600;line-height:1.5;letter-spacing:-.03em;word-break:keep-all}.ny-reading .ny-wait:before{content:"";position:absolute;left:1px;top:.68em;width:4px;height:4px;border-radius:50%;background:var(--ny-accent);opacity:.55;transform:translateY(-50%);animation:nyWaitTinyDot 2.4s ease-in-out infinite}.ny-reading .ny-wait[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.ny-reading *,.ny-reading *:after{animation:none!important;transition:none!important;transform:none!important}.ny-reading .ny-cover{display:none!important}}


/* Sentence entrances never expose the next sentence ahead of its reading cue. */
.ny-reading .ny-sentence[aria-hidden="true"],.ny-reading .ny-handoff>[aria-hidden="true"]{opacity:0;visibility:hidden}


.ny-reading[data-density="comfortable"]{--ny-year:58px;--ny-heading:66px;--ny-month:30px;--ny-x:15px;--ny-space:8px;--ny-binding:8px;--ny-reference:48px;--ny-source:30px;--ny-source-type:21px;--ny-natal:24px;--ny-natal-type:19px;--ny-avatar:32px;--ny-intro:17px;--ny-observation:19px;--ny-speech:16.5px;--ny-final:24px}
.ny-reading[data-density="compact"]{--ny-year:51px;--ny-heading:58px;--ny-month:27px;--ny-gap:4px;--ny-x:13px;--ny-space:6px;--ny-binding:6px;--ny-reference:45px;--ny-source:28px;--ny-source-type:20px;--ny-natal:22px;--ny-natal-type:18px;--ny-avatar:30px;--ny-intro:16.5px;--ny-observation:18px;--ny-speech:16px;--ny-final:23px}
.ny-reading[data-density="tight"]{--ny-year:45px;--ny-heading:51px;--ny-month:24px;--ny-gap:4px;--ny-x:12px;--ny-space:5px;--ny-binding:5px;--ny-reference:42px;--ny-source:27px;--ny-source-type:19px;--ny-natal:21px;--ny-natal-type:18px;--ny-avatar:28px;--ny-intro:16px;--ny-observation:17px;--ny-speech:15.5px;--ny-final:22px}
.ny-reading[data-fit="scroll"] .ny-paper{overflow-y:auto;overscroll-behavior:contain}
.ny-reading[data-fit="scroll"] .ny-voice,.ny-reading[data-fit="scroll"] .ny-handoff{flex:none;overflow:visible}
.ny-reading:is([data-density="compact"],[data-density="tight"]) .ny-calendar-heading>div>span{font-size:18px}
.ny-reading:is([data-density="compact"],[data-density="tight"]) .ny-calendar-heading>div>small{font-size:9px}
.ny-reading:is([data-density="compact"],[data-density="tight"]) .ny-month b{font-size:19px}
.ny-reading:is([data-density="compact"],[data-density="tight"]) .ny-calendar-status{padding:6px 1px;min-height:27px}
.ny-reading:is([data-density="compact"],[data-density="tight"]) .ny-calendar-status h2{font-size:14px!important}
.ny-reading:is([data-density="compact"],[data-density="tight"]) .ny-note{padding:5px 7px;font-size:10px}
.ny-reading:is([data-density="compact"],[data-density="tight"]) .ny-handoff>[data-ny-final-intro],.ny-reading:is([data-density="compact"],[data-density="tight"]) .ny-handoff>[data-ny-final-copy]{font-size:16px}
/* Use the available page for the calendar, natal chart and voice, not an empty footer. */
.ny-reading[data-fill] .ny-calendar-heading{min-height:calc(var(--ny-heading) + var(--ny-grow)*8px)}
.ny-reading[data-fill] .ny-calendar-heading>strong{font-size:calc(var(--ny-year) + var(--ny-grow)*6px)}
.ny-reading[data-fill] .ny-calendar{padding-bottom:calc(var(--ny-space) + var(--ny-grow)*3px)}
.ny-reading[data-fill] .ny-month{height:calc(var(--ny-month) + var(--ny-grow)*10px)}
.ny-reading[data-fill] .ny-month b{font-size:calc(21px + var(--ny-grow)*2px)}
.ny-reading[data-fill] .ny-scene-details{margin-top:calc(7px + var(--ny-grow)*2px)}
.ny-reading[data-fill] .ny-byline{margin-bottom:calc(var(--ny-space) + var(--ny-grow)*3px + var(--ny-gap-fill,0px))}
.ny-reading[data-fill] .ny-byline>img{width:calc(var(--ny-avatar) + var(--ny-grow)*4px)!important;height:calc(var(--ny-avatar) + var(--ny-grow)*4px)!important;flex-basis:calc(var(--ny-avatar) + var(--ny-grow)*4px)}
.ny-reading[data-fill] .ny-byline>span{font-size:calc(12px + var(--ny-grow)*1px)}
.ny-reading[data-fill] .ny-intro{font-size:calc(var(--ny-intro) + var(--ny-grow)*2px);margin-bottom:calc(7px + var(--ny-grow)*3px + var(--ny-gap-fill,0px))}
.ny-reading[data-fill] .ny-observation{font-size:calc(var(--ny-observation) + var(--ny-grow)*2px);line-height:1.55}
.ny-reading[data-fill] .ny-speech{font-size:calc(var(--ny-speech) + var(--ny-grow)*2px);line-height:1.65;margin-top:calc(9px + var(--ny-grow)*4px + var(--ny-gap-fill,0px))}
.ny-reading[data-fill] .ny-handoff>[data-ny-final-intro],.ny-reading[data-fill] .ny-handoff>[data-ny-final-copy]{font-size:calc(18px + var(--ny-grow)*2px);margin-bottom:calc(12px + var(--ny-grow)*5px + var(--ny-gap-fill,0px))}
.ny-reading[data-fill] .ny-handoff>strong{font-size:calc(var(--ny-final) + var(--ny-grow)*3px);margin-bottom:calc(12px + var(--ny-grow)*5px + var(--ny-gap-fill,0px))}
.ny-reading[data-fill] .ny-handoff>[data-ny-final-copy]{margin-bottom:0}
/* Only the new-year replay reserves the real QA strips; other products keep their UI. */
#paidUxReplayViewport:has(.ny-reading){padding:var(--ny-replay-top,36px) 8px 0!important;overflow:hidden!important}
#paidUxReplayPanel:has(.ny-reading){max-width:430px!important;margin:0 auto!important;padding:0!important}
#paidGeneratingPanel:has(>.ny-reading){margin-top:0!important;padding:0!important}
body:has(#paidUxReplayViewport .ny-reading) #paidUxReplayBadge{top:max(4px,env(safe-area-inset-top))!important;right:8px!important;padding:3px 5px!important;font-size:8px!important;box-shadow:none!important;border-radius:8px!important}
body:has(#paidUxReplayViewport .ny-reading) #paidUxReplayBadge [data-replay-elapsed]{display:none!important}
body:has(#paidUxReplayViewport .ny-reading) #paidUxReplayNavigator{display:flex!important;align-items:center;gap:6px;bottom:max(4px,env(safe-area-inset-bottom))!important;width:min(calc(100vw - 16px),430px)!important;padding:5px 6px!important;border-radius:8px!important;box-shadow:0 3px 10px #33415512!important}
body:has(#paidUxReplayViewport .ny-reading) #paidUxReplayNavigator>div:first-child{padding:0!important;flex:0 0 auto}
body:has(#paidUxReplayViewport .ny-reading) #paidUxReplayNavigator>div:first-child>strong{display:none!important}
body:has(#paidUxReplayViewport .ny-reading) #paidUxReplayNavigator [data-replay-steps]{min-width:0;flex:1;padding:0!important}


/* 2027-only chapter theatre: distinct evidence views, no verdict before the paid result. */
.ny-reading .ny-intro{display:none!important}
.ny-reading .ny-visual{display:none;position:relative;min-width:0}
.ny-reading[data-stage="0"] .ny-visual-calendar,.ny-reading[data-stage="1"] .ny-visual-calendar,.ny-reading[data-stage="2"] .ny-visual-calendar,.ny-reading[data-stage="3"] .ny-visual-calendar{display:block}
.ny-reading[data-stage="4"] .ny-visual-chances{display:block}
.ny-reading[data-stage="3"] .ny-scene-details,.ny-reading[data-stage="4"] .ny-scene-details,.ny-reading[data-stage="5"] .ny-scene-details{display:none}
.ny-reading .ny-calendar-status h2{font-size:17px!important;line-height:1.4!important}
.ny-reading [data-ny-caption]{max-width:40%;font-size:10px}
.ny-reading .ny-byline>span{font-size:13px}
.ny-reading .ny-observation{font-weight:750}
.ny-reading .ny-speech{font-weight:550}
.ny-reading[data-stage="0"] .ny-observation strong{font-size:1em;font-weight:850}
.ny-reading .ny-handoff{padding-top:var(--ny-space)}
.ny-reading .ny-handoff>[data-ny-final-intro]{font-weight:750;line-height:1.55}
.ny-reading .ny-handoff>strong{line-height:1.4}
.ny-reading .ny-handoff>[data-ny-final-copy]{color:#8e7969}
.ny-reading[data-density="compact"] .ny-calendar-status h2,.ny-reading[data-density="tight"] .ny-calendar-status h2{font-size:15.5px!important}
.ny-reading[data-fill] .ny-observation{font-size:calc(var(--ny-observation) + var(--ny-grow)*1.1px);line-height:1.5}
.ny-reading[data-fill] .ny-speech{font-size:calc(var(--ny-speech) + var(--ny-grow)*.8px);line-height:1.55;margin-top:calc(9px + var(--ny-grow)*2px + var(--ny-gap-fill,0px))}
.ny-reading[data-fill] .ny-handoff>[data-ny-final-intro],.ny-reading[data-fill] .ny-handoff>[data-ny-final-copy]{font-size:calc(17px + var(--ny-grow)*.8px);margin-bottom:calc(9px + var(--ny-grow)*2px + var(--ny-gap-fill,0px))}
.ny-reading[data-fill] .ny-handoff>strong{font-size:calc(var(--ny-final) + var(--ny-grow)*1px);margin-bottom:calc(10px + var(--ny-grow)*2px + var(--ny-gap-fill,0px))}

/* Compact density wins over large-screen expansion when vertical space is scarce. */

.ny-reading .ny-year-detail{display:none;align-items:center;justify-content:center;gap:8px;padding:7px 0 3px;color:#8b7967;font-size:10.5px;line-height:1.4;font-weight:750}
.ny-reading[data-stage="0"] .ny-year-detail{display:flex}
.ny-reading .ny-year-detail>i{width:12px;height:1px;background:#d7c9b6}
.ny-reading[data-stage="0"] .ny-month{height:calc(var(--ny-month) + 8px)}
.ny-reading[data-stage="0"] .ny-month b{font-size:23px}
.ny-reading[data-fill][data-stage="0"] .ny-month{height:calc(var(--ny-month) + 8px + var(--ny-grow)*10px)}
.ny-reading[data-fill][data-stage="0"] .ny-month b{font-size:calc(23px + var(--ny-grow)*2px)}
.ny-reading[data-stage="0"] .ny-voice{padding-top:4px}

.ny-reading .ny-months{overflow:hidden}
/* Stage-specific scan palette: warm for best-month review, cool for caution review. Scoped to the calendar so the character/theme accent stays unchanged elsewhere. */
.ny-reading[data-stage="1"] .ny-months{--ny-accent:#e8a8a0}
.ny-reading[data-stage="2"] .ny-months{--ny-accent:#9b8da3}
.ny-reading .ny-calendar-sweep{position:absolute;z-index:4;left:-4%;right:-4%;top:0;height:34%;pointer-events:none;opacity:0;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--ny-accent) 12%,#fff) 36%,color-mix(in srgb,var(--ny-accent) 22%,transparent) 52%,transparent 78%);border-bottom:1px solid color-mix(in srgb,var(--ny-accent) 28%,transparent);will-change:transform,opacity}
.ny-reading[data-stage="1"] .ny-month,.ny-reading[data-stage="2"] .ny-month{transform:none!important}
.ny-reading .ny-final-cover{display:none;position:absolute;inset:-1px;z-index:12;perspective:1500px;pointer-events:none;border-radius:inherit;opacity:0;visibility:hidden}
.ny-reading[data-stage="5"] .ny-final-cover{display:block}
.ny-reading .ny-final-cover-leaf{position:absolute;inset:0;transform-origin:top center;transform-style:preserve-3d;transform:rotateX(-178deg)}
.ny-reading .ny-final-cover-front,.ny-reading .ny-final-cover-back{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border:1px solid #dacdb8;border-radius:4px 5px 9px 4px;overflow:hidden;box-sizing:border-box}
.ny-reading .ny-final-cover-front{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:34px;background:repeating-linear-gradient(0deg,#ffffff04,#ffffff04 2px,#d9ccb204 2px,#d9ccb204 4px),linear-gradient(125deg,#f0e7d4,#fffaf0 75%,#eee2cc);color:var(--ny-accent);box-shadow:inset 0 0 0 5px #fff9,0 5px 12px #34251d0d}
.ny-reading .ny-final-cover-front>small{font-size:12px;font-weight:650;letter-spacing:.04em;color:#ab9578}
.ny-reading .ny-final-cover-front>strong{font-family:Georgia,serif;font-size:104px;font-weight:400;line-height:1;letter-spacing:-.075em;margin:28px 0}
.ny-reading .ny-final-cover-front>strong>span{font-family:inherit;display:block;font-size:27px;font-weight:650;letter-spacing:-.04em;line-height:1.5;margin-top:10px;color:#806c52}
.ny-reading .ny-final-cover-front>p{font-size:14px;line-height:1.75;color:#a18b6d;font-weight:550;letter-spacing:-.025em;margin:0}
.ny-reading .ny-final-cover-front>i{display:block;width:56px;border-top:1px solid #cbbb9e;margin-top:32px}
.ny-reading .ny-final-cover-back{transform:rotateX(180deg);border-color:#d6c8b4;background:linear-gradient(180deg,#dfd1bb,#fffaf0 12%,#fbf5e9 90%,#ede2d0)}
.ny-reading .ny-final-cover-back:after{content:"";position:absolute;inset:18px 16px;border:1px solid #9475511f}
.ny-reading .ny-handoff{position:absolute;inset:0;z-index:2;box-sizing:border-box;padding:24px var(--ny-x);justify-content:center;background:linear-gradient(108deg,#f4eddf 0,#fffdf7 5%,#fffdf8 89%,#f7f1e6)}
@media(prefers-reduced-motion:reduce){
  .ny-reading[data-stage="5"] .ny-final-cover{display:none!important}
  .ny-reading[data-stage="5"] .ny-paper{opacity:0!important;visibility:hidden!important}
  .ny-reading[data-stage="5"] .ny-handoff{opacity:1!important;visibility:visible!important}
}

/* v7.6 — 2027 planner closes back down over its top hinge; paid 1:1 handoff timing stays intact. */
.ny-reading .ny-final-cover-leaf{transform-origin:top center;transform:rotateX(178deg)}
.ny-reading .ny-final-cover-back{transform:rotateX(180deg)!important}
.ny-reading.ny-final-handoff .ny-room{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
.ny-reading.ny-final-handoff .ny-room:before{display:none!important}
.ny-reading .ny-handoff{position:absolute;inset:0;z-index:3;width:100%;height:100%;min-height:0!important;margin:0!important;padding:28px 22px!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;text-align:center!important;background:transparent!important;opacity:0;visibility:hidden}
.ny-reading .ny-final-cue{display:grid;justify-items:center;gap:7px;width:100%;max-width:352px;margin:0 auto;color:#292526;font-size:clamp(26px,7.2vw,30px);line-height:1.34;font-weight:850;letter-spacing:-.045em;white-space:normal;word-break:keep-all;text-wrap:balance;text-align:center;opacity:0}
.ny-reading .ny-final-line1,.ny-reading .ny-final-line2{display:block}
.ny-reading .ny-final-line2{font-size:1.08em;margin-top:3px}
.ny-reading.ny-final-handoff .ny-paper{opacity:0!important;visibility:hidden!important}
@media(max-width:360px){.ny-reading .ny-final-cue{font-size:24px;max-width:320px}}
@media(prefers-reduced-motion:reduce){
  .ny-reading[data-stage="5"] .ny-final-cover{display:none!important}
  .ny-reading[data-stage="5"][data-result-ready="1"] .ny-paper{display:none!important}
  .ny-reading[data-stage="5"][data-result-ready="1"] .ny-handoff,.ny-reading[data-stage="5"][data-result-ready="1"] .ny-final-cue{opacity:1!important;visibility:visible!important;transform:none!important;filter:none!important}
}

/* v7.5: keep final QA and one-shot result transitions visible even without another sync tick. */
.ny-reading .ny-handoff.ny-ready{opacity:1;visibility:visible}
.ny-reading .ny-final-cue.ny-ready{opacity:1;visibility:visible}

.ny-reading[data-stage="1"] .ny-month,.ny-reading[data-stage="2"] .ny-month{will-change:background-color,border-color}

@media(max-width:359px){
}

/* v8.11 — stage 4 restores the full-cell glow, but the glow itself is compositor-only. */
.ny-reading[data-stage="3"] .ny-month{overflow:hidden;will-change:auto}
.ny-reading[data-stage="3"] .ny-month>span{position:relative;z-index:2}
.ny-reading[data-stage="3"] .ny-month-ink{z-index:1;left:-1px;right:-1px;top:-1px;bottom:-1px;height:auto;border:1px solid color-mix(in srgb,var(--ny-accent) 13%,#e9dfce);border-radius:2px;background:color-mix(in srgb,var(--ny-accent) 6%,#fffdf8);transform:none;transform-origin:center;opacity:0;will-change:opacity,transform}
.ny-reading .ny-visual-chances{min-height:164px;padding:26px 18px 20px;border-block:1px solid #e9dece;background:#fffdf9}
.ny-reading .ny-opportunity-words{min-height:116px;display:flex;flex-direction:column;justify-content:center;gap:34px;padding:0 4px}
.ny-reading .ny-opportunity-word{display:block;font-size:19.5px;line-height:1.4;font-weight:770;letter-spacing:-.045em;color:#5f5650;word-break:keep-all;opacity:0;visibility:hidden}
.ny-reading .ny-opportunity-self{text-align:left}
.ny-reading .ny-opportunity-outside{text-align:right}
.ny-reading[data-stage="5"] .ny-visual-chances{display:block!important}
.ny-reading[data-stage="5"] .ny-opportunity-word{opacity:1!important;visibility:visible!important;transform:none!important}
.ny-reading[data-stage="5"] .ny-calendar-status,.ny-reading[data-stage="5"] .ny-byline,.ny-reading[data-stage="5"] .ny-observation,.ny-reading[data-stage="5"] .ny-speech{opacity:1!important;visibility:visible!important}
@media(max-width:359px){
  .ny-reading .ny-visual-chances{padding-inline:13px}
  .ny-reading .ny-opportunity-word{font-size:19px}
}
@media(prefers-reduced-motion:reduce){
  .ny-reading[data-stage="4"] .ny-opportunity-word{opacity:1!important;visibility:visible!important;transform:none!important}
}

/* v8.1 — keep the settled stage-5 page visible under the closing cover. */
.ny-reading[data-stage="5"] .ny-voice{display:block!important}

/* v8.2 — legacy selectors removed; only the current 2027 loading system remains. */

/* v8.15 — mobile composition: large planner + larger sister/copy, no dead lower half. */
.ny-reading[data-stage="0"],
.ny-reading[data-stage="1"],
.ny-reading[data-stage="2"],
.ny-reading[data-stage="3"],
.ny-reading[data-stage="4"],
.ny-reading[data-stage="5"]{
  --ny-grow:0!important;
  --ny-gap-fill:0px!important;
  --ny-avatar:42px;
  --ny-observation:22px;
  --ny-speech:19px;
}

.ny-reading[data-stage="0"] .ny-scene-details,
.ny-reading[data-stage="1"] .ny-scene-details,
.ny-reading[data-stage="2"] .ny-scene-details,
.ny-reading[data-stage="3"] .ny-scene-details,
.ny-reading[data-stage="4"] .ny-scene-details,
.ny-reading[data-stage="5"] .ny-scene-details{display:none!important}

/* Planner/visual owns roughly two thirds of the usable mobile page. */
.ny-reading[data-stage="0"] .ny-calendar,
.ny-reading[data-stage="1"] .ny-calendar,
.ny-reading[data-stage="2"] .ny-calendar,
.ny-reading[data-stage="3"] .ny-calendar,
.ny-reading[data-stage="4"] .ny-calendar,
.ny-reading[data-stage="5"] .ny-calendar{
  display:flex;
  flex-direction:column;
  flex:0 0 65%;
  min-height:0;
  padding-bottom:10px!important;
  box-sizing:border-box;
}

.ny-reading[data-stage="0"] .ny-calendar-heading,
.ny-reading[data-stage="1"] .ny-calendar-heading,
.ny-reading[data-stage="2"] .ny-calendar-heading,
.ny-reading[data-stage="3"] .ny-calendar-heading,
.ny-reading[data-stage="4"] .ny-calendar-heading,
.ny-reading[data-stage="5"] .ny-calendar-heading{
  flex:0 0 auto;
  min-height:var(--ny-heading)!important;
}
.ny-reading[data-stage="0"] .ny-calendar-heading>strong,
.ny-reading[data-stage="1"] .ny-calendar-heading>strong,
.ny-reading[data-stage="2"] .ny-calendar-heading>strong,
.ny-reading[data-stage="3"] .ny-calendar-heading>strong,
.ny-reading[data-stage="4"] .ny-calendar-heading>strong,
.ny-reading[data-stage="5"] .ny-calendar-heading>strong{font-size:var(--ny-year)!important}
.ny-reading[data-stage="0"] .ny-calendar-status,
.ny-reading[data-stage="1"] .ny-calendar-status,
.ny-reading[data-stage="2"] .ny-calendar-status,
.ny-reading[data-stage="3"] .ny-calendar-status,
.ny-reading[data-stage="4"] .ny-calendar-status,
.ny-reading[data-stage="5"] .ny-calendar-status{flex:0 0 auto}

/* 1~4: the 12 month cells stretch vertically instead of leaving white paper below. */
.ny-reading[data-stage="0"] .ny-visual-calendar,
.ny-reading[data-stage="1"] .ny-visual-calendar,
.ny-reading[data-stage="2"] .ny-visual-calendar,
.ny-reading[data-stage="3"] .ny-visual-calendar{
  flex:1 1 auto;
  min-height:0;
}
.ny-reading[data-stage="0"] .ny-months,
.ny-reading[data-stage="1"] .ny-months,
.ny-reading[data-stage="2"] .ny-months,
.ny-reading[data-stage="3"] .ny-months{
  height:100%;
  min-height:0;
  grid-template-rows:repeat(3,minmax(0,1fr));
}
.ny-reading[data-stage="0"] .ny-month,
.ny-reading[data-stage="1"] .ny-month,
.ny-reading[data-stage="2"] .ny-month,
.ny-reading[data-stage="3"] .ny-month,
.ny-reading[data-fill][data-stage="0"] .ny-month,
.ny-reading[data-fill][data-stage="1"] .ny-month,
.ny-reading[data-fill][data-stage="2"] .ny-month,
.ny-reading[data-fill][data-stage="3"] .ny-month{
  height:auto!important;
  min-height:0;
}
.ny-reading[data-stage="0"] .ny-month b,
.ny-reading[data-stage="1"] .ny-month b,
.ny-reading[data-stage="2"] .ny-month b,
.ny-reading[data-stage="3"] .ny-month b{
  font-size:clamp(27px,7.4vw,31px)!important;
}
.ny-reading[data-stage="0"] .ny-month small,
.ny-reading[data-stage="1"] .ny-month small,
.ny-reading[data-stage="2"] .ny-month small,
.ny-reading[data-stage="3"] .ny-month small{font-size:11px}

/* 5: opportunity scene receives the same dominant visual footprint. */
.ny-reading[data-stage="4"] .ny-visual-chances,
.ny-reading[data-stage="5"] .ny-visual-chances{
  flex:1 1 auto;
  height:auto!important;
  min-height:0!important;
  padding:20px 18px 16px;
  box-sizing:border-box;
}
.ny-reading[data-stage="4"] .ny-opportunity-words,
.ny-reading[data-stage="5"] .ny-opportunity-words{
  height:100%;
  min-height:0;
  justify-content:center;
  gap:38px;
  padding:0 4px;
}
.ny-reading[data-stage="4"] .ny-opportunity-word,
.ny-reading[data-stage="5"] .ny-opportunity-word{
  font-size:clamp(22px,5.8vw,25px);
}

/* Conversation stays compact but larger: sister, first line, then second line — no stretched empty rows. */
.ny-reading[data-stage="0"] .ny-voice,
.ny-reading[data-stage="1"] .ny-voice,
.ny-reading[data-stage="2"] .ny-voice,
.ny-reading[data-stage="3"] .ny-voice,
.ny-reading[data-stage="4"] .ny-voice,
.ny-reading[data-stage="5"] .ny-voice{
  display:flex!important;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:flex-start;
  min-height:0;
  overflow:hidden;
  padding:10px 1px 8px;
}
.ny-reading[data-stage="0"] .ny-byline,
.ny-reading[data-stage="1"] .ny-byline,
.ny-reading[data-stage="2"] .ny-byline,
.ny-reading[data-stage="3"] .ny-byline,
.ny-reading[data-stage="4"] .ny-byline,
.ny-reading[data-stage="5"] .ny-byline{
  flex:0 0 auto;
  margin-bottom:18px!important;
}
.ny-reading[data-stage="0"] .ny-byline>img,
.ny-reading[data-stage="1"] .ny-byline>img,
.ny-reading[data-stage="2"] .ny-byline>img,
.ny-reading[data-stage="3"] .ny-byline>img,
.ny-reading[data-stage="4"] .ny-byline>img,
.ny-reading[data-stage="5"] .ny-byline>img,
.ny-reading[data-fill] .ny-byline>img{
  width:42px!important;
  height:42px!important;
  flex-basis:42px!important;
}
.ny-reading[data-stage="0"] .ny-byline>span,
.ny-reading[data-stage="1"] .ny-byline>span,
.ny-reading[data-stage="2"] .ny-byline>span,
.ny-reading[data-stage="3"] .ny-byline>span,
.ny-reading[data-stage="4"] .ny-byline>span,
.ny-reading[data-stage="5"] .ny-byline>span,
.ny-reading[data-fill] .ny-byline>span{
  font-size:14.5px!important;
  font-weight:850;
}

.ny-reading[data-stage="0"] .ny-observation,
.ny-reading[data-stage="1"] .ny-observation,
.ny-reading[data-stage="2"] .ny-observation,
.ny-reading[data-stage="3"] .ny-observation,
.ny-reading[data-stage="4"] .ny-observation,
.ny-reading[data-stage="5"] .ny-observation,
.ny-reading[data-fill] .ny-observation{
  flex:0 0 auto;
  margin:0!important;
  font-size:22px!important;
  line-height:1.45!important;
  font-weight:800;
}
.ny-reading[data-stage="0"] .ny-speech,
.ny-reading[data-stage="1"] .ny-speech,
.ny-reading[data-stage="2"] .ny-speech,
.ny-reading[data-stage="3"] .ny-speech,
.ny-reading[data-stage="4"] .ny-speech,
.ny-reading[data-stage="5"] .ny-speech,
.ny-reading[data-fill] .ny-speech{
  flex:0 0 auto;
  margin:14px 0 0!important;
  font-size:19px!important;
  line-height:1.5!important;
}

/* Small-height mobile: preserve all copy while still keeping the planner clearly dominant. */
@media(max-height:720px){
  .ny-reading[data-stage="0"] .ny-calendar,
  .ny-reading[data-stage="1"] .ny-calendar,
  .ny-reading[data-stage="2"] .ny-calendar,
  .ny-reading[data-stage="3"] .ny-calendar,
  .ny-reading[data-stage="4"] .ny-calendar,
  .ny-reading[data-stage="5"] .ny-calendar{flex-basis:62%}
  .ny-reading[data-stage="0"],
  .ny-reading[data-stage="1"],
  .ny-reading[data-stage="2"],
  .ny-reading[data-stage="3"],
  .ny-reading[data-stage="4"],
  .ny-reading[data-stage="5"]{
    --ny-avatar:38px;
    --ny-observation:20.5px;
    --ny-speech:18px;
  }
  .ny-reading[data-stage="0"] .ny-byline>img,
  .ny-reading[data-stage="1"] .ny-byline>img,
  .ny-reading[data-stage="2"] .ny-byline>img,
  .ny-reading[data-stage="3"] .ny-byline>img,
  .ny-reading[data-stage="4"] .ny-byline>img,
  .ny-reading[data-stage="5"] .ny-byline>img{width:38px!important;height:38px!important;flex-basis:38px!important}
  .ny-reading[data-stage="0"] .ny-byline,
  .ny-reading[data-stage="1"] .ny-byline,
  .ny-reading[data-stage="2"] .ny-byline,
  .ny-reading[data-stage="3"] .ny-byline,
  .ny-reading[data-stage="4"] .ny-byline,
  .ny-reading[data-stage="5"] .ny-byline{margin-bottom:14px!important}
  .ny-reading[data-stage="0"] .ny-observation,
  .ny-reading[data-stage="1"] .ny-observation,
  .ny-reading[data-stage="2"] .ny-observation,
  .ny-reading[data-stage="3"] .ny-observation,
  .ny-reading[data-stage="4"] .ny-observation,
  .ny-reading[data-stage="5"] .ny-observation{font-size:20.5px!important}
  .ny-reading[data-stage="0"] .ny-speech,
  .ny-reading[data-stage="1"] .ny-speech,
  .ny-reading[data-stage="2"] .ny-speech,
  .ny-reading[data-stage="3"] .ny-speech,
  .ny-reading[data-stage="4"] .ny-speech,
  .ny-reading[data-stage="5"] .ny-speech{font-size:18px!important;margin-top:11px!important}
}


/* AI late arrival: two opportunity words take alternate quiet breaths; entry animation is untouched. */
.ny-reading .ny-opportunity-text{display:inline-block;transform:translate3d(0,0,0)}
.ny-reading[data-waiting-for-result="1"] .ny-opportunity-self .ny-opportunity-text{
  animation:nyWaitSelf 4.2s ease-in-out infinite;
}
.ny-reading[data-waiting-for-result="1"] .ny-opportunity-outside .ny-opportunity-text{
  animation:nyWaitOutside 4.2s ease-in-out infinite;
}
.ny-reading[data-waiting-for-result="1"] .ny-calendar-status{
  animation:nyWaitStatus 4.2s ease-in-out infinite;
}
.ny-reading[data-wait-phase="explaining"] .ny-wait,
.ny-reading[data-wait-phase="extended"] .ny-wait{
  animation:nyWaitNoteIn .28s ease both;
}
@keyframes nyWaitSelf{
  0%,100%{opacity:1;transform:translate3d(0,0,0)}
  50%{opacity:.75;transform:translate3d(2px,-2px,0)}
}
@keyframes nyWaitOutside{
  0%,100%{opacity:.75;transform:translate3d(-2px,-2px,0)}
  50%{opacity:1;transform:translate3d(0,0,0)}
}
@keyframes nyWaitStatus{0%,100%{opacity:1}50%{opacity:.68}}
@keyframes nyWaitTinyDot{0%,100%{opacity:.38;transform:translateY(-50%) scale(.9)}50%{opacity:.8;transform:translateY(-50%) scale(1.15)}}
@keyframes nyWaitNoteIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .ny-reading[data-waiting-for-result="1"] .ny-opportunity-text,
  .ny-reading[data-waiting-for-result="1"] .ny-calendar-status,
  .ny-reading .ny-wait:before{animation:none!important}
}

/* v6: 2027 planner uses the same 470px central paper on PC.
   Calendar remains above narration; phone geometry is unchanged. */
@media (min-width:521px) {
  .premium-theatre.ny-reading {
    display:flex;flex-direction:column;
    width:100%;max-width:470px!important;min-height:0;
    margin:0 auto!important;padding:0!important;background:#fcfaf7;
  }
  .ny-reading .ny-room {
    width:100%;max-width:470px;margin:0;border:0;border-radius:0;
    box-shadow:none;background:#fcfaf7;
  }
  .ny-reading .ny-paper {
    display:flex;flex-direction:column;gap:clamp(9px,1.5vh,14px);
    min-height:0;padding:clamp(12px,2vw,18px);overflow-y:auto;
    overscroll-behavior:contain;box-sizing:border-box;
  }
  .ny-reading .ny-calendar {
    flex:0 0 auto;width:100%;max-width:none;margin:0 auto;
  }
  .ny-reading .ny-voice {
    flex:1 1 auto;width:100%;max-width:none;min-height:0;
    margin:0 auto;padding:7px 0 0;overflow-y:auto;
  }
  .ny-reading .ny-progress {
    margin:0;padding:6px clamp(12px,2vw,18px);background:#fcfaf7;
  }
  .ny-reading[data-density] {
    --ny-month:clamp(32px,4.5vh,44px);
    --ny-gap:clamp(5px,.8vw,8px);
    --ny-intro:17px;--ny-observation:19px;--ny-speech:16.5px;
  }
  .ny-reading .ny-month b {font-size:clamp(20px,1.5vw,24px);}
}
