/* 日常派 4.1 | 森林来信·回声之庭
   Scoped additions. Keeps the entire app working without network fonts or images. */
:root{--v41-ink:#30483c;--v41-sage:#839c7d;--v41-paper:#fff8ed;--v41-brass:#bd8e58;--v41-line:#e3e5d9}
.v4-root h1,.v4-root h2,.v4-root h3{overflow-wrap:break-word}
.v4-root p{max-width:70ch}
.v4-root button,.v41-ledger-context button{transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease}
.v4-root button:focus-visible,.v41-ledger-context button:focus-visible,.v4-root input:focus-visible,.v4-root select:focus-visible{outline:3px solid #c79859;outline-offset:3px}
/* Cozy illustrated panels: light on the left, tactile details on the periphery. */
.v4-home-hero{background-color:#f5eddb;background-image:linear-gradient(90deg,#f9f4e9f5 0%,#f9f4e9e8 37%,#f9f4e97d 62%,#faf2e72e 100%),url('/art/reading-nook.webp');background-size:cover;background-position:center center;border:1px solid #e5d9c4;box-shadow:0 16px 40px #8c745a14}
.v4-home-hero:after{background:linear-gradient(90deg,#fcf6e7e8 0%,#fcf6e7a0 36%,#fcf6e700 68%)}
.v4-hero-grain{opacity:.13}
.v4-home-copy h1{color:#2e5344;text-shadow:0 1px 0 #fffaf07d}
.v4-home-art{right:-6%;width:48%;height:88%;bottom:-5%}
.v4-home-art .v4-room-art{display:none}
.v4-home-art .v4-mascot{width:60%;right:12%;bottom:4%;filter:drop-shadow(0 12px 7px #57855a2b)}
.v4-scene-label{right:8%;bottom:12%;backdrop-filter:blur(4px)}
.v4-home-grid{align-items:stretch}
.v4-home-hero,.v4-today-panel,.v4-simple-card,.v4-world-garden,.v4-outcome-hero{box-shadow:0 14px 36px #43674b0e}
.v4-garden-card>img{opacity:.9}
.v4-garden-card{background-color:#f5ead5;background-image:url('/art/garden-dusk.webp');background-position:center;background-size:cover}
.v4-garden-card>img{opacity:.25;mix-blend-mode:multiply}
.v4-garden-copy{background:linear-gradient(0deg,#fff9efed 0%,#fff9efd8 70%,transparent)!important}
.v4-world-garden{background:#f7eddd;border:1px solid #e4d8be}
.v4-world-scene-background{background-image:url('/art/garden-dusk.webp');background-size:cover;background-position:center 54%;opacity:.87}
.v4-world-garden:after{background:linear-gradient(90deg,#fff9eddc 0%,#fff9edc7 35%,#fff9ed25 78%)}
.v4-world-intro{position:relative;z-index:1}
.v4-world-intro h2{color:#305342;text-shadow:0 1px 0 #fff8e970}
.v4-world-stats{backdrop-filter:blur(3px)}
.v4-outcome-hero{background-image:linear-gradient(92deg,#fff8edf0,#fff8ed26),url('/art/reading-nook.webp');background-size:cover;background-position:center;}
.v4-outcome-hero:before{opacity:.38}
.v4-outcome-hero.mood-guard{background-image:linear-gradient(90deg,#f9eddef2,#f4e8d999),url('/art/reading-nook.webp')}
.v4-outcome-hero.mood-rest{background-image:linear-gradient(90deg,#f1edf5f1,#f1e9f077),url('/art/reading-nook.webp')}
.v4-outcome-hero.mood-celebrate{background-image:linear-gradient(90deg,#fff2d9ee,#fff7da48),url('/art/reading-nook.webp')}
/* Decision memory: a small letter, not a new full-screen form. */
.v41-review{position:relative;display:grid;grid-template-columns:156px 1fr;gap:28px;align-items:center;margin:26px 0;border-radius:25px;border:1px solid #e9d9bf;padding:28px 31px;background:linear-gradient(125deg,#fffaf1,#f9f1e5);box-shadow:0 14px 29px #72634b10;overflow:hidden}
.v41-review:before{content:'';position:absolute;right:-75px;top:-90px;width:230px;height:230px;border:1px solid #dec9a5;border-radius:50%;pointer-events:none}
.v41-review-art{min-height:178px;background:url('/art/leaf-bookmark.svg') center/contain no-repeat;filter:drop-shadow(0 10px 9px #99795424)}
.v41-review-inner{z-index:1;min-width:0}
.v41-review-inner h2{font-size:clamp(21px,2.2vw,27px);margin:8px 0 4px}
.v41-review-inner>p{font-size:12px;margin:0 0 17px}
.v41-review-grid{display:grid;grid-template-columns: minmax(150px,.75fr) minmax(240px,1.4fr);gap:13px;margin:0 0 16px}
.v41-review-grid label{font-size:12px;font-weight:720;color:#55715e;display:flex;flex-direction:column;gap:8px}
.v41-review-grid select,.v41-review-grid input{display:block;min-height:48px;min-width:0;width:100%;background:#fffefa;color:#345242;border:1px solid #d6ddcc;border-radius:12px;padding:10px 12px;font-size:13px;box-sizing:border-box}
.v41-review-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.v41-review-actions button{display:inline-flex;align-items:center;gap:8px;justify-content:center;border-radius:12px;background:#315b48;color:#fffaf0;min-height:44px;padding:9px 16px;font-size:13px;font-weight:720}
.v41-review-actions .v41-secondary-link{background:#fffdf8;color:#3b6b51;border:1px solid #cadacc}
.v41-review-actions button svg{width:17px;height:17px}
.v41-saved-note{display:inline-flex;align-items:center;gap:6px;margin-top:11px;font-size:11px;color:#5e8666}
.v41-saved-note svg{width:15px;height:15px}
.v41-ai-memory{background:#f5f2e9;border:1px solid #e5e6d9;border-radius:16px;padding:16px 20px;margin:12px 0;color:#56715f;font-size:13px}
.v41-ai-memory summary{cursor:pointer;font-weight:720;display:flex;align-items:center;gap:8px}
.v41-ai-memory summary svg{width:17px;height:17px}
.v41-ai-memory p{margin:12px 0 0}
.v41-origin{display:flex;align-items:center;gap:10px;color:#6f8a72;font-size:12px;margin-top:20px;padding:14px;background:#eef3e6;border-radius:14px;flex-wrap:wrap}
.v41-origin button{border-bottom:1px solid #728f75;color:#32684b;font-weight:800}
.v41-task-filters{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 19px}
.v41-task-filters button{padding:8px 12px;border:1px solid #dbe2d6;border-radius:99px;background:#f9faf5;color:#6c806f;font-size:12px;white-space:nowrap}
.v41-task-filters button.active{background:#2c624d;color:#fff9ed;border-color:#2c624d}
.v41-reviewed-badge{font-style:normal;display:inline-block;margin:0 0 0 8px;border-radius:999px;background:#e5f0dc;color:#4a7957;font-size:10px;letter-spacing:.02em;padding:2px 7px;vertical-align:middle}
.v4-world-card .v4-task-row .v4-task-tools button{min-height:32px}
.v4-task-row small{font-size:11px}
.v41-ledger-context{position:relative;display:flex;align-items:center;gap:15px;background:#f8f4e8;border:1px solid #e7dece;border-radius:17px;padding:14px 18px;margin:14px 0 19px;color:#42634d}
.v41-ledger-stamp{display:grid;place-items:center;border-radius:12px;background:#eddfc7;width:44px;height:44px;flex:0 0 44px;color:#8f7451}
.v41-ledger-context>div:nth-child(2){min-width:0;flex:1}
.v41-ledger-context strong{font-size:13px}
.v41-ledger-context p{font-size:11px;color:#86907b;margin:4px 0 0}
.v41-ledger-context button{background:#315f4b;color:#fff8ec;border-radius:11px;padding:10px 14px;font-size:12px;font-weight:720;display:inline-flex;align-items:center;gap:7px}
/* decorative ephemera without turning the mascot into a humanoid */
.v4-today-panel{background-image:linear-gradient(130deg,#fff9ecf7,#fbefdee6),url('/art/letter-seal.svg');background-size:auto,104px;background-repeat:no-repeat;background-position:center,right -28px top -25px}
.v4-world-card{background-image:linear-gradient(#fffefaed,#fffefaed),url('/art/letter-seal.svg');background-repeat:no-repeat;background-size:auto,100px;background-position:center,right -29px bottom -20px}
/* Texture must yield to readable text on small screens. */
@media(max-width:990px){.v4-home-hero{background-position:center}.v41-review{grid-template-columns:105px 1fr;padding:23px;gap:15px}.v41-review-art{min-height:135px}}
@media(max-width:650px){
 .v4-home-hero{background-image:linear-gradient(90deg,#fff8e9f5 0%,#fff8e9ed 45%,#fff8e97a 100%),url('/art/reading-nook.webp');background-position:47% center}
 .v4-home-hero:after{background:linear-gradient(90deg,#fff8e99c,#fff8e933 65%,transparent)}
 .v4-home-art{width:65%;right:-18%;bottom:-6%;height:72%}
 .v4-home-art .v4-mascot{width:65%;right:18%;bottom:1%}
 .v4-home-copy{width:70%}
 .v4-world-garden:after{background:linear-gradient(90deg,#fff9e9e0,#fff9e9af 55%,transparent 98%)}
 .v41-review{display:block;padding:20px;border-radius:20px;margin:17px 0}
 .v41-review-art{width:68px;height:83px;min-height:83px;float:right;margin:-4px 0 7px 10px}
 .v41-review-grid{grid-template-columns:1fr;gap:13px;clear:both}
 .v41-review-inner h2{font-size:23px}
 .v41-review-actions{flex-direction:column;align-items:stretch}
 .v41-review-actions button{width:100%;min-height:45px}
 .v41-ledger-context{flex-wrap:wrap;padding:13px;gap:10px}
 .v41-ledger-context button{width:100%;justify-content:center}
 .v4-world-card .v4-task-row{align-items:flex-start}
 .v41-task-filters button{font-size:11px;padding:8px 10px}
}
@media(max-width:360px){.v4-home-hero{background-position:55% center}.v4-home-art{right:-23%;width:65%;opacity:.85}.v41-review-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.v4-root button,.v41-ledger-context button,.v4-garden-card img{transition:none!important;animation:none!important}}
.v4-reduce-motion .v4-root button,.v4-reduce-motion .v4-garden-card img{transition:none!important;animation:none!important}

/* Polished editorial fit and a fully visible, limb-free companion. */
@media(min-width:651px){.v4-home-copy h1{font-size:clamp(33px,3.1vw,45px)}.v4-home-art .v4-mascot{width:73%;right:4%;bottom:18%}}
.v4-note-sticker{background:#fff5dc;border:1px solid #e9d4ab;box-shadow:2px 4px 0 #e6d2ae;transform:rotate(-4deg);padding:5px}
.v4-note-sticker img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:650px){.v4-home-copy h1{font-size:clamp(24px,7vw,30px)}.v4-home-art .v4-mascot{width:72%;right:12%;bottom:19%}}
@media(max-width:360px){.v4-home-art .v4-mascot{width:75%;right:10%;bottom:18%}}
@media(min-width:651px){.v4-home-copy{width:min(74%,475px)}.v4-home-copy h1{font-size:clamp(33px,3.05vw,43px)}}
@media(max-width:650px){.v4-home-art{right:-9%;width:62%}.v4-home-art .v4-mascot{width:68%;right:18%;bottom:18%}}
@media(max-width:360px){.v4-home-art{right:-9%;width:63%}.v4-home-art .v4-mascot{width:70%;right:17%;bottom:19%}}
/* Ledger: remove redundant text blocks and make its real budget reachable sooner. */
.daily-page-head{position:relative;margin-bottom:14px;padding:23px 28px;border:1px solid #e9dfcb;border-radius:24px;background:linear-gradient(100deg,#fef9eef5 0%,#fef9eeeb 70%,#fef9ee84 100%),url('/art/reading-nook.webp') right center/cover no-repeat;min-height:132px}
.daily-page-head .page-title{font-family:var(--dp-serif);font-size:clamp(31px,3vw,42px)}
.daily-page-head .muted{font-size:13px;max-width:360px;line-height:1.65;margin-top:8px;color:#6c8172}
.daily-head-illustration{background:#fff4dfee;border:1px solid #e6dbbd;box-shadow:0 7px 14px #8f806013}
.daily-summary-card{background:#fffefa;border-color:#e5e8d9;min-width:0;overflow:hidden;box-shadow:0 5px 20px #4060460a}
.daily-summary-card>b{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.daily-summary-card>small{line-height:1.5}
.daily-main-column{background:#fffdfa}
@media(max-width:650px){
 .daily-page-head{min-height:0;padding:20px;border-radius:20px;background-position:60% center}
 .daily-page-head .muted{font-size:12px;max-width:245px}
 .daily-head-illustration{width:53px;height:53px;flex-basis:53px}
 .daily-current .daily-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:15px}
 .daily-summary-card{min-height:118px;padding:13px 12px;border-radius:16px}
 .daily-summary-card>b{font-size:clamp(18px,5.3vw,22px);margin:7px 0 5px}
 .daily-summary-card small{display:block;font-size:10px;line-height:1.45}
 .daily-summary-card>span{font-size:11px}
 .daily-current .daily-intro-line{margin-bottom:12px}
 .daily-current .daily-intro-line h3{font-size:21px}
}
/* Growth keepsakes: reward reflection, not spending or streaks. */
.v41-keepsakes{margin:30px 0 25px}
.v41-keepsakes-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin-bottom:13px}
.v41-keepsakes-heading h2{font-family:var(--dp-serif);font-size:clamp(20px,2.1vw,24px);margin:0}
.v41-keepsake-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.v41-keepsake{position:relative;display:flex;align-items:center;gap:14px;border:1px solid #e5e6d6;border-radius:19px;padding:15px 13px;background:#fbf7ed;min-width:0;min-height:105px;box-shadow:0 9px 18px #4664450b}
.v41-keepsake:nth-child(2){background:#f3edf4;border-color:#e8ddec}.v41-keepsake:nth-child(3){background:#f0f5e8;border-color:#dfe8d5}
.v41-keepsake img{width:75px;height:83px;object-fit:contain;flex:0 0 75px;filter:drop-shadow(0 5px 7px #8a79521a)}
.v41-keepsake.locked{opacity:.69}.v41-keepsake.locked img{filter:grayscale(.8) opacity(.65)}
.v41-keepsake small{display:block;font-size:10px;letter-spacing:.08em;color:#9e8f75}
.v41-keepsake.earned small{color:#518667;font-weight:760}
.v41-keepsake h3{font-size:15px;margin:5px 0 2px;font-family:var(--dp-serif);color:#3c5947}
.v41-keepsake p{font-size:11px!important;line-height:1.5!important;margin:0;color:#7a8979}
@media(max-width:990px){.v41-keepsake-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.v41-keepsake{display:block}.v41-keepsake img{width:52px;height:60px}.v41-keepsake h3{font-size:14px}}
@media(max-width:650px){.v41-keepsakes{margin:20px 0}.v41-keepsake-grid{display:flex;overflow-x:auto;gap:9px;scroll-snap-type:x proximity;padding-bottom:7px;scrollbar-width:thin}.v41-keepsake{flex:0 0 208px;display:flex;align-items:center;padding:12px;min-height:96px;scroll-snap-align:start}.v41-keepsake img{width:58px;height:65px;flex-basis:58px}.v41-keepsake h3{font-size:14px}}
