@import url('./assets/fonts/f_hand.css');
@font-face{font-family:TravelSerif;src:url('./apps/cozyhouse/fonts/zh-serif.woff2') format('woff2');font-display:swap}
.tx-room{--tx-bg:#f8f3ed;--tx-paper:#fffdf8;--tx-ink:#493b3b;--tx-soft:#8a7771;--tx-line:#ddcfc3;--tx-accent:#b06f64;background:var(--tx-bg);color:var(--tx-ink);min-height:100%;padding:18px 16px 30px;box-sizing:border-box;font-size:13px;line-height:1.7}
.tx-room[data-theme=night]{--tx-bg:#241f23;--tx-paper:#30282c;--tx-ink:#f2e8de;--tx-soft:#bea99f;--tx-line:#55464a;--tx-accent:#e3b5a4;background:radial-gradient(circle at 15% 25%,#7c665022 0,transparent 45%),radial-gradient(circle at 80% 40%,#66536822 0,transparent 40%),#241f23}
.tx-room button{font:inherit;cursor:pointer;border:1px solid var(--tx-line);border-radius:12px;background:var(--tx-paper);color:var(--tx-ink);padding:8px 12px;line-height:1.5;min-height:36px}
.tx-room button:disabled{opacity:.48;cursor:default}.tx-room button:hover{border-color:var(--tx-accent)}.tx-room button:focus-visible{outline:2px solid var(--tx-accent);outline-offset:2px}
.tx-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.tx-header>span,.tx-room small{font-size:10px;letter-spacing:.08em;color:var(--tx-soft)}.tx-header button{border-radius:50%;width:36px;height:36px;padding:0;font-size:20px}
.tx-tabs{display:flex;gap:8px;padding-bottom:14px;border-bottom:1px solid var(--tx-line);margin-bottom:22px}.tx-tabs button{border:0;background:transparent;border-radius:0;flex:1;color:var(--tx-soft);padding:7px 0}.tx-tabs .on{color:var(--tx-ink);box-shadow:0 1px 0 var(--tx-accent)}
.tx-content h1,.tx-content h2{font-family:TravelSerif,Georgia,serif;font-weight:500;line-height:1.7;letter-spacing:.03em;margin:12px 0}.tx-content h1{font-size:27px}.tx-content h2{font-size:22px}
.tx-welcome{padding:44px 25px 36px;border-radius:90px 90px 18px 18px;color:#fff1de;background:radial-gradient(ellipse at 75% 20%,#cfaa7655,transparent 35%),linear-gradient(165deg,#343448,#7c5b52 60%,#b88d68);box-shadow:0 15px 35px #0001;min-height:350px;box-sizing:border-box}.tx-welcome small{color:#decabc}.tx-welcome p{color:#f4decc;font-size:13px;line-height:2}.tx-welcome button{margin-top:28px;color:#584345;background:#faebd8;border-color:transparent;width:100%}
.tx-route{display:flex;overflow-x:auto;gap:6px;scrollbar-width:none;margin:0 -4px 18px;padding:0 4px 5px}.tx-route button{white-space:nowrap;flex:none;font-size:11px;background:transparent;border:0;padding:6px 9px;min-height:30px}.tx-route .on{background:var(--tx-paper);border-bottom:1px solid var(--tx-accent)}
.tx-scene{padding:24px 22px;border-radius:16px;color:#fff4e5;background:radial-gradient(ellipse at 85% 0%,#d8b38155,transparent 55%),linear-gradient(155deg,#333342,#7a5448);box-shadow:0 10px 25px #0001}.tx-scene.tx-sea{background:linear-gradient(145deg,#2f5260,#75898e)}.tx-scene.tx-city{background:linear-gradient(155deg,#493e42,#95756b)}.tx-scene>small{color:#e4cbb7}.tx-scene h1{font-size:25px;line-height:1.65}.tx-scene>p{font-size:14px;line-height:2.1;white-space:pre-wrap}.tx-scene-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px}.tx-scene-tools button{font-size:11px;color:#faeddd;border-color:#ffffff35;background:#ffffff0a;padding:7px 9px}
.tx-conversation{margin:25px 0}.tx-opening{padding:16px 18px;border-left:2px solid var(--tx-accent);white-space:pre-wrap;background:var(--tx-paper);font-family:TravelSerif,serif;line-height:2;font-size:15px}.tx-opening small{display:block;font:10px system-ui;margin-top:8px;opacity:.7}.tx-turn{max-width:90%;margin:16px 0;padding:13px 16px;background:var(--tx-paper);border:1px solid var(--tx-line);border-radius:15px 15px 15px 3px}.tx-turn p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;font-size:14px;line-height:1.9}.tx-turn.me{margin-left:auto;background:#b37c6b19;border-radius:15px 15px 3px 15px}.tx-error{font-size:12px;color:var(--tx-soft);padding:12px;border:1px dashed var(--tx-line);border-radius:10px}
.tx-choices{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.tx-choices button{font-size:11px;border-radius:20px;background:transparent;padding:6px 10px}
.tx-compose{display:grid;gap:8px}.tx-compose textarea,.tx-note textarea{width:100%;box-sizing:border-box;background:var(--tx-paper);color:var(--tx-ink);border:1px solid var(--tx-line);border-radius:12px;padding:13px;font-family:inherit;font-size:13px;line-height:1.8;resize:vertical;min-height:76px;outline:none}.tx-compose textarea:focus,.tx-note textarea:focus{border-color:var(--tx-accent)}.tx-compose button{background:#b88875;color:#fff7ee;border:0}.tx-note{padding:20px 0;margin:18px 0;border-top:1px solid var(--tx-line);border-bottom:1px solid var(--tx-line)}.tx-note label{display:grid;gap:9px;font-size:12px;color:var(--tx-soft)}.tx-note button{font-size:11px;margin-top:8px}
.tx-bottom-actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.tx-bottom-actions button{flex:1;min-width:120px}.tx-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--tx-line);padding-top:22px;margin-top:30px;font-size:10px;color:var(--tx-soft)}.tx-footer button{background:transparent;border:0;color:var(--tx-soft);font-size:10px;padding:4px;min-height:30px}
.tx-photo{margin:23px 0;background:var(--tx-paper);border:1px solid var(--tx-line);box-shadow:0 10px 25px #0000000b}.tx-photo img{width:100%;display:block;max-height:440px;object-fit:cover}.tx-photo figcaption{padding:16px 18px;font-family:TravelSerif,Georgia,serif;font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.tx-photo figcaption small{display:block;font:10px/1.8 system-ui;margin-top:10px;opacity:.75}
.tx-album header{padding:20px 5px 34px;text-align:center;border-bottom:1px solid var(--tx-line)}.tx-album header h1{font-size:29px;line-height:1.9;letter-spacing:.08em}.tx-album header p{font-size:11px;color:var(--tx-soft);letter-spacing:.14em}.tx-album section{padding:32px 0;border-bottom:1px solid var(--tx-line)}.tx-album section>small{letter-spacing:.18em}.tx-prose{font-family:TravelSerif,Georgia,serif;font-size:16px;line-height:2.2;white-space:pre-wrap}.tx-album blockquote{margin:23px 0;padding:17px 19px;border-left:2px solid var(--tx-accent);background:var(--tx-paper);font-family:TravelSerif,serif;font-size:14px;white-space:pre-wrap;line-height:2}.tx-album details{border-top:1px dashed var(--tx-line);padding-top:15px;color:var(--tx-soft)}.tx-album summary{cursor:pointer;font-size:12px}.tx-album-turn{white-space:pre-wrap;line-height:2;font-size:13px;overflow-wrap:anywhere}.tx-album-turn b,.tx-album-turn small{display:block;font-size:11px;margin-bottom:4px}.tx-album-index{padding:20px 0 30px}.tx-album-index h1{margin-bottom:28px}.tx-album-cover{display:block!important;width:100%;text-align:left;margin:14px 0;padding:24px 22px!important;border-radius:4px 18px 18px 4px!important;border-left:3px solid var(--tx-accent)!important}.tx-album-cover span{display:block;font-family:TravelSerif,serif;font-size:20px;line-height:1.8}.tx-album-cover small{display:block;margin-top:10px}
.tx-bill{margin:25px 0;background:#fffaf0;color:#584747;padding:28px 23px;border:1px solid #dac8b7;box-shadow:0 12px 24px #0001;font-size:13px}.tx-bill>small{color:#988071;line-height:1.8;display:block}.tx-bill h2{font-size:23px}.tx-bill-lines{border-top:1px dashed #d9c7b4;border-bottom:1px dashed #d9c7b4;margin:22px 0;padding:10px 0}.tx-bill-lines p,.tx-total{display:flex;justify-content:space-between;gap:15px;align-items:baseline}.tx-bill-lines b{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:500}.tx-total{font-size:19px}.tx-bill-lines p span{overflow-wrap:anywhere}
.tx-planner{padding:12px 8px 20px;color:#665049;font-size:13px;line-height:1.8}.tx-planner>small{font-size:10px;color:#aa8f80;letter-spacing:.14em}.tx-planner h2{font-family:TravelSerif,Georgia,serif;font-weight:500;font-size:24px;margin:10px 0 20px}.tx-planner label{display:grid;gap:6px;margin:16px 0;font-size:12px}.tx-planner .input{width:100%;box-sizing:border-box;font-size:13px}.tx-planner .btn{background:#ac816f;color:#fff8ed;border:0;margin-top:15px}.tx-muted{font-size:12px;line-height:1.9;opacity:.75}
body:has(.tx-room),#stage:has(.tx-room),#phone:has(.tx-room),#appscreen:has(.tx-room){overflow:clip}
@media(max-width:340px){.tx-room{padding:15px 12px 25px}.tx-content h1{font-size:24px}.tx-scene{padding:20px 16px}.tx-album header h1{font-size:25px}}

/* A small journal open under a desk lamp. */
.tx-room.tx-reading{height:100%;min-height:580px;padding:12px 13px 14px;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(ellipse at 100% 0%,#dda86b66,transparent 62%),radial-gradient(ellipse at 30% 100%,#72574733,transparent 65%),#292323!important}
.tx-reading>.tx-header,.tx-reading>.tx-tabs,.tx-reading>.tx-footer{display:none}
.tx-reading>.tx-content{height:100%;min-height:0;display:flex;flex-direction:column;gap:7px}
.tx-reading .tx-content>[data-tx]{flex:none;background:transparent;border:0;color:#dcc4a8;font:11px/1.5 system-ui;min-height:28px;padding:4px 8px}
.tx-reading [data-tx=back-albums]{align-self:flex-start}
.tx-notebook{flex:1;min-height:0;display:flex;flex-direction:column;outline:none}
.tx-book-top{display:flex;justify-content:space-between;align-items:baseline;color:#d9b994;padding:2px 7px 12px;font-size:10px;letter-spacing:.15em}.tx-book-top i{font-family:'Ma Shan Zheng',cursive;font-size:17px;letter-spacing:.02em}
.tx-leaf{position:relative;flex:1;min-height:0;border-radius:3px 13px 13px 3px;padding:26px 24px 35px 29px;box-sizing:border-box;color:#624b39;transform-origin:left center;border:1px solid #d9bd8e;background:radial-gradient(ellipse at 95% 0%,#fff6dce6,transparent 75%),repeating-radial-gradient(circle at 17% 31%,#815b2610 0 .6px,transparent .9px 3px),linear-gradient(90deg,#bd9a68,#e7cfa4 3%,#f4e3bf 8%,#efdbb6 96%,#ddc198);box-shadow:inset 8px 0 15px #7e542829,inset -2px 0 2px #fff5d9,3px 2px #d4ba95,6px 4px #b49a7a,0 15px 35px #0006}
.tx-leaf:after{content:'';position:absolute;pointer-events:none;inset:9px 8px 9px 13px;border:1px solid #9c793e15;border-radius:2px 8px 8px 2px}
.tx-leaf-content{height:100%;overflow:hidden;font-family:'Ma Shan Zheng','KaiTi',TravelSerif,cursive;font-size:20px;line-height:1.85;overflow-wrap:anywhere;white-space:normal}
.tx-leaf-content>small{font:9px/1.8 system-ui;color:#987953;letter-spacing:.12em;display:block}
.tx-leaf-content h2{font:26px/1.5 'Ma Shan Zheng','KaiTi',cursive;margin:12px 0 18px;color:#604530}
.tx-leaf-content p{white-space:pre-wrap;margin:0;line-height:1.85}
.tx-leaf-number{position:absolute;bottom:12px;left:0;right:0;text-align:center;font:11px Georgia;color:#9b7c53}
.tx-page-nav{display:flex;justify-content:space-between;align-items:center;padding:17px 6px 5px;color:#cdb393;font:11px Georgia;letter-spacing:.12em}.tx-page-nav button{border:1px solid #c2a47b44;color:#e6cb9f;background:#ffffff05;border-radius:50%;width:37px;height:37px;padding:0;font:19px Georgia}
.tx-book-cover{text-align:center;padding-top:15px}.tx-book-cover>small{font:9px system-ui;letter-spacing:.19em;color:#947957}.tx-cover-mark{display:block;font:44px Georgia;color:#997a4c;margin:28px 0 15px}.tx-book-cover h1{font:32px/1.65 'Ma Shan Zheng','KaiTi',cursive;margin:0 0 22px;color:#64472e}.tx-book-cover p{font-size:18px;line-height:1.9}.tx-book-cover i{font:11px Georgia;letter-spacing:.1em;color:#967e5b;display:block;margin-top:15px}.tx-cover-rule{width:42px;height:1px;background:#ac8c58;margin:26px auto}
.tx-notebook-photo{position:relative;margin:5px 0 0;padding:9px;border:1px solid #ffffffb3;background:linear-gradient(130deg,#ffffffa0,#ffffff35);backdrop-filter:blur(12px) saturate(.85);box-shadow:0 9px 20px #72542825,inset 0 0 0 1px #ffffff35;border-radius:5px;transform:rotate(-1deg)}
.tx-notebook-photo img{height:clamp(100px,23vh,210px);max-height:none;object-fit:contain;background:#b6bcb549;border-radius:2px;cursor:zoom-in;filter:saturate(.92) contrast(.96)}
.tx-notebook-photo figcaption{padding:12px 6px 3px;font:18px/1.7 'Ma Shan Zheng','KaiTi',cursive;color:#634e3b;white-space:pre-wrap}.tx-notebook-photo figcaption small{font:9px/1.7 system-ui;color:#9a805e;margin-top:7px}
.tx-album-cover span,.tx-album-index h1{font-family:'Ma Shan Zheng','KaiTi',cursive}
@media(max-height:740px){.tx-room.tx-reading{min-height:480px}.tx-leaf{padding:20px 21px 30px}.tx-leaf-content{font-size:18px;line-height:1.75}.tx-cover-mark{margin:15px 0 10px;font-size:32px}.tx-book-cover h1{font-size:28px;margin-bottom:15px}.tx-cover-rule{margin:17px auto}.tx-notebook-photo img{height:clamp(80px,18vh,150px)}}
@media(prefers-reduced-motion:reduce){.tx-notebook-photo{transform:none}}

.tx-book-cover{padding-top:8px}.tx-cover-mark{margin:19px 0 12px;font-size:36px}.tx-book-cover h1{font-size:28px;margin-bottom:16px}.tx-cover-rule{margin:20px auto}.tx-book-cover p{font-size:17px}

.tx-book-tools{display:flex;align-items:center;justify-content:space-between;gap:4px;flex:none;padding-bottom:8px}.tx-book-tools button{font:10px/1.5 system-ui!important;min-height:30px!important;padding:4px!important;border:0!important;background:transparent!important;color:#dcc4a8!important}.tx-reading{padding-bottom:25px!important}

/* Shared scrapbook workspace. */
.tx-book-top{flex-wrap:wrap;gap:6px}.tx-book-top .tx-decorate{padding:2px 8px;font:10px/1.5 system-ui;min-height:26px;background:#e9d6b615;border:1px solid #d8b98b40;color:#e4caa3;border-radius:20px;letter-spacing:0}
.tx-scrap-layer{position:absolute;inset:0;pointer-events:none;z-index:3}.tx-scrap-layer .tx-sticker{position:absolute;border:0!important;background:transparent!important;padding:0!important;min-height:0!important;line-height:1.2;filter:drop-shadow(1px 3px 2px #88664030);pointer-events:none;opacity:1!important;white-space:nowrap}
.tx-is-editing .tx-sticker{pointer-events:auto;cursor:grab;touch-action:none}.tx-is-editing .tx-sticker:focus{outline:1px dashed #a17050;outline-offset:5px}.tx-is-editing .tx-leaf{outline:1px dashed #d5bc88;outline-offset:4px}
.tx-shared-writing{position:absolute;bottom:32px;left:28px;right:23px;max-height:142px;border-top:1px dashed #bca47866;padding:10px 2px 0;color:#80624b;cursor:pointer;font:16px/1.5 'Ma Shan Zheng','KaiTi',cursive}
.tx-shared-writing:empty:before{content:'留一点空白，给我们的小心事。';color:#a28b67;font-size:14px;opacity:.75}
.tx-shared-writing p{margin:0 0 5px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-wrap}.tx-shared-writing .tx-user-memo{-webkit-line-clamp:2;font-size:15px}.tx-ta-thought small{display:block;font:8px/1.7 system-ui;color:#aa8866;letter-spacing:.08em}.tx-hand-signature{display:block;max-width:100px;height:30px;object-fit:contain;margin-left:auto;mix-blend-mode:multiply}
.tx-notebook:has(.tx-shared-writing) .tx-leaf-content{height:calc(100% - 155px)}
.tx-notebook:has(.tx-shared-writing) .tx-book-cover{padding-top:0}.tx-notebook:has(.tx-shared-writing) .tx-cover-mark{margin:8px 0;font-size:26px}.tx-notebook:has(.tx-shared-writing) .tx-book-cover h1{font-size:25px;line-height:1.6;margin-bottom:9px}.tx-notebook:has(.tx-shared-writing) .tx-cover-rule{margin:10px auto}.tx-notebook:has(.tx-shared-writing) .tx-book-cover p{font-size:15px}.tx-notebook:has(.tx-shared-writing) .tx-book-cover i{margin-top:7px}
.tx-notebook:has(.tx-shared-writing) .tx-notebook-photo img{height:clamp(90px,18vh,170px)}
.tx-leaf[data-frame=polaroid] .tx-notebook-photo{background:#fffdf4;border-radius:0;padding:9px 9px 17px;border:1px solid #d2cab7;box-shadow:3px 8px 12px #65492925}
.tx-leaf[data-frame=stamp] .tx-notebook-photo{background:#fff9e9;border:3px dotted #b29475;border-radius:0;padding:8px;outline:3px solid #fff9e9}
.tx-leaf[data-frame=tape] .tx-notebook-photo{background:#fffaf0;border:0;border-radius:0}.tx-leaf[data-frame=tape] .tx-notebook-photo:before,.tx-leaf[data-frame=tape] .tx-notebook-photo:after{content:'';position:absolute;width:68px;height:20px;top:-8px;background:repeating-linear-gradient(45deg,#c4937755 0 3px,#efd2ad99 3px 6px);border:1px solid #fff4;z-index:1;transform:rotate(-16deg)}.tx-leaf[data-frame=tape] .tx-notebook-photo:before{left:-9px}.tx-leaf[data-frame=tape] .tx-notebook-photo:after{right:-9px;transform:rotate(20deg)}
.tx-sticker-palette{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.tx-sticker-palette button{font-size:23px;padding:6px;background:#f5e7d333;border:1px solid #bea38255;border-radius:8px;cursor:pointer}.tx-editor-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.tx-editor-actions button{font-size:12px;padding:7px 10px;border:1px solid #bea38266;border-radius:8px;background:#f5e7d344;color:#74533f}.tx-scrap-editor textarea{resize:vertical}
@media(max-height:740px){.tx-notebook:has(.tx-shared-writing) .tx-leaf-content{height:calc(100% - 130px)}.tx-shared-writing{max-height:118px;font-size:14px}.tx-shared-writing p{-webkit-line-clamp:2}.tx-notebook:has(.tx-shared-writing) .tx-book-cover h1{font-size:22px}.tx-notebook:has(.tx-shared-writing) .tx-notebook-photo img{height:90px}.tx-notebook-photo figcaption{font-size:15px;padding-top:6px}}

/* Fit the frame to the photograph, with no letterbox strips. */
.tx-notebook .tx-notebook-photo{box-sizing:border-box;margin:5px auto 0;max-width:100%;transition:none}
.tx-notebook .tx-notebook-photo img{width:100%;height:auto;max-height:none;object-fit:cover;object-position:center;background:transparent}
.tx-notebook .tx-notebook-photo figcaption{font-size:15px;line-height:1.5;padding:9px 4px 3px}
.tx-notebook .tx-notebook-photo figcaption{white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-height:76px}
.tx-notebook .tx-notebook-photo figcaption small{font-size:8px;margin-top:5px;white-space:nowrap;letter-spacing:0}

.tx-notebook .tx-notebook-photo figcaption{display:block;height:74px;max-height:74px;box-sizing:border-box}
.tx-notebook .tx-notebook-photo figcaption>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:45px}
.tx-notebook .tx-notebook-photo figcaption small{display:block;overflow:hidden;text-overflow:ellipsis}

/* Two portrait photographs make one full-width spread. */
.tx-photo-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;width:100%;padding-top:3px}
.tx-notebook .tx-photo-pair .tx-notebook-photo{width:100%;min-width:0;margin:0;padding:6px;transform:rotate(-1deg)}
.tx-notebook .tx-photo-pair .tx-notebook-photo:nth-child(2){transform:rotate(1.2deg)}
.tx-notebook .tx-photo-pair .tx-notebook-photo figcaption{height:82px;padding:7px 2px 2px;font-size:13px;line-height:1.4}
.tx-notebook .tx-photo-pair .tx-notebook-photo figcaption>span{-webkit-line-clamp:2;max-height:36px}
.tx-notebook .tx-photo-pair .tx-notebook-photo figcaption small{font-size:7px;margin-top:3px}
.tx-notebook .tx-photo-pair .tx-photo-note-select{font:8px/1.4 system-ui;color:#987553;background:transparent;border:0;border-bottom:1px dotted #b9997860;border-radius:0;min-height:18px;padding:2px 0;cursor:pointer;display:block;margin-top:2px;white-space:nowrap}
.tx-notebook .tx-photo-pair .tx-photo-note-select.on{color:#6c4733;border-bottom:1px solid #a57953}
.tx-notebook:has(.tx-photo-pair) .tx-leaf-content{height:calc(100% - 125px)}
.tx-notebook:has(.tx-photo-pair) .tx-leaf-content h2{font-size:23px;line-height:1.35;margin:9px 0 14px}
.tx-notebook:has(.tx-photo-pair) .tx-shared-writing{max-height:112px;font-size:15px}
.tx-notebook:has(.tx-photo-pair) .tx-shared-writing p{-webkit-line-clamp:2}
@media(max-height:740px){.tx-notebook:has(.tx-photo-pair) .tx-leaf-content{height:calc(100% - 112px)}.tx-notebook:has(.tx-photo-pair) .tx-shared-writing{max-height:101px;font-size:13px}.tx-notebook .tx-photo-pair .tx-notebook-photo figcaption{height:68px;font-size:12px}.tx-notebook .tx-photo-pair .tx-notebook-photo figcaption>span{-webkit-line-clamp:1;max-height:18px}.tx-photo-pair{gap:7px}}
