:root{--bg:#f6f5ef;--paper:#fffef9;--ink:#30352c;--muted:#888c80;--line:#e3e5da;--olive:#4e5d3f;--accent:#4e5d3f;--accent-soft:#e9ecdf;--sidebar:222px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}a{color:inherit}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b09a63;outline-offset:4px}button{transition:background .18s,transform .18s,border-color .18s}button:active{transform:translateY(1px)}[hidden]{display:none!important}.skip-link{position:fixed;top:-60px;left:16px;background:white;padding:14px;z-index:100}.skip-link:focus{top:12px}.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;background:#eeefe7;border-right:1px solid var(--line);padding:36px 23px 20px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:10px;font-family:Georgia,serif;font-size:28px;font-weight:600;text-decoration:none;letter-spacing:-1px}.brand-dot{color:#9b754c}.brand-mark{display:grid;place-content:center;width:35px;height:37px;border:1px solid #737e62;border-radius:10px;font-size:30px;font-weight:normal;position:relative;line-height:1}.brand-mark span{position:absolute;right:-4px;top:-5px;background:#eeefe7;font-family:Arial;font-size:14px;padding:0 2px}.brand-sub{margin:13px 0 35px;font-size:8px;letter-spacing:2px;color:#7d8373}.new-button{display:flex;align-items:center;justify-content:center;gap:13px;background:var(--olive);border:0;border-radius:7px;color:#fff;padding:14px 8px;font-size:12px;box-shadow:0 3px 6px #2430180c}.new-button:hover,.primary-button:hover{background:#39472c}.new-button>span{font-size:19px;line-height:12px}nav{margin-top:30px;display:grid;gap:7px}.nav-item{width:100%;border:0;background:transparent;display:flex;gap:11px;align-items:center;text-align:left;padding:12px 11px;border-radius:6px;color:#6e7565;font-size:12px}.nav-item.active{background:#e0e5d5;color:#3d4e2d;font-weight:600}.nav-item:hover{background:#e4e7dc}.nav-item svg{width:16px;height:16px}.nav-dot{width:5px;height:5px;border-radius:50%;background:#6d7c56;margin-left:auto}.count,.small-tag{margin-left:auto;font-size:10px;min-width:18px;text-align:center}.small-tag{border:1px solid #d5d8ca;border-radius:3px;padding:2px 4px}.sidebar-note{margin:49px 0 30px;padding:0 13px;transform:rotate(-5deg)}.little-flower{font-size:41px;color:#a7ad93;font-family:Georgia}.sidebar-note p{font-family:Georgia,serif;font-style:italic;font-size:16px;line-height:1.65;color:#7d846d;margin:10px 0}.note-line{display:block;width:48px;height:1px;background:#bac2a5;transform:rotate(-7deg)}.sidebar-bottom{margin-top:auto}.sidebar-bottom .nav-item{font-size:11px}.privacy-badge{display:flex;gap:10px;padding:20px 2px 0;margin:12px 0 0;border:0;border-top:1px solid #dde1d3;background:none;text-align:left;font-size:10px;color:#666e5c;width:100%}.privacy-badge svg{width:14px;height:14px}.privacy-badge small{display:block;margin-top:6px;font-size:9px;color:#8b9281}.app-shell{margin-left:var(--sidebar)}.topbar{height:75px;border-bottom:1px solid var(--line);padding:0 46px;display:flex;justify-content:space-between;align-items:center}.breadcrumb{font-size:11px;color:#8a8e80}.breadcrumb>span{margin:0 13px;color:#b6baad}.breadcrumb strong{font-weight:500;color:#5c6552}.topbar-right{display:flex;align-items:center;gap:23px}.local-indicator{font-size:8px;letter-spacing:1.7px;color:#818975;display:flex;gap:8px;align-items:center}.local-indicator i,.live-dot{display:inline-block;width:5px;height:5px;background:#829465;border-radius:50%}.monogram{display:grid;place-content:center;width:31px;height:31px;background:#e6e9db;border:1px solid #dce1cc;border-radius:50%;font-family:Georgia;font-size:15px;color:#64704f}.mobile-new{display:none!important}main{max-width:1530px;padding:42px 46px 0;margin:auto}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:38px}.eyebrow{font-size:9px;letter-spacing:2px;color:#858c76;font-weight:600;display:flex;align-items:center;gap:9px}.eyebrow>span{display:inline-block;width:18px;height:1px;background:#939b7b}h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(38px,4vw,57px);line-height:1.08;letter-spacing:-2px;font-weight:400;margin:17px 0 14px}h1 em{font-weight:normal;color:#697656}p{line-height:1.6}.intro p,.page-intro>p{font-size:12px;color:#858a7a;margin:0;line-height:1.8}.intro-art{display:flex;align-items:center;flex-direction:column;margin-right:64px;transform:rotate(9deg);color:#8c9677;font-family:Georgia;font-size:15px;line-height:1.4;text-align:center}.intro-art .star{font-size:58px;line-height:1.1;color:#adb49b}.intro-art svg{width:90px;height:35px;fill:none;stroke:#a2ab89;stroke-width:1}.studio-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.studio-heading h2{font-weight:500;font-size:14px;display:flex;align-items:center;gap:12px;margin:0}.studio-heading h2>span{font-size:9px;color:#8e967f;border:1px solid #d8ddcc;border-radius:4px;padding:3px 5px}.quiet-label{font-size:10px;color:#8e9483;display:flex;align-items:center;gap:6px}.quiet-label svg{width:12px;height:12px}.studio-grid{display:grid;grid-template-columns:minmax(290px,.84fr) minmax(360px,1.35fr);gap:28px;align-items:start}.editor-card{border:1px solid #e1e4d8;border-radius:10px;background:#fcfcf8;overflow:hidden}.editor-section{padding:22px 23px;border-bottom:1px solid #e9ebdf}.editor-section:last-child{border-bottom:0}.section-label{display:flex;align-items:center;gap:9px;margin-bottom:18px}.section-label h3{font-size:12px;font-weight:500;margin:0}.section-label>span:last-child:not(.step){margin-left:auto;font-size:9px;color:#929887}.step{font-size:8px;color:#7c876b;display:grid;place-content:center;width:21px;height:21px;border:1px solid #dce1d0;border-radius:50%}.drop-zone{width:100%;border:1px dashed #bfc9ac;background:#f2f4eb;border-radius:7px;padding:20px 10px 17px;display:flex;align-items:center;flex-direction:column;gap:7px;color:#7e8870}.drop-zone:hover,.drop-zone.dragover{background:#e8eddc;border-color:#778b5d}.drop-zone .upload-icon{width:35px;height:35px;background:#e6ecd9;border-radius:9px;display:grid;place-content:center;margin-bottom:4px}.upload-icon svg{width:19px;height:19px}.drop-zone strong{color:#526244;font-size:12px;font-weight:500}.drop-zone>span:not(.upload-icon){font-size:10px}.drop-zone small{font-size:8px;color:#99a089;margin-top:3px}.photo-tray{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.photo-item{position:relative;width:calc((100% - 16px)/3);aspect-ratio:1.45}.photo-item img{width:100%;height:100%;object-fit:cover;border-radius:4px}.photo-item button{position:absolute;top:3px;right:3px;border:0;border-radius:50%;width:20px;height:20px;color:#fff;background:#26311bc9;line-height:18px}.photo-item .move-photo{top:auto;bottom:3px;left:3px;right:auto;font-size:11px}.sample-row{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#9a9e91;margin-top:12px;gap:4px}.text-button{border:0;padding:3px 0;background:transparent;color:#6c7d55;font-size:10px;display:inline-flex;gap:5px;align-items:center}.text-button:hover{color:#344a20;text-decoration:underline}.text-button svg{width:15px;height:15px}label{display:block;font-size:10px;font-weight:500;color:#636e55;margin-bottom:16px}input,textarea,select{display:block;width:100%;border:1px solid #dfe4d5;background:#fffefa;border-radius:5px;padding:11px 12px;font-size:11px;color:#4d5841;margin-top:8px;min-width:0}input::placeholder,textarea::placeholder{color:#a3a795}textarea{resize:vertical;line-height:1.8;min-height:120px;max-height:450px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.optional{float:right;color:#a0a593;font-weight:400;font-size:9px}.input-icon{position:relative}.input-icon input{padding-left:30px}.input-icon>span{position:absolute;left:10px;top:11px;color:#a0a88c}.input-icon svg{width:13px;height:13px}.prompt-row{margin:-6px 0 19px;display:flex;gap:5px;align-items:baseline;flex-wrap:wrap;font-size:9px;color:#9b9f90}.prompt-row .text-button{font-size:9px;font-style:italic}.template-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.template-option{background:#fafbf5;border:1px solid #e0e5d5;border-radius:6px;padding:11px 8px 9px;font-size:9px;color:#8a927d;display:flex;align-items:center;flex-direction:column;gap:8px}.template-option.selected{border-color:#71845b;background:#edf1e4;color:#4d6238;box-shadow:0 0 0 1px #71845b}.mini-page{width:36px;height:46px;background:#fffefa;border:1px solid #dddcca;padding:6px;display:flex;flex-direction:column;gap:4px;position:relative;box-shadow:0 2px 2px #00000005}.mini-page i{height:6px;width:24px;background:#ced5bd}.mini-page b{height:16px;background:#a4b493}.mini-page em{height:4px;width:19px;background:#dddccc}.mini-postcard b{order:-1;height:22px}.mini-postcard i{height:3px}.mini-scrapbook b{transform:rotate(-10deg);box-shadow:0 0 0 2px white;background:#b3b59a}.mini-scrapbook i{height:3px;width:15px;align-self:center}.palette-row{display:flex;align-items:center;gap:13px;margin:22px 0;color:#858f75;font-size:10px}.palette-row>div{display:flex;gap:9px}.palette-row>span:last-child{font-size:9px;color:#a0a693}.swatch{border:3px solid #fcfcf8;outline:1px solid transparent;background:#75815a;width:21px;height:21px;border-radius:50%;padding:0}.swatch.rose{background:#b78478}.swatch.ink{background:#586879}.swatch.selected{outline-color:#7b8966}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:6px;padding:13px 17px;font-size:11px;background:var(--olive);color:#fff}.primary-button svg,.secondary-button svg{width:14px;height:14px}.primary-button.full-width{width:100%;justify-content:center}.primary-button.full-width>span:last-child{margin-left:auto;font-size:15px}.primary-button.full-width>span:first-child{margin-right:auto}.generation-note{color:#a1a794;font-size:8px;margin:10px 0 0;text-align:center}.secondary-button{color:#71805e;border:1px solid #d8dfcb;background:#fafbf5}.secondary-button:hover{background:#ecf0e2}.preview-section{min-width:0;position:sticky;top:16px}.preview-toolbar{height:42px;display:flex;align-items:center;justify-content:space-between;background:#e9ecdf;padding:0 16px;border-radius:9px 9px 0 0;border:1px solid #dce1ce;border-bottom:0}.preview-toolbar>div{display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.2px;color:#788569}.preview-toolbar #draft-status{font-size:8px;letter-spacing:0;color:#9ba48d;border-left:1px solid #cfd7c1;margin-left:5px;padding-left:11px}.paper-stage{padding:24px;background-color:#e9ecdf;background-image:radial-gradient(#ced4bd .65px,transparent .65px);background-size:7px 7px;border:1px solid #dce1ce;border-top:0;border-radius:0 0 9px 9px}.journal-page{--tone:#53603e;--tint:#e8eddc;color:var(--tone);background:#fffef7;padding:29px 30px 23px;min-height:565px;box-shadow:0 4px 13px #3e4b1b0d;position:relative;overflow:hidden}.journal-page.rose{--tone:#936456;--tint:#f3e9e2}.journal-page.ink{--tone:#47596c;--tint:#e5ebef}.paper-topline{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d5dacb;padding-bottom:13px;font-size:8px;letter-spacing:2.1px}.paper-topline>span:last-child{font-size:6px;letter-spacing:1.5px;color:#91947f}.paper-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:19px;text-transform:uppercase;font-size:7px;letter-spacing:1.2px;line-height:1.5}.paper-date{display:flex;gap:6px;align-items:center}.paper-meta .mood{border:1px solid #d9decd;border-radius:20px;padding:4px 8px;font-size:6px;letter-spacing:1px}.paper-title{font-family:Georgia,'Times New Roman',serif;font-size:clamp(27px,3.1vw,43px);font-weight:400;line-height:1.07;letter-spacing:-1.3px;margin:15px 0 16px;overflow-wrap:anywhere}.paper-photo{width:100%;height:248px;object-fit:cover;display:block;filter:saturate(.82)}.photo-caption{display:flex;justify-content:space-between;gap:10px;margin:8px 0 18px;font-size:6px;letter-spacing:1.1px;color:#8f947f;text-transform:uppercase}.paper-story{font-family:Georgia,serif;font-size:11px;line-height:1.85;color:#747964;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 18px;columns:2;column-gap:19px}.paper-story:first-letter{font-size:21px;color:var(--tone)}.paper-quote{font-family:Georgia,serif;font-size:16px;line-height:1.4;font-style:italic;text-align:center;margin:22px 0;color:var(--tone);overflow-wrap:anywhere}.paper-footer{display:flex;align-items:center;justify-content:space-between;padding-top:13px;margin-top:20px;border-top:1px solid #dde0d2;font-size:6px;letter-spacing:1.6px;color:#9ca48a}.paper-footer>span:nth-child(2){font-size:17px;color:var(--tone);line-height:10px}.photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.photo-grid img{width:100%;height:150px;object-fit:cover}.paper-empty-photo{height:200px;background:var(--tint);display:grid;place-content:center;text-align:center;gap:9px;color:var(--tone);font-family:Georgia;font-size:16px;font-style:italic}.paper-empty-photo>span:first-child{font-size:32px}.preview-bottom{display:flex;justify-content:space-between;align-items:center;padding:12px 8px;color:#a0aa8c}.handwritten{font-family:Georgia,serif;font-style:italic;font-size:12px;transform:rotate(-2deg)}.preview-bottom>span:last-child{font-size:24px;line-height:1}.export-bar{display:flex;gap:9px;align-items:center;margin-top:4px}.export-bar .primary-button{flex:1}.export-bar .secondary-button{padding:12px}.storage-note{font-size:9px;color:#9aa28a;text-align:center;line-height:1.7}.journal-page.postcard{padding:22px;background:#fbf5e9}.postcard .paper-meta{order:2}.postcard .paper-photo{height:300px;border:7px solid white;box-shadow:0 2px 9px #453e231a}.postcard .paper-title{text-align:center;font-style:italic;margin-top:23px}.postcard .paper-story{columns:1;font-size:12px;border-left:1px solid #d4cdb9;padding-left:15px}.postcard .paper-topline{border:0}.postcard .photo-caption{justify-content:center}.journal-page.scrapbook{background-color:#fbf8ed;background-image:linear-gradient(#6b785008 1px,transparent 1px),linear-gradient(90deg,#6b785008 1px,transparent 1px);background-size:16px 16px;padding:30px}.scrapbook .paper-photo{transform:rotate(-3deg);border:9px solid white;border-bottom-width:25px;box-shadow:0 3px 10px #2d301d18;margin:23px 0 18px}.scrapbook .paper-title{font-style:italic;transform:rotate(-2deg)}.scrapbook .paper-story{columns:1}.scrapbook .paper-quote{background:var(--tint);padding:15px;transform:rotate(2deg)}.page-intro{margin:12px 0 35px}.collection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}.search-field{display:flex;align-items:center;margin:0;position:relative;max-width:340px;width:100%}.search-field>span{position:absolute;left:13px;top:15px;color:#929d82}.search-field svg{width:16px;height:16px}.search-field input{padding-left:38px;margin:0;background:#fffef8}.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;min-height:380px}.entry-card{position:relative;background:#fffdf6;border:1px solid #e3e5d8;padding:13px;border-radius:7px;height:fit-content}.entry-card>button:first-child{display:block;width:100%;background:none;border:0;text-align:left;padding:0}.entry-card img{width:100%;height:175px;object-fit:cover;border-radius:3px}.entry-card h3{font-family:Georgia;font-size:23px;font-weight:400;letter-spacing:-.6px;margin:14px 0 9px;overflow-wrap:anywhere}.entry-card p{font-size:10px;color:#8d9780;margin:0 0 20px}.entry-card .delete-button{position:absolute;right:13px;bottom:9px;background:none;border:0;font-size:10px;color:#9c8c7c;padding:5px}.entry-card .delete-button:hover{color:#904d39}.empty-state{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #d5ddc7;background:#eef1e5;border-radius:12px;padding:55px 20px;text-align:center}.empty-state>span{font-family:Georgia;font-size:60px;color:#909e76}.empty-state h2{font-family:Georgia;font-weight:400;font-size:28px;margin:15px 0 5px}.empty-state p{color:#8a947c;font-size:12px;max-width:360px;margin-bottom:25px}.template-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.gallery-card{background:#fdfdf7;border:1px solid #dfe4d5;border-radius:9px;padding:17px;overflow:hidden}.gallery-preview{height:340px;overflow:hidden;background:#e5e9db;border-radius:4px;padding:13px;pointer-events:none}.gallery-preview .journal-page{min-height:0;width:450px;transform:scale(.5);transform-origin:top left}.gallery-preview .paper-title{font-size:40px}.gallery-card h2{font-family:Georgia;font-weight:400;font-size:26px;margin:23px 0 8px}.gallery-card p{color:#8b947e;font-size:11px;min-height:38px}.gallery-card button{width:100%;margin-top:13px}.footer{border-top:1px solid var(--line);margin:42px 0 0;padding:24px 0;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#8d947f}.footer>span{font-family:Georgia;font-size:15px}.footer em{font-size:11px;margin-left:8px}.footer>div{display:flex;gap:20px}.footer button{border:0;background:none;font-size:9px;color:#8d947f;padding:0}.footer button:hover{text-decoration:underline}.circle-button{display:grid;place-content:center;background:transparent;border:1px solid #d7decc;border-radius:50%;height:30px;width:30px;padding:0;font-size:20px}dialog{background:#fcfcf6;border:1px solid #dfe4d5;border-radius:14px;padding:30px;max-width:560px;width:calc(100% - 32px);color:#4b5940;box-shadow:0 15px 80px #26321524;max-height:90vh}dialog::backdrop{background:#28351e66;backdrop-filter:blur(4px)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.modal-header h2{font-family:Georgia;font-size:28px;font-weight:400;letter-spacing:-.8px;margin:0}#modal-content{font-size:13px;line-height:1.8;color:#7d876f}#modal-content h3{font-size:14px;color:#4e613d;font-weight:500;margin:25px 0 7px}#modal-content p{margin:10px 0}#modal-content a{color:#4f6539}#modal-content .modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}#modal-content .journal-page{width:100%;min-height:700px}.wide-modal{max-width:760px!important}#toast{position:fixed;bottom:25px;left:calc(50% + 80px);transform:translateX(-50%);background:#36462a;color:white;font-size:12px;padding:14px 23px;border-radius:8px;box-shadow:0 6px 30px #14240b20;z-index:50;max-width:calc(100% - 40px);line-height:1.6}.noscript{position:fixed;inset:0;background:#f6f5ef;padding:80px;font-size:22px;z-index:100}.busy::after{content:'…'}.danger-button{background:#9c5546!important}.fade-in{animation:fadein .35s ease}@keyframes fadein{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1550px){.journal-page{padding:37px 40px}.paper-photo{height:320px}.paper-story{font-size:13px}.paper-title{font-size:48px}.editor-section{padding:25px 28px}}@media(max-width:1150px){:root{--sidebar:188px}.sidebar{padding:28px 16px 20px}.brand{font-size:25px}.brand-sub{font-size:7px}main{padding:35px 26px 0}.topbar{padding:0 26px}.studio-grid{gap:18px;grid-template-columns:minmax(270px,.9fr) minmax(300px,1.2fr)}.intro-art{margin-right:24px}.editor-section{padding:19px 17px}.paper-stage{padding:16px}.journal-page{padding:25px 23px}.paper-photo{height:210px}.export-bar{flex-wrap:wrap}.export-bar .primary-button{flex-basis:100%}.export-bar .secondary-button{flex:1}.library-grid{grid-template-columns:repeat(2,1fr)}.template-gallery{grid-template-columns:repeat(2,1fr)}}@media(max-width:920px){:root{--sidebar:70px}.sidebar{padding:23px 10px}.brand>span:last-child,.brand-sub,.new-button,.sidebar-note,.nav-item .count,.nav-item .small-tag,.privacy-badge>span:last-child{display:none}.brand{justify-content:center}.brand-mark{width:35px}.nav-item{font-size:0;justify-content:center;padding:14px 0;gap:0}.nav-item svg{width:20px;height:20px}.nav-item .nav-dot{display:none}.sidebar-bottom .nav-item{font-size:0}.privacy-badge{justify-content:center}.sidebar-bottom .nav-item svg{width:18px;height:18px}.mobile-new{display:grid!important}.intro-art{margin-right:20px}.studio-grid{grid-template-columns:minmax(260px,.85fr) minmax(305px,1fr)}.quiet-label{font-size:9px}}@media(max-width:730px){:root{--sidebar:0px}.sidebar{position:static;width:100%;height:67px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px 19px;border-right:0;border-bottom:1px solid #dde1d3}.brand>span:last-child{display:inline}.brand{font-size:25px}.brand-mark{width:30px;height:33px;font-size:26px}.sidebar nav{display:flex;margin:0;gap:6px}.sidebar nav .nav-item{width:40px;padding:10px}.sidebar-bottom{display:none}.topbar{height:51px;padding:0 20px}.topbar-right{gap:12px}.local-indicator{font-size:6px;letter-spacing:1px}.monogram{display:none}main{padding:30px 20px 0}.intro{margin-bottom:31px}.intro h1{font-size:43px;letter-spacing:-1.6px}.intro p{font-size:11px;max-width:250px}.eyebrow{font-size:8px;letter-spacing:1.3px}.intro-art{margin-right:3px;font-size:11px}.intro-art .star{font-size:39px}.intro-art svg{width:60px}.studio-heading{align-items:baseline;gap:10px}.studio-heading h2{font-size:12px}.quiet-label{font-size:8px;max-width:145px}.studio-grid{display:flex;flex-direction:column;gap:25px}.editor-card{width:100%}.editor-section{padding:22px}.preview-section{width:100%;position:static}.paper-stage{padding:19px}.journal-page{padding:27px;min-height:570px}.paper-title{font-size:36px}.paper-photo{height:260px}.paper-story{font-size:12px}.export-bar .primary-button{flex-basis:auto}.export-bar .secondary-button{flex:none}.storage-note{font-size:8px}.footer{flex-direction:column;gap:18px}.footer>div{justify-content:space-between}.library-grid,.template-gallery{grid-template-columns:1fr 1fr;gap:13px}.entry-card img{height:130px}.entry-card h3{font-size:21px}.gallery-card{padding:13px}.gallery-preview{height:240px;padding:8px}.gallery-preview .journal-page{transform:scale(.36)}.gallery-card h2{font-size:22px}#toast{left:50%;bottom:18px;min-width:280px;text-align:center}.page-intro h1{font-size:40px}.collection-toolbar .primary-button{font-size:10px;white-space:nowrap}}@media(max-width:400px){main{padding:26px 14px 0}.intro-art{display:none}.paper-stage{padding:12px}.journal-page{padding:20px}.paper-title{font-size:32px}.export-bar{gap:6px}.export-bar .primary-button{font-size:10px;padding:12px 10px}.export-bar .secondary-button{font-size:9px;padding:12px 9px}.template-gallery{grid-template-columns:1fr}.gallery-preview{height:320px}.gallery-preview .journal-page{transform:scale(.61)}.library-grid{grid-template-columns:1fr}.entry-card img{height:210px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Conversation-first studio */
.studio-grid{grid-template-columns:minmax(350px,1fr) minmax(350px,1.22fr)}.beta-tag{font-size:7px!important;letter-spacing:1px;background:#edf0e4;padding:4px 5px;border-radius:3px;white-space:nowrap}.conversation-section{padding-bottom:23px}.mode-row{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}.mode-row label{margin:0;flex:1}.mode-row select{font-size:10px;padding:9px}.mode-row #ai-status{font-size:8px;max-width:85px;color:#89947a;line-height:1.5;padding-top:18px}.chat-log{max-height:380px;min-height:155px;overflow:auto;padding:6px 2px 16px;display:flex;flex-direction:column;gap:13px;scrollbar-width:thin;scrollbar-color:#cad2b8 transparent}.chat-message{max-width:93%;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.chat-message .chat-author{font-size:8px;letter-spacing:1px;color:#939f83;margin:0 0 5px;display:flex;align-items:center;gap:8px}.chat-message .chat-body{white-space:pre-wrap;padding:12px 14px;background:#eff2e7;border-radius:0 12px 12px 12px;color:#65754f}.chat-message.user{align-self:flex-end}.chat-message.user .chat-body{background:#526344;color:#fffef7;border-radius:12px 0 12px 12px}.chat-message.user .chat-author{justify-content:flex-end}.chat-message .remove-message{border:0;background:none;color:inherit;font-size:12px;padding:0 3px}.chat-composer{border:1px solid #cdd7be;border-radius:8px;background:#fffef9;padding:13px}.chat-composer>label{margin:0;font-size:9px}.chat-composer textarea{border:0;border-radius:0;padding:9px 0;margin:0;background:transparent;min-height:75px;max-height:220px;line-height:1.7}.chat-composer textarea:focus-visible{outline-offset:0;outline-width:1px}.composer-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.voice-controls{display:flex;align-items:center;gap:6px}.voice-controls select{width:70px;font-size:9px;padding:6px 4px;margin:0;background:#f6f8ef;border:0}.voice-button{display:flex;align-items:center;justify-content:center;gap:4px;border:1px solid #d4dec7;border-radius:5px;background:#f3f6ec;color:#607449;padding:8px;font-size:10px;white-space:nowrap}.voice-button[aria-pressed=true]{background:#f2e6df;color:#9a553d;border-color:#d6ab95}.send-button{border:0;border-radius:5px;background:#526344;color:white;padding:9px 13px;font-size:11px}.send-button:hover{background:#3d502e}.voice-status{font-size:8px;line-height:1.6;color:#94a087;margin:10px 0 0}.chat-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:9px 0;color:#95a085;font-size:8px}.chat-bottom .text-button{font-size:8px}.service-note{font-size:9px;line-height:1.7;color:#89977a;margin:12px 0 17px}.generation-settings{margin-top:16px}.generation-settings select{padding:10px 7px;font-size:10px}.generation-settings label{font-size:9px}.local-arrange{display:block;margin:12px auto 0;text-align:center;font-size:9px}.pending-journal{margin-top:18px;background:#f3f5eb;border:1px solid #dbe3cd;border-radius:8px;padding:15px;font-size:11px;line-height:1.6}.pending-journal strong{color:#607449;font-size:11px}.pending-journal p{font-size:9px;color:#8d977e}.pending-journal h4{font:23px/1.25 Georgia,serif;margin:17px 0 11px;overflow-wrap:anywhere}.pending-journal #pending-notes{max-height:270px;overflow:auto;white-space:pre-wrap;color:#69775b}.pending-actions{display:flex;gap:7px;margin-top:16px}.pending-actions button{font-size:9px;padding:10px}.journal-details summary{cursor:pointer;display:flex;align-items:center;gap:10px;font-size:12px;list-style:none}.journal-details summary::-webkit-details-marker{display:none}.journal-details summary>span:last-child{margin-left:auto}.details-fields{margin-top:20px}.journal-details:not([open]){background:#f6f8f0}.preview-section{top:18px}.generation-note{line-height:1.7}.generation-note.error{color:#9b5e48}#pending-explanation{margin:8px 0}.source-label{display:block;text-align:center;font-size:8px;color:#8b977b;margin:0 0 10px}
@media(max-width:1150px){.studio-grid{grid-template-columns:minmax(320px,1fr) minmax(305px,1.1fr)}.conversation-section{padding:19px 17px}}@media(max-width:920px){.studio-grid{grid-template-columns:minmax(300px,1fr) minmax(300px,1fr)}}@media(max-width:730px){.studio-grid{display:flex}.conversation-section{padding:22px}.chat-log{max-height:330px}.mode-row #ai-status{max-width:95px}.pending-actions{flex-wrap:wrap}.beta-tag{font-size:6px!important}.chat-message{font-size:12px}}@media(max-width:400px){.conversation-section{padding:18px}.mode-row{gap:8px}.chat-composer{padding:11px}.voice-controls{gap:2px}.voice-controls select{width:62px}.chat-bottom{align-items:flex-start}.chat-bottom>span{max-width:170px;line-height:1.7}}

@media(max-width:820px){.studio-grid{display:flex;flex-direction:column}.editor-card,.preview-section{width:100%}.preview-section{position:static}}

.studio-howto{font-size:10px;color:#78856a;line-height:1.7;margin:0 0 12px}.audio-upload-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}.audio-upload-row .text-button{font-size:10px}.audio-upload-row>span{font-size:8px;color:#849275}

/* A compact, accessible language pair, shared by both editions. */
.language-switch{display:inline-flex;align-items:center;flex-shrink:0;gap:3px;padding:4px;border:1px solid #dce1d2;border-radius:12px;background:#ecefe5;box-shadow:inset 0 1px 2px #35432b06}
.language-switch button{min-width:48px;min-height:32px;padding:6px 12px;border:0;border-radius:8px;background:transparent;color:#78816d;font-size:12px;font-weight:500;line-height:1.4;transition:background .16s,color .16s,box-shadow .16s}
.language-switch button[aria-pressed="true"]{background:#fffef9;color:#3e5231;box-shadow:0 1px 4px #25311a16;font-weight:600}
.language-switch button:hover{color:#324328;background:#f8f9f2}
.language-switch button:focus-visible{outline:2px solid #677951;outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Chinese typography follows its own rhythm, without Latin italics or drop caps. */
html[lang="zh-CN"]{--zh-ui:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;--zh-book:"Songti SC","STSong","Noto Serif CJK SC","SimSun",serif}
html[lang="zh-CN"] body{font-family:var(--zh-ui);line-height:1.65}
html[lang="zh-CN"] h1,html[lang="zh-CN"] .paper-title,html[lang="zh-CN"] .pending-journal h4,html[lang="zh-CN"] .entry-card h3,html[lang="zh-CN"] .gallery-card h2{font-family:var(--zh-book);font-style:normal;font-weight:500;letter-spacing:.015em;line-height:1.5;word-break:normal;line-break:strict;text-wrap:pretty}
html[lang="zh-CN"] .intro{align-items:center;margin:8px 0 36px;gap:28px}
html[lang="zh-CN"] .intro h1{font-size:clamp(36px,3.8vw,50px);line-height:1.5;letter-spacing:.06em;margin:18px 0 18px}
html[lang="zh-CN"] h1 em{font-style:normal;font-weight:500}
html[lang="zh-CN"] .intro p,html[lang="zh-CN"] .page-intro>p{font-size:13px;line-height:1.9;color:#707b64;max-width:34em}
html[lang="zh-CN"] .eyebrow{font-size:11px;font-weight:500;letter-spacing:.12em;line-height:1.8}
html[lang="zh-CN"] .brand-sub{font-size:10px;letter-spacing:.12em}
html[lang="zh-CN"] .intro-art{font-family:var(--zh-ui);font-style:normal;transform:none;font-size:12px;line-height:1.9;letter-spacing:.04em;margin-right:30px}
html[lang="zh-CN"] .intro-art em{font-style:normal}
html[lang="zh-CN"] .intro-art .star{font-size:48px;margin-bottom:12px}
html[lang="zh-CN"] .sidebar-note{transform:none;padding:0 10px;margin-top:42px}
html[lang="zh-CN"] .sidebar-note p{font-family:var(--zh-ui);font-style:normal;font-size:14px;line-height:2;letter-spacing:.03em}
html[lang="zh-CN"] .studio-heading{align-items:center;gap:16px;flex-wrap:wrap}
html[lang="zh-CN"] .studio-heading h2{font-size:16px;font-weight:600;letter-spacing:.02em}
html[lang="zh-CN"] .quiet-label{font-size:11px;color:#77836b}
html[lang="zh-CN"] .section-label{gap:10px;flex-wrap:wrap}
html[lang="zh-CN"] .section-label h3{font-size:15px;font-weight:600;letter-spacing:.02em}
html[lang="zh-CN"] .section-label .beta-tag{font-size:9px!important;font-weight:400;letter-spacing:0;padding:3px 7px}
html[lang="zh-CN"] label,html[lang="zh-CN"] .generation-settings label,html[lang="zh-CN"] .chat-composer>label{font-size:12px;line-height:1.7}
html[lang="zh-CN"] .mode-row select,html[lang="zh-CN"] .generation-settings select{font-size:12px;line-height:1.6;padding:10px}
html[lang="zh-CN"] input,html[lang="zh-CN"] textarea{font-size:13px;line-height:1.9}
html[lang="zh-CN"] .mode-row #ai-status{font-size:10px;max-width:none;white-space:nowrap;padding-top:20px}
html[lang="zh-CN"] .chat-log{min-height:130px;gap:15px;padding-bottom:18px}
html[lang="zh-CN"] .chat-message{font-size:13px;line-height:1.9}
html[lang="zh-CN"] .chat-message .chat-author{font-size:10px;letter-spacing:.04em}
html[lang="zh-CN"] .chat-message .chat-body{padding:12px 15px}
html[lang="zh-CN"] .studio-howto{font-size:11px;line-height:1.9;margin-bottom:15px}
html[lang="zh-CN"] .voice-button,html[lang="zh-CN"] .send-button{font-size:12px;min-height:36px}
html[lang="zh-CN"] .voice-controls select{font-size:11px;width:76px;min-height:34px}
html[lang="zh-CN"] .voice-status,html[lang="zh-CN"] .chat-bottom,html[lang="zh-CN"] .chat-bottom .text-button,html[lang="zh-CN"] .audio-upload-row>span{font-size:10px;line-height:1.9;color:#758268}
html[lang="zh-CN"] .service-note,html[lang="zh-CN"] .generation-note,html[lang="zh-CN"] .storage-note{font-size:11px;line-height:1.9;color:#758268}
html[lang="zh-CN"] .primary-button,html[lang="zh-CN"] .secondary-button{font-size:13px;min-height:42px;line-height:1.6}
html[lang="zh-CN"] .local-arrange,html[lang="zh-CN"] .sample-row,html[lang="zh-CN"] .text-button{font-size:11px}
html[lang="zh-CN"] .primary-button.full-width>span:last-child:not([data-icon]){display:none}
html[lang="zh-CN"] .primary-button.full-width>span:first-child{margin-right:0}
html[lang="zh-CN"] .pending-journal{font-size:13px;line-height:1.9;padding:18px}
html[lang="zh-CN"] .pending-journal strong{font-size:13px}
html[lang="zh-CN"] .pending-journal p{font-size:11px;line-height:1.9}
html[lang="zh-CN"] .pending-journal h4{font-size:24px;margin-top:20px}
html[lang="zh-CN"] .journal-details summary{font-size:13px;line-height:1.8}
html[lang="zh-CN"] .paper-title{font-size:clamp(28px,2.5vw,36px);margin:22px 0;transform:none}
html[lang="zh-CN"] .paper-story{font-family:var(--zh-book);font-size:14px;line-height:2;columns:1;letter-spacing:.025em;line-break:strict;word-break:normal;overflow-wrap:break-word;color:#59634e}
html[lang="zh-CN"] .paper-story:first-letter{font-size:inherit;color:inherit}
html[lang="zh-CN"] .paper-topline{letter-spacing:.12em}
html[lang="zh-CN"] .paper-topline>span:last-child{font-size:10px;letter-spacing:.06em}
html[lang="zh-CN"] .paper-meta{font-size:10px;letter-spacing:.02em}
html[lang="zh-CN"] .paper-meta .mood{font-size:10px;letter-spacing:0}
html[lang="zh-CN"] .paper-footer{font-size:9px;letter-spacing:.04em}
html[lang="zh-CN"] .paper-empty-photo{font-family:var(--zh-ui);font-style:normal;letter-spacing:.04em}
html[lang="zh-CN"] .paper-quote{font-family:var(--zh-book);font-size:17px;font-style:normal;line-height:1.9;transform:none}
html[lang="zh-CN"] .handwritten{font-family:var(--zh-ui);font-size:12px;font-style:normal;transform:none;letter-spacing:.05em}
html[lang="zh-CN"] .modal-header h2{font-family:var(--zh-book);font-size:26px;line-height:1.5;letter-spacing:.02em}
html[lang="zh-CN"] #modal-content{font-size:13px;line-height:1.95}
html[lang="zh-CN"] #modal-content h3{font-weight:600}
@media(max-width:730px){.language-switch{padding:3px;border-radius:10px}.language-switch button{min-width:43px;min-height:30px;padding:5px 9px;font-size:11px}.topbar-right{gap:10px}.local-indicator{display:none}html[lang="zh-CN"] .intro{margin:4px 0 30px;gap:16px}html[lang="zh-CN"] .intro h1{font-size:36px;line-height:1.55;margin:16px 0}html[lang="zh-CN"] .intro p{font-size:12px;max-width:25em}html[lang="zh-CN"] .intro-art{display:none}html[lang="zh-CN"] .studio-heading{gap:10px}html[lang="zh-CN"] .studio-heading h2{font-size:15px}html[lang="zh-CN"] .quiet-label{font-size:10px;max-width:none}html[lang="zh-CN"] .paper-title{font-size:29px}html[lang="zh-CN"] .paper-story{font-size:14px}html[lang="zh-CN"] .pending-actions{flex-direction:column}html[lang="zh-CN"] .chat-bottom{flex-wrap:wrap}html[lang="zh-CN"] .chat-bottom>span{max-width:none}html[lang="zh-CN"] .section-label h3{font-size:14px}}

/* The preview has the same fixed A4 geometry as print and PNG exports. */
.a4-book{width:100%;min-width:0}
.a4-sheets{display:grid;gap:22px}
.a4-sheet{display:block;width:100%;height:auto;aspect-ratio:210/297;box-shadow:0 5px 18px #34412413;overflow:hidden}
.a4-sheet text{letter-spacing:normal;word-spacing:normal}
.a4-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 16px;font:12px/1.6 Arial,"PingFang SC",sans-serif;color:#677450}
.a4-pagination button{border:1px solid #cdd5c1;border-radius:7px;background:#f8f9f1;color:#536343;padding:7px 10px;font:inherit;min-height:34px}
.a4-pagination button:disabled{opacity:.4;cursor:default}
.a4-pagination span{white-space:nowrap;font-variant-numeric:tabular-nums}
.gallery-preview .a4-pagination{display:none}
#modal-content .a4-book{width:100%}
@media(max-width:400px){.a4-pagination{font-size:11px}.a4-pagination button{padding:6px 8px}}

/* Shared control rhythm for both languages. Padding is inside the editable surface. */
.page-context{font-size:13px;font-weight:500;letter-spacing:.02em;color:#65705a}
.language-switch{gap:0;padding:3px;border-radius:100px;background:#eeefe8;border-color:#dce0d3;box-shadow:none}
.language-switch button{border-radius:100px;min-width:54px;min-height:34px;padding:7px 14px;font-size:12px;letter-spacing:0}
.language-switch button[aria-pressed="true"]{background:#526246;color:#fff;box-shadow:0 1px 3px #27362012}
.language-switch button:hover:not([aria-pressed="true"]){background:#e3e8d9}
input[type="text"],input[type="search"],input[type="date"],input:not([type]),textarea{padding:13px 15px;border-radius:10px;line-height:1.7;border-color:#dce1d3;caret-color:#405932}
textarea{padding:15px 16px;line-height:1.85;resize:vertical}
input::placeholder,textarea::placeholder{color:#8b9482;opacity:1}
.input-icon input{padding-left:40px}
.search-field input{padding-left:39px}
.chat-composer{padding:14px;border-radius:12px;background:#fffef9}
.chat-composer textarea,html[lang="zh-CN"] .chat-composer textarea{padding:13px 14px;margin:10px 0 3px;border:1px solid #e0e5d8;border-radius:9px;background:#fafbf6;min-height:116px;line-height:1.9;box-sizing:border-box}
.chat-composer textarea:focus-visible{outline:2px solid #7b8c69;outline-offset:1px}
select,.voice-controls select,.mode-row select,.generation-settings select,html[lang="zh-CN"] .mode-row select,html[lang="zh-CN"] .generation-settings select{appearance:none;-webkit-appearance:none;border:1px solid #dce1d3;border-radius:10px;background-color:#fffef9;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%2368755b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding:11px 36px 11px 13px;font-size:12px;line-height:1.6;min-height:43px;box-shadow:none;color:#4b5940}
.voice-controls select{width:94px;min-height:36px;padding:7px 26px 7px 10px;background-position:right 7px center;font-size:11px}
.voice-button,.send-button{min-height:36px;border-radius:8px;padding:8px 12px;font-size:12px}
.template-options{gap:10px}
.template-option{position:relative;border:1px solid #dce1d3;border-radius:11px;background:#fbfcf7;box-shadow:none;transition:border-color .15s,background .15s}
.template-option.selected,.template-option[aria-pressed="true"]{border-color:#687c55;background:#edf1e5;box-shadow:inset 0 0 0 1px #687c55}
.template-option[aria-pressed="true"]::after{content:'';position:absolute;right:9px;top:9px;width:7px;height:7px;border-radius:50%;background:#526246}
.template-option .mini-page{transform:none!important;border-radius:3px;box-shadow:0 2px 4px #35432b12}
.swatch{width:30px;height:30px;border:3px solid #fffef9;box-shadow:0 0 0 1px #dce1d3}
.swatch.selected,.swatch[aria-pressed="true"]{box-shadow:0 0 0 2px #526246;outline:0}
.journal-details summary>span:last-child{font-size:0;width:16px;height:16px;position:relative}
.journal-details summary>span:last-child::after{content:'';position:absolute;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);left:4px;top:2px}
.journal-details[open] summary>span:last-child::after{transform:rotate(225deg);top:7px}
.primary-button,.secondary-button{border-radius:9px}
.storage-note{font-size:11px;line-height:1.7;color:#78846c}
@media(max-width:730px){.language-switch{border-radius:100px}.language-switch button{min-width:48px;padding:6px 11px;border-radius:100px}.page-context{font-size:12px}.chat-composer{padding:12px}.voice-controls{gap:4px}.generation-settings{gap:10px}}
