@charset "UTF-8";
:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#F5F0ED;background:#252A43;font-synthesis:none;--serif:"Songti SC","STSong","Noto Serif CJK SC",serif;--ink:#F5F0ED;--muted:#B8B9CD;--accent:#D7BEDF;--line:rgba(255,255,255,.18)}
*{box-sizing:border-box}body{margin:0;min-height:100svh;display:flex;align-items:center;justify-content:center;gap:72px;padding:32px 40px;overflow-x:hidden}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}a{color:inherit;text-decoration:none}button{color:inherit}button:active{transform:scale(.97)}[hidden]{display:none!important}.desktop-grain{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 25% 50%,#191D32 0,transparent 65%),radial-gradient(ellipse at 85% 25%,#252A43,transparent 60%);z-index:-1}.editorial{width:370px;color:#F5F0ED;align-self:stretch;max-height:850px;min-height:650px;display:flex;flex-direction:column;justify-content:space-between;padding:24px 0}.wordmark{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:600;letter-spacing:4px}.brand-spark{font-size:33px;color:#B8B9CD}.wordmark-en{font-size:9px;letter-spacing:3px;margin:6px 0 0 5px;color:#B8B9CD;font-weight:400}.eyebrow{font-size:9px;letter-spacing:3px;color:#B8B9CD;margin:0 0 28px}.editorial h1{font-family:var(--serif);font-size:47px;font-weight:400;line-height:1.6;letter-spacing:2px;margin:0 0 24px}.editorial-copy{font-size:13px;line-height:2.2;color:#B8B9CD}.editorial-line{width:35px;height:1px;background:#252A43;margin:32px 0 20px}.edition{font-size:11px;color:#B8B9CD;letter-spacing:1px}.edition span{font-size:8px;margin-left:25px;letter-spacing:2px;color:#B8B9CD}.desktop-bottom{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:10px;color:#B8B9CD;letter-spacing:1px}.tiny-star{font-size:22px}.demo-tag{padding:5px 7px;border:1px solid #44475F;border-radius:4px;font-size:8px}
.app{position:relative;isolation:isolate;width:414px;height:min(880px,calc(100svh - 64px));min-height:650px;flex-shrink:0;background:#191D32;border:1px solid rgba(255,255,255,.4);border-radius:30px;box-shadow:0 30px 90px #44344930,0 5px 15px #44344916;overflow:hidden;display:flex;flex-direction:column;transition:background .7s,color .5s;color:var(--ink)}.app:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 92% 42%,#252A43,transparent 50%),radial-gradient(ellipse at 0% 96%,#252A43,transparent 50%);z-index:-1;pointer-events:none}.grain{position:absolute;inset:0;opacity:.055;pointer-events:none;z-index:10;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.75' d='M0 0h150v150H0z'/%3E%3C/svg%3E")}.app-header{height:65px;flex-shrink:0;padding:16px 24px 8px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:11}.app-brand{font-size:14px;letter-spacing:2px;display:flex;align-items:center;gap:6px}.app-brand span{font-size:23px;color:var(--accent)}.header-title{font-size:10px;color:var(--muted);letter-spacing:2px}.icon-button{border:0;background:none;display:grid;place-items:center;min-width:40px;min-height:40px;font-size:25px;padding:6px}.menu-icon{width:16px;height:7px;border-top:1px solid var(--muted);border-bottom:1px solid var(--muted);display:block}.progress{height:3px;margin:3px 28px 0;display:flex;gap:4px;flex-shrink:0}.progress button{height:3px;flex:1;border:0;background:var(--line);padding:0;position:relative;border-radius:4px}.progress button:before{content:"";position:absolute;inset:-9px 0}.progress button.complete{background:var(--accent)}.progress button.active{background:var(--ink)}.scene-host{flex:1;min-height:0;position:relative;overflow:hidden}.scene{height:100%;padding:34px 30px 12px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;animation:arrive .55s ease both;display:flex;flex-direction:column;position:relative}.scene::-webkit-scrollbar{display:none}.eyeline{font-size:9px;letter-spacing:3px;text-transform:uppercase;color:var(--muted);display:flex;align-items:center;gap:10px;margin:0 0 14px}.eyeline:before{content:"";width:17px;height:1px;background:var(--accent)}.scene h2{font-family:var(--serif);font-size:32px;line-height:1.5;letter-spacing:2px;font-weight:400;margin:0}.scene h2 em{font-style:normal;color:var(--accent)}.description{font-size:12px;line-height:1.95;color:var(--muted);margin:13px 0 0;letter-spacing:.6px}.micro{font-size:9px;color:var(--muted);line-height:1.8;letter-spacing:1px}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid var(--line);border-radius:20px;font-size:9px;letter-spacing:1px;align-self:flex-start}.pill .dot{width:4px;height:4px;background:var(--accent);border-radius:50%}.primary{border:1px solid #44475F;background:#252A43;color:#F5F0ED;min-height:49px;border-radius:7px;font-size:12px;letter-spacing:2px;display:flex;align-items:center;justify-content:space-between;padding:0 19px;flex-shrink:0;width:100%;transition:filter .2s}.primary:hover{filter:brightness(1.06)}.primary .arrow{font-size:23px}.text-button{background:none;border:0;border-bottom:1px solid var(--line);padding:8px 0;font-size:11px;letter-spacing:1px;align-self:flex-start;display:flex;gap:18px;align-items:center}.text-button:hover{color:var(--accent)}.text-button span{font-size:17px}.actions{margin-top:auto;padding-top:18px}.quote{margin:18px 0 0;padding:13px 0 13px 17px;border-left:1px solid var(--accent);font-family:var(--serif);font-size:15px;line-height:1.9;letter-spacing:.5px}.quote small{display:block;font-family:system-ui;font-size:9px;color:var(--muted);margin-top:9px;letter-spacing:1px}.app-footer{padding:12px 28px 22px;flex-shrink:0;z-index:11}.footer-context{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:var(--muted);border-top:1px solid var(--line);padding-top:13px}.footer-controls{display:flex;justify-content:space-between;align-items:center;margin-top:9px}.nav-prev,.nav-next{border:1px solid var(--line);width:36px;height:36px;border-radius:50%;background:transparent;font-size:19px;display:grid;place-items:center}.nav-next{background:var(--ink);color:#F5F0ED;border-color:transparent}.nav-prev:disabled{opacity:.22}.swipe-hint{font-size:9px;letter-spacing:2px;color:var(--muted)}.desktop-index{width:30px;align-self:center;display:flex;align-items:center;flex-direction:column;color:#B8B9CD;gap:8px}.index-line{width:1px;height:68px;background:#252A43;margin-bottom:18px}#side-number{font-family:var(--serif);font-size:25px}.index-total{font-size:10px}.vertical-text{writing-mode:vertical-rl;font-size:11px;letter-spacing:4px;margin-top:30px}
/* Opening: paper, light, and a quiet orbit. */
.scene-cover{padding-top:25px}.scene-cover .eyeline{font-size:8px;letter-spacing:2.5px}.scene-cover h2{font-size:48px;line-height:1.38;position:relative;z-index:2;letter-spacing:3px;margin-top:2px}.scene-cover h2 em{color:#B8B9CD}.hero-art{position:relative;height:250px;min-height:190px;margin:-10px -30px -4px;flex:1;max-height:290px}.hero-glow{position:absolute;width:245px;height:245px;border-radius:50%;left:calc(50% - 105px);top:6px;background:radial-gradient(circle at 35% 36%,#252A43,#252A43 40%,#252A43 60%,transparent 70%);filter:blur(7px)}.orbit{position:absolute;width:315px;height:165px;border:1px solid #44475F;border-radius:50%;top:50px;left:calc(50% - 158px);transform:rotate(-24deg)}.orbit:after{content:"✦";color:#B8B9CD;position:absolute;top:10px;right:31px;font-size:18px;text-shadow:0 0 17px #f7ca85}.memory-paper{position:absolute;width:156px;height:185px;left:calc(50% - 70px);top:28px;background:linear-gradient(120deg,#252A43,#252A43);transform:rotate(-12deg);border:1px solid #44475F;border-radius:3px;box-shadow:9px 15px 32px #130c2940;padding:15px;color:#F5F0ED;animation:float 8s ease-in-out infinite}.memory-paper:before{content:"";position:absolute;inset:6px;border:1px solid #44475F}.paper-label{font-size:7px;letter-spacing:2px}.paper-title{font-family:var(--serif);font-size:23px;line-height:1.5;margin-top:13px;letter-spacing:3px}.paper-bottom{font-size:7px;letter-spacing:1px;position:absolute;bottom:16px}.paper-flower{position:absolute;width:75px;height:75px;right:0;bottom:11px;opacity:.7}.floating-note{position:absolute;padding:11px 14px;background:#252A43;border:1px solid #44475F;border-radius:4px;backdrop-filter:blur(5px);font-family:var(--serif);font-size:11px;line-height:1.8;letter-spacing:1px;box-shadow:0 10px 20px #120c2015}.note-a{left:18px;bottom:27px;transform:rotate(-8deg)}.note-b{right:16px;top:53px;transform:rotate(9deg)}.hero-caption{display:flex;align-items:center;gap:9px;margin:7px 0 15px}.tiny-avatar{width:23px;height:23px;border-radius:50%;background:#252A43;border:1px solid #44475F;display:grid;place-items:center;font-family:var(--serif);font-size:11px}.hero-caption span:last-child{font-size:10px;letter-spacing:1px;color:var(--muted)}.demo-line{font-size:8px;letter-spacing:1px;color:var(--muted);text-align:center;margin:9px 0 0;opacity:.8}
/* Chapter-specific compositions. */
.big-number{font-family:Georgia,serif;font-size:126px;font-weight:400;line-height:1.12;letter-spacing:-6px;margin:32px 0 0;color:var(--accent)}.big-number small{font-family:var(--serif);font-size:22px;letter-spacing:4px;margin-left:12px;color:var(--ink)}.stat-line{height:1px;background:linear-gradient(90deg,var(--accent),transparent);margin:19px 0 5px}.bubble-field{height:145px;position:relative;margin-top:23px;flex:1;min-height:100px}.little-bubble{position:absolute;border:1px solid var(--line);border-radius:16px 16px 16px 2px;padding:9px 14px;font-size:11px;color:var(--muted);background:#191D32}.little-bubble:nth-child(1){top:4px;left:4px;transform:rotate(-5deg)}.little-bubble:nth-child(2){top:48px;right:6px;transform:rotate(5deg);border-radius:16px 16px 2px 16px}.little-bubble:nth-child(3){top:99px;left:30px;transform:rotate(-3deg)}.art{width:100%;display:block;max-height:225px;margin:14px 0 0;overflow:visible}.art-camera{filter:drop-shadow(0 14px 13px #362c2530);margin-top:22px}.art-noodle{margin:8px -5px -3px;width:calc(100% + 10px)}.caption-label{font-size:8px;letter-spacing:3px;text-align:center;color:var(--muted);margin-top:4px}.stamp{display:inline-block;border:1px solid currentColor;padding:4px 8px;font-size:9px;letter-spacing:2px;transform:rotate(-6deg);color:var(--accent);margin-top:14px;align-self:flex-start}.theme-light{--ink:#F5F0ED;--muted:#B8B9CD;--accent:#D7BEDF;--line:#44475F;background:#252A43}.theme-light:before{background:radial-gradient(ellipse at 88% 34%,#252A43,transparent 65%)}.theme-light .primary{background:#191D32;color:#F5F0ED;border-color:#44475F}.theme-light .nav-next{color:#F5F0ED}.theme-coffee{--ink:#F5F0ED;--muted:#B8B9CD;--accent:#D7BEDF;--line:#44475F;background:#252A43}.theme-coffee:before{background:radial-gradient(ellipse at 10% 40%,#191D32,transparent 70%)}.theme-coffee .primary{background:#191D32;color:#F5F0ED;border-color:transparent}.theme-coffee .nav-next{color:#F5F0ED}.theme-flower{--ink:#F5F0ED;--muted:#B8B9CD;--accent:#D7BEDF;--line:#44475F;background:#252A43}.theme-flower:before{background:radial-gradient(ellipse at 75% 50%,#252A43,transparent 60%)}.theme-flower .primary{background:#191D32;color:#F5F0ED;border-color:transparent}.theme-flower .nav-next{color:#F5F0ED}.theme-night{--ink:#F5F0ED;--muted:#B8B9CD;--accent:#D7BEDF;--line:#44475F;background:#191D32}.theme-night:before{background:radial-gradient(ellipse at 65% 44%,#252A43,transparent 60%)}.theme-rose{--ink:#F5F0ED;--muted:#B8B9CD;--accent:#D7BEDF;--line:#44475F;background:#191D32}.theme-rose:before{background:radial-gradient(ellipse at 70% 30%,#252A43,transparent 55%)}
.topic-collage{position:relative;min-height:295px;flex:1;margin:20px -8px 0}.topic-card{position:absolute;width:128px;height:142px;border:1px solid #44475F;border-radius:3px;padding:14px;box-shadow:0 12px 22px #251d2a20;cursor:pointer;text-align:left;transition:transform .3s}.topic-card:hover{transform:rotate(0deg) translateY(-5px)!important}.topic-card small{font-size:8px;letter-spacing:2px;opacity:.6;display:block}.topic-card strong{font-family:var(--serif);font-size:26px;font-weight:400;letter-spacing:3px}.topic-card b{display:block;font-family:Georgia,serif;font-size:49px;font-weight:400;opacity:.45;margin-top:5px}.topic-card:nth-child(1){background:#252A43;color:#F5F0ED;left:14px;top:1px;transform:rotate(-9deg)}.topic-card:nth-child(2){background:#252A43;color:#F5F0ED;right:8px;top:29px;transform:rotate(10deg)}.topic-card:nth-child(3){background:#252A43;color:#F5F0ED;left:35px;top:147px;transform:rotate(6deg)}.topic-card:nth-child(4){background:#252A43;color:#F5F0ED;right:3px;top:186px;transform:rotate(-7deg);height:104px}.lamp-art{position:relative;height:235px;min-height:170px;flex:1;margin:8px 0 -6px}.lamp-light{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 61%,#252A43,transparent 60%);animation:breathe 5s ease-in-out infinite}.lamp-shade{width:100px;height:70px;position:absolute;left:calc(50% - 50px);top:56px;clip-path:polygon(24% 0,76% 0,100% 100%,0 100%);background:linear-gradient(90deg,#252A43,#252A43 45%,#252A43);filter:drop-shadow(0 0 15px #ffda9a)}.lamp-stem{position:absolute;width:4px;height:70px;background:#252A43;left:calc(50% - 2px);top:126px}.lamp-foot{position:absolute;width:66px;height:9px;border-radius:50%;background:#252A43;left:calc(50% - 33px);top:193px;box-shadow:0 13px 25px #030613}.lamp-spark{position:absolute;color:#B8B9CD;font-size:16px;left:75%;top:80px}.lamp-text{font-family:var(--serif);font-size:23px;line-height:1.8;letter-spacing:2px;text-align:center;margin:2px 0 13px}.coffee-pair{display:flex;align-items:center;justify-content:center;gap:19px;margin:35px 0 26px}.coffee-item{text-align:center;flex:1}.cup{width:100px;height:100px;position:relative;border-radius:50%;border:11px solid #44475F;background:#191D32;box-shadow:0 6px 0 #c0a38b,0 12px 20px #79583a20;margin:0 auto 18px}.cup:after{content:"";position:absolute;right:-27px;top:19px;width:20px;height:35px;border:8px solid #44475F;border-left:0;border-radius:0 14px 14px 0}.cup.latte{background:radial-gradient(ellipse at 48% 48%,#252A43 0 5%,#252A43 6% 9%,#252A43 10% 14%,#252A43 15% 18%,#252A43 19% 26%,#252A43 27% 34%,#252A43 35% 38%,#252A43 39%);transform:rotate(-20deg)}.coffee-item small{display:block;font-size:8px;letter-spacing:2px;color:var(--muted);margin-bottom:5px}.coffee-item strong{font-family:var(--serif);font-size:20px;font-weight:400}.coffee-arrow{font-size:21px;opacity:.5;margin-top:-40px}.change-line{padding:16px;border-top:1px solid var(--line);font-size:12px;line-height:1.9}.change-line small{display:block;font-size:8px;letter-spacing:2px;color:var(--muted);margin-bottom:5px}.current-preference{border-radius:5px;background:#191D32;padding:15px 17px;display:flex;justify-content:space-between;align-items:center;font-size:11px;margin-top:10px}.current-preference strong{font-family:var(--serif);font-size:20px;font-weight:400}.flower-art{height:190px;margin:0;max-height:210px;flex-shrink:1}.flower-quote{text-align:center;font-family:var(--serif);font-size:30px;margin:12px 0 5px;letter-spacing:3px}.turn-copy{font-size:13px;line-height:1.9;text-align:center;color:var(--muted);margin:12px 0 0}.timeline{margin-top:25px;position:relative;padding-left:23px}.timeline:before{content:"";position:absolute;left:4px;top:12px;bottom:16px;width:1px;background:var(--line)}.timeline-entry{position:relative;margin-bottom:23px}.timeline-entry:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent);position:absolute;left:-22px;top:4px;box-shadow:0 0 0 5px #ffffff08}.timeline-entry small{font-size:9px;letter-spacing:3px;color:var(--muted)}.timeline-entry p{font-family:var(--serif);font-size:18px;line-height:1.9;margin:10px 0 0}.status-card{padding:14px 16px;border:1px solid var(--line);border-radius:6px;display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-top:1px}.status-card span{color:var(--muted);font-size:10px}.future-cards{display:grid;gap:17px;margin-top:27px}.future-card{background:linear-gradient(130deg,#252A43,#191D32);border:1px solid var(--line);padding:19px 20px;border-radius:5px;position:relative;overflow:hidden}.future-card:after{position:absolute;right:15px;top:12px;font-family:Georgia,serif;font-size:60px;color:#B8B9CD;content:"♪"}.future-card:nth-child(2):after{content:"≈";font-size:76px}.future-card small{font-size:9px;color:var(--accent);letter-spacing:2px}.future-card h3{font-family:var(--serif);font-weight:400;font-size:23px;margin:12px 0 7px;letter-spacing:2px}.future-card p{font-size:11px;line-height:1.8;color:var(--muted);margin:0}.future-card button{background:none;border:0;color:var(--accent);font-size:9px;margin:15px 0 0;padding:0}.future-note{font-size:10px;line-height:1.9;letter-spacing:.5px;color:var(--muted);margin-top:20px}.memory-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:24px 0 16px}.grid-card{min-height:134px;border:1px solid var(--line);border-radius:5px;padding:14px;background:#191D32;text-align:left;display:flex;flex-direction:column;position:relative;color:var(--ink)}.grid-card:nth-child(2){background:#252A43}.grid-card:nth-child(3){background:#252A43}.grid-card:nth-child(4){background:#252A43}.grid-card small{font-size:8px;letter-spacing:1px;color:var(--muted)}.grid-card .grid-symbol{font-family:Georgia,serif;font-size:35px;line-height:1.5;color:#B8B9CD}.grid-card strong{font-family:var(--serif);font-size:15px;font-weight:400;line-height:1.6}.ending-art{height:210px;min-height:140px;position:relative;flex:1;max-height:250px;margin-top:20px;display:grid;place-items:center}.ending-orbit{position:absolute;width:230px;height:230px;border-radius:50%;border:1px solid #44475F;box-shadow:0 0 0 25px #cfb2a608,0 0 0 55px #cfb2a605}.ending-book{width:105px;height:140px;border:1px solid #44475F;background:linear-gradient(120deg,#252A43,#252A43);border-radius:3px 8px 8px 3px;transform:rotate(-8deg);box-shadow:10px 15px 30px #14101f30;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.ending-book span{font-family:var(--serif);font-size:26px;letter-spacing:5px;writing-mode:vertical-rl}.ending-book small{font-size:7px;letter-spacing:3px}.ending-caption{text-align:center;color:var(--muted);font-size:10px;letter-spacing:2px;margin:8px 0 13px}.ending h2{text-align:center;font-size:35px}.ending .text-button{align-self:center;border:0;margin:8px auto 0;font-size:10px}
/* Sheets, evidence, edit, export. */
.modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:#191D32;backdrop-filter:blur(7px)}.sheet{position:relative;background:#191D32;color:#F5F0ED;width:390px;max-height:85svh;border-radius:20px;padding:30px 25px 25px;box-shadow:0 15px 70px #14101e45;overflow-y:auto;animation:sheet-in .25s ease;overscroll-behavior:contain}.sheet-handle{height:3px;width:32px;border-radius:3px;background:#252A43;position:absolute;top:11px;left:calc(50% - 16px)}.sheet-close{position:absolute;right:10px;top:9px;color:#B8B9CD;font-size:26px}.sheet h2{font-family:var(--serif);font-size:25px;font-weight:400;letter-spacing:2px;margin:13px 0 12px}.sheet p{font-size:12px;line-height:1.9;color:#B8B9CD}.sheet .primary{background:#191D32;color:#F5F0ED;border:0;margin-top:18px}.sheet .eyeline{color:#B8B9CD;margin-top:9px}.source-quote{background:#252A43;border-radius:5px;padding:16px;margin:18px 0;font-family:var(--serif);font-size:16px;line-height:1.9}.source-quote small{display:block;font:9px system-ui;color:#B8B9CD;margin-top:10px}.sheet textarea{width:100%;resize:vertical;border:1px solid #44475F;background:#191D32;border-radius:5px;padding:13px;color:#F5F0ED;min-height:95px;font-size:13px;line-height:1.8}.sheet label{display:block;font-size:11px;margin:17px 0 10px;color:#B8B9CD}.sheet .menu-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:20px}.menu-list button{padding:12px 10px;background:#252A43;border:1px solid #44475F;border-radius:5px;color:#F5F0ED;text-align:left;font-size:11px;line-height:1.8}.menu-list button span{font-family:Georgia,serif;font-size:10px;margin-right:9px;color:#B8B9CD}.menu-list button.selected{background:#191D32;color:#F5F0ED}.share-preview{background:linear-gradient(140deg,#252A43,#252A43);padding:23px 18px;border:1px solid #44475F;border-radius:7px}.share-preview h3{font-family:var(--serif);font-weight:400;line-height:1.7;margin:8px 0 0;font-size:23px;color:#F5F0ED}.share-preview p{font-size:10px}.share-preview .memory-grid{margin:18px 0 8px;gap:6px}.share-preview .grid-card{min-height:92px;padding:10px}.share-preview .grid-card strong{font-size:12px;margin-top:10px}.share-preview .grid-card small{font-size:8px}.share-preview>small{font-size:8px;color:#B8B9CD}.share-check{display:flex!important;align-items:center;gap:8px;cursor:pointer}.share-check input{accent-color:#C8B8E4;width:16px;height:16px}.memory-list-row{padding:14px 0;border-bottom:1px solid #44475F;display:flex;align-items:center;justify-content:space-between;gap:16px}.memory-list-row small{font-size:9px;color:#B8B9CD}.memory-list-row p{margin:5px 0 0;color:#F5F0ED;font-size:13px}.memory-list-row button{border:1px solid #44475F;border-radius:50%;background:none;color:#B8B9CD;width:31px;height:31px;flex-shrink:0}.toast{position:fixed;left:50%;bottom:45px;transform:translate(-50%,15px);background:#191D32;color:#F5F0ED;z-index:200;padding:12px 20px;border-radius:24px;font-size:12px;box-shadow:0 4px 25px #22182833;opacity:0;pointer-events:none;transition:.25s;max-width:90vw;width:max-content}.toast.show{opacity:1;transform:translate(-50%,0)}
.chat{position:fixed;z-index:40;width:414px;height:min(880px,calc(100svh - 64px));min-height:650px;background:#252A43;color:#F5F0ED;border-radius:30px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 30px 90px #44344930}.chat-header{display:flex;align-items:center;gap:10px;padding:20px 12px 16px;border-bottom:1px solid #44475F}.chat-header strong{font-family:var(--serif);font-size:19px;font-weight:400;letter-spacing:2px}.chat-header small{display:block;font-size:9px;margin-top:5px;color:#B8B9CD}.chat-header>button:last-child{margin-left:auto;color:#B8B9CD}.chat-avatar{width:42px;height:42px;background:linear-gradient(140deg,#252A43,#252A43);border-radius:50%;color:#F5F0ED;display:grid;place-items:center;font-family:var(--serif);font-size:18px;position:relative}.chat-avatar span{position:absolute;width:9px;height:9px;background:#252A43;border:2px solid #44475F;border-radius:50%;bottom:1px;right:0}.chat-notice{font-size:9px;text-align:center;color:#B8B9CD;letter-spacing:.5px;padding:10px;background:#252A43}.chat-messages{padding:20px 25px;overflow-y:auto;flex:1;min-height:0;scrollbar-width:thin}.chat-date{font-size:10px;text-align:center;letter-spacing:2px;color:#B8B9CD;margin:12px 0 28px}.chat-memory-card{border:1px solid #44475F;padding:22px;border-radius:9px;background:linear-gradient(130deg,#191D32,#252A43)}.chat-memory-card>span{font-size:9px;color:#B8B9CD;letter-spacing:2px}.chat-memory-card h3{font-family:var(--serif);font-size:25px;line-height:1.7;font-weight:400;margin:19px 0 14px;letter-spacing:1px}.chat-memory-card p{font-size:11px;color:#B8B9CD;line-height:1.9}.chat-memory-card button{border:0;background:none;color:#B8B9CD;padding:10px 0 0;font-size:10px}.chat-composer{display:flex;gap:10px;padding:15px 19px 24px;align-items:center;background:#252A43;border-top:1px solid #44475F}.chat-composer input{flex:1;min-width:0;background:#191D32;border:1px solid #44475F;border-radius:25px;padding:13px 17px;outline:none;font-size:12px;color:#F5F0ED}.chat-composer input:focus{border-color:#44475F}.chat-composer input::placeholder{color:#B8B9CD}.chat-composer button{border:0;border-radius:50%;width:39px;height:39px;color:#F5F0ED;background:#252A43;font-size:20px;flex-shrink:0}.chat-composer button:disabled{opacity:.4}.user-message{max-width:85%;margin:20px 0 12px auto;background:#252A43;border:1px solid #44475F;padding:13px 17px;border-radius:16px 16px 3px 16px;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.message-note{text-align:right;font-size:9px;color:#B8B9CD;margin:0 0 18px}
@keyframes arrive{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@keyframes float{0%,100%{transform:rotate(-12deg) translateY(0)}50%{transform:rotate(-10deg) translateY(-7px)}}@keyframes breathe{0%,100%{opacity:.7}50%{opacity:1}}@keyframes sheet-in{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(min-width:1100px){.chat{left:calc(50% + 43px)}}
@media(max-width:1099px) and (min-width:701px){body{gap:35px;padding:25px}.editorial{width:260px}.editorial h1{font-size:35px}.desktop-index{display:none}.chat{left:calc(50% - 60px)}}
@media(max-width:700px){html,body{background:#191D32;min-height:100%;padding:0;margin:0;display:block}.editorial,.desktop-index,.desktop-grain{display:none}.app{width:100%;height:100svh;min-height:0;max-width:none;border:0;border-radius:0;box-shadow:none}.app-header{padding-top:max(12px,env(safe-area-inset-top));height:62px}.app-footer{padding-bottom:max(17px,env(safe-area-inset-bottom))}.scene{padding-top:29px}.hero-art{max-height:270px}.chat{inset:0;width:100%;height:100svh;min-height:0;border-radius:0}.chat-header{padding-top:max(18px,env(safe-area-inset-top))}.chat-composer{padding-bottom:max(18px,env(safe-area-inset-bottom))}.modal{padding:0;align-items:flex-end}.sheet{width:100%;max-width:540px;max-height:88svh;border-radius:23px 23px 0 0;padding-bottom:max(27px,env(safe-area-inset-bottom))}.toast{bottom:35px}}
@media(max-height:740px){.app-header{height:53px}.scene{padding-top:20px}.scene h2{font-size:28px}.scene-cover h2{font-size:40px}.scene-cover .hero-art{min-height:170px}.app-footer{padding-top:7px;padding-bottom:12px}.footer-context{padding-top:9px}.footer-controls{margin-top:6px}.art{max-height:170px}.topic-collage{min-height:290px}.lamp-art{min-height:170px;flex:none;transform:scale(.85);margin-top:-20px;margin-bottom:-20px}.coffee-pair{margin:23px 0 15px}.timeline{margin-top:18px}.timeline-entry{margin-bottom:16px}.timeline-entry p{font-size:16px}.future-cards{margin-top:18px;gap:12px}.future-card{padding:15px 18px}.future-card h3{font-size:20px}.grid-card{min-height:116px}.ending-art{min-height:130px}.ending-orbit{width:170px;height:170px}.ending-book{transform:scale(.85) rotate(-8deg)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Data-driven recap additions */
.dataset-switch{margin:0 28px 10px;border:1px solid var(--line);border-radius:20px;background:#191D32;padding:8px 12px;color:var(--muted);font-size:10px;letter-spacing:1px;text-align:left;display:flex;justify-content:space-between;gap:15px;flex-shrink:0}.dataset-switch:hover{background:#191D32}.memory-description{font-family:var(--serif);font-size:18px;line-height:1.9;letter-spacing:.5px;overflow-wrap:anywhere;margin:16px 0}.scene h2{overflow-wrap:anywhere}.memory-art{position:relative;margin:10px 0}.art-caption{display:block;text-align:center;font-size:8px;letter-spacing:1px;color:var(--muted)}.memory-buttons{display:flex;justify-content:space-between;gap:12px}.abstract-art{position:relative;min-height:210px;display:grid;place-items:center;margin-top:15px}.abstract-orbit{position:absolute;width:230px;height:130px;border:1px solid var(--line);border-radius:50%;transform:rotate(-24deg)}.abstract-paper{width:140px;min-height:145px;padding:20px;border:1px solid var(--line);background:#252A43;transform:rotate(-7deg);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;box-shadow:12px 15px 28px #372c2510}.abstract-paper span{font-family:Georgia,serif;font-size:52px;color:var(--accent)}.abstract-paper small{font-size:11px;line-height:1.6;text-align:center;overflow-wrap:anywhere;max-width:110px}.abstract-art>p{font-size:9px;color:var(--muted);position:absolute;bottom:0;letter-spacing:2px}.change-comparison{display:flex;gap:14px;align-items:center;margin:38px 0;min-height:140px}.change-comparison>div{padding:20px 14px;background:#191D32;border:1px solid var(--line);border-radius:7px;flex:1;min-width:0;align-self:stretch}.change-comparison small{display:block;color:var(--muted);font-size:9px;letter-spacing:2px}.change-comparison strong{display:block;margin-top:15px;font-family:var(--serif);font-weight:400;font-size:23px;line-height:1.6;overflow-wrap:anywhere}.grid-card{overflow:hidden;min-width:0}.grid-detail{font-size:10px;line-height:1.7;color:var(--muted);margin:8px 0 0;overflow-wrap:anywhere}.memory-grid .grid-card strong{overflow-wrap:anywhere}.scene-cover .paper-title{font-size:21px;overflow-wrap:anywhere;max-height:112px;overflow:hidden}.floating-note{max-width:120px;overflow-wrap:anywhere}.review-badge{align-self:flex-start;margin:14px 0 0;border:1px solid var(--line);border-radius:20px;padding:7px 10px;font-size:9px;color:var(--accent)}.empty-memory{margin:40px 0;font-size:45px;text-align:center;color:var(--accent)}.empty-memory p{font-size:13px;line-height:2;color:var(--muted)}.field{display:block;width:100%;border:1px solid #44475F;border-radius:5px;background:#191D32;padding:12px;color:#F5F0ED;outline-offset:3px;font-size:13px}.example-list{display:grid;gap:10px;margin-top:22px}.example-list button{display:grid;grid-template-columns:1fr auto;gap:8px;background:#252A43;border:1px solid #44475F;border-radius:7px;padding:16px;text-align:left;color:#F5F0ED}.example-list strong{font-family:var(--serif);font-size:17px;font-weight:400}.example-list small{font-size:10px;color:#B8B9CD;grid-column:1}.example-list span{grid-column:2;grid-row:1/3;align-self:center;font-size:21px}.danger{color:#B8B9CD!important;margin-top:16px}#import-error{color:#B8B9CD}.source-quote{overflow-wrap:anywhere}.share-preview .grid-card{overflow:visible}.share-preview .grid-detail{font-size:9px}.primary:disabled{opacity:.4}.status-card{gap:15px}.status-card span{overflow-wrap:anywhere;max-width:60%}.little-bubble{max-width:85%;overflow-wrap:anywhere}.chat-memory-card h3{overflow-wrap:anywhere}.chat-memory-card p{overflow-wrap:anywhere}.sheet .memory-list-row p{overflow-wrap:anywhere}.scene .actions{padding-bottom:4px}
@media(max-height:740px){.scene-cover .hero-art{flex:none;min-height:200px}.scene-cover h2{font-size:36px}.memory-art .art{max-height:175px}.abstract-art{min-height:185px}.dataset-switch{margin-bottom:7px}}
.job-progress{height:6px;border-radius:10px;background:#252A43;overflow:hidden;margin:26px 0 16px}.job-progress>div{height:100%;background:#252A43;transition:width .6s;border-radius:10px}.consent{align-items:flex-start!important;line-height:1.9}.consent input{flex-shrink:0;margin-top:3px}.consent span{flex:1}#service-status{padding:10px 12px;background:#252A43;border-radius:6px;font-size:10px}.audit-warning{padding:10px;border-left:2px solid #44475F;background:#252A43}.import-format{font-size:10px!important}

/* Import-first homepage */
.is-home #switch-dataset,.is-home #progress,.is-home #scene-host,.is-home .app-footer,.is-home #open-menu{display:none}
.import-home{flex:1;min-height:0;overflow-y:auto;padding:22px 28px 30px;display:flex;flex-direction:column;align-items:stretch}
.import-home .eyeline{margin:0 0 12px}.home-keepsake{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:130px;margin:5px 0 22px}
.home-keepsake:before,.home-keepsake i{content:"";position:absolute;width:104px;height:118px;border:1px solid #44475F;background:linear-gradient(135deg,#252A43,#252A43);border-radius:3px;transform:rotate(-11deg)}
.home-keepsake i{transform:rotate(8deg);background:#252A43}.home-keepsake span{font:50px Georgia;color:var(--accent);z-index:1}.home-keepsake small{z-index:1;font-size:8px;letter-spacing:1px;margin-top:12px;color:var(--muted)}
.import-home h2{font-family:var(--serif);font-size:32px;font-weight:400;line-height:1.55;letter-spacing:1px;margin:0 0 16px}.home-copy{font-size:13px;color:var(--muted);line-height:2;margin:0 0 26px}
.import-home .primary{width:100%;margin:0;flex-shrink:0}.home-format{font-size:10px;color:var(--muted);line-height:1.9;text-align:center;margin:12px 0 17px}.home-secondary{border:0;background:none;padding:12px 0;font-size:12px;color:var(--ink);flex-shrink:0}.home-privacy{font-size:9px;color:var(--muted);line-height:1.9;text-align:center;margin:22px 0 0;padding-top:16px;border-top:1px solid var(--line)}
@media(max-height:740px){.import-home{padding-top:14px}.home-keepsake{min-height:95px;margin-bottom:16px}.home-keepsake:before,.home-keepsake i{width:80px;height:90px}.home-keepsake span{font-size:35px}.import-home h2{font-size:28px}.home-copy{margin-bottom:18px}.home-privacy{margin-top:14px}}
/* Phone-first import: one task per screen, feedback beside the primary action. */
.import-modal .sheet{padding:0;width:440px;max-height:none;height:min(820px,90dvh);overflow:hidden;--muted:#B8B9CD;--accent:#D7BEDF}
.import-modal .sheet-close,.import-modal .sheet-handle{display:none}.import-modal #sheet-content{height:100%}.import-flow{height:100%;display:flex;flex-direction:column;min-height:0}.flow-header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #44475F;flex-shrink:0}.flow-header button{width:44px;height:44px;border:0;background:none;color:#F5F0ED;font-size:25px}.flow-header span{font-size:14px;letter-spacing:2px}.flow-steps{display:flex;gap:8px;justify-content:space-between;padding:16px 22px 10px;font-size:11px;color:#B8B9CD;flex-shrink:0}.flow-steps span{padding-bottom:9px;border-bottom:2px solid transparent}.flow-steps .active{color:#F5F0ED;border-color:#44475F}.flow-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px 24px 22px;scroll-padding:20px}.flow-body h2{font-size:29px;line-height:1.55;margin:12px 0}.flow-body p{font-size:14px;color:#F5F0ED;line-height:1.8}.flow-body .flow-kicker{font-size:11px;letter-spacing:2px;margin-bottom:0}.flow-body .micro{font-size:12px;letter-spacing:0}.flow-body label{font-size:14px;margin:20px 0 10px;color:#F5F0ED}.flow-body input:not([type=checkbox]),.flow-body textarea,.flow-body select{font-size:16px;line-height:1.6;width:100%;min-height:48px;max-width:100%}.flow-body textarea{resize:vertical}.flow-body #export-link{min-height:108px;overflow-wrap:anywhere}.flow-body #service-status{font-size:12px;padding:10px 0;background:none}.import-tabs{display:flex;gap:4px;padding:4px;background:#252A43;border-radius:12px;margin:22px 0 16px}.import-tabs button{flex:1;min-height:44px;border:0;border-radius:9px;background:transparent;color:#F5F0ED;font-size:13px;padding:8px 4px}.import-tabs [aria-pressed=true]{background:#191D32;color:#F5F0ED;box-shadow:0 2px 7px #493a3210}.flow-footer{padding:10px 24px max(16px,env(safe-area-inset-bottom));background:#191D32;border-top:1px solid #44475F;flex-shrink:0}.flow-footer .primary{margin:0;width:100%;min-height:52px;font-size:16px;justify-content:center;border-radius:12px;background:#191D32}.flow-footer #import-error{margin:0 0 9px;color:#F5F0ED;font-size:13px;line-height:1.5;max-height:90px;overflow-y:auto;overflow-wrap:anywhere}.flow-footer #import-error:empty{display:none}.flow-body .file-drop{padding:24px 15px;border:1px dashed #44475F;border-radius:12px;text-align:center;background:#191D32;cursor:pointer}.file-drop strong,.file-drop span{display:block}.file-drop span{font-size:12px;color:#F5F0ED;margin-top:8px}.flow-body input[type=file]{font-size:14px}.flow-body .consent{min-height:48px;gap:12px}.flow-body .consent input{width:23px;height:23px;min-width:23px;accent-color:#C8B8E4}.flow-body .consent span{font-size:14px;line-height:1.8}.flow-body details{font-size:12px;color:#F5F0ED;margin-top:20px}.flow-body summary{padding:12px 0;cursor:pointer}.session-cards{display:grid;gap:10px;margin-top:16px}.session-card{position:relative;text-align:left;min-height:80px;border:1px solid #44475F;border-radius:12px;padding:17px 42px 17px 16px;background:#191D32;color:#F5F0ED}.session-card strong{display:block;font-size:16px;font-weight:500;overflow-wrap:anywhere}.session-card small{display:block;margin-top:8px;font-size:12px;line-height:1.6}.session-card>span{position:absolute;right:15px;top:22px}.session-card.selected{border-color:#44475F;background:#252A43;box-shadow:0 0 0 1px #826657}.session-card:disabled{opacity:.6}.import-modal #zip-session,.import-modal label[for=zip-session]{display:none}
@media(max-width:700px){.import-modal{align-items:stretch;height:var(--visual-height,100dvh);top:var(--visual-top,0px);bottom:auto}.import-modal .sheet{height:100%;width:100%;max-width:none;max-height:none;border-radius:0;animation:none}.flow-header{padding-top:max(8px,env(safe-area-inset-top))}.flow-body{padding-left:20px;padding-right:20px}.flow-footer{padding-left:20px;padding-right:20px}.sheet input:not([type=checkbox]),.sheet textarea,.sheet select,.chat-composer input{font-size:16px} }
/* Invitation edition: warm paper, forest ink, a letter kept for someone. */
.app.is-home{background:#191D32;--ink:#F5F0ED;--muted:#B8B9CD;--accent:#D7BEDF;--line:#44475F;color:var(--ink)}.app.is-home:before{background:radial-gradient(ellipse at 85% 24%,#252A43,transparent 55%),radial-gradient(ellipse at 10% 83%,#252A43,transparent 60%)}.is-home .app-header{border-bottom:1px solid #44475F;margin:0 24px;padding-left:0;padding-right:0}.is-home .header-title{font-size:9px;letter-spacing:1px}.is-home .import-home{padding:22px 28px 20px}.invitation-heading{display:flex;justify-content:space-between;font-size:9px;letter-spacing:2px;color:#B8B9CD}.invitation-heading span:last-child{border:1px solid #44475F;padding:3px 7px;border-radius:2px;margin-top:-3px;font-size:8px}.letter-art{width:240px;height:190px;position:relative;align-self:center;margin:30px 0 12px;flex-shrink:0;transform:rotate(-6deg)}.letter-sheet{position:absolute;width:170px;height:162px;background:#191D32;left:35px;top:0;border:1px solid #44475F;box-shadow:0 5px 12px #5648330c;padding:22px 17px}.letter-sheet span{font:11px var(--serif);color:#B8B9CD}.letter-sheet i{display:block;height:1px;background:#252A43;margin-top:13px;width:100%}.letter-sheet i:nth-of-type(2){width:73%}.letter-sheet b{position:absolute;right:20px;bottom:30px;color:#B8B9CD;font:30px Georgia}.letter-envelope{position:absolute;bottom:0;left:12px;right:12px;height:120px;background:linear-gradient(149deg,transparent 49.5%,#252A43 50%,transparent 51%),linear-gradient(211deg,transparent 49.5%,#252A43 50%,transparent 51%),linear-gradient(20deg,#252A43,#252A43);border:1px solid #44475F;border-radius:2px;box-shadow:8px 14px 20px #42503b12}.letter-seal{position:absolute;bottom:36px;left:102px;width:37px;height:37px;display:grid;place-items:center;background:#191D32;color:#F5F0ED;border:3px double #44475F;border-radius:50%;font:15px var(--serif);box-shadow:1px 3px 6px #314e3d20}.welcome-copy{text-align:center}.welcome-copy .welcome-eyebrow{font-size:10px;letter-spacing:3px;color:#B8B9CD;margin:14px 0}.import-home .welcome-copy h2{font-size:35px;line-height:1.55;letter-spacing:3px;margin:0 0 14px;color:#F5F0ED}.welcome-copy>p:last-child{font-size:12px;color:#B8B9CD;letter-spacing:1px;margin:0 0 30px}#invitation-form{margin-top:auto}#invitation-form label{font-size:11px;color:#B8B9CD;display:block;margin:0 0 10px;letter-spacing:2px}#home-invite{width:100%;min-height:52px;padding:13px 16px;border:1px solid #44475F;border-radius:9px;background:#191D32;color:#F5F0ED;font-size:16px;outline-offset:3px}#home-invite::placeholder{font-size:13px;color:#B8B9CD}#invitation-form .primary{margin-top:14px;background:#191D32;color:#F5F0ED;border:0;border-radius:9px;min-height:52px;font-size:14px;box-shadow:0 5px 15px #354e4114}#home-error{font-size:12px;color:#F5F0ED;line-height:1.6;margin:8px 0 0}#home-error:empty{display:none}.invitation-foot{text-align:center;font-size:9px;letter-spacing:2px;color:#B8B9CD;margin:20px 0 0}.is-home .home-secondary{font-size:11px;color:#B8B9CD;padding:12px 0 0}
.import-modal .sheet{background:#191D32;color:#F5F0ED;--muted:#B8B9CD;--accent:#D7BEDF}.flow-header{border-color:#44475F}.flow-header button,.flow-header span{color:#F5F0ED}.flow-steps{padding-top:20px;color:#B8B9CD;font-size:10px}.flow-steps .active{color:#F5F0ED;border-color:#44475F}.flow-body{padding-top:24px}.flow-body .flow-kicker{color:#B8B9CD;font-size:10px;letter-spacing:2px}.flow-body h2{font-size:32px;color:#F5F0ED;letter-spacing:2px;line-height:1.65;margin:17px 0}.flow-body p{color:#B8B9CD;font-size:13px}.flow-body label{color:#F5F0ED;font-size:12px;letter-spacing:1px}.flow-body input:not([type=checkbox]),.flow-body textarea{background:#191D32;border-color:#44475F;border-radius:12px;color:#F5F0ED;padding:16px}.flow-body textarea::placeholder,.flow-body input::placeholder{color:#B8B9CD}.flow-body #export-link{min-height:140px;resize:none;font-size:16px;line-height:1.8}.link-emblem{height:76px;width:76px;margin:28px auto;border:1px solid #44475F;border-radius:50%;display:grid;place-items:center;color:#B8B9CD;font:36px Georgia;box-shadow:0 0 0 9px #e4e8db70,0 0 0 18px #e4e8db30}.flow-body .link-help{margin-top:8px;color:#B8B9CD}.link-help summary{min-height:44px}.flow-body .quiet-note{font-size:11px;color:#B8B9CD}.flow-footer{background:#191D32;border-color:#44475F}.flow-footer .primary{background:#191D32;color:#F5F0ED;box-shadow:0 6px 18px #354e4112;font-size:14px;border-radius:10px}.flow-body #service-status{font-size:10px;color:#B8B9CD;margin:8px 0}.session-card{background:#191D32;border-color:#44475F;color:#F5F0ED}.session-card.selected{background:#252A43;border-color:#44475F;box-shadow:0 0 0 1px #879a79}.session-card small{color:#B8B9CD}.flow-body .consent input{accent-color:#C8B8E4}.flow-body .consent span{color:#F5F0ED;font-size:13px}.flow-body .micro{font-size:11px;color:#B8B9CD}.flow-body #chosen-summary{padding:14px;border-left:2px solid #44475F;background:#252A43;border-radius:0 8px 8px 0;color:#F5F0ED}
@media(max-height:740px){.is-home .import-home{padding-top:16px}.letter-art{margin:16px 0 2px;transform:scale(.8) rotate(-6deg);height:158px;transform-origin:top center}.import-home .welcome-copy h2{font-size:29px}.welcome-copy>p:last-child{margin-bottom:20px}.invitation-foot{margin-top:15px}.flow-body{padding-top:12px}.flow-body h2{font-size:28px}.link-emblem{height:52px;width:52px;margin:22px auto}.flow-body #export-link{min-height:110px}}

/* Keep phone gestures inside the active content, not the document behind it. */
@media(max-width:700px){
 html{height:100%;overflow:hidden;overscroll-behavior:none}
 body{position:fixed;inset:0;width:100%;height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}
 .app{height:100dvh}
 button,a,input,textarea,select,summary{touch-action:manipulation}
 .import-home,.scene,.sheet,.flow-body,.chat-messages{overscroll-behavior-y:contain;overflow-x:hidden}
 .import-modal{overflow:hidden}
 .import-modal .sheet,.import-modal #sheet-content,.import-flow{min-height:0}
 .flow-body{touch-action:pan-y pinch-zoom;overflow-anchor:none}
 .flow-header{padding-top:8px;padding-bottom:6px}
 .flow-steps{padding-top:10px;padding-bottom:6px}
 .flow-body{padding-top:10px}
 .flow-body h2{font-size:28px;line-height:1.5;margin:12px 0}
 .link-emblem{display:none}
 .flow-body #export-link{min-height:110px}
 input:not([type=checkbox]),textarea,select{font-size:16px}
}

.chat-avatar>svg{display:block;width:100%;height:100%;border-radius:50%}

.pwa-status{font-size:10px!important;line-height:1.7!important;text-align:center;color:#B8B9CD!important;margin:4px 0 0!important}.pwa-install{color:#F5F0ED!important}

/* A · 月夜蓝紫 — shared visual identity, 2026-11-19 */
:root,.app,.app.is-home,.import-modal .sheet{--ink:#F5F0ED;--muted:#B8B9CD;--accent:#D7BEDF;--line:#44475F;color:var(--ink);background:#191D32;color-scheme:dark}
.desktop-grain{background:radial-gradient(ellipse at 25% 50%,#353451,transparent 65%),#191D32}
.app:before,.app.is-home:before{background:radial-gradient(ellipse at 85% 24%,#69618955,transparent 60%)}
.primary,.app .primary,.sheet .primary,#invitation-form .primary,.flow-footer .primary,.chat-composer button{background:#C8B8E4;color:#252039;border-color:#C8B8E4;box-shadow:none}
.nav-next{background:#C8B8E4!important;color:#252039!important}
.sheet,.import-modal .sheet,.flow-footer,.chat{background:#252A43}
.letter-sheet{background:#303650}.letter-envelope{background:linear-gradient(149deg,transparent 49.5%,#696189 50%,transparent 51%),linear-gradient(211deg,transparent 49.5%,#696189 50%,transparent 51%),linear-gradient(20deg,#353B58,#454563)}
.letter-seal{background:#C8B8E4;color:#252039;border-color:#D7BEDF}.letter-sheet b,.scene-cover h2 em,.grid-symbol{color:#D7BEDF!important}
#home-invite,.flow-body input:not([type=checkbox]),.flow-body textarea,.field,.sheet textarea{background:#191D32;color:#F5F0ED;border-color:#44475F}
#home-invite::placeholder,.flow-body textarea::placeholder,.flow-body input::placeholder{color:#B8B9CD}
.import-tabs [aria-pressed=true],.session-card.selected{background:#45415D;color:#F5F0ED;border-color:#C8B8E4;box-shadow:none}
.flow-body .consent input{accent-color:#C8B8E4}.flow-body #chosen-summary{background:#35334D;color:#F5F0ED;border-color:#D7BEDF}
.topic-card,.grid-card,.current-preference,.change-comparison>div{background:#252A43!important;color:#F5F0ED}
.danger,#import-error,#home-error,.flow-footer #import-error{color:#F2ADB7!important}
.pwa-status,.pwa-install{color:#D7BEDF!important}

/* Approved moonlight SVG library: retain captions and responsive proportions. */
.library-art{margin:12px -12px;background:radial-gradient(ellipse,#69618922,transparent 70%);border-radius:16px}.library-art img{display:block;width:100%;height:auto;max-height:280px;object-fit:contain}.library-art .art-caption{padding:3px 10px 12px;font-size:10px;line-height:1.6}
