/* Red diary system, expanded to the complete offline prototype. */
body.user-test .app-nav,.app-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.app-nav button{min-width:0}.app-nav button span{white-space:nowrap}.home-scene{height:174px}.home-scene .scene-art{height:170px}.home-scene .speech{font-size:22px}.home-person{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;margin:3px 0 12px;color:#9f7b60}.home-person>button{display:flex;align-items:center;gap:4px;min-height:30px}.home-person .icon{width:16px;height:16px}.home-person>button:last-child{position:relative}.home-person b{border-radius:50%;font:9px/15px system-ui;width:15px;background:#af5147;color:white;position:absolute;top:0;right:-6px}.home-daily{display:block;width:100%;padding:17px 18px 14px;text-align:left;background:#fff7e8;border:1px solid #dbc7ab;border-radius:6px 14px 8px 6px;position:relative}.home-daily>span{font-size:9px;color:#b18d70}.home-daily h2{font:700 27px/1.4 var(--hand);letter-spacing:-.9px;margin:8px 0}.home-daily>p{font-size:11px;line-height:1.8;color:#a2866e}.home-daily>strong{font-size:10px;color:#ae6753;display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:11px}.home-daily .icon{width:14px;height:14px}.home-chat-hint{font-size:19px!important;margin-top:15px!important}.home-small-links{margin:15px 0 20px;border:1px solid #e0ccb0;border-radius:10px;background:#fbf1df;padding:0 13px}.product-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:61px;padding:13px 0;border-bottom:1px solid #ddccb3;text-align:left;font-size:13px}.product-row:last-child{border-bottom:0}.product-row span{flex:1}.product-row small{display:block;font-size:10px;color:#ac8b6f;margin-top:4px;line-height:1.7}.product-row .icon{width:18px;height:18px;color:#b29576;flex:none}.home-small-links .product-row{font-size:12px;min-height:59px}.home-small-links .product-row small{font-size:9px}
.screen form:not(.chat-form):not(#question-form):not(#birth-form):not(.companion-composer){display:block}.screen form>label:not(.check-row):not(.product-file-button),dialog form>label:not(.check-row){display:block;font-size:12px;font-weight:550;color:#927052;margin:18px 0 8px}.screen form>input:not([type=checkbox]):not([type=radio]):not([type=file]),.screen form select,.screen form>textarea,dialog form>input:not([type=checkbox]),dialog form>textarea,dialog form>select{width:100%;font-size:14px;line-height:1.8;padding:10px 11px;border:1px solid #d9c2a1;border-radius:8px;background:#fff8e9;color:#715741;min-height:44px}.screen form>textarea,dialog form>textarea{min-height:110px;resize:vertical}.screen form>.primary,dialog form>.primary{margin-top:22px;min-height:45px;font-size:14px}.product-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.product-fields label{display:block;margin:17px 0 8px;font-size:12px;color:#947357}.product-fields select{width:100%}.birth-fields{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:8px;border:0;padding:0;margin:20px 0 6px}.birth-fields legend{font-size:12px;margin-bottom:8px;color:#947357}.birth-fields input{width:100%;min-width:0;border:1px solid #d9c2a1;border-radius:8px;padding:10px;font-size:14px;background:#fff8e9;color:#715741}.product-actions{display:flex;gap:8px;margin:15px 0;align-items:center}.product-actions>button{flex:1;min-width:0;min-height:41px;font-size:11px;padding:8px}.product-actions>.icon-button{flex:0 0 38px}.product-actions .icon{width:18px;height:18px}.product-paper{padding:20px 18px;background:#fff7e7;border:1px solid #d8c2a1;border-radius:5px 12px 8px 5px;margin:18px 0}.product-paper h2{font:700 24px/1.5 var(--hand);letter-spacing:-.6px;margin-bottom:12px}.product-paper p{font-size:12px;line-height:1.95;color:#98775a;margin:9px 0}.product-paper blockquote{font:700 26px/1.65 var(--hand);margin:18px 0 5px;color:#9b654c}.product-paper small{font-size:9px;color:#ac9277;overflow-wrap:anywhere}.product-hint{font-size:10px!important;line-height:1.9!important;color:#ad9277!important;margin:16px 0!important}.product-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:19px 0}.product-tabs>button{border:1px solid #d7bfa0;background:#fff6e7;border-radius:20px;padding:8px 12px;min-height:35px;flex:none;font-size:10px;white-space:nowrap}.product-tabs>button[aria-pressed=true]{background:#b25849;color:#fff8e9;border-color:#b25849}.product-empty{text-align:center;padding:12px 0 30px}.product-empty h2{font:700 25px var(--hand);margin:10px 0}.product-empty p{font-size:12px;color:#a0866c;line-height:1.9;margin:10px 0 20px}.product-empty .secondary{min-height:42px;font-size:12px}.product-empty-text{font-size:12px;color:#a58a70;line-height:1.9;margin:25px 0}
.date-switch{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:3px 0 18px}.date-switch>button:not(.icon-button){font-size:13px;font-weight:650}.date-switch .icon-button{width:35px;height:35px}.date-switch h1{font-size:27px}.daily-cover{text-align:center;margin-bottom:19px}.daily-cover .ham-stage{height:145px}.daily-cover .ham-sprite{width:125px;height:125px}.daily-cover .ham-state-label{font-size:17px}.daily-cover>span{display:block;font-size:10px;color:#ae886b;margin-top:6px}.daily-cover h1{font-size:29px;margin:11px 0}.daily-cover>b{display:block;font-size:42px;line-height:1.4;color:#ae5c49}.daily-cover>b>small{font-size:10px;margin-left:5px;color:#af9277;font-weight:400}.daily-ritual .secondary{font-size:12px;gap:8px;min-height:41px}.daily-ritual .secondary[aria-pressed=true]{background:#dde1c7}.lucky-pair{display:flex;background:#f0e4cf;border-radius:10px;padding:17px;margin:18px 0}.lucky-pair>span{flex:1;text-align:center;font-size:10px;color:#a88b70}.lucky-pair b{display:block;font:700 23px var(--hand);margin-top:8px;color:#916b4f}.product-moods{border:0;padding:0;margin:20px 0;display:flex;justify-content:space-between;gap:5px}.product-moods legend{font-size:11px;color:#a68468;margin-bottom:12px}.product-moods label{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;flex:1;cursor:pointer;padding:9px 0;border-radius:9px;border:1px solid transparent}.product-moods input{position:absolute;opacity:0;width:100%;height:100%;inset:0;cursor:pointer}.product-moods label:has(input:checked){background:#f0dfc4;border-color:#d2af86}.product-moods label:has(input:focus-visible){outline:2px solid #aa5c4b}.product-moods b{font-size:10px;font-weight:500;color:#a17b5c}.product-moods .mood-face{width:29px;height:27px}.profile-ticket{border:1px solid #d8bfa0;border-radius:5px 13px 8px 5px;background:#fcf2df;padding:19px;margin:20px 0}.profile-ticket header{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#aa896c}.profile-ticket header>b{font-size:9px;background:#ebd8b8;padding:4px 8px;border-radius:10px;color:#a1654d}.profile-ticket h2{font:700 29px var(--hand);margin:11px 0}.profile-ticket>p{font-size:11px;color:#a3866b;line-height:1.8}.profile-ticket .product-actions{margin-bottom:0}.product-chart{border-collapse:separate;border-spacing:6px;width:100%;margin:20px 0}.product-chart th{font-size:10px;color:#ab8e70;font-weight:500;padding:6px}.product-chart td{text-align:center;padding:15px 2px;border-radius:8px;font:32px/1.2 serif}.chart-0{background:#e3eaf0;color:#647f91}.chart-1{background:#e3ead8;color:#738559}.chart-2{background:#f1d8cc;color:#a66d56}.chart-3{background:#efe0b9;color:#a08a55}.chart-4{background:#e5e1db;color:#8e887d}.product-elements{display:flex;align-items:flex-end;gap:12px;margin:40px 0}.product-elements>div{display:flex;flex-direction:column;align-items:center;gap:9px;flex:1;font-size:12px}.product-elements i{width:100%;border-radius:6px;display:block}.product-elements b{font-size:11px;font-weight:500;color:#a6896c}.product-faq{border-bottom:1px solid #d8c2a5;padding:15px 0}.product-faq summary{font-size:12px;cursor:pointer;color:#927053;line-height:1.8}.product-faq p{font-size:12px;color:#a0886f;line-height:1.95;margin:14px 0}.product-faq .secondary{font-size:11px;min-height:40px;margin:10px 0}.compat-option{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;padding:15px 0;border-bottom:1px solid #d8c2a5;gap:12px}.compat-option b{font-size:14px;display:block}.compat-option small{font-size:10px;color:#a98a6c;display:block;margin-top:6px}.compat-option i{width:27px;height:27px;border-radius:50%;border:1px solid #d2b695;font:14px/27px system-ui;text-align:center;flex:none}.compat-option[aria-pressed=true] i{background:#b15a4a;color:white;border-color:#b15a4a}
.diary-card{display:block;width:100%;text-align:left;padding:19px;background:#fff7e7;border:1px solid #d8c1a0;border-radius:6px 13px 7px 6px;margin:18px 0}.diary-card header{display:flex;justify-content:space-between;font-size:10px;color:#af8d6e}.diary-card p{font-size:12px;color:#937156;line-height:1.95;margin:16px 0;white-space:pre-line;overflow-wrap:anywhere}.diary-card small{font-size:9px;color:#af8d6e}.product-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:25px 0}.product-calendar>span{text-align:center;font-size:10px;color:#ad8e71;padding:5px 0}.product-calendar>button{height:42px;border-radius:9px;font-size:12px;position:relative;min-width:0}.product-calendar>button.is-today{border:1px solid #b26a52}.product-calendar>button[aria-pressed=true]{background:#b15a4a;color:#fff7e7}.product-calendar b{position:absolute;width:4px;height:4px;border-radius:50%;background:#b48d5a;bottom:3px;left:calc(50% - 2px)}.product-calendar>button[aria-pressed=true] b{background:#fff5df}.product-search{display:block;width:100%;border:1px solid #d6bea0;border-radius:9px;background:#fff8eb;padding:11px 13px;font-size:13px;min-height:43px;color:#8e6c51}.product-library-item{border-bottom:1px solid #d8c2a5;padding:21px 0}.product-library-item>span{font-size:9px;color:#b0977b}.product-library-item h2{font:700 25px var(--hand);margin:10px 0}.product-library-item>p{font-size:12px;line-height:1.95;color:#a18468;white-space:pre-line;overflow-wrap:anywhere}.product-library-item .product-actions{margin-bottom:0}.more-profile{padding:22px 18px;background:#f0e1c7;border:1px solid #d6b795;border-radius:12px;margin:3px 0 20px}.more-profile>span{font-size:10px;color:#a68164}.more-profile h1{font-size:30px;margin:10px 0 18px}.more-profile>.secondary{font-size:12px;min-height:39px}.product-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #e2cdb0;font-size:12px;color:#987253}.product-setting:last-of-type{border:0}.product-setting input{width:18px;height:18px;accent-color:#ae594a}.product-file-button{display:block;padding:13px;text-align:center;font-size:12px;background:#fff7e8;border:1px dashed #cba57e;border-radius:9px;margin:12px 0;color:#9b7154;cursor:pointer}.product-file-button input{display:block;font-size:10px;max-width:100%;margin:8px auto 0}.notification-card{display:block;width:100%;text-align:left;background:#f0dfc4;border:1px solid #d4b48d;border-radius:10px;margin:17px 0;padding:18px}.notification-card.read{background:#f8eedc;border-color:#e0ccb0;opacity:.8}.notification-card>span{font-size:9px;color:#b18d6c}.notification-card h2{font:700 24px var(--hand);margin:10px 0}.notification-card p{font-size:12px;color:#9d7d60;line-height:1.9}.demo-price{font-size:29px;font-weight:700;display:block;color:#a85646;margin:18px 0 10px}.demo-price>small{font-size:10px;color:#b08f70;font-weight:400;display:block;margin-top:8px}.order-scene .ham-stage{margin:10px 0 20px}
.album-kind-card{display:grid;grid-template-columns:110px minmax(0,1fr);gap:15px;text-align:left;width:100%;background:#fff6e6;border:1px solid #d8c0a0;border-radius:12px;padding:10px;margin:20px 0}.album-kind-card>img{width:110px;height:150px;object-fit:cover;border-radius:7px}.album-kind-card>span{display:block;padding:9px 3px}.album-kind-card small{font-size:8px;color:#b19375}.album-kind-card h2{font:700 26px var(--hand);margin:8px 0}.album-kind-card p{font-size:10px;color:#a08368;line-height:1.9}.album-kind-card b{display:flex;align-items:center;gap:4px;font-size:10px;color:#a6684e;margin-top:13px}.album-kind-card .icon{width:14px;height:14px}.album-style-options{border:0;padding:0;margin:21px 0;display:flex;gap:7px}.album-style-options legend{font-size:12px;color:#9b7456;margin-bottom:9px}.album-style-options label{flex:1;position:relative}.album-style-options input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.album-style-options span{display:block;text-align:center;font-size:10px;border:1px solid #d3b895;border-radius:9px;padding:12px 4px;background:#fff7e9}.album-style-options label:has(input:checked) span{background:#b15a4b;color:#fff7e9;border-color:#a34e43}.album-style-options label:has(input:focus-visible) span{outline:2px solid #79523d}.album-photo{margin:22px 0;padding:12px 12px 18px;background:#fff9ee;border:1px solid #dcc6a7;box-shadow:4px 5px 0 #dec9a8;position:relative;transform:rotate(-1deg)}.album-photo>img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}.album-photo>figcaption{font:23px/1.6 var(--hand);color:#8e684b;margin:18px 5px 0;white-space:pre-line;overflow-wrap:anywhere}.album-photo.style-warm>img{filter:sepia(.12) saturate(.9)}.album-photo.style-mono>img{filter:grayscale(1)}.album-photo.style-diary{background:#eddbc0;border-color:#cfae88}.sample-watermark{position:absolute;left:22px;top:24px;font-size:8px;color:#87634e;background:#fff7e5d9;border-radius:4px;padding:5px 8px}.reference-preview{display:flex;align-items:center;gap:12px;margin:16px 0;padding:12px;border:1px dashed #c9a47a;background:#f4e6ce;border-radius:9px}.reference-preview img{width:70px;height:75px;object-fit:contain;border-radius:4px}.reference-preview figcaption{font-size:10px;color:#a07d5c;line-height:1.8}.album-buddy{display:flex;align-items:flex-start;gap:10px;margin:25px 0 15px}.album-buddy .reply-mini{width:52px;height:52px}.album-buddy .ham-stage,.album-buddy .ham-sprite{width:52px;height:52px}.album-buddy p{font-size:11px;line-height:1.95;color:#9c7b5e;background:#f0e1c7;border-radius:4px 12px 12px 12px;padding:12px 14px}.album-library-card{display:flex;align-items:center;gap:14px;padding:15px 0;width:100%;text-align:left;border-bottom:1px solid #d8c0a0}.album-library-card>img{width:76px;height:92px;object-fit:cover;border-radius:6px}.album-library-card>span{flex:1;min-width:0}.album-library-card b{display:block;font:700 23px var(--hand);margin-bottom:8px}.album-library-card small{font-size:10px;color:#a58a6e;line-height:1.8;display:block;overflow-wrap:anywhere}.album-library-card .icon{width:17px;height:17px;flex:none}
body.app-night{--paper:#302923;--ink:#f0e1cc;--muted:#baa188;background:#211d1a;color:#f0e1cc}body.app-night .app-shell,body.app-night .screen{background:#302923}body.app-night .app-header{color:#f0e1cc}body.app-night .app-nav{background:#3c3027;border-color:#604b3b}body.app-night .product-paper,body.app-night .profile-ticket,body.app-night .home-daily,body.app-night .more-profile,body.app-night .home-small-links,body.app-night .notification-card,body.app-night .diary-card,body.app-night .album-kind-card,body.app-night .companion-message p,body.app-night .sentence-paper,body.app-night .companion-composer,body.app-night .companion-note,body.app-night .chat-checkin,body.app-night .expression-preview{background:#403329;color:#f0dfc5;border-color:#785e46}body.app-night .screen p,body.app-night .screen label,body.app-night .companion-message p,body.app-night .product-row small,body.app-night .product-paper small{color:#cbb196}body.app-night .screen h1,body.app-night .screen h2,body.app-night .product-paper blockquote{color:#efcfaa}body.app-night .screen input:not([type=checkbox]):not([type=radio]),body.app-night .screen select,body.app-night .screen textarea,body.app-night .product-search{background:#342a23;color:#f2dfc3;border-color:#795d45}body.app-night .secondary{background:#48382b;color:#eed9bb;border-color:#806144}body.app-night .product-tabs>button{background:#443328;color:#cfb295;border-color:#806143}body.app-night .product-tabs>button[aria-pressed=true]{background:#b35d4c;color:#fff8ed}body.app-night .product-moods label:has(input:checked),body.app-night .lucky-pair{background:#5b4531}body.app-night .return-note{background:#47372b;color:#e8c5a0;border-color:#9b7651}body.app-night .return-note strong{color:#edc69d}body.app-night .demo-ribbon{background:#45362a;color:#c2a483}body.app-night .product-calendar>button[aria-pressed=true]{color:#fff8e9}body.app-night .product-chart td{color:#5a4735}body.app-night .companion-message.user p{background:#59422f;border-color:#795b3c}body.app-night .sentence-tones>button{background:#4c3829;color:#ddc1a0}body.app-night .sentence-tones>button[aria-pressed=true]{background:#b35d4c;color:#fff9ee}
body.app-large .product-paper p,body.app-large .product-row,body.app-large .diary-card p,body.app-large .companion-message p,body.app-large .product-library-item>p{font-size:15px;line-height:2}body.app-large .product-hint,body.app-large .privacy-note{font-size:12px!important}body.app-reduce *,body.app-reduce *:before,body.app-reduce *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:760px){.home-scene{height:165px}.home-scene .scene-art{height:164px}.home-person{margin-top:5px}.screen{padding-left:20px;padding-right:20px}.home-small-links .product-row{min-height:57px}.product-calendar{gap:4px}.album-result .hand-title{font-size:28px}.product-fields{gap:9px}.product-paper{padding:18px 16px}.app-nav{gap:2px;padding-left:8px;padding-right:8px}.app-nav>button{font-size:9px}.home-daily h2{font-size:26px}}
@media(max-width:370px){.album-kind-card{grid-template-columns:95px minmax(0,1fr);gap:10px}.album-kind-card>img{width:95px;height:142px}.album-kind-card h2{font-size:24px}.product-actions>button{font-size:10px;padding:7px}.product-calendar{gap:3px}.product-calendar button{height:38px}.app-nav>button{font-size:9px}.product-tabs>button{padding:8px 10px}.daily-cover h1{font-size:27px}.product-moods{gap:3px}}

/* Paper inserts keep readable ink in both viewing themes. */
body.app-night .reading-paper,body.app-night .report-greeting,body.app-night .pull-quote,body.app-night .sticky-note,body.app-night .question-note{background:#403329;color:#f0dfc5;border-color:#785e46}
body.app-night .book-label,body.app-night .album-photo{color:#44342c}
body.app-night .book-label h2,body.app-night .book-label p,body.app-night .album-photo figcaption{color:#76513d}
body.app-night .chapter-jumps button,body.app-night .paper-tab{background:#49382c;color:#ead3b6;border-color:#876548}
body.app-night .paper-tab[aria-pressed=true]{background:#98584a;color:#fff5e5}
@media(max-width:760px){.home-scene{margin-left:-20px;margin-right:-20px}}
