:root{--bg:#f8f8f6;--surface:#fff;--ink:#202124;--muted:#747474;--accent:#c8795d;--line:#e9e8e5;--shadow:0 10px 30px #2925210d}
*{box-sizing:border-box}html{background:var(--bg)}body{background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:15px;line-height:1.5}
main{max-width:460px;min-height:100dvh;background:var(--bg);padding:22px 20px 100px}h1,h2,p{letter-spacing:0}h1{font-size:23px;font-weight:650;line-height:1.3;margin:0}h2{font-size:18px;font-weight:620}.head{display:flex;align-items:center;gap:12px;min-height:42px;margin:2px 0 22px}.head .brand{display:none}.head .ghost{font-size:24px;padding:0;width:32px}.head p{display:none}.paper{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:18px;margin-bottom:16px}.muted,small{color:var(--muted)}
button{border-radius:12px;background:#f1f0ed;color:var(--ink);font-size:14px;font-weight:550;padding:11px 16px;min-height:42px}button:active{transform:scale(.98)}.primary,.on{background:var(--accent);color:#fff}.ghost{background:transparent;color:var(--ink)}.full{width:100%}.actions{gap:9px}.pill{border-radius:12px;background:#f3f2ef;font-size:13px}.line{border-color:var(--line)}
.bar{width:min(460px,100%);grid-template-columns:repeat(3,1fr);background:#ffffffed;border-top:1px solid var(--line);padding:7px 16px max(8px,env(safe-area-inset-bottom));backdrop-filter:blur(16px)}.bar button{min-height:57px;border-radius:0;font-size:12px;font-weight:500;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.bar button.on{color:var(--accent)}.bar button.on:after{bottom:1px;left:30%;right:30%;height:2px}.nav-icon{width:22px;height:22px;display:block;object-fit:contain;filter:grayscale(1);opacity:.72}.bar .on .nav-icon{filter:none;opacity:1}
.screen-enter{animation:screenIn .34s cubic-bezier(.2,.8,.2,1) both}@keyframes screenIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.home-head{display:flex;align-items:center;gap:12px}.avatar{width:38px;height:38px;border-radius:50%;background:#e9e9e7;display:grid;place-items:center;color:#aaa;font-size:24px}.calendar-page .head{margin-bottom:22px}.calendar-page .head h1{font-size:20px;font-weight:600}.notebook{position:relative;padding:25px 12px 14px;margin-top:28px}.rings{position:absolute;left:28px;right:28px;top:-13px;display:flex;justify-content:space-around;pointer-events:none}.rings i{width:10px;height:24px;border:3px solid #a8a8a5;border-bottom-color:#50504d;border-radius:9px;box-shadow:2px 1px 2px #0002;background:linear-gradient(90deg,#eee,#858585)}.month-row{display:flex;justify-content:space-between;align-items:center;padding:0 8px 12px}.month-row h2{font-size:18px;font-weight:550}.month-row button{background:none;font-size:24px;padding:0 9px;min-height:30px;color:#777}.calendar-page .week{font-size:12px;margin:5px 0 8px;color:#666}.calendar-page .grid{gap:0}.calendar-page .cell{height:clamp(53px,15vw,70px);border-right:1px solid #e6e6e4;border-bottom:1px solid #e6e6e4;border-radius:0;padding:0;background:transparent}.calendar-page .cell:nth-child(7n+1){border-left:1px solid #e6e6e4}.calendar-page .grid:not(.week){border-top:1px solid #e6e6e4}.calendar-page .cell span{font-size:12px;top:5px;left:7px}.calendar-page .cell.today{border-radius:0;box-shadow:none}.calendar-page .cell.today span{background:var(--accent);color:#fff;border-radius:50%;padding:1px 5px}.calendar-page .cell.has-meal{background:transparent}.calendar-page .cell img{width:59%;height:56%;left:27%;bottom:4px;object-fit:contain;border:0;box-shadow:none;transform:none;filter:drop-shadow(0 2px 2px #0002);animation:pop .5s cubic-bezier(.2,1.5,.3,1) both}.calendar-page .cell img+img{width:43%;height:42%;left:auto;right:2px;bottom:2px;animation-delay:.12s}@keyframes pop{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}.calendar-watermark{position:absolute;z-index:0;left:26%;width:48%;top:22%;height:70%;object-fit:contain;opacity:.065;pointer-events:none}.calendar-page .grid,.calendar-page .month-row{position:relative;z-index:1}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);margin:14px 0 20px;text-align:center;font-size:12px;line-height:1.4}.stats-row>div+div{border-left:1px solid #ddd}.stats-row strong{display:block;font-size:19px;font-weight:600;color:var(--accent)}.home-banner{display:flex;align-items:center;min-height:112px;overflow:hidden;gap:6px;padding:10px 14px 0}.home-banner img{width:42%;align-self:end;object-fit:contain;max-height:115px}.home-banner b{font-size:17px;line-height:1.3;font-weight:630;flex:1}.home-banner button{width:38px;height:38px;min-height:38px;border-radius:50%;padding:0;font-size:24px;flex:none}.demo-link{display:block;margin:6px auto;color:#888;font-size:12px}
.page-intro{margin:4px 0 15px}.page-intro .sub{font-size:13px;color:var(--muted);margin-top:3px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.toolbar .small{font-size:12px;color:var(--muted)}.period-switch{display:flex;gap:3px;background:#f2f1ef;border-radius:12px;padding:3px}.period-switch button{min-height:34px;padding:5px 14px;background:transparent}.period-switch button.on{background:#fff;color:var(--accent);box-shadow:0 1px 5px #0001}.wall-board{position:relative;height:min(110vw,480px);max-height:480px;overflow:hidden;background:#fff;border-radius:16px;border:1px solid var(--line);margin:14px 0 16px}.wall-board img{position:absolute;object-fit:contain;filter:drop-shadow(0 4px 5px #0002);touch-action:none;cursor:grab;animation:drop .6s cubic-bezier(.2,.9,.25,1) both}.wall-board img:active{cursor:grabbing}.wall-board.editing img{outline:1px dashed #c8795d88;outline-offset:4px}.wall-board.shaking img{animation:sway .65s ease-in-out both}@keyframes drop{from{opacity:0;transform:translateY(-100px) rotate(-10deg)}to{opacity:1;transform:translateY(0) rotate(0)}}@keyframes sway{25%{transform:translate(13px,-8px) rotate(9deg)}55%{transform:translate(-11px,8px) rotate(-8deg)}85%{transform:translate(4px,-3px) rotate(3deg)}}.wall-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.wall-actions button{font-size:11px;padding:8px 3px;white-space:nowrap}.size-controls{display:flex;gap:8px;align-items:center;justify-content:center;margin:14px 0}.size-controls button{width:40px;min-height:36px;padding:0}.size-controls span{font-size:12px;color:var(--muted)}
.meal-card .pic{margin:0 0 12px;max-height:360px;aspect-ratio:1.35;object-fit:cover}.meal-card h2{margin-top:8px}.meal-meta{font-size:12px;color:var(--muted)}.meal-card .note{margin:7px 0}.upload-zone{display:block;position:relative;overflow:hidden;border-radius:16px;background:#eee;min-height:200px;margin-bottom:14px}.upload-zone img{width:100%;height:260px;object-fit:cover;display:block}.upload-zone input{position:absolute;inset:0;opacity:0;cursor:pointer}.upload-zone span{position:absolute;bottom:12px;right:12px;background:#ffffffdd;border-radius:9px;padding:7px 10px;font-size:12px}.upload-zone .placeholder{display:grid;place-items:center;height:200px;color:#888;font-size:14px}.form-list label{font-weight:500;margin:0;padding:12px 0;border-bottom:1px solid var(--line)}.form-list label input:not([type=checkbox]),.form-list textarea,.form-list select{background:#f7f7f5;border:1px solid var(--line);border-radius:10px;padding:11px}.form-list textarea{min-height:70px}.form-list .row label{flex:1}.editor-save{margin-top:17px}.processing{font-size:12px;color:var(--accent);margin:4px 0 12px}
.draw-hero{text-align:center;padding:25px 10px 10px;min-height:260px}.draw-hero img{width:145px;height:145px;object-fit:contain}.draw-hero .cat{width:78px;height:78px;margin-left:-25px}.draw-count{text-align:center;color:var(--muted);font-size:13px;margin:10px 0}.filter-row{display:flex;flex-wrap:wrap;gap:7px}.filter-row button{font-size:12px;padding:8px 11px;min-height:34px}.result-photo{width:100%;max-height:390px;object-fit:cover;border-radius:15px}.result-title{font-size:24px;font-weight:620;margin:20px 0 5px;text-align:center}.result-sub{text-align:center;color:var(--muted);font-size:13px}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0}.candidate-row{display:flex;align-items:center;gap:13px;padding:12px 0;border-bottom:1px solid var(--line)}.candidate-row img{width:72px;height:72px;object-fit:cover;border-radius:10px}.candidate-row .info{flex:1}.candidate-row .info b{display:block;font-size:15px}.candidate-row .info small{font-size:12px}.candidate-row button{font-size:12px;padding:5px 9px;min-height:32px}

/* Compact, illustrated controls shared by the refreshed screens. */
.stats-row{gap:6px;margin:16px -3px 20px;text-align:left}.stats-row>div+div{border:0}.stat-pill{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:2px;padding:9px 6px;border-radius:999px;box-shadow:0 4px 10px #3227191d;font-size:clamp(10px,2.8vw,13px);white-space:nowrap}.stat-pill span{min-width:0}.stat-pill small{display:block;font-size:10px;letter-spacing:.04em;color:inherit;opacity:.85}.stat-pill img{width:clamp(18px,5vw,27px);height:27px;object-fit:contain;flex:none}.stats-row .stat-pill strong{display:inline;font-size:clamp(13px,3.5vw,18px);color:inherit;white-space:nowrap}.stat-pill em{font-size:11px;font-style:normal;margin-left:2px}.stat-pill.brown{background:#8f8175;color:#fff}.stat-pill.peach{background:#e6a079;color:#fff}.stat-pill.cream{background:#fbf2e4;color:#262322}
.nav-icon{width:30px;height:30px;filter:none;opacity:.8}.bar .on .nav-icon{opacity:1}.bar button{gap:2px}
.upload-zone{height:255px;border:7px solid #fff;border-radius:25px;background:#f4ece6;box-shadow:var(--shadow);margin-bottom:14px}.upload-zone #imagePreview,.upload-zone #imagePreview>img{width:100%;height:100%;object-fit:cover}.upload-zone .placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:linear-gradient(145deg,#f8ede3,#f5f2ee);color:var(--ink)}.upload-zone .placeholder img{height:112px;width:112px;object-fit:contain;opacity:.8}.upload-zone .placeholder b{font-size:17px;font-weight:600}.upload-zone .placeholder small{font-size:12px}.upload-zone span{left:50%;right:auto;transform:translateX(-50%);bottom:12px;border-radius:99px;background:#7f5846d9;color:white;padding:7px 16px;white-space:nowrap}.form-list{padding:2px 17px}.form-row{display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid var(--line);padding:6px 0}.form-row:last-child{border:0}.form-symbol{color:#d98760;width:22px;flex:none;font-size:22px;text-align:center;padding-top:13px}.form-row>label,.form-row>.row,.form-row>.candidate-fields{flex:1;min-width:0}.form-list .form-row label{border:0}.form-list .form-row .row{display:flex;gap:8px;flex-wrap:nowrap}.form-list .form-row .row label{min-width:0}.form-list .form-row label input:not([type=checkbox]),.form-list .form-row select,.form-list .form-row textarea{background:#fff;border:1px solid #dedbd8}.favorite-toggle{display:flex!important;align-items:center;gap:8px}.favorite-toggle input{accent-color:var(--accent);width:20px;height:20px}.editor-save{border-radius:999px;min-height:54px;background:#e8956f;box-shadow:0 6px 15px #a7654936}
.wall-board img{animation:none}.wall-board.entering img{animation:drop .6s cubic-bezier(.2,.9,.25,1) both}.wall-board.editing img.selected{outline:2px solid #d68c67;outline-offset:3px;z-index:4!important}.resize-handle{position:absolute!important;z-index:6;width:28px;height:28px;min-height:28px;padding:0;border:3px solid #fff;background:#d58059;border-radius:50%;box-shadow:0 2px 8px #0004;touch-action:none;cursor:nwse-resize}.wall-board.shaking img{animation:sway .65s ease-in-out both}
.draw-intro{text-align:center;margin:24px 0 8px}.draw-intro h1{font-size:27px;font-weight:650}.draw-intro p{font-size:13px;color:var(--muted);margin-top:7px}.draw-hero{height:290px;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;padding:20px 0 0}.gift-box{position:relative;width:205px;height:180px;border-radius:18px 18px 29px 29px;background:linear-gradient(125deg,#fff8ed,#f4d5bc);box-shadow:inset -13px -8px 22px #d79e7e54,0 16px 28px #9c5f3e25;transform:perspective(600px) rotateY(-7deg)}.gift-box:before{content:'';position:absolute;left:80px;top:0;width:42px;height:100%;background:linear-gradient(90deg,#e28f69,#f4b18a,#d87c59)}.gift-box:after{content:'';position:absolute;bottom:0;left:0;right:0;height:35px;background:repeating-linear-gradient(90deg,#f5cfb8 0 18px,#fff3e9 18px 36px);border-radius:0 0 29px 29px;opacity:.55}.gift-lid{position:absolute;z-index:2;top:-20px;left:-9px;width:223px;height:50px;border-radius:13px;background:linear-gradient(135deg,#fff9ef,#eec8ac);box-shadow:0 5px 10px #915e4230}.gift-ribbon{position:absolute;z-index:3;top:-65px;left:53px;width:100px;height:58px;border:13px solid #e99973;border-radius:50% 50% 12% 50%;transform:rotate(-24deg)}.gift-ribbon:after{content:'';position:absolute;left:57px;top:-12px;width:78px;height:50px;border:13px solid #e99973;border-radius:50% 50% 50% 12%;transform:rotate(42deg)}.gift-box span{position:absolute;z-index:4;top:62px;left:87px;font-size:59px;color:#bd7454;font-weight:700}.draw-hero .cat{position:absolute;width:115px;height:115px;object-fit:contain;right:5px;bottom:5px;margin:0;filter:drop-shadow(0 7px 7px #6b463326)}.draw-filter{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 20px}.draw-filter button{border-radius:999px;background:#fff7ef;box-shadow:0 3px 9px #4c302419}.draw-filter button.on{background:#d38563;color:white}.draw-count{font-size:14px;margin:14px 0 22px}.draw-count strong{color:#c87855;font-size:19px}.draw-count span{color:#ccc;padding:0 6px}.draw-open{min-height:58px;border-radius:999px;background:#d38664;font-size:19px;box-shadow:0 8px 18px #b56c4838}

/* Reference-aligned home banner, account avatar, blind box and result. */
.home-head .avatar{position:relative;overflow:hidden;display:block;width:38px;height:38px;min-height:38px;border-radius:50%;background:#e7e7e5;cursor:pointer}.home-head .avatar img{display:block;width:100%;height:100%;object-fit:cover}.home-head .avatar span{display:grid;place-items:center;height:100%;font-size:20px}.home-head .avatar input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.home-head .avatar:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.stat-pill .stat-emoji{font-size:clamp(15px,4.5vw,23px);line-height:1;flex:none;filter:drop-shadow(0 2px 2px #0002)}
.home-banner{display:block;width:100%;height:auto;min-height:0;padding:0;margin:0 0 16px;border:0;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 7px 17px #31201621}.home-banner img{display:block;width:100%;height:auto;max-height:none;object-fit:cover}.home-banner:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.draw-intro{margin:4px 0 0}.draw-brand{display:inline-block;padding:2px 13px;border-radius:20px;background:#e8956f;color:#fff;font-size:13px;font-weight:700;letter-spacing:.06em}.draw-intro h2{font-size:31px;font-weight:760;color:#3d2a21;letter-spacing:.02em;line-height:1.15;margin:5px 0 8px}.draw-intro h1{font-size:20px;font-weight:620;color:#33251f}.draw-intro p{font-size:12px;letter-spacing:.05em;color:#a3958c;margin:5px 0 0}.draw-hero{height:310px;padding:0;margin:0}.draw-hero .gift-cat-art{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 10px #88533a18)}.draw-float{position:absolute;font-size:30px;filter:drop-shadow(0 4px 5px #0002);pointer-events:none}.draw-float.food-left{top:35px;left:5px}.draw-float.food-right{top:43px;right:8px}.draw-float.food-low{right:0;bottom:36px}.draw-filter{gap:7px;margin:0 0 15px}.draw-filter button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:44px;padding:7px 3px;border:1px solid #f5ede8;background:#fff8f1;color:#3d2a21;font-weight:600;font-size:12px;box-shadow:0 4px 9px #4c302418}.draw-filter button span{font-size:16px;line-height:1}.draw-filter button.on{background:#d98d69;border-color:#d98d69;color:#fff}.draw-count{margin:11px 0 14px;color:#726056}.draw-count button{font-size:14px;color:#6a5347}.draw-open{min-height:54px;background:#dd8e68}
.result-card{padding:0;border-radius:25px;overflow:hidden}.result-hero{position:relative;height:310px;background:#f8eee8;overflow:hidden}.result-photo{width:100%;height:100%;max-height:none;object-fit:cover;border-radius:0}.result-cat{position:absolute;right:0;bottom:-10px;width:125px;height:135px;object-fit:contain;filter:drop-shadow(0 3px 5px #0003)}.result-spark{position:absolute;font-size:23px;filter:drop-shadow(0 2px 3px #0002)}.result-spark.one{left:17px;top:24px}.result-spark.two{right:22px;top:36px}.result-body{text-align:center;padding:19px 15px 20px}.result-title{font-size:23px;color:#24211e;margin:0 0 7px}.result-sub{display:inline-block;border-radius:99px;background:#fff0e0;padding:6px 15px;color:#795846}.result-last{border-top:1px solid var(--line);margin-top:17px;padding-top:13px;color:#888;font-size:12px}.result-actions button{border-radius:99px;min-height:50px}.result-actions .primary{background:#e39671}.result-actions .secondary{background:#fff5ec;box-shadow:0 3px 11px #4c30241a}
.draw-float.food-left{width:57px;height:57px;object-fit:contain}

/* Spacious sticker collage, with controls matching the supplied reference. */
.wall-heading{display:flex;flex-direction:column;align-items:center;gap:12px;margin:-2px 0 15px}.wall-month{display:flex;align-items:center;justify-content:center;gap:20px;width:100%}.wall-month b{font-size:20px;font-weight:580;letter-spacing:.04em}.wall-month button{min-width:38px;min-height:38px;padding:0;border-radius:50%;background:#f6f3f1;color:#877e77;font-size:27px;line-height:1}.wall-heading .period-switch{width:min(250px,72%);padding:4px;border:1px solid #eee5e0;background:#f8f5f2;border-radius:999px;box-shadow:0 4px 12px #61453612}.wall-heading .period-switch button{flex:1;border-radius:999px;font-size:15px}.wall-heading .period-switch button.on{background:#e79670;color:#fff;box-shadow:0 3px 7px #b06e4a3b}.wall-decor{display:flex;justify-content:space-between;height:13px;padding:0 17px;position:relative;z-index:2;color:#daa477;font-size:23px}.wall-decor span:last-child{color:#37302c}.wall-board{height:auto;aspect-ratio:5/7;max-height:none;margin:0 0 18px;border-radius:28px;border:1px solid #f2eeeb;box-shadow:0 15px 30px #49302319,inset 0 1px 0 #fff;overflow:hidden}.wall-board img[data-tile]{z-index:1;object-fit:contain;filter:drop-shadow(0 4px 5px #3f2d2429)}.wall-board .wall-mascot{position:absolute;left:31%;top:31%;width:42%;height:40%;object-fit:contain;opacity:.86;filter:drop-shadow(0 5px 6px #0002);pointer-events:none;animation:none!important}.wall-board:has(img[data-tile]) .wall-mascot{opacity:.42}.wall-board .empty{position:absolute;left:12%;right:12%;bottom:16%;padding:14px;background:#fff9;color:#817871;border-radius:12px;font-size:12px}.wall-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px 6px;background:#fff;border:1px solid #f0ebe8;border-radius:20px;box-shadow:0 7px 17px #3d251817}.wall-actions button{display:flex;align-items:center;justify-content:center;gap:4px;padding:8px 2px;min-width:0;min-height:44px;background:transparent;font-size:11px;font-weight:560;border-radius:12px;color:#252525;white-space:nowrap}.wall-actions button:not(:first-child):not(.primary){border-left:1px solid #eee9e7;border-radius:0}.wall-actions button.primary{background:#e69670;color:#fff;border-radius:999px;box-shadow:0 3px 6px #9a5c362a}.wall-actions svg{display:block;width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wall-actions button:active{transform:scale(.96)}
@media(max-width:370px){.wall-actions button{flex-direction:column;gap:0;font-size:10px}.wall-actions svg{width:16px;height:16px}}
.wall-board.editing .wall-mascot{outline:0!important;cursor:default}.wall-processing{position:absolute;z-index:8;left:50%;bottom:16px;transform:translateX(-50%);padding:9px 14px;border-radius:999px;background:#3b3028e6;color:#fff;font-size:12px;white-space:nowrap;box-shadow:0 4px 12px #0002}.wall-processing[hidden]{display:none}
.stats-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.stat-pill{overflow:hidden;padding:8px 5px}.stat-pill span:first-child{font-size:clamp(9px,2.6vw,12px)}.stat-pill small{font-size:9px}.stat-pill .stat-emoji{font-size:clamp(14px,4vw,20px)}.stats-row .stat-pill strong{font-size:clamp(12px,3vw,17px)}.stat-pill em{font-size:10px}

/* Record editor: reference colors with a strict 3:4 photo frame. */
.editor-head{position:relative;justify-content:center;margin-bottom:14px}.editor-head h1{font-size:23px;font-weight:650}.editor-head .ghost{position:absolute;left:0;top:0}.editor-head-decor{position:absolute;right:0;top:4px;color:#e99773;font-size:17px;white-space:nowrap}.upload-zone{width:min(100%,340px);height:auto;min-height:0;aspect-ratio:3/4;margin:0 auto 16px;border:7px solid #fff;border-radius:26px;overflow:visible;background:#f6e9dd;box-shadow:0 10px 24px #6d493622}.upload-zone #imagePreview{height:100%;overflow:hidden;border-radius:19px;background:#f3e8db}.upload-zone #imagePreview>img{width:100%;height:100%;object-fit:cover}.upload-zone .placeholder{height:100%;border-radius:19px}.upload-zone .placeholder img{height:150px;width:150px}.upload-zone .editor-photo-cat{position:absolute;z-index:1;right:-14px;bottom:-12px;width:118px;height:125px;object-fit:contain;filter:drop-shadow(0 5px 5px #0003);pointer-events:none}.upload-zone .photo-change{z-index:2;left:50%;bottom:14px;right:auto;transform:translateX(-50%);border:1px solid #fff8;background:#7c523dce;color:#fff;border-radius:99px;padding:8px 16px;font-size:13px;font-weight:650;box-shadow:0 3px 8px #0002}.upload-zone input{z-index:3;border-radius:19px}.form-list{padding:4px 17px;border-radius:23px;box-shadow:0 9px 24px #4d352018}.form-list .form-row{padding:11px 0;gap:11px}.form-list .form-row:last-child{padding-bottom:12px}.form-symbol{color:#dd8c67;font-size:20px;width:24px;padding-top:11px}.form-row label{font-size:14px;font-weight:590}.form-row input:not([type=checkbox]):not([type=radio]),.form-row textarea,.form-row select{min-height:44px;border-radius:13px!important;background:#fff!important;border:1px solid #ded8d3!important;font-size:14px}.form-row textarea{min-height:82px!important}.form-list .form-row .row{gap:8px}.meal-field{flex:1;min-width:0;padding:10px 0}.field-title{font-size:14px;font-weight:590;margin-bottom:10px}.meal-choices{display:flex;gap:5px;flex-wrap:nowrap}.meal-choice{padding:0!important;flex:1;min-width:0;border:0!important}.meal-choice input{position:absolute;opacity:0;width:1px;height:1px}.meal-choice span{display:block;text-align:center;border:1px solid #eee4df;border-radius:99px;background:#faf5f0;padding:7px 2px;white-space:nowrap;font-size:12px;font-weight:520}.meal-choice input:checked+span{background:#e9916b;color:#fff;border-color:#e9916b;box-shadow:0 3px 6px #bd78562e}.meal-choice input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}.favorite-toggle{display:flex!important;justify-content:space-between;align-items:center;gap:8px;cursor:pointer}.favorite-toggle input{position:absolute;opacity:0;width:1px;height:1px}.favorite-toggle i{position:relative;width:48px;height:28px;border-radius:99px;background:#dbd7d4;transition:background .2s;flex:none}.favorite-toggle i:before{content:'';position:absolute;left:3px;top:3px;width:22px;height:22px;background:#fff;border-radius:50%;box-shadow:0 2px 5px #0002;transition:transform .2s}.favorite-toggle input:checked+i{background:#e9916b}.favorite-toggle input:checked+i:before{transform:translateX(20px)}.candidate-fields:has(.favorite-toggle input:not(:checked))>label:last-child{display:none}.editor-save{min-height:55px;margin-top:19px;background:linear-gradient(180deg,#f4aa83,#e88d65);font-size:17px;font-weight:630;box-shadow:0 8px 17px #b9785644}.processing{text-align:center}
.crop-overlay{position:fixed;inset:0;z-index:20;background:#211912b8;display:flex;align-items:center;justify-content:center;padding:16px}.crop-dialog{width:min(430px,100%);max-height:95dvh;overflow:auto;background:#fff;border-radius:22px;padding:18px;box-shadow:0 20px 45px #0004}.crop-header{text-align:center}.crop-header h2{font-size:20px}.crop-header p{font-size:12px;color:#777;margin:4px 0 12px}.crop-canvas{display:block;width:min(100%,270px);height:auto;aspect-ratio:3/4;object-fit:contain;margin:auto;border-radius:11px;touch-action:none;cursor:grab;background:#eee}.crop-canvas:active{cursor:grabbing}.crop-zoom{display:flex;align-items:center;gap:12px;font-size:13px;margin:14px 0}.crop-zoom input{flex:1;accent-color:#e9916b}.crop-actions{display:flex;gap:9px}.crop-actions button{flex:1;border-radius:99px}.crop-actions .primary{background:#e9916b}
.upload-zone #imagePreview:has(.placeholder)+.editor-photo-cat{display:none}
.form-symbol svg{display:block;width:22px;height:22px;fill:none;stroke:#de8c67;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* 4:3 capture and swipeable daily meal cards. */
.upload-zone{width:100%;aspect-ratio:4/3}.crop-canvas{width:min(100%,360px);aspect-ratio:4/3}
.day-intro{margin:3px 0 18px}.day-intro h2{font-size:21px;font-weight:680}.day-intro p{font-size:13px;color:var(--muted);margin:3px 0}.day-carousel{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:2px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:2px 13% 14px 2px;margin-right:-20px;scrollbar-width:none}.day-carousel::-webkit-scrollbar{display:none}.day-card{flex:0 0 88%;min-width:0;scroll-snap-align:start;overflow:hidden;border-radius:22px;background:#fff;border:1px solid #ece8e5;box-shadow:0 8px 22px #49302318}.day-card:only-child{flex-basis:calc(100% - 20px)}.day-photo{position:relative;margin:10px;border-radius:16px;aspect-ratio:4/3;background:#f6f0ea}.day-photo-main{display:block;width:100%;height:100%;object-fit:cover;border-radius:16px}.day-photo-sticker{position:absolute;right:-3px;bottom:-20px;width:27%;height:43%;object-fit:contain;filter:drop-shadow(0 4px 5px #0003);pointer-events:none}.day-card-body{padding:10px 19px 16px}.day-meal-meta{display:inline-block;padding:5px 11px;border-radius:99px;background:#fcebd9;color:#694635;font-size:12px}.day-card-body h2{font-size:20px;font-weight:650;margin:10px 0 5px}.day-card-body .note{min-height:24px;margin:4px 0;color:#4b4642;font-size:14px}.day-empty-note{font-size:13px;color:#aaa;margin:4px 0}.day-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.day-card-footer button{padding:3px 0;min-height:28px;color:#ba7658}.day-card-footer span{font-size:12px;color:#aaa}.day-pager{display:flex;align-items:center;justify-content:center;gap:18px;margin:0 0 13px}.day-pager button{min-height:28px;padding:0 7px;font-size:24px;color:#b77b5f}.day-pager span{font-size:12px;color:#888}.day-add{border-radius:999px;background:#e8936b;min-height:49px}
/* Dates keep their number clear while up to three stickers peek across the grid. */
.calendar-page .grid:not(.week){overflow:visible}.calendar-page .cell{overflow:visible;z-index:0}.calendar-page .cell:has(img){z-index:1}.calendar-page .cell span{z-index:5}.calendar-page .cell img{width:52%;height:54%;left:30%;bottom:2px;right:auto;--tilt:-8deg;transform:rotate(var(--tilt));animation:calendarPop .5s cubic-bezier(.2,1.5,.3,1) both;pointer-events:none}.calendar-page .cell img:nth-of-type(2){width:44%;height:46%;left:-8%;right:auto;bottom:-7px;--tilt:9deg;animation-delay:.1s}.calendar-page .cell img:nth-of-type(3){width:41%;height:43%;left:58%;right:auto;bottom:10px;--tilt:7deg;animation-delay:.18s}.calendar-page .cell b{z-index:6;background:#fff9;border-radius:8px;padding:0 2px}@keyframes calendarPop{from{opacity:0;transform:scale(.3) rotate(var(--tilt))}to{opacity:1;transform:scale(1) rotate(var(--tilt))}}
.calendar-page .cell img{left:15%;bottom:4px}.calendar-page .cell img:nth-of-type(2){left:-10%;bottom:-13px;width:47%;height:49%}.calendar-page .cell img:nth-of-type(3){left:65%;bottom:-9px;width:45%;height:47%}
.calendar-page .cell img{width:66%;height:67%;left:10%}.calendar-page .cell img:nth-of-type(2){width:54%;height:55%;left:-11%}.calendar-page .cell img:nth-of-type(3){width:52%;height:53%;left:63%}.stat-pill{justify-content:center;gap:5px}.stat-pill .stat-emoji{font-size:clamp(19px,4.8vw,25px)}.stats-row{gap:7px}
.calendar-page .cell img{width:78%;height:78%;left:7%}.calendar-page .cell img:nth-of-type(2){width:62%;height:63%;left:-15%}.calendar-page .cell img:nth-of-type(3){width:61%;height:62%;left:63%}.day-photo-sticker{width:34%;height:51%;right:-5px;bottom:-18px}.stat-pill span:first-child{padding-left:5px;text-align:center}.stat-pill small{text-align:center}.wall-board img[data-tile]{filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 4px #fff) drop-shadow(0 4px 5px #3f2d2429)}
.calendar-page .cell img{width:96%;height:94%;left:2%;object-fit:contain}.calendar-page .cell img:nth-of-type(2){width:80%;height:80%;left:-17%}.calendar-page .cell img:nth-of-type(3){width:78%;height:79%;left:54%}.day-photo-sticker{width:42%;height:62%;right:-6px;bottom:-20px}.stat-pill span:first-child{padding-left:9px;text-align:center;line-height:1.3}.stat-pill small{display:block;text-align:center;margin-left:0}.category-add{display:flex;gap:9px;margin:0 0 17px}.category-add input{flex:1;min-width:0;border:1px solid #e9ded8;background:#fff;border-radius:13px;padding:0 12px;font:inherit}.category-add button{white-space:nowrap;padding:9px 12px}.wall-heading .period-switch{width:min(310px,82%)}.background-chooser{display:flex;align-items:center;justify-content:center;gap:8px;margin:11px 0 0;padding:10px;background:#fff;border:1px solid #f0ebe8;border-radius:15px;box-shadow:0 7px 17px #3d251817}.background-chooser span{font-size:11px;color:#777}.background-chooser>button{width:27px;height:27px;min-height:27px;padding:0;border:1px solid #ddd;border-radius:50%}.background-upload{position:relative;overflow:hidden;padding:8px 10px;border-radius:999px;background:#fbf1e9;color:#9a5b40;font-size:11px;white-space:nowrap;cursor:pointer}.background-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.candidate-fields .category-add{margin:8px 0 0}.candidate-fields .category-add input{min-height:40px}.candidate-fields .category-add button{min-height:40px}.category-filter{display:flex;flex-wrap:wrap;gap:7px}.category-chip{display:inline-flex;align-items:center;border-radius:999px;background:#f8f5f2;box-shadow:0 2px 6px #4c302410}.category-chip>.pill{border-radius:999px 0 0 999px}.category-chip>.pill:only-child{border-radius:999px}.category-chip .category-remove{min-width:24px;min-height:30px;padding:0 7px 1px 0;border:0;background:transparent;color:#aa7d6b;font-size:20px;line-height:1}.category-chip .category-remove:hover{color:#ad4f3b}

/* 手机全宽布局；桌面仍以手机画布居中展示。 */
html,body{max-width:100%;overflow-x:hidden}
main{width:100%;box-sizing:border-box}
@media(max-width:460px){
  main{max-width:none;margin:0;padding:18px clamp(12px,4vw,20px) calc(100px + env(safe-area-inset-bottom))}
  .bar{width:100%;left:0;transform:none}
  .notebook{margin-top:24px;padding-left:clamp(7px,2.5vw,12px);padding-right:clamp(7px,2.5vw,12px)}
  .calendar-page .cell{height:clamp(43px,13.8vw,66px)}
  .stats-row{margin-left:0;margin-right:0;gap:clamp(3px,1.3vw,7px)}
  .stat-pill{padding:7px 3px;gap:2px}
  .stat-pill span:first-child{padding-left:0;font-size:clamp(8px,2.5vw,12px)}
  .stat-pill small{font-size:clamp(8px,2.2vw,10px)}
  .stat-pill .stat-emoji{font-size:clamp(15px,4.3vw,22px)}
  .stats-row .stat-pill strong{font-size:clamp(12px,3.3vw,17px)}
  .wall-board{width:100%}
  .day-carousel{margin-right:calc(-1 * clamp(12px,4vw,20px))}
  .form-row,.candidate-fields,.category-add{min-width:0}
  input,select,textarea{min-width:0;max-width:100%}
}
@media(max-width:360px){
  main{padding-left:10px;padding-right:10px}
  .calendar-page .cell{height:clamp(40px,13.5vw,49px)}
  .calendar-page .cell span{font-size:11px;top:3px;left:4px}
  .rings{left:14px;right:14px}
  .stat-pill{flex-wrap:wrap;justify-content:center;align-content:center;min-height:52px}
  .stat-pill span:first-child{width:100%;line-height:1.05}
  .stat-pill small{font-size:8px}
  .wall-actions button{font-size:10px}
  .category-add button{padding-inline:8px;font-size:12px}
  .day-card{flex-basis:91%}
}
.home-head h1{min-width:0;overflow-wrap:anywhere;font-size:clamp(17px,4.4vw,20px)!important}
.profile-overlay{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:#27211b83;backdrop-filter:blur(4px)}
.profile-dialog{width:min(100%,380px);padding:22px;border:1px solid #eee7e1;border-radius:24px;background:#fff;box-shadow:0 18px 55px #241a1930}
.profile-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
.profile-dialog-head h2{font-size:19px}
.profile-close{min-width:32px;min-height:32px;padding:0;background:#f4f2f0;border-radius:50%;font-size:24px;line-height:1}
.profile-photo{display:flex;align-items:center;gap:14px;margin:0 0 17px;cursor:pointer;color:#ba7658;font-size:14px}
.profile-photo img,.profile-photo>span:first-child{width:58px;height:58px;flex:none;border-radius:50%;object-fit:cover;background:#e7e7e5}
.profile-photo>span:first-child{display:grid;place-items:center;color:#aaa;font-size:22px}
.profile-photo input{position:absolute;width:1px;height:1px;opacity:0}
.profile-name{display:block;margin:0 0 12px;font-size:14px}
.profile-name input{display:block;width:100%;min-height:46px;margin-top:7px;padding:10px 12px;border:1px solid #ded9d5;border-radius:12px;background:#fff;color:#242424;font:inherit}
.profile-dialog p{margin:0 0 18px;color:#888;font-size:12px}

