:root{--radius-control:12px;--radius-surface:16px}
:root{--paper:#FAEFE4;--accent:#AE5136;--accent-deep:#873D28;--ink:#422C22;--body:#73665B;--gold:#9C7038;--line:#E7DACC;--card:#FFFDF8;--disc:#F1E5D3;--shadow:0 5px 22px #79542f08;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 20% 25%,#fffaf4b3,transparent 65%);transition:background-color .3s}body:has(dialog[open]){overflow:hidden}.paper-grain{position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.055;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%2376573a' filter='url(%23n)' opacity='.5' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:wait}a{color:inherit}button svg,span svg{display:block;width:24px;height:24px;flex:none}button{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:5px}input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}[hidden]{display:none!important}.skip{position:fixed;top:-60px;left:10px;background:white;padding:12px;z-index:100}.skip:focus{top:10px}.site-header{max-width:1300px;margin:auto;padding:30px 48px;display:flex;justify-content:space-between;align-items:center}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;font-family:Georgia,'Times New Roman',serif;font-size:26px;letter-spacing:-.7px}.brand-mark{color:var(--gold)}.brand-mark svg{width:30px;height:30px}.brand small{font:10px Arial,sans-serif;display:block;letter-spacing:1px;color:var(--body);margin-top:5px}.header-actions{display:flex;align-items:center;gap:24px}.text-button{border:0;background:none;padding:10px 0;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:var(--body)}.text-button svg{width:19px;height:19px}.account-button{display:flex;gap:9px;align-items:center;justify-content:center;background:#fffaf580;border:1px solid #c8ac924f;border-radius:var(--radius-control);padding:11px 20px;font-size:14px}.account-button svg{width:18px;height:18px}main{max-width:1160px;margin:auto;outline:0}.home-layout{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center;min-height:700px;padding:20px 40px 42px}.hero{text-align:center}.date-label{display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;color:var(--body)}.date-label svg{width:17px;height:17px}.date-dot{color:#b8a28b}.cup-wrap{margin:10px auto 0;max-width:335px;aspect-ratio:1}.cup{height:100%;width:100%;background-image:url('./assets/cups.png');background-size:400% 200%;background-position:100% 0%;background-repeat:no-repeat;filter:drop-shadow(0 12px 13px #5a382714)}.eyebrow{font-size:10px!important;letter-spacing:2.4px;color:var(--gold)!important;font-weight:600;margin:7px 0 15px;text-transform:uppercase}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-1.6px}h1{font-size:51px;line-height:1.07;margin:0 0 20px}h2{font-size:35px;line-height:1.15;margin:0 0 12px}.hero-caption{font-size:15px;line-height:1.75;color:var(--body);margin:0}.hero-note{display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;color:#927A67;margin:28px 0 0}.hero-note svg{width:14px;height:14px;fill:var(--accent);stroke:var(--accent)}.choices-heading{margin-bottom:25px}.choices-heading h2{font-size:35px;margin-bottom:9px}.choices-heading p:not(.eyebrow){font-size:14px;color:var(--body);margin:0}.menu{display:grid;gap:11px}.menu-card{border:1px solid #eee2d4;background:linear-gradient(115deg,#fffefbd9,#fffaf4d9);box-shadow:var(--shadow);border-radius:var(--radius-control);display:flex;align-items:center;gap:17px;padding:17px 19px;text-align:left;min-height:91px;width:100%;transition:transform .18s,border-color .18s,box-shadow .18s}.menu-card:hover{transform:translateY(-2px);border-color:#bca17e;box-shadow:0 8px 22px #684a2010}.icon-disc{width:54px;height:54px;background:var(--disc);border-radius:50%;display:grid;place-items:center;flex:none;color:var(--gold)}.icon-disc svg{width:31px;height:31px}.card-copy{display:flex;flex-direction:column;gap:6px;flex:1}.card-copy strong{font-size:17px;font-weight:500;letter-spacing:-.3px}.card-copy>span{font-size:12px;color:var(--body)}.menu-trailing{color:#97806b}.menu-trailing svg{width:17px;height:17px}.free-badge{font-size:9px;letter-spacing:.1px;background:#eee8d8;color:#726544;border-radius:var(--radius-control);padding:5px 6px}.daily-card{border-color:#d4bf9c}.access-note{display:flex;align-items:flex-start;gap:7px;color:#948372;font-size:11px;line-height:1.6;margin:19px 5px 0}.access-note svg{width:13px;height:13px;margin-top:2px}footer{border-top:1px solid #dacbb760;max-width:1204px;margin:0 auto;padding:24px 36px;display:flex;align-items:center;justify-content:center;gap:14px;font-size:11px;color:#927f6e}.footer-dot{color:#b99870;font-size:10px}.prototype-label{margin-left:auto;color:#a28a78;font-size:10px}.daily-view{max-width:740px;min-height:700px;margin:0 auto;padding:22px 36px 56px}.back-button{border:0;background:transparent;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--body);padding:10px 0}.back-button svg{width:18px;height:18px}.daily-content{text-align:center;max-width:560px;margin:auto}.large-disc{display:grid;place-items:center;width:86px;height:86px;border-radius:50%;background:var(--disc);color:var(--gold);margin:20px auto}.large-disc svg{width:43px;height:43px}.daily-content .date-label{margin-bottom:28px}.daily-content h1{font-size:43px;line-height:1.15;max-width:480px;margin:0 auto 28px}.daily-content .eyebrow{margin-bottom:13px}.message-paper{text-align:left;background:linear-gradient(140deg,#fffefc,#fffbf4);border:1px solid #eee2d4;border-radius:var(--radius-control);padding:32px;box-shadow:0 7px 25px #6d431009;min-height:130px;position:relative}.message-paper:before{content:'“';font:55px Georgia;line-height:.5;color:#cbb797;position:absolute;left:29px;top:25px}.message-paper p{position:relative;font:21px/1.65 Georgia,serif;margin:14px 0 0;color:#5d4737}.tomorrow{font-size:12px;color:var(--body);margin:26px 0 20px}.primary-button,.secondary-button{width:100%;min-height:52px;border-radius:var(--radius-control);display:flex;align-items:center;justify-content:center;gap:10px;font-size:15px;padding:14px 20px;border:1px solid transparent}.primary-button{background:var(--accent);color:white;box-shadow:0 3px 8px #713e1712;transition:filter .2s}.primary-button:hover{filter:brightness(.94)}.primary-button svg{width:19px;height:19px}.secondary-button{background:transparent;border-color:var(--line);color:var(--ink)}.share-button{max-width:350px;margin:auto}.demo-note{font-size:10px;color:#9c8977;margin:18px 0}.modal{border:1px solid #e8dccb;background:#fffbf5;color:var(--ink);border-radius:var(--radius-control);padding:35px;width:min(440px,calc(100% - 30px));max-height:calc(100dvh - 36px);overflow:auto;box-shadow:0 25px 90px #3c281d30;text-align:center}.modal::backdrop{background:#392b2366;backdrop-filter:blur(4px)}.close-button{position:absolute;right:13px;top:13px;width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#9d8774}.close-button:hover{background:var(--disc)}.close-button svg{width:19px;height:19px}.large-disc.small{width:65px;height:65px;margin:10px auto 22px}.large-disc.small svg{width:32px;height:32px}.modal h2{font-size:35px;margin-bottom:17px}.modal>p{font-size:14px;line-height:1.7;color:var(--body);margin:0 0 22px}.modal label{display:block;text-align:left;font-size:12px;color:var(--body);margin:0 0 9px}.modal input{width:100%;height:52px;background:white;border:1px solid #dcccc0;border-radius:var(--radius-control);font:16px Arial;padding:0 15px;color:var(--ink);margin-bottom:15px}.modal-footnote{font-size:11px!important;line-height:1.6!important;color:#9b8774!important;margin:20px 0 0!important}.error-message{font-size:12px!important;color:#a43f34!important;background:#fbebe5;padding:12px;border-radius:var(--radius-control);margin:15px 0!important;line-height:1.6}.sent-card{background:var(--disc);padding:22px;border-radius:var(--radius-control);margin:20px 0}.sent-card>span{display:flex;justify-content:center;color:#6b7d53;margin-bottom:10px}.sent-card strong{font-size:17px}.sent-card p{font-size:13px;line-height:1.65;overflow-wrap:anywhere}details{font-size:13px;color:var(--body);margin:20px 0}summary{cursor:pointer;margin-bottom:18px}.appearance-modal{width:min(530px,calc(100% - 30px))}.appearance-modal h2{font-size:32px}.theme-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.theme-option{padding:12px 10px;border:1px solid var(--line);background:white;border-radius:var(--radius-control);display:flex;gap:9px;align-items:center;text-align:left;font-size:12px;min-height:45px}.theme-option[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.theme-option:first-child{grid-column:1/-1;justify-content:center}.theme-swatch{height:14px;width:14px;border-radius:50%;flex:none}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:30;background:#49382e;color:#fffaf1;padding:13px 22px;border-radius:var(--radius-control);box-shadow:0 5px 20px #0002;max-width:90vw;text-align:center;font-size:13px;line-height:1.5}.loading{opacity:.5;animation:breathe 1.4s infinite alternate}@keyframes breathe{to{opacity:.85}}@media(min-width:1450px){.site-header{padding-top:42px}.home-layout{min-height:740px}}@media(max-width:1000px){.home-layout{gap:35px;padding-inline:30px}h1{font-size:44px}.menu-card{padding:14px;gap:12px}.free-badge{display:none}.site-header{padding:23px 30px}}@media(max-width:720px){.site-header{padding:19px 22px}.brand{font-size:23px;gap:8px}.brand small{display:none}.brand-mark svg{width:23px;height:23px}.header-actions{gap:15px}.appearance-button>span:last-child{display:none}.appearance-button{padding:9px}.account-button{padding:9px 14px;font-size:12px}.account-button svg{width:16px;height:16px}.home-layout{display:block;min-height:0;max-width:470px;margin:auto;padding:8px 24px 30px}.date-label{font-size:12px}.cup-wrap{max-width:224px;margin:8px auto 0}.hero .eyebrow{display:none}h1{font-size:39px;letter-spacing:-1.4px;margin-bottom:12px}.hero-caption{font-size:13px;line-height:1.6}.hero-caption br{display:none}.hero-note{display:none}.choices{margin-top:25px}.choices-heading{margin:0 0 13px;text-align:center}.choices-heading .eyebrow,.choices-heading h2{display:none}.choices-heading p:not(.eyebrow){font-size:12px}.menu{gap:9px}.menu-card{min-height:78px;border-radius:var(--radius-control);padding:12px 14px;gap:14px}.icon-disc{width:46px;height:46px}.icon-disc svg{width:27px;height:27px}.card-copy strong{font-size:16px}.card-copy>span{font-size:11px}.free-badge{display:block;font-size:8px;padding:4px}.access-note{font-size:10px;margin-top:16px}footer{margin:0 24px;padding:19px 0 26px;flex-wrap:wrap;gap:8px;font-size:9px}.prototype-label{flex-basis:100%;text-align:center;margin:5px 0 0;font-size:9px}.daily-view{padding:8px 24px 35px;min-height:0}.daily-content h1{font-size:35px}.message-paper{padding:25px}.message-paper p{font-size:19px}.message-paper:before{left:22px}.large-disc{width:75px;height:75px}.daily-content .date-label{margin-bottom:25px}.modal{padding:28px 24px}.modal h2{font-size:31px}.modal>p{font-size:13px}}@media(max-width:370px){.home-layout{padding-inline:17px}.free-badge{display:none}.card-copy strong{font-size:15px}h1{font-size:35px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Inner ritual screens share the active seasonal palette. */
.flow-view{max-width:760px;padding:12px 32px 60px;margin:auto}.flow-heading{text-align:center;max-width:590px;margin:0 auto 25px}.flow-heading h1{font-size:42px;line-height:1.15}.flow-heading>p:not(.eyebrow){color:var(--body);line-height:1.7;font-size:15px}.test-pill{display:inline-block;font-size:11px;color:var(--accent-deep);border:1px solid var(--line);border-radius:var(--radius-control);padding:8px 14px;background:var(--card)}.flow-paper{padding:32px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--card);box-shadow:var(--shadow)}.flow-paper label{display:block;font-size:13px;color:var(--body);margin:16px 0 8px}.flow-paper select{width:100%;min-height:49px;border:1px solid var(--line);border-radius:var(--radius-control);padding:10px;background:var(--paper);color:var(--ink);font:16px Arial;margin-bottom:18px}.flow-paper select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.photo-tips{padding-left:22px;color:var(--body);font-size:14px;line-height:1.8;margin:0 0 20px}.flow-paper .upload-zone{border:1px dashed var(--accent);border-radius:var(--radius-control);background:var(--paper);text-align:center;padding:23px 16px;cursor:pointer;color:var(--ink);font-size:17px}.upload-zone small{display:block;font-size:11px;margin-top:8px;color:var(--body)}/* Keep the native picker operable while rendering only our themed upload card. */
.upload-zone{position:relative;isolation:isolate;overflow:hidden}.upload-zone input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer;z-index:1;font-size:16px}.upload-zone:focus-within{outline:3px solid var(--accent);outline-offset:4px}.upload-zone:hover{border-style:solid}.upload-icon{display:grid;place-items:center;margin:0 auto 12px;width:48px;height:48px;border-radius:50%;background:var(--disc);color:var(--gold)}.upload-icon svg{width:28px;height:28px}#photo-preview{width:100%;max-height:240px;object-fit:contain;border-radius:var(--radius-control);background:var(--paper)}.flow-caption{font-size:12px;line-height:1.7;color:var(--body)}.flow-paper>.primary-button{margin-top:20px}.people-grid{display:grid;grid-template-columns:1fr 24px 1fr;align-items:center;gap:12px}.people-grid fieldset{min-width:0;border:0;margin:0;padding:0}.people-grid legend{font:24px Georgia;color:var(--ink)}.pair-join{font:30px Georgia;color:var(--gold);text-align:center}.reading-prose{font:23px/1.7 Georgia;color:var(--ink)}.result-block{border-top:1px solid var(--line);padding:18px 0 0;margin-top:22px}.result-block h3{font-size:25px;letter-spacing:-.5px;margin:0 0 8px}.result-block p{font-size:15px;line-height:1.75;color:var(--body)}#flow-result h2{font-size:38px}#flow-result .text-button{display:flex;margin:auto}#number-value{font:45px Georgia}#number-input>p,#number-body{font-size:14px;line-height:1.7;color:var(--body)}#number-body{font-family:Georgia;font-size:20px}#number-calculation{font-size:13px;line-height:1.8;color:var(--body);overflow-wrap:anywhere}#guest-history{margin-top:12px}#number-dialog .modal-footnote{margin-bottom:18px!important}.modal{background:var(--card);border-color:var(--line)}.modal-footnote{color:var(--body)!important}.modal input{background:var(--paper);color:var(--ink);border-color:var(--line)}.flow-heading h1:focus{outline:0}
@media(max-width:720px){.flow-view{padding:8px 20px 35px}.flow-heading h1{font-size:34px}.flow-paper{padding:23px 20px;border-radius:var(--radius-control)}.flow-heading .large-disc{margin:15px auto}.flow-heading>p:not(.eyebrow){font-size:13px}.people-grid{gap:10px;grid-template-columns:1fr}.pair-join{font-size:23px}.people-grid legend{font-size:24px}.people-grid select{margin-bottom:5px}.reading-prose{font-size:21px}#flow-result h2{font-size:33px}.flow-paper .upload-zone{font-size:16px}}
.save-result-box{margin:24px 0;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-control)}.save-result-box .flow-caption{margin:0 0 12px}.save-result-box .text-button{margin-top:10px!important}#history-list .menu-card{line-height:1.6;font-size:14px;overflow-wrap:anywhere}
/* A warm cup and three quiet wisps of steam, shared by actual async requests. */
.ritual-loader{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:18px 12px;color:var(--accent-deep);text-align:center}.ritual-loader-art{display:block;width:104px;height:87px;overflow:visible}.ritual-loader-copy{font-size:13px;line-height:1.6;color:var(--body)}.loader-halo{fill:var(--disc);opacity:.6}.loader-cup{fill:var(--card);stroke:var(--accent-deep);stroke-width:2.3;stroke-linejoin:round}.loader-handle,.loader-saucer,.loader-rim{stroke:var(--accent-deep);stroke-width:2.3;stroke-linecap:round}.loader-rim{opacity:.35}.loader-steam path{stroke:var(--gold);stroke-width:2.1;stroke-linecap:round;animation:ritual-steam 2.4s ease-in-out infinite;transform-origin:center}.loader-steam path:nth-child(2){animation-delay:-.8s}.loader-steam path:nth-child(3){animation-delay:-1.6s}.loader-spark{fill:var(--gold);animation:ritual-glow 3s ease-in-out infinite;transform-origin:99px 31px}.message-paper:has(.ritual-loader:not([hidden])):before{display:none}.message-paper:has(.ritual-loader:not([hidden]))>#message-body{display:none}#history-dialog:has(.ritual-loader:not([hidden]))>#history-status{display:none}.save-result-box .ritual-loader{padding:8px}.save-result-box .ritual-loader-art{width:76px;height:64px}#number-dialog>.ritual-loader{padding:6px 0 16px}@keyframes ritual-steam{0%,100%{opacity:.35;transform:translateY(3px)}50%{opacity:.85;transform:translateY(-3px)}}@keyframes ritual-glow{0%,100%{opacity:.35;transform:scale(.88)}50%{opacity:.8;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.loader-steam path,.loader-spark{animation:none;transform:none;opacity:.7}}
.save-result-box:has(.ritual-loader:not([hidden]))>#flow-save-status{display:none}

/* CupSecret identity and profile settings */
.brand-mark{display:grid;place-items:center;width:40px;height:40px;background:var(--disc);border-radius:50%;flex:none}.brand-mark svg{width:31px;height:31px}
.profile-modal{text-align:left;width:min(480px,calc(100% - 30px))}.profile-modal>.large-disc,.profile-modal>.eyebrow,.profile-modal>h2,.profile-email{text-align:center}.profile-email{overflow-wrap:anywhere}.profile-row,.profile-setting summary{display:flex;align-items:center;gap:13px;width:100%;padding:17px 0;color:var(--ink);text-align:left}.profile-row{border:0;border-block:1px solid var(--line);background:none}.profile-row>span:nth-child(2),.profile-setting summary>span:last-child{flex:1}.profile-row strong,.profile-setting strong{display:block;font-size:14px;font-weight:500}.profile-row small,.profile-setting small{display:block;color:var(--body);font-size:12px;margin-top:5px}.profile-row svg,.profile-setting summary svg{width:22px;height:22px;color:var(--gold)}.profile-setting{margin:0;border-bottom:1px solid var(--line)}.profile-setting summary{list-style:none;margin:0;cursor:pointer}.profile-setting summary::-webkit-details-marker{display:none}.profile-setting summary:after{content:'+';font-size:20px;font-weight:300}.profile-setting[open] summary:after{content:'−'}.profile-setting p{font-size:12px;line-height:1.7;color:var(--body);margin:0 0 16px}.profile-setting .modal-footnote{margin:15px 0!important}.profile-setting select{width:100%;font:inherit;padding:13px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--card);color:var(--ink);margin-bottom:13px}.profile-signout{width:100%;margin-top:15px}.profile-modal>.modal-footnote{text-align:center}
@media(max-width:720px){.brand-mark{width:34px;height:34px}.brand-mark svg{width:27px;height:27px}}

/* Safari selects retain the shared form design. */
.flow-paper select,.profile-setting select{-webkit-appearance:none;appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2373665b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:16px}

/* Wide-screen workspace. The original mobile DOM and modal behavior are restored below 1001px. */
@media(min-width:1001px){
 main.desktop-workspace{max-width:1240px;display:grid;grid-template-columns:minmax(0, .85fr) minmax(0, 1.15fr);gap:64px;align-items:start;padding:25px 40px 60px;min-height:calc(100vh - 180px)}
 .desktop-workspace>.hero{grid-column:1;grid-row:1;position:sticky;top:40px;align-self:start;padding-top:38px}
 .desktop-workspace>.hero .cup-wrap{width:100%;max-width:360px}
 .desktop-workspace>.home-layout,.desktop-workspace>.flow-view,.desktop-workspace>.daily-view{grid-column:2;grid-row:1;min-width:0;width:100%;max-width:none;margin:0;padding:0;min-height:0}
 .desktop-workspace>.home-layout{display:block}.desktop-workspace .choices{margin:0}
 .desktop-workspace:has(#home-view[hidden])>.hero h1,.desktop-workspace:has(dialog[open])>.hero h1{display:none}
 .desktop-workspace:has(#home-view[hidden])>.hero .hero-caption,.desktop-workspace:has(dialog[open])>.hero .hero-caption{max-width:290px;margin:0 auto;font:22px/1.5 Georgia,serif}
 .desktop-workspace .flow-heading{margin:0 0 24px}.desktop-workspace .flow-heading h1{font-size:36px}.desktop-workspace .flow-heading .large-disc{width:58px;height:58px;margin:14px auto}.desktop-workspace .flow-heading .large-disc svg{width:29px;height:29px}
 .desktop-workspace .flow-heading>p:not(.eyebrow){font-size:14px}.desktop-workspace .flow-paper{padding:28px}.desktop-workspace .reading-prose{font-size:21px}
 .desktop-workspace .daily-content{width:100%;max-width:none}.desktop-workspace .daily-content h1{font-size:36px}
 .desktop-workspace>dialog[open]{position:relative;inset:auto;grid-column:2;grid-row:1;width:100%;max-width:none;max-height:none;margin:0;overflow:visible;box-shadow:var(--shadow);padding:36px;border-radius:var(--radius-control)}
 .desktop-workspace:has(dialog[open])>.home-layout,.desktop-workspace:has(dialog[open])>.flow-view,.desktop-workspace:has(dialog[open])>.daily-view{display:none}
 body:has(.desktop-workspace dialog[open]){overflow:auto}
 .desktop-workspace .people-grid{grid-template-columns:1fr;gap:8px}.desktop-workspace .pair-join{font-size:22px}
}
@media(min-width:1001px) and (max-height:750px){.desktop-workspace>.hero{position:static;padding-top:20px}.desktop-workspace>.hero .cup-wrap{max-width:300px}}

/* The same photographic cookie in the menu and the four-piece ritual. */
.cookie-menu-icon img{display:block;width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 2px 2px #653f2222)}
.fortune-cookie{display:block;width:min(310px,86%);aspect-ratio:1;margin:4px auto 20px;padding:0;border:0;background:none;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-appearance:none;appearance:none}
.fortune-cookie:disabled{opacity:1;cursor:default}.cookie-art{position:relative;display:block;width:100%;height:100%;filter:drop-shadow(0 12px 9px #653f221a)}
.cookie-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;opacity:0;transition:opacity .12s ease-in-out}
.fortune-cookie[data-stage="0"] .cookie-frame-1,.fortune-cookie[data-stage="1"] .cookie-frame-1,.fortune-cookie[data-stage="2"] .cookie-frame-2,.fortune-cookie[data-stage="3"] .cookie-frame-3,.fortune-cookie[data-stage="4"] .cookie-frame-4,.fortune-cookie[data-stage="5"] .cookie-frame-5{opacity:1}
.is-shaking .cookie-art{animation:cookie-shake .3s ease-out}
.cookie-status{font-size:13px;line-height:1.6;color:var(--body);min-height:42px;margin:4px 0 14px}.cookie-message{animation:cookie-note .6s ease-out;margin-top:12px}.cookie-message p{font-size:23px;line-height:1.45}.daily-content #another-cookie{display:flex;margin:12px auto 0}.daily-content:has(.fortune-cookie) .date-label{margin-bottom:18px}
@keyframes cookie-shake{0%,100%{transform:rotate(0)}20%{transform:translateX(-4px) rotate(-3deg)}45%{transform:translateX(4px) rotate(3deg)}70%{transform:translateX(-2px) rotate(-1deg)}}
@keyframes cookie-note{from{opacity:0;transform:translateY(-14px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:720px){.fortune-cookie{width:min(260px,86%)}.cookie-message p{font-size:21px}.cookie-menu-icon img{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){.cookie-art,.cookie-message{animation:none}.cookie-frame{transition:none}}

/* Daily ritual: the same quiet serif typography and scale as the cup column. */
#daily-view .daily-content{width:100%;max-width:440px;margin:0 auto}
#daily-view .daily-content .date-label{margin:0 0 20px;font-size:12px}
#daily-view .daily-content .eyebrow{margin:0 0 12px;font-size:10px;letter-spacing:2.2px}
#daily-view .daily-content h1{max-width:340px;margin:0 auto 14px;font:400 28px/1.3 Georgia,'Times New Roman',serif;letter-spacing:-.6px;color:var(--body);text-wrap:balance}
#daily-view .fortune-cookie{width:260px;max-width:85%;margin:0 auto 12px}
#daily-view .cookie-status{min-height:36px;margin:0 auto 18px;max-width:310px;font-size:12px;line-height:1.6;color:var(--body)}
#daily-view .cookie-message{width:100%;min-height:0;margin:0 auto;padding:24px 28px;border-radius:var(--radius-control);box-shadow:0 4px 18px #79542f06;text-align:center}
#daily-view .cookie-message:before{content:none}
#daily-view .cookie-message p{margin:0;font:400 21px/1.5 Georgia,'Times New Roman',serif;letter-spacing:-.2px;text-wrap:pretty}
#daily-view .share-button{display:flex;align-items:center;justify-content:center;gap:9px;width:auto;max-width:100%;min-height:44px;margin:18px auto 0;padding:11px 20px;background:transparent;color:var(--body);border:1px solid var(--line);border-radius:var(--radius-control);box-shadow:none;font-size:12px;font-weight:400}
#daily-view .share-button:hover{background:var(--disc);color:var(--ink)}
#daily-view .share-button svg{width:16px;height:16px}
#daily-view #another-cookie{min-height:44px;margin:6px auto 0;padding:10px 14px;font-size:12px}
#daily-view .demo-note{max-width:320px;margin:8px auto 0;font-size:10px;line-height:1.6;color:var(--body);opacity:.8}
#daily-view .back-button{min-height:44px;margin-bottom:4px}
@media(max-width:720px){
 #daily-view{padding:4px 22px 32px}
 #daily-view .daily-content{max-width:390px}
 #daily-view .back-button{margin-bottom:10px;font-size:12px}
 #daily-view .daily-content .date-label{margin-bottom:16px;font-size:11px}
 #daily-view .daily-content .eyebrow{margin-bottom:10px;font-size:9px;letter-spacing:2px}
 #daily-view .daily-content h1{max-width:290px;font-size:25px;line-height:1.3;margin-bottom:10px;letter-spacing:-.45px}
 #daily-view .fortune-cookie{width:220px;margin-bottom:8px}
 #daily-view .cookie-status{min-height:34px;margin-bottom:14px;font-size:12px}
 #daily-view .cookie-message{padding:20px 22px;border-radius:var(--radius-control)}
 #daily-view .cookie-message p{font-size:19px;line-height:1.5}
 #daily-view .share-button{margin-top:14px}
 #daily-view .demo-note{margin-top:6px}
}
@media(max-width:370px){#daily-view{padding-inline:18px}#daily-view .daily-content h1{font-size:23px}#daily-view .fortune-cookie{width:200px}#daily-view .cookie-message{padding:18px}#daily-view .cookie-message p{font-size:18px}}

/* Loading occupies the illustration slot, with one calm status caption. */
#daily-view .daily-content>.ritual-loader{min-height:326px;padding:24px 12px;margin:0 auto;color:var(--gold)}
#daily-view .ritual-loader-copy{max-width:310px;font-size:12px;line-height:1.6;color:var(--body)}
#daily-view .ritual-loader:not([hidden])+#cookie-status{display:none}
#daily-view #retry-message{min-height:44px;font-size:12px;color:var(--body)}
@media(max-width:720px){#daily-view .daily-content>.ritual-loader{min-height:276px}}
@media(max-width:370px){#daily-view .daily-content>.ritual-loader{min-height:256px}}

/* Desktop daily page fits the viewport naturally; never clip longer content. */
@media(min-width:1001px){
 .site-header{padding-top:16px;padding-bottom:16px}
 body:has(#daily-view:not([hidden])) main.desktop-workspace{padding-top:4px;padding-bottom:16px;min-height:0}
 body:has(#daily-view:not([hidden])) .desktop-workspace>.hero{position:static;padding-top:36px}
 body:has(#daily-view:not([hidden])) .desktop-workspace>.hero .cup-wrap{max-width:clamp(240px,36vh,320px)}
 body:has(#daily-view:not([hidden])) .desktop-workspace>.hero .hero-note{margin-top:18px}
 #daily-view .daily-content>.date-label{display:none}
 #daily-view .back-button{min-height:36px;padding:8px 0;margin-bottom:0}
 #daily-view .daily-content .eyebrow{margin-bottom:8px}
 #daily-view .daily-content h1{font-size:26px;line-height:1.25;margin-bottom:8px}
 #daily-view .fortune-cookie{width:clamp(170px,27vh,230px);margin-bottom:6px}
 #daily-view .cookie-status{min-height:20px;margin-bottom:12px}
 #daily-view .cookie-message{padding:16px 24px}
 #daily-view .cookie-message p{font-size:20px;line-height:1.45}
 #daily-view .daily-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 16px;margin-top:12px}
 #daily-view .daily-actions:has(>button[hidden]):not(:has(>button:not([hidden]))){display:none}
 #daily-view .daily-actions .share-button,#daily-view .daily-actions #another-cookie{margin:0;font-size:11px;padding:10px 14px}
 #daily-view .demo-note{max-width:none;margin-top:8px}
 #daily-view .daily-content>.ritual-loader{min-height:calc(clamp(170px,27vh,230px) + 38px)}
 body:has(#daily-view:not([hidden])) footer{padding-top:14px;padding-bottom:14px}
}
@media(min-width:1001px) and (max-height:720px){
 body:has(#daily-view:not([hidden])) .brand small{display:none}
 body:has(#daily-view:not([hidden])) .site-header{padding-top:10px;padding-bottom:10px}
 body:has(#daily-view:not([hidden])) .desktop-workspace>.hero .hero-caption{font-size:20px;line-height:1.4}
 #daily-view .daily-content h1{font-size:24px}
 #daily-view .cookie-message p{font-size:19px}
 #daily-view .cookie-message{padding:12px 20px}
}

/* Camera and gallery share the same native, keyboard-accessible upload treatment. */
.photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.flow-paper .photo-actions .upload-zone{min-width:0;margin:0;padding:16px 10px;font-size:14px;border-radius:var(--radius-control)}
.photo-actions .upload-icon{width:38px;height:38px;margin-bottom:9px}
.photo-actions .upload-icon svg{width:23px;height:23px}
.photo-actions .upload-zone small{font-size:10px;line-height:1.5}
@media(min-width:1001px){.desktop-workspace .flow-heading{margin-bottom:18px}.desktop-workspace .flow-heading h1{font-size:30px;margin-bottom:12px}.desktop-workspace .flow-paper{padding:24px}.desktop-workspace .photo-tips{font-size:13px;margin-bottom:16px}.desktop-workspace #photo-preview{max-height:200px}}
@media(max-width:370px){.photo-actions{gap:8px}.flow-paper .photo-actions .upload-zone{padding:14px 8px;font-size:13px}}

/* Footer stays at the viewport bottom without overlaying page content. */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>.site-header{width:100%;flex-shrink:0}
body>main{width:100%;margin-block:0;flex-shrink:0}
body>footer{width:calc(100% - 48px);margin-top:auto;flex-shrink:0}

/* Reading workspace: quiet editorial composition instead of a technical form. */
:is(#flow-view,#daily-view) .flow-heading{max-width:440px;margin:0 auto 20px}
:is(#flow-view,#daily-view) .flow-heading .large-disc{width:48px;height:48px;margin:6px auto 12px;background:transparent}
:is(#flow-view,#daily-view) .flow-heading .large-disc svg{width:30px;height:30px}
:is(#flow-view,#daily-view) .flow-heading .eyebrow{font-size:9px;letter-spacing:2px;margin:0 0 10px}
:is(#flow-view,#daily-view) .flow-heading h1{font:400 28px/1.25 Georgia,'Times New Roman',serif;letter-spacing:-.6px;color:var(--body);margin-bottom:10px}
:is(#flow-view,#daily-view) .flow-heading>p:not(.eyebrow){font-size:13px;line-height:1.6;margin:0 auto;max-width:350px}
#flow-view .flow-paper{max-width:460px;margin:0 auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#flow-view .photo-tips{list-style:none;padding:0;margin:0 auto 18px;text-align:center;font-size:12px;line-height:1.7;color:var(--body)}
#flow-view .photo-actions{gap:12px;margin-bottom:12px}
#flow-view .photo-actions .upload-zone{border:1px solid var(--line);background:var(--card);padding:16px 10px;border-radius:var(--radius-control);font-size:14px;transition:border-color .18s,background .18s}
#flow-view .photo-actions .upload-zone:hover{border-color:var(--gold);background:var(--disc)}
#flow-view .photo-actions .upload-icon{background:transparent;margin-bottom:6px}
#flow-view .photo-actions small{font-size:10px}
#flow-view #camera-note{max-width:145px;margin:8px auto 0;line-height:1.4}
#flow-view #photo-fields>.flow-caption{font-size:11px;text-align:center;line-height:1.6;margin:10px 0 18px}
#flow-view .sample-choice{border-top:1px solid var(--line);padding-top:16px;margin-top:4px}
#flow-view .sample-choice label{font:19px/1.4 Georgia,'Times New Roman',serif;color:var(--body);margin:0 0 4px}
#flow-view .sample-choice .flow-caption{font-size:11px;line-height:1.6;margin:0 0 10px}
#flow-view .sample-choice select{background:var(--card);min-height:44px;font-size:14px;margin-bottom:0;padding:10px 12px}
#flow-view #flow-submit{display:block;width:auto;min-width:220px;max-width:100%;min-height:44px;margin:18px auto 0;padding:12px 24px;border-radius:var(--radius-control);font-size:13px;font-weight:400}
#flow-view #flow-submit+.flow-caption{text-align:center;font-size:10px;margin:12px 0 0}
#flow-view #flow-result{padding:22px 24px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-control)}
#flow-view #flow-result h2{font-size:27px;line-height:1.3;letter-spacing:-.5px}
#flow-view .reading-prose{font-size:21px;line-height:1.55}
@media(max-width:720px){:is(#flow-view,#daily-view) .flow-heading h1{font-size:26px}:is(#flow-view,#daily-view) .flow-heading{margin-bottom:16px}#flow-view .photo-tips{font-size:12px;margin-bottom:14px}#flow-view .photo-actions .upload-zone{padding:14px 8px}#flow-view .flow-paper{max-width:390px}#flow-view #flow-result{padding:20px}#flow-view .reading-prose{font-size:19px}}

.social-card-dialog{width:min(460px,calc(100% - 32px));max-height:90dvh;overflow:auto;padding:28px}
.social-card-dialog h2{font-size:26px;letter-spacing:-.5px}.social-card-dialog #social-card-status{font-size:12px;margin:10px 0 16px}
#social-card-preview{display:block;width:auto;max-width:100%;height:auto;max-height:52dvh;margin:auto;border-radius:var(--radius-control)}
.social-card-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:18px}.social-card-actions button{width:auto;min-height:44px;padding:11px 18px;font-size:13px}
#daily-view #share-card{min-height:44px;margin:0;padding:10px 14px;font-size:11px}
.desktop-workspace>#social-card-dialog[open]{max-width:460px;justify-self:center;padding:24px}

/* Two people, equal visual weight; stack only when the available width is small. */
#flow-view[data-section="compatibility"] .flow-paper{max-width:500px}
#flow-view .people-grid{grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);gap:12px;align-items:start}
#flow-view .people-grid fieldset{padding:16px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--card)}
#flow-view .people-grid legend{float:left;width:100%;padding:0;margin:0 0 8px;font:21px/1.3 Georgia,serif;color:var(--body);letter-spacing:-.3px}
#flow-view .people-grid label{clear:both;font-size:11px;margin:12px 0 6px}
#flow-view .people-grid select{min-height:44px;font-size:16px;margin:0;padding:9px 10px;background:var(--paper)}
#flow-view .pair-join{font:22px Georgia,serif;color:var(--gold);padding-top:100px}
#pair-form>.flow-caption{font-size:11px;line-height:1.6;text-align:center;margin:14px auto 0;max-width:380px}
#number-dialog{padding:24px;max-width:460px}
#number-dialog .back-button{margin:0 0 12px;min-height:44px;font-size:12px}
#number-dialog .large-disc.small{width:48px;height:48px;background:transparent;margin:0 auto 12px}
#number-dialog .large-disc.small svg{width:30px;height:30px}
#number-dialog .eyebrow{font-size:9px;letter-spacing:2px;margin:0 0 10px}
#number-dialog h2{font:400 28px/1.25 Georgia,'Times New Roman',serif;letter-spacing:-.6px;color:var(--body);margin:0 auto 14px}
#number-input>p:not(.eyebrow){font-size:13px;line-height:1.7;max-width:350px;margin:0 auto 22px;color:var(--body)}
#number-dialog #birth-form{max-width:360px;margin:0 auto}
#number-dialog label{font-size:12px;margin-bottom:8px}
#number-dialog input{min-width:0;max-width:100%;height:46px;margin-bottom:0;background:var(--card);border-color:var(--line)}
#number-dialog .modal-footnote{font-size:11px!important;line-height:1.6!important;margin:12px 0 18px!important}
#number-dialog .primary-button{display:block;width:auto;min-width:200px;max-width:100%;margin:16px auto 0;padding:12px 22px;min-height:44px;border-radius:var(--radius-control);font-size:13px;font-weight:400}
#number-dialog #number-body{font:20px/1.55 Georgia,serif;color:var(--body)}
#number-dialog #number-calculation{font-size:12px;line-height:1.6;color:var(--body)}
#number-dialog .sent-card{padding:18px;border-radius:var(--radius-control);margin:18px 0;background:var(--card);border:1px solid var(--line)}
#number-dialog .sent-card strong{font:19px/1.4 Georgia,serif;color:var(--body)}
#number-dialog .sent-card p{font-size:13px;line-height:1.6}
@media(min-width:1001px){.desktop-workspace>#number-dialog[open]{width:100%;max-width:460px;justify-self:center;padding:0 12px 24px;background:transparent;border:0;border-radius:0;box-shadow:none}}
@media(max-width:600px){#flow-view .people-grid{grid-template-columns:1fr;gap:10px}#flow-view .people-grid fieldset{padding:14px 16px}#flow-view .pair-join{padding:0;font-size:19px;line-height:1}#flow-view .people-grid legend{font-size:20px}#number-dialog{padding:20px}#number-dialog h2{font-size:25px}#number-dialog #number-body{font-size:19px}}

.social-card-sender{display:block;text-align:left;max-width:420px;margin:20px auto 12px;font-size:14px}.social-card-sender span{opacity:.65}.social-card-sender input{display:block;width:100%;margin-top:8px}.social-card-actions{flex-wrap:wrap}

/* Quiet, shared action row on desktop and phone. */
#daily-view .daily-actions{display:flex;align-items:center;justify-content:center;gap:0;margin-top:14px;flex-wrap:nowrap}
#daily-view .daily-actions #another-cookie,#daily-view .daily-actions #share-card,#daily-view .daily-actions #share-message{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:8px 12px;width:auto;font-size:12px;line-height:1.3;background:none;border:0;border-radius:0;box-shadow:none;color:var(--body)}
#daily-view .daily-actions>button+button{position:relative}
#daily-view .daily-actions>button+button::before{content:"";position:absolute;left:0;top:calc(50% - 7px);height:14px;border-left:1px solid currentColor;opacity:.25}
#daily-view .daily-actions #share-message{min-width:44px;flex-shrink:0}
#daily-view .daily-actions button:hover{color:var(--ink)}
#daily-view .daily-actions>button[hidden]{display:none}
@media(max-width:380px){#daily-view .daily-actions #another-cookie,#daily-view .daily-actions #share-card{padding-inline:8px;font-size:11px}}

/* Share editor follows the same calm proportions as the reading forms. */
#social-card-dialog{padding:24px;max-width:440px;color:var(--body)}
#social-card-dialog h2{font:400 27px/1.3 Georgia,serif;color:var(--body);letter-spacing:-.5px;margin:0 28px 20px}
.social-card-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;max-width:380px;margin:0 auto}
#social-card-dialog .social-card-sender{margin:0;max-width:none;font-size:11px;line-height:1.4}
#social-card-dialog .social-card-sender input{height:44px;min-height:44px;margin:7px 0 0;padding:10px 12px;font-size:16px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-control)}
#social-card-dialog #social-card-update{width:auto;min-height:44px;margin:0;padding:10px 15px;border-radius:var(--radius-control);font-size:12px;color:var(--body);border-color:var(--line);box-shadow:none}
#social-card-dialog #social-card-status{font-size:10px;line-height:1.5;margin:10px 0 14px;min-height:15px}
#social-card-dialog #social-card-preview{max-height:40dvh;max-width:100%;border-radius:var(--radius-control)}
#social-card-dialog .social-card-actions{gap:4px 10px;margin:16px auto 0;max-width:380px}
#social-card-dialog .social-card-actions button{min-height:44px;padding:10px 15px;font-size:12px;border-radius:var(--radius-control);font-weight:400;box-shadow:none}
#social-card-dialog .social-card-actions .text-button{font-size:11px;padding:8px 12px}
@media(min-width:1001px){
 .desktop-workspace>#social-card-dialog[open]{width:100%;max-width:440px;padding:12px 20px 24px;background:transparent;border:0;border-radius:0;box-shadow:none;max-height:none;overflow:visible}
 #social-card-dialog .close-button{top:6px;right:6px}
}
@media(max-width:600px){#social-card-dialog{padding:22px 18px}#social-card-dialog h2{font-size:24px;margin-bottom:18px}#social-card-dialog #social-card-preview{max-height:38dvh}}
#daily-view .daily-actions #share-message{width:44px;min-width:44px;height:44px;min-height:44px;border-radius:0;border:0;background:none;padding:12px;margin-left:0}
#daily-view .daily-actions #share-message::before{display:block}
#daily-view .daily-actions #share-message svg{width:18px;height:18px;stroke-linecap:round;stroke-linejoin:round}

.dialog-focus-heading:focus{outline:none}
#number-dialog .birth-date-fields{display:grid;grid-template-columns:64px minmax(0,1fr) 86px;gap:10px;border:0;padding:0;margin:0;min-width:0;text-align:left}
#number-dialog .birth-date-fields legend{font-size:12px;margin-bottom:12px;color:var(--body)}
#number-dialog .birth-date-fields label{font-size:11px;margin:0;min-width:0}
#number-dialog .birth-date-fields input,#number-dialog .birth-date-fields select{display:block;width:100%;min-width:0;height:46px;margin:7px 0 0;padding:10px;font-size:16px;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:var(--radius-control)}

/* One return control across all reading screens. */
#daily-view .back-button,#flow-view .back-button,#number-dialog .back-button{
 display:flex;align-items:center;justify-content:flex-start;align-self:flex-start;
 width:max-content;min-height:44px;margin:0 0 12px;padding:10px 0;
 border:0;border-radius:0;background:transparent;box-shadow:none;
 color:var(--body);font:400 13px/1.4 Arial,Helvetica,sans-serif;text-align:left;
}

/* Shared soft geometry; text links and unframed desktop forms stay unframed. */
.modal,.menu-card,.message-paper,.sent-card,.save-result-box,
#daily-view .cookie-message,#flow-view #flow-result,#flow-view .people-grid fieldset,
#number-dialog .sent-card,.desktop-workspace>dialog[open]{border-radius:var(--radius-surface)}
@media(min-width:1001px){.desktop-workspace>#number-dialog[open],.desktop-workspace>#social-card-dialog[open]{border-radius:0}}

#number-dialog .birth-date-control{position:relative;display:flex;align-items:center;width:100%}
#number-dialog .birth-date-control>span{position:absolute;left:15px;color:var(--gold);pointer-events:none;display:flex}
#number-dialog .birth-date-control svg{width:20px;height:20px;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#number-dialog .birth-date-control input{height:48px;padding:10px 14px 10px 47px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-control);font:16px Arial,sans-serif;color:var(--ink);letter-spacing:.5px}
#number-dialog .birth-date-hint{font:11px/1.5 Arial,sans-serif;color:var(--body);text-align:left;margin:8px 0 0}
