
*{box-sizing:border-box}body{margin:0;background:#e9e2d5;color:#173d3d;font:16px system-ui,sans-serif}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit;min-height:44px;border:0}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #076fa0;outline-offset:3px}.app{max-width:480px;margin:auto;background:#fff8e9;min-height:100dvh}header{padding:12px 16px 8px;display:flex;align-items:center;justify-content:space-between}h1{font-size:23px;margin:0}header button{background:transparent;font-size:23px}.tabs{display:flex;gap:8px;padding:0 16px 10px}.tabs button{flex:1;border-radius:12px;background:#eee2cf}.tabs [aria-pressed=true]{background:#326864;color:white}.notice{text-align:center;font-size:12px;margin:0;padding:5px;background:#f5e6cc}.room{position:relative;aspect-ratio:970/1618;background-position:center;background-size:100% 100%;background-repeat:no-repeat}.hot{position:absolute;background:transparent;display:flex;align-items:flex-end;justify-content:center;border-radius:20px;padding:0}.hot:active span{transform:scale(.97)}.hot span{background:#f8e6c7;border:1px solid #c8ad83;box-shadow:0 2px 3px #543a2526;border-radius:9px;padding:8px 10px;font-weight:700;font-size:16px;line-height:1.1}@media(hover:hover) and (pointer:fine){.hot span:hover{border-color:#e3c58b;box-shadow:0 0 6px 2px #ffdc8c55;text-shadow:0 0 4px #ffe1a277,0 0 8px #ffd18433}}.hot:focus-visible{outline:none}.hot:focus-visible span{outline:3px solid #076fa0;outline-offset:3px;box-shadow:0 0 12px 4px #ffdc8c99}.measure{left:3%;top:4%;width:26%;height:17%}.program{left:70%;top:10%;width:28%;height:21%}.diary{left:3%;top:43%;width:39%;height:12%}.library{left:66%;top:36%;width:29%;height:7%}.ideas{left:23%;top:66%;width:54%;height:16%}.reminder{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f6e8ce}.reminder button,.primary{background:#326864;color:white;border-radius:12px;padding:12px 18px;font-weight:700}.panel{padding:16px 20px 28px}h2{font-size:26px;margin:16px 0}h3{font-size:18px}label{display:block;font-weight:600;margin:16px 0 6px}input,textarea{display:block;width:100%;border:1px solid #cbbd9f;border-radius:10px;padding:12px;background:#fffdf7;color:#173d3d}input[type=checkbox]{width:auto;display:inline;margin-right:10px}label:has([type=checkbox]){padding:8px 0}.row{display:flex;gap:12px}.row>*{flex:1;min-width:0}.primary{width:100%;margin-top:22px}.back,.quiet{background:transparent;padding:10px 0}.quiet{display:block;margin:8px auto}.card{background:#fffdf7;border:1px solid #e1d4ba;border-radius:12px;padding:16px;margin:12px 0;width:100%;text-align:left}.muted{color:#627775;font-size:14px}.grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.grid button{background:#f1e8d6;border-radius:8px}.grid .selected{background:#326864;color:white}.grid small{text-align:center;padding:8px 0}.success{padding:12px;background:#deeddd;border-radius:10px}details{margin-top:20px}summary{padding:10px;cursor:pointer}footer{font-size:12px;text-align:center;padding:12px;color:#627775}@media(min-width:600px){.app{margin:20px auto;box-shadow:0 8px 50px #25372a20;border-radius:20px;overflow:hidden}}@media(prefers-reduced-motion:no-preference){.hot span{transition:box-shadow .18s,border-color .18s,transform .12s}}
select{font:inherit;min-height:44px;border:1px solid #a9b6ad;border-radius:10px;padding:8px;background:#fff8e9;color:#173d3d;max-width:100%}.appearance{padding:8px 16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.appearance label{margin:0;font-size:14px}.appearance button{padding:8px 12px;border-radius:10px;background:#e5dac6}.appearance button[aria-pressed=true]{background:#326864;color:white}.app.night{background:#203533;color:#f8eedc}.night .notice,.night .reminder{background:#304b46;color:#f8eedc}.night .hot span{background:#e9d8b7;color:#173d3d}.night .tabs button:not([aria-pressed=true]),.night .appearance button:not([aria-pressed=true]){color:#173d3d}.night .panel{background:#fff8e9;color:#173d3d}.monthbar{display:flex;align-items:center;justify-content:space-between}.monthbar button{padding:8px 16px;background:#e9e1d1;border-radius:9px}.daydot::after{content:"";display:block;width:4px;height:4px;background:currentColor;border-radius:50%;margin:auto} 
[hidden]{display:none!important}.room{width:100%;max-width:calc(max(460px,100svh - 190px)*970/1618);margin-inline:auto}.hot span{min-height:44px;display:flex;align-items:center;justify-content:center}.panel{padding:12px 12px 24px}.grid{gap:0}.grid button{margin:2px 0;min-width:0}.card{overflow-wrap:anywhere}.reminder small{display:block}.reminder span{min-width:0;overflow-wrap:anywhere}.reminder button{flex-shrink:0}.success{color:#173d3d}.night footer{color:#c8d8ce}header button{min-width:44px}.appearance{border-bottom:1px solid #cbbd9f}input,textarea{scroll-margin-top:16px}.back{min-width:44px}.quiet[data-undo]{background:#deeddd;color:#173d3d;border-radius:12px;padding:12px;width:100%;font-weight:700}
.edit-label{display:block;font-size:14px;font-weight:600;margin-top:8px;color:#326864}textarea{resize:vertical}.card{white-space:pre-wrap}.undo-record{background:#deeddd;color:#173d3d;padding:12px;border-radius:12px;width:100%;font-weight:700}.delete-record{color:#934132;padding:12px}.card:empty{display:none}.diary-entry{position:relative;padding-right:34px;white-space:normal}.diary-entry time{display:block;color:#627775;font-size:14px;margin-bottom:8px}.excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}.entry-arrow{position:absolute;right:14px;top:50%}.memory-text{white-space:pre-wrap;overflow-wrap:anywhere}#diaryEntries h3{margin-top:28px}
/* Tactile diary: live text and controls on a quiet paper surface. */
.diary-open #content{padding:12px 8px 18px;background:repeating-linear-gradient(3deg,#ad74460b 0 2px,transparent 2px 9px),linear-gradient(100deg,#c29262,#e6c89d 47%,#ba8653)}
.memory-book{position:relative;isolation:isolate;border:1px solid #c5aa7d;border-radius:12px 22px 22px 12px;padding:14px 16px 28px 26px;background:linear-gradient(90deg,#cab58d 0,#efe1bf 8px,#fff7e5 20px,#fff9ed 65%,#f6ead4);box-shadow:3px 5px 0 #d2b991,5px 8px 0 #93764d,0 10px 20px #4e311b26;min-height:65svh}
.memory-book::before{content:"";position:absolute;left:5px;top:20px;bottom:20px;width:7px;background:radial-gradient(ellipse at center,#785434 0 25%,#b49764 28% 40%,transparent 44%) center top/7px 88px;pointer-events:none;z-index:-1}
.memory-book .back{padding:8px 12px;border-radius:8px 18px 18px 8px;background:linear-gradient(#f0d2a1,#e2b981);border:1px solid #c7a071;box-shadow:0 2px 2px #70502c20;font-weight:600}
.memory-book h2{margin:20px 0 4px;font-size:30px}.memory-book h2+.muted{margin:4px 0 14px}.memory-book .bookmark{margin:8px 0 4px auto;width:auto;display:block;min-width:170px;padding:14px 18px;border-radius:8px 8px 14px 8px;border:1px solid #245653;outline:1px dashed #8db5a0;outline-offset:-5px;background:linear-gradient(120deg,#387a74,#285954);box-shadow:2px 4px 4px #254c3328}.bookmark span{font-size:22px;vertical-align:middle;margin-right:6px}
.memory-book input,.memory-book textarea{background:#fffdf5;border-color:#d9c7a7;box-shadow:inset 0 1px 3px #8960370c}.memory-book input[type=search]{border-radius:18px;background:#f9efd9;padding-left:16px;box-shadow:0 2px 3px #654c2220}
.memory-book #diaryEntries h3{display:table;padding:10px 18px 10px 12px;margin:26px 0 12px;border-radius:5px 20px 20px 5px;background:linear-gradient(110deg,#e9cc90,#f3dfb6);box-shadow:0 2px 2px #7e633322;font-size:18px}.memory-book #diaryEntries h3:nth-of-type(even){background:linear-gradient(110deg,#c1d1bf,#e2e7d2)}
.memory-book .diary-entry,.memory-book .memory-text{background:linear-gradient(120deg,#fffcf2,#faf2e2);border-color:#e2cfad;border-radius:16px;box-shadow:0 3px 5px #6c512315;margin:12px 0;padding-top:17px;padding-bottom:17px}.memory-book .diary-entry time{color:#62746b}.memory-book .entry-arrow{font-size:26px;color:#326864}.memory-book .excerpt{line-height:1.5}.night .memory-book{background:linear-gradient(90deg,#cab58d,#fff7e5 20px,#f6ead4);color:#173d3d}
.memory-book button:focus-visible{outline:3px solid #076fa0;outline-offset:3px}.memory-book .primary:not(.bookmark){border-radius:10px;box-shadow:0 3px 3px #345c3825}.memory-book .success{border:1px solid #b9d2b8}.memory-book .undo-record{border:1px solid #b9d2b8}
@media(hover:hover){.memory-book .diary-entry:hover{border-color:#c5ab77;box-shadow:0 0 0 2px #f3deb2,0 3px 7px #7e633326}.memory-book .bookmark:hover{background:#285954}}
@media(max-width:350px){.memory-book{padding-left:22px;padding-right:12px}.memory-book .bookmark{min-width:155px}}

/* Original illustration reused as CSS sprite surfaces; every label is live HTML. */
.diary-open>header,.diary-open>.tabs,.diary-open>.notice{display:none}.diary-open #content{padding:0;background:#b18455}.diary-open{container-type:inline-size}.illustrated-diary{color:#123d40}.book-hero{position:relative;aspect-ratio:941/430;background:url(assets/diary-art-no-bookmark-leaf.png) 0 0/100% 388.84% no-repeat}.wood-back,.fabric-new{position:absolute;background:transparent;border:0;color:#263f3f;font-weight:700;padding:0;box-shadow:none}.wood-back{left:3.2%;top:32%;width:27%;height:21%;font-size:clamp(16px,4.3cqw,22px)}.fabric-new{left:66%;top:46%;width:26%;height:48%;padding-top:21%;font-size:clamp(16px,4.2cqw,22px);color:#fff2d5;line-height:1.1}.book-hero h2{position:absolute;margin:0;left:10%;top:64%;width:54%;text-align:center;font-size:clamp(25px,7.6cqw,40px);line-height:1.1;font-weight:800;letter-spacing:-1px}.book-child{position:absolute;left:11%;top:82%;width:48%;text-align:center;margin:0;font-size:clamp(15px,3.8cqw,20px);font-weight:600}.book-body{position:relative;padding:0 6% 0 11%;background:#f5e6cd;isolation:isolate}.book-body:before{content:"";position:absolute;inset:0;z-index:-2;background:url(assets/diary-art-no-bookmark-leaf.png) 48% 48%/135% 1100%;opacity:.75}.book-body:after{content:"";position:absolute;left:0;top:0;bottom:0;width:8%;z-index:-1;background:url(assets/diary-art-no-bookmark-leaf.png) 0 50%/1250% 190%;pointer-events:none}.book-bottom{aspect-ratio:941/240;background:url(assets/diary-art-no-bookmark-leaf.png) bottom/100% 696.67% no-repeat}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:is(.book-body,.book-fixed) #diarySearch{width:100%;height:clamp(48px,11.2cqw,62px);background:url(assets/diary-art-no-bookmark-leaf.png) 65% 27.7%/123% 1550%;border:0;border-radius:16px;padding:10px 10px 10px 14%;color:#274849;font-size:clamp(14px,3.7cqw,18px);box-shadow:none}:is(.book-body,.book-fixed) #diarySearch::placeholder{color:#52645e;opacity:1}
.book-body #diaryEntries h3{position:relative;display:flex;align-items:center;margin:18px 0 5px -4%;width:79%;min-height:48px;padding:10px 24% 10px 9%;font-size:clamp(16px,4.2cqw,22px);line-height:1.15;background:url(assets/diary-art-no-bookmark-leaf.png) 14% calc(37% + 3px)/177% 1600%;border-radius:0;box-shadow:none;white-space:nowrap}.book-body #diaryEntries h3:nth-of-type(even){background-position:15% calc(75% + 3px);background-size:177% 1600%}
.book-body .diary-entry{background:url(assets/diary-art-no-bookmark-leaf.png) 66% 46.3%/121% 795%;border:0;border-radius:12px;box-shadow:none;margin:6px 0 10px;padding:12px 28px 15px 18px;min-height:92px;white-space:normal}.book-body .diary-entry time{font-size:clamp(13px,3.3cqw,16px);margin-bottom:5px}.book-body .excerpt{font-size:clamp(16px,4.1cqw,20px);line-height:1.4}.book-body .entry-arrow{font-size:30px;right:12px;color:#315b59}.book-body .memory-text{background:#fff9e9d9;border-color:#d7c6a5;white-space:pre-wrap;line-height:1.6}.book-body .success{margin:0 0 12px}.book-body form{padding-top:4px}.book-body input,.book-body textarea{background:#fffbef;color:#173d3d}.book-body .primary{margin-top:16px}.diary-open footer{background:#ead5b4;color:#42594e}.book-body .muted{padding:20px 0}.wood-back:focus-visible,.fabric-new:focus-visible{outline:3px solid #076fa0;outline-offset:-3px;border-radius:12px}

.book-hero .fabric-new{padding:0 0 16px;display:flex;align-items:flex-end;justify-content:center}.book-hero h2{left:29%;width:33%}.book-child{left:27%;width:35%}.book-body:before{background:url(assets/diary-art-no-bookmark-leaf.png) 0 33.4%/100% 6688%;opacity:1}.book-body .diary-entry{border-radius:16px}.illustrated-diary{min-height:100svh;background:#c49762}.diary-open{background:#c49762}
.excerpt strong{font-weight:750}.book-body .diary-entry time{text-transform:capitalize}.book-hero h2{overflow-wrap:normal}.book-hero:has(.fabric-new[data-back-diary]) h2{left:10%;width:52%;font-size:clamp(21px,5.6cqw,30px)}
/* Month decoration is determined by its date, never by result order. */
.book-body #diaryEntries h3[class*=season-]{isolation:isolate;background:none;padding:10px 12px;gap:10px;width:max-content;max-width:100%;min-width:78%;white-space:normal}
.book-body #diaryEntries h3[class*=season-]::before{content:"";position:absolute;inset:3px 0 -3px;z-index:-1;border-radius:5px 22px 22px 5px;background:linear-gradient(110deg,#e6c38b,#f6e3be);border:1px solid #d5b481;box-shadow:1px 3px 3px #69451b24}
.book-body #diaryEntries h3.season-winter::before{background:linear-gradient(110deg,#c9dce6,#edf2ed);border-color:#aac3cc}.book-body #diaryEntries h3.season-spring::before{background:linear-gradient(110deg,#d2dfb8,#edf0da);border-color:#bdcca2}.book-body #diaryEntries h3.season-summer::before{background:linear-gradient(110deg,#f1d695,#fff0bf);border-color:#ddc47e}.book-body #diaryEntries h3.month-september::before{transform:translateY(3px)}.book-body #diaryEntries h3 i{font-style:normal;margin-left:auto;font-size:23px;color:#85612d}.book-body #diaryEntries h3.season-winter i{color:#527a92}.book-body #diaryEntries h3.season-spring i{color:#779452}.older-memories{width:100%;background:#f3e4c8;border:1px solid #d4bc95;border-radius:12px;padding:12px;font-weight:700}

.book-body #diaryEntries h3.season-autumn{width:79%;padding-right:24%}.book-body #diaryEntries h3.season-autumn::before{background:url(assets/diary-art-no-bookmark-leaf.png) 14% 37%/177% 1600%;border:0;border-radius:0;box-shadow:none}.book-body #diaryEntries h3.season-autumn i{display:none}.book-body #diaryEntries h3.month-september::before{background-position:15% 75%}

/* Original full-width page strips keep the complete tab and surrounding artwork. */
.book-body #diaryEntries h3.season-autumn{width:120.482%;max-width:none;min-width:0;height:clamp(48px,12cqw,62px);min-height:0;margin:18px -7.23% 5px -13.253%;padding:0 34% 0 17%;font-size:clamp(16px,4.2cqw,22px);white-space:nowrap}
.book-body #diaryEntries h3.season-autumn::before{inset:0;background:url(assets/diary-art-no-bookmark-leaf.png) 0 36.485%/104% 1741.667% no-repeat;mask:none;clip-path:none;transform:none;border:0;border-radius:0;box-shadow:none}
.book-body #diaryEntries h3.month-september::before{background-position:0 72.906%;transform:none}
.book-body #diaryEntries h3.season-autumn span{position:relative;top:-1px;line-height:1.15;white-space:nowrap}
.book-body #diaryEntries h3.month-september span{top:0}
.book-body:before{background-size:104% 6688%}
.book-body .diary-entry time,:is(.book-body,.book-fixed) #diarySearch,:is(.book-body,.book-fixed) #diarySearch::placeholder{color:#374f4d;opacity:1}

.book-body #diaryEntries h3.season-autumn::before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20941%2096%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M74%2096%20L78%2048%20Q80%2019%20113%2014%20L478%2014%20Q520%2014%20520%2049%20Q520%2091%20480%2091%20L123%2091%20Q95%2092%2074%2096%20Z%22%2F%3E%3C%2Fsvg%3E");mask-size:104% 100%;mask-position:0 0;mask-repeat:no-repeat;mask-composite:add}
.book-body #diaryEntries h3.month-september::before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20941%2096%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M74%2096%20L78%2046%20Q80%2017%20119%2012%20L514%2012%20Q553%2012%20553%2046%20Q553%2088%20514%2088%20L127%2088%20Q96%2091%2074%2096%20Z%22%2F%3E%3C%2Fsvg%3E")}

/* Keep long month names inside the undecorated part of the original tab. */
.book-body #diaryEntries h3.season-autumn{padding-left:14%;padding-right:0}
.book-body #diaryEntries h3.season-autumn span{display:block;width:44%;flex:none;font-size:clamp(13.5px,3.65cqw,18px);letter-spacing:-.15px;white-space:nowrap}
/* Continue the original rounded page edge below the header, instead of stretching a tab. */
.book-body{background-image:url(assets/diary-art-no-bookmark-leaf.png);background-size:100% 6688%;background-position:0 26.1%}
.book-body:before{right:5.1%;background-size:109.59% 6688%}
.book-body{border-right:0}

/* One stable coordinate system for the tab artwork and its live label. */
.book-body #diaryEntries h3.season-autumn{height:56px;min-height:56px;padding-left:20%;padding-right:0;align-items:center}
.book-body #diaryEntries h3.season-autumn::before{transform:scaleX(1.18);transform-origin:left center}
.book-body #diaryEntries h3.season-autumn span{width:52%;font-size:clamp(16px,4.1cqw,20px);line-height:1.2;letter-spacing:-.25px;top:0;align-self:center}
.book-body #diaryEntries h3.month-september span{top:0}

.book-pages{background:url(assets/diary-page-no-leaf.png) center bottom/100% 134.62% no-repeat}
.book-body{background:none;padding-bottom:0}.book-body::before,.book-body::after{display:none}
.book-bottom{background:none;clip-path:none;margin-top:0;aspect-ratio:941/240}
.book-body #diaryEntries h3.season-autumn{clip-path:inset(-4px 0 -4px 0);overflow:clip}
.diary-bookmark{margin:12px 0 4px auto;padding:10px 12px 16px;background:#dce6dc;border:1px solid #b5c6b7;border-radius:4px 4px 14px 4px;width:min(100%,230px);box-shadow:2px 3px 0 #234a4812}
.diary-bookmark label{font-size:14px;margin:0 0 4px;color:#254c49}.diary-bookmark select{width:100%;min-height:44px;margin:0;padding:8px;font-size:16px;background:#fffaf0;color:#254c49;border:1px solid #b5c6b7}
.diary-pagination{display:flex;align-items:center;gap:8px;margin:18px 0 0}.diary-pagination button{flex:1;min-height:48px;padding:10px 6px;border-radius:6px 6px 16px 6px;background:#e9d8b9;color:#224b48;border:1px solid #cbb58e;font-size:16px;font-weight:700}.diary-pagination button:disabled{opacity:.4;cursor:default}.diary-pagination span{text-align:center;min-width:40px;font-size:15px;color:#274849}.diary-pagination small{display:block;font-size:12px}.diary-latest{display:block;margin:8px auto 0;background:transparent;border:0;min-height:44px;color:#254c49;font-size:14px}#diaryPage:focus{outline:none}.diary-pagination button:focus-visible,.diary-bookmark select:focus-visible{outline:3px solid #316967;outline-offset:3px}

/* Woven ribbon controls: live, accessible controls over code-native textile styling. */
.diary-bookmark{position:relative;width:min(100%,240px);padding:13px 15px 25px;border:0;border-radius:3px 3px 1px 1px;background:repeating-linear-gradient(0deg,#ffffff08 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#122e3010 0 1px,transparent 1px 3px),linear-gradient(100deg,#24575b,#377478 50%,#24575b);clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 10px),0 100%);box-shadow:inset 0 0 0 1px #183f44;filter:drop-shadow(1px 3px 2px #563f2929)}
.diary-bookmark:before,.diary-pagination button:before{content:"";position:absolute;inset:5px 6px 12px;border:1px dashed #e4d3aa80;border-radius:2px;pointer-events:none}
.diary-bookmark label{position:relative;color:#fff2d5;font-weight:700;font-size:14px;margin-bottom:3px}.diary-bookmark select{position:relative;background:#f8eed7;color:#204b4b;border:1px solid #c6b890;border-radius:5px;min-height:46px;box-shadow:inset 0 1px 2px #795a2420;font-size:16px}
.diary-pagination{gap:10px;align-items:center}.diary-pagination button{position:relative;min-height:58px;padding:13px 8px 19px;border:0;border-radius:2px;color:#244d49;background:repeating-linear-gradient(0deg,#fff8e530 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#7863420b 0 1px,transparent 1px 3px),linear-gradient(100deg,#ceba91,#ecdfbc 50%,#d3bd94);clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 9px),0 100%);box-shadow:inset 0 0 0 1px #bca57a}.diary-pagination button:before{border-color:#87754c80}.diary-pagination button:disabled{opacity:.45}.diary-pagination button:focus-visible{outline:none;box-shadow:inset 0 0 0 3px #24575b}.diary-bookmark:focus-within{box-shadow:inset 0 0 0 3px #e7cc8e}

.diary-navigation-area{padding:14px 20px 8px;background:#eee5d4;color:#244d49}
.diary-navigation-area .diary-pagination{margin:0;gap:12px}
.diary-navigation-area .diary-pagination button{clip-path:none;filter:none;border:1px solid #cabda6;border-radius:12px;background:#fff9ed;box-shadow:none;min-height:48px;padding:10px 8px}
.diary-navigation-area .diary-pagination button:before{display:none}
.diary-navigation-area .diary-pagination button:focus-visible{outline:3px solid #24575b;outline-offset:2px}
.diary-navigation-area .diary-pagination button:disabled{opacity:.4}

/* Reserve the original floral illustration below the last diary entry. */
.book-bottom{aspect-ratio:auto;height:clamp(126px,37cqw,178px);flex-shrink:0}

/* All month tabs use the same clean paper silhouette and shadow. */
.book-body #diaryEntries h3.season-autumn{width:max-content;max-width:100%;min-width:78%;height:auto;min-height:48px;margin:18px 0 5px -4%;padding:10px 12px;gap:10px;white-space:normal;overflow:visible;clip-path:none;font-size:clamp(16px,4.2cqw,22px)}
.book-body #diaryEntries h3.season-autumn::before{inset:3px 0 -3px;transform:none;mask:none;clip-path:none;border:1px solid #d5b481;border-radius:5px 22px 22px 5px;background:linear-gradient(110deg,#e6c38b,#f6e3be);box-shadow:1px 3px 3px #69451b24}
.book-body #diaryEntries h3.month-september::before{background:linear-gradient(110deg,#c9d5c4,#e6e9d9);border-color:#b4c3af}
.book-body #diaryEntries h3.season-autumn span{width:auto;flex:initial;top:0;font-size:inherit;line-height:1.15;letter-spacing:normal;white-space:normal}
.book-body #diaryEntries h3.season-autumn i{display:block}

/* Contain first-child margins so paper meets the header without a gap. */
.book-body{display:flow-root}
.illustrated-diary{min-height:0}
.diary-open{background:#eee5d4}
.book-body .memory-date{display:table;margin:12px 0 18px;padding:10px 16px;color:#315653;font-size:16px;font-weight:650;background:linear-gradient(115deg,#eadbb9,#fff5db);border:1px solid #ceb98f;border-radius:5px 15px 15px 5px;box-shadow:0 2px 3px #69451b20;line-height:1.4}

/* Notebook stationery surfaces retain native controls and clear touch targets. */
.book-body .memory-text,.book-body #memory,.book-body #memoryDate{background:linear-gradient(105deg,#e9d8b320,transparent 15%,#fffdf480),#fff9e9;border:1px solid #cdbb98;border-radius:6px 16px 12px 5px;box-shadow:inset 0 0 0 3px #fffdf480,0 2px 3px #70552a18;color:#204947;font-size:16px;line-height:1.65}
.book-body #memory{padding:16px;min-height:180px;resize:vertical}.book-body #memoryDate{min-height:48px;padding:10px 14px;width:100%;min-width:0;box-sizing:border-box}.book-body .memory-text{padding:18px;overflow-wrap:anywhere}
.book-body .primary{position:relative;background:linear-gradient(110deg,#285b5c,#397676,#285b5c);border:1px solid #234e50;border-radius:7px 13px 9px 6px;box-shadow:inset 0 0 0 3px #ffffff13,0 2px 3px #57452926;min-height:52px;color:#fff8e8}
.book-body .primary:after{content:"";position:absolute;inset:5px;border:1px dashed #e8e0bf70;border-radius:3px 9px 5px 3px;pointer-events:none}
.book-body .quiet{background:linear-gradient(110deg,#f4e7c8,#fff8e7);border:1px solid #cfbd98;border-radius:5px 12px 12px 5px;box-shadow:0 2px 2px #70552a12;min-height:48px;margin-top:12px;color:#315653}
.book-body .delete-record{color:#873c32;border-color:#d4b5a2;background:#fff4e6}
.book-body input:focus-visible,.book-body textarea:focus-visible,.book-body button:focus-visible{outline:3px solid #367573;outline-offset:3px}
.book-body .quiet{padding:10px 20px;min-width:120px}

.book-body #weight,.book-body #recordDate{width:100%;min-width:0;box-sizing:border-box;min-height:48px;padding:12px 14px;font-size:18px;background:linear-gradient(110deg,#f4e8cd,#fffbef);border:1px solid #cdbb98;border-radius:6px 16px 12px 5px;box-shadow:0 2px 3px #70552a18}
.measurement-title{font-size:18px;margin:14px 0}.book-body .measurement-card{display:block;width:100%;text-align:left;padding:16px 18px;background:linear-gradient(110deg,#f4e8cd,#fffbef);border:1px solid #d3c09b;border-radius:6px 16px 12px 5px;box-shadow:0 2px 3px #70552a18;margin:12px 0;color:#204947}.measurement-card time{display:block;font-size:15px}.measurement-card strong{display:block;font-size:28px;margin:6px 0}.measurement-card strong small{font-size:18px}.measurement-card .edit-label{font-size:14px}

.book-other .book-hero h2{left:10%;width:52%;font-size:clamp(23px,6.8cqw,34px)}
.book-other .book-child{left:10%;width:52%;font-size:clamp(13px,3.6cqw,18px)}
.book-other .book-body .card,.book-other .book-body input:not([type=checkbox]),.book-other .book-body textarea{background:linear-gradient(110deg,#f3e7cc,#fffaf0);border:1px solid #cebd9b;border-radius:6px 16px 12px 5px;box-shadow:0 2px 3px #70552a18;color:#204947}
.book-other .book-body .card{padding:16px;overflow-wrap:anywhere;line-height:1.55}
.book-other .book-body input:not([type=checkbox]),.book-other .book-body textarea{width:100%;min-width:0;box-sizing:border-box;font-size:16px;min-height:48px;padding:12px}
.book-other .book-body label{line-height:1.4}.book-other .book-body label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px;min-height:48px}.book-other input[type=checkbox]{width:22px;height:22px;accent-color:#316967}
.book-other .monthbar{display:flex;gap:6px;align-items:center;margin:12px 0}.book-other .monthbar h3{flex:1;text-align:center;font-size:17px;margin:0}.book-other .monthbar button{min-width:44px;min-height:44px;background:#f5e8cb;border:1px solid #cbbb98;border-radius:10px;color:#204947}
.book-other .grid{gap:3px}.book-other .grid button{padding:0;min-width:0;min-height:44px;border-radius:8px;font-size:16px;background:#fff6e0;border:1px solid #ddccaa;color:#204947}.book-other .grid button.selected{background:#316967;color:#fff9e8;border-color:#316967}.book-other .grid small{text-align:center;font-size:12px}
.book-other .paper-heading{font-size:20px;margin:12px 0;overflow-wrap:anywhere}.book-other details summary{min-height:44px;padding:10px 0;cursor:pointer}.book-other .book-body>h3{font-size:18px}

/* Keep the existing artwork, with calmer header spacing and settings stationery. */
.illustrated-diary:has(#measureform) .book-hero h2,.illustrated-diary:has(.measurement-title) .book-hero h2{left:10%;width:52%;font-size:clamp(23px,6.8cqw,34px)}
.illustrated-diary:has(#measureform) .book-child,.illustrated-diary:has(.measurement-title) .book-child{left:10%;width:47%;font-size:clamp(13px,3.6cqw,18px)}
#appearanceSlot .appearance{display:flex;flex-direction:column;align-items:stretch;padding:12px 0;border:0;gap:12px}#appearanceSlot label{font-size:16px;font-weight:700;color:#204947}#appearanceSlot select,#appearanceSlot button{width:100%;min-height:48px;padding:12px;background:linear-gradient(110deg,#f3e7cc,#fffaf0);border:1px solid #cebd9b;border-radius:6px 16px 12px 5px;color:#204947;font-size:16px}#appearanceSlot button[aria-pressed=true]{background:#316967;color:#fff8e8}
@media(max-width:360px){.book-other .grid{width:100%;margin-left:0;gap:2px}.book-other .grid button{min-height:48px}}
.book-other .calendar-today{display:block;margin:0 auto 12px;min-height:44px;font-size:14px;padding:8px 16px}.grid button[aria-current="date"]{outline:2px solid #326864;outline-offset:-4px;font-weight:800}.measurement-card strong{display:flex;flex-wrap:wrap;gap:5px;align-items:baseline;font-size:clamp(22px,6cqw,30px)}.next-program{display:flex;flex-direction:column;gap:5px;text-align:left;overflow-wrap:anywhere}.next-program small{font-size:13px}.next-program strong{font-size:18px}.next-program span{font-size:14px}.next-program{position:relative;padding-right:34px}.next-program::after{content:"›";position:absolute;right:12px;top:42%;font-size:26px}.book-body .card,.book-body h3,.memory-text,.reminder span{overflow-wrap:anywhere;min-width:0}.book-body textarea{overflow-wrap:anywhere}.clear-diary-search{margin:0 auto 14px!important;min-height:44px!important}.next-program strong{max-width:100%}header h1{min-width:0;overflow-wrap:anywhere;line-height:1.2}header>button{flex-shrink:0}.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.tabs button{min-width:0;padding:10px 8px;font-size:14px;overflow-wrap:anywhere;line-height:1.3}.long-child-caption{font-weight:650;font-size:16px;line-height:1.4;overflow-wrap:anywhere;margin:0;padding:8px 0 12px}.book-child{overflow-wrap:anywhere}
/* Shared warm hover and keyboard focus for illustrated navigation controls. */
.wood-back::after,.fabric-new::after{content:"";position:absolute;pointer-events:none;opacity:0;border:0;box-shadow:0 0 8px 3px #ffd48666,0 0 18px 5px #efb95333}
.wood-back::after{inset:-3% -2%;border-radius:18% 19% 20% 18% / 43% 44% 46% 45%}
.fabric-new::after{inset:1px -1px 0;border-radius:11% 9% 12% 14% / 8% 10% 8% 12%}
@media(hover:hover) and (pointer:fine){.wood-back:hover::after,.fabric-new:hover::after{opacity:1}.wood-back:hover,.fabric-new:hover{text-shadow:0 0 5px #ffe1a277,0 0 10px #ffd18444}}
.wood-back:focus-visible,.fabric-new:focus-visible{outline:2px solid #dba84e;outline-offset:4px;border-radius:14px;text-shadow:0 0 5px #ffe1a299,0 0 10px #ffd18455}
.wood-back:focus-visible::after,.fabric-new:focus-visible::after{opacity:1;box-shadow:0 0 8px 3px #ffd48688,0 0 18px 5px #efb95344}
/* Keyboard navigation follows the illustrated shapes, without a rectangular wood outline. */
.hot:focus-visible span{outline:2px solid #dba84e;outline-offset:3px;box-shadow:0 0 6px 2px #ffd48666;text-shadow:0 0 5px #ffe1a277}
.wood-back:focus-visible{outline:none}
.wood-back:focus-visible::after{border:2px solid #dba84e;box-shadow:0 0 8px 3px #ffd48688,0 0 18px 5px #efb95344}
@media(prefers-reduced-motion:no-preference){.wood-back::after,.fabric-new::after{transition:opacity .18s ease}.wood-back,.fabric-new{transition:text-shadow .18s ease}}
/* One intact illustration: content scrolls within the paper, never the artwork. */
.illustrated-diary{min-height:0;background:url(assets/diary-page-no-leaf.png) top center/100% auto no-repeat}
.book-hero,.book-pages,.book-bottom{background:none}
.book-body{background:none;height:100.10627cqw;padding-bottom:20px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#a68b62 transparent;scroll-padding-block:16px}
.book-body::before,.book-body::after{display:none}
.book-body:focus-visible{outline:2px solid #dba84e;outline-offset:-6px}
.book-bottom{height:auto;min-height:0;aspect-ratio:941/300;margin-top:0}
.book-hero h2{left:10%;width:52%;font-size:clamp(21px,5.6cqw,30px);overflow-wrap:anywhere}
.book-bottom{position:relative}
.book-scroll-cue{position:absolute;top:2px;left:35%;width:36%;min-height:44px;padding:4px 8px;background:transparent;border:0;border-radius:12px;color:#375a53;font-size:13px;box-shadow:none}
.book-scroll-cue[hidden]{display:none}
.book-scroll-cue:focus-visible{outline:2px solid #dba84e;outline-offset:2px}
.book-body #diaryEntries h3[class*=season-] i{flex:0 0 20px;width:20px;font-size:18px;line-height:1;text-align:center;margin-left:auto}
.book-body #diaryEntries h3[class*=season-] span{min-width:0}
.book-frame{height:100.10627cqw;display:flex;flex-direction:column;min-height:0}
.book-fixed{flex:none;padding:0 6% 8px 11%}
.book-fixed .long-child-caption{padding:8px 0 12px}
.book-frame>.book-body{height:auto;flex:1;min-height:0}

/* Small original illustrations support live, accessible text and controls. */
.lan-preview-notice {
  max-width: 740px;
  margin: 0 auto;
  padding: 8px 12px;
  color: #4e5c52;
  background: #fff7e7;
  font:
    13px/1.4 system-ui,
    sans-serif;
  text-align: center;
}
.lan-preview
  :is(
    [data-action='add-child'],
    [data-action='edit-child'],
    [data-action='erase-child'],
    [data-action='exports'],
    [data-action='account'],
    [data-action='logout']
  ) {
  display: none !important;
}
.book-other .book-body .guidance-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 12px;
  margin: 12px 0;
  text-align: left;
  min-height: 124px;
  background: linear-gradient(110deg, #f6e9d1c9, #fffaf0d9);
  border-color: #d4bf96;
  box-shadow:
    0 2px 3px #70552a18,
    inset 0 0 0 2px #fffaf060;
  cursor: pointer;
}
.guidance-art {
  display: block;
  width: 64px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  max-width: 100%;
  filter: none;
}
.guidance-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.guidance-topic {
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5c624e;
}
.guidance-copy strong {
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.guidance-teaser {
  font-size: 0.93rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guidance-arrow {
  font-size: 1.8rem;
  line-height: 1;
  color: #315b59;
}
.guidance-notice {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #5e665c;
  margin: 4px 0 10px;
}
.guidance-intro {
  font-size: 1rem;
  font-weight: 650;
  margin: 8px 0;
}
.guidance-detail h3,
.guidance-article h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.guidance-detail p,
.guidance-article p {
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.guidance-art-large {
  width: 88px;
  margin: 12px auto;
}
.guidance-detail details,
.guidance-article details {
  font-size: 0.9rem;
}
.guidance-count {
  font-size: 0.85rem;
  margin: 12px 0 0;
}
.guidance-empty {
  font-size: 1rem;
  line-height: 1.6;
}
.guidance-filters {
  margin: 12px 0;
}
.guidance-filters label {
  font-size: 0.9rem;
}
.guidance-filters select {
  min-height: 48px;
  padding: 10px;
  color: #204947;
  background: #fff8e8;
  border: 1px solid #cebd9b;
  border-radius: 8px;
  font-size: 1rem;
}
.guidance-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 18px 0;
}
.guidance-pagination button {
  min-width: 44px;
  min-height: 48px;
  padding: 10px 8px;
  font-size: 0.9rem;
  color: #315653;
  background: #f6e9d1;
  border: 1px solid #cfbd98;
  border-radius: 6px 12px 12px 6px;
}
.guidance-pagination span {
  font-size: 0.8rem;
  white-space: nowrap;
}
.guidance-hidden {
  margin: 16px 0;
}
.book-body .guidance-explore {
  width: 100%;
}
.book-body
  :is(
    .guidance-card,
    .guidance-pagination button,
    .guidance-filters input,
    .guidance-filters select
  ):focus-visible {
  outline: 3px solid #b88227;
  outline-offset: 3px;
}
.guidance-card strong,
.guidance-card .guidance-teaser {
  color: #204947;
}
@media (max-width: 360px) {
  .book-other .book-body .guidance-card {
    grid-template-columns: 48px minmax(0, 1fr) 10px;
    gap: 8px;
    padding: 14px 10px;
  }
  .guidance-art {
    width: 48px;
  }
  .guidance-copy strong {
    font-size: 1.02rem;
  }
  .guidance-teaser {
    font-size: 0.9rem;
  }
  .guidance-pagination {
    flex-wrap: wrap;
  }
  .guidance-art-large {
    width: 80px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .book-other .book-body .guidance-card:hover {
    border-color: #ba9759;
    box-shadow:
      0 0 6px #e4bc6d40,
      0 2px 4px #70552a20;
  }
  .guidance-card:hover strong {
    text-shadow: 0 0 7px #e8c47750;
  }
}

.guidance-open > footer {
  display: none;
}
.guidance-age {
  font-size: 0.77rem;
  line-height: 1.4;
  color: #596954;
}
.guidance-filter-panel {
  margin: 8px 0;
}
.guidance-filter-panel summary {
  font-size: 0.92rem;
  font-weight: 650;
}
.guidance-filter-note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #596954;
}
.guidance-filter-panel select {
  margin-bottom: 12px;
}
.guidance-filter-value {
  display: block;
  color: #52635a;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  padding-top: 3px;
}
/* Keep the complete book silhouette fixed. At enlarged text sizes, use the
   available card width for reading instead of a decorative image column. */
@container (width < 18rem) {
  .guidance-open .book-other .book-body .guidance-card {
    grid-template-columns: minmax(0, 1fr) 12px;
    gap: 10px;
    min-height: 0;
  }
  .guidance-open .guidance-card .guidance-art,
  .guidance-open .guidance-card .guidance-teaser,
  .guidance-open .guidance-card .guidance-topic,
  .guidance-open .guidance-detail .guidance-art-large,
  .guidance-open .guidance-article .guidance-art-large {
    display: none;
  }
  .guidance-open .guidance-intro {
    font-size: 0.9rem;
  }
}
.guidance-open .book-scroll-cue {
  left: 20%;
  width: 60%;
  font-size: 13px;
}

.editorial-preview-notice {
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 16px;
  color: #173d3d;
  background: #fff4d5;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.editorial-preview-notice a {
  color: inherit;
}
.editorial-preview [data-action='add-child'],
.editorial-preview [data-action='edit-child'],
.editorial-preview [data-action='erase-child'],
.editorial-preview [data-action='exports'],
.editorial-preview [data-action='account'],
.editorial-preview [data-action='logout'] {
  display: none !important;
}

/* Article pictures stay inside the scrolling paper; the notebook artwork is unchanged. */
.guidance-article .guidance-article-hero {
  display: block;
  width: min(100%, 320px);
  max-width: 100%;
  height: auto;
  float: none;
  margin: 12px auto 20px;
}

.book-body :is(#programform, #memoryform) input[type='date'] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  max-width: 100%;
}
@supports (-webkit-touch-callout: none) {
  /* iOS WebKit adds the date field's padding to its full width (WebKit bug 301648). */
  .book-body :is(#programform, #memoryform) input[type='date'] {
    padding: 0;
  }
  .book-body :is(#programform, #memoryform) input[type='date']::-webkit-date-and-time-value {
    margin: 0 12px;
    min-width: 0;
    text-align: start;
  }
}

/* The editable phone preview uses the normal room entry point. Keep the notice in the read-only demo. */
body:has(script[src='/room/client.js']) > .lan-preview-notice {
  display: none;
}
.app.room-home {
  max-width: 480px;
}
.room-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #416a5c;
}
.room-home .room {
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  margin: 0;
  background: none;
  container-type: inline-size;
}
.room-image {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 599px) {
  .app.room-home {
    max-width: none;
    min-height: 100svh;
  }
  .room-stage {
    /* Reveal more of the same artwork if the browser chrome retracts. */
    min-height: 100dvh;
  }
  .room-home .room {
    height: 100svh;
  }
  .room-image {
    position: absolute;
    top: 0;
    left: 50%;
    width: max(100%, calc(100lvh * 971 / 1619));
    transform: translateX(-50%);
  }
}
@media (min-width: 600px) {
  .app.room-home:has(.room-stage) {
    width: clamp(285px, calc(60svh - 20px), 480px);
    min-height: 0;
  }
}
.room-home .room-tools {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px 0;
}
.room-tools :is(.child-picker-trigger, .single-room-title, .room-settings) {
  border: 1px solid #a47c50;
  background: linear-gradient(164deg, #f7e8c9, #e8cca1);
  box-shadow:
    inset 0 0 0 2px #fff7df85,
    0 2px 5px #233e3866;
  color: #233f39;
}
.room-tools .room-settings {
  grid-column: 2;
  grid-row: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 11px 14px 12px 10px;
  font-size: 22px;
  line-height: 1;
}
.child-picker-trigger,
.room-tools .single-room-title {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 11px 15px 12px 9px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.child-picker-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.child-picker-trigger strong {
  min-width: 0;
  font-size: 1.0625rem;
}
.child-picker-trigger > span {
  font-size: 21px;
  flex: none;
  line-height: 1;
}
.room-tools .single-room-title {
  font-size: 1.125rem;
}
.room-name-wide .child-picker-trigger,
.room-name-wide .single-room-title {
  grid-column: 1 / -1;
  grid-row: 2;
}
.child-picker-trigger:focus-visible,
.room-tools .room-settings:focus-visible,
#childPicker button:focus-visible {
  outline: 2px solid #ffdc8c;
  outline-offset: 3px;
}
.room-feedback {
  position: absolute;
  z-index: 1;
  inset-inline: 12px;
  bottom: max(8px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.room-feedback .live-status {
  margin: 0;
  border-radius: 10px;
  background: #fff5df;
  color: #233f39;
}
.room-feedback .live-actions:not(:empty) {
  background: #fff5df;
  border-radius: 10px;
  pointer-events: auto;
}
.room-home .hot:active span {
  transform: none;
}
#childPicker {
  box-sizing: border-box;
  width: min(400px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 16px;
  background: linear-gradient(115deg, #fff5df, #f3e6cc);
  color: #244a42;
  border: 1px solid #c0a77f;
  border-radius: 12px 20px 16px 10px;
  box-shadow: 0 12px 40px #293c3859;
  overflow-y: auto;
}
#childPicker::backdrop {
  background: #263e3a73;
}
.picker-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.picker-heading h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0;
  flex: 1;
  outline: none;
}
.picker-heading button {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  background: none;
  font-size: 28px;
  border-radius: 8px;
}
.child-picker-list {
  display: grid;
  gap: 7px;
}
.child-choice-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 12px;
  text-align: left;
  background: #fff7e7;
  border: 1px solid #d3bf98;
  border-radius: 5px 12px 9px 5px;
  font-size: 1.0625rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}
.child-choice-option > span:first-child {
  min-width: 0;
}
.child-choice-option > span:last-child {
  flex: none;
}
.child-choice-option[aria-current='true'] {
  background: #dce8ce;
  border-color: #94ab83;
  font-weight: 700;
}
.room-home .hot {
  min-width: 44px;
  min-height: 44px;
}
.room-home .hot span {
  font-size: clamp(14px, 4.7cqw, 16px);
  padding: 8px 9px;
  line-height: 1.15;
}
.room-home .hot.measure {
  left: 20%;
  top: 31%;
  width: 31%;
  height: 9%;
}
.room-home .hot.program {
  left: 68%;
  top: 29%;
  width: 30%;
  height: 9%;
}
.room-home .hot.diary {
  left: 4%;
  top: 51%;
  width: 33%;
  height: 8%;
}
.room-home .hot.library {
  left: 62%;
  top: 65%;
  width: 36%;
  height: 8%;
}
.room-home .hot.ideas {
  left: 28%;
  top: 78%;
  width: 48%;
  height: 10%;
}
.preparation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  background: #b84237;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}
.grid button.preparation-date {
  position: relative;
}
.preparation-date .preparation-badge {
  position: absolute;
  right: 0;
  top: -5px;
}
.preparation-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.preparation-task {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  min-height: 48px;
  background: #fff5df;
  border: 1px solid #d1bc93;
  border-radius: 6px 12px 8px 6px;
  padding: 12px;
  margin: 7px 0;
  color: #254c43;
}
.preparation-task[aria-pressed='true'] {
  background: #e3ead5;
}
.preparation-task span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.companion-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.companion-filters button {
  flex: 1;
  min-width: 65px;
  min-height: 44px;
  padding: 8px;
  background: #f1e3c7;
  border: 1px solid #c5af88;
  border-radius: 7px 12px 8px 6px;
}
.companion-filters button[aria-pressed='true'] {
  background: #d7e4cb;
  border-color: #8fa47b;
}
.companion-card img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 4px auto 12px;
}
.companion-card h3 {
  font-size: 1.25rem;
}
.companion-card p,
.companion-card li {
  font-size: 1rem;
  line-height: 1.5;
}
.companion-card li {
  margin-bottom: 10px;
}
.preparation-task:focus-visible,
.companion-filters button:focus-visible {
  outline: 2px solid #bc8d3b;
  outline-offset: 2px;
}

/* Demo-only refinements. The accepted room and book artwork stay unchanged. */
.demo-profile-age {
  display: block;
  padding-top: 3px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #52635a;
}
.demo-label {
  font-size: 0.875rem;
  color: #596954;
}
.book-body select {
  width: 100%;
  min-height: 44px;
  max-width: 100%;
  font: inherit;
  color: inherit;
  background: #fff8e9;
  border: 1px solid #cbbd9f;
  border-radius: 8px;
  padding: 8px;
}
.book-body :is(button, p, li, h3) {
  overflow-wrap: anywhere;
}
.book-body :is(button, input, select):focus-visible {
  outline: 2px solid #bc8d3b;
  outline-offset: 2px;
}
/* Match the scroll region to the real display font size when users enlarge text. */
.book-fixed .long-child-caption {
  font-size: 1rem;
}
@media (max-height: 500px) and (orientation: landscape) {
  .book-frame {
    min-height: 220px;
  }
}
