:root{font-family:ui-rounded,"SF Pro Rounded","PingFang SC","Microsoft YaHei",sans-serif;color:#4a3b32;background:#f6eee3;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:radial-gradient(circle at 50% 5%,#fffaf4 0,#f6eee3 60%,#eee0d0 100%)}button,input,select{font:inherit}button,select{cursor:pointer}[hidden]{display:none!important}
.app{width:min(100%,540px);min-height:100dvh;margin:auto;padding:20px 18px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center}header{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.brand{display:flex;gap:9px;align-items:center;font-size:18px;font-weight:800;white-space:nowrap}.brand svg{width:28px;height:28px;flex-shrink:0}.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.language,.theme-select{font-size:12px;color:#8b7666;background:#fff9f0;padding:9px 10px;border:0;border-radius:99px;box-shadow:0 4px 16px #90745e12;white-space:nowrap}.language{min-width:76px}.theme-select{min-width:72px}
.card{width:100%;padding:15px 15px 20px;border-radius:30px;background:#fffaf3;box-shadow:0 22px 60px #88705a24,0 2px 8px #88705a12;text-align:center}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;padding:4px;background:#f0e6d9;border-radius:17px}.tab{border:0;border-radius:13px;padding:10px 2px;background:none;color:#8a7564;font-size:13px;font-weight:700}.tab.active{background:#fffaf3;color:#665042;box-shadow:0 2px 8px #6f534b1b}.subactivity{display:flex;align-items:center;gap:10px;padding:11px 3px 0;color:#8a7564;font-size:13px;font-weight:700}.subactivity[hidden]{display:none}.subactivity select{flex:1;min-width:0;border:1px solid #eadccc;border-radius:12px;padding:8px 12px;background:#fff;color:#5a4639;font-weight:700}
.scene{height:min(51dvh,465px);min-height:300px;display:flex;justify-content:center;align-items:center;margin:12px 0 4px;overflow:hidden;border-radius:22px;background:#e6d8c6}.scene img{width:61%;height:auto;max-width:none;flex-shrink:0}.scene.yoga img,.scene.guitar img,.scene.theme-beach.reading img{width:61%;height:100%;max-width:none;max-height:100%;object-fit:cover;transform:none}.scene.theme-beach.brushing img,.scene.theme-beach.running img,.scene.theme-beach.practice img{width:61%;height:100%;max-width:none;max-height:100%;object-fit:cover;transform:none}.eyebrow{margin:9px 0 2px;color:#9a8572;font-size:13px;letter-spacing:.07em;font-weight:700}.time{font-variant-numeric:tabular-nums;font-size:clamp(58px,15vw,80px);font-weight:800;line-height:1.15;letter-spacing:-.065em}.status{min-height:21px;margin:4px 0 16px;color:#8a7564;font-size:14px}.progress{height:5px;margin:0 9px 17px;background:#efe3d5;border-radius:99px;overflow:hidden}.progress div{height:100%;width:0;background:#bd8061;transition:width .3s}
.controls{display:flex;justify-content:center;gap:9px}.control{border:0;border-radius:16px;min-height:49px;padding:0 16px;font-size:15px;font-weight:800;white-space:nowrap}.primary{min-width:128px;color:white;background:#bd8061;box-shadow:0 8px 18px #bd806144}.secondary{color:#775e4d;background:#f0e6d9}.music-button[aria-expanded="true"]{background:#ddc4ae}.panel{width:100%;margin-top:16px;padding:16px 18px;border-radius:22px;background:#fff9f0;box-shadow:0 8px 26px #88705a14}.panel h2{margin:0 0 12px;color:#705948;font-size:15px}.duration-row,.music-row{display:flex;align-items:center;gap:9px}.duration-row label{display:flex;align-items:center;gap:5px;color:#8a7564;font-size:13px}.duration-row input{width:64px;border:1px solid #e7d9c8;border-radius:10px;padding:9px 5px;background:#fff;color:#4a3b32;text-align:center;font-size:16px;font-weight:700}.hint{margin:9px 0 0;color:#9d8979;font-size:12px}.music-row select{flex:1;min-width:0;border:1px solid #e7d9c8;border-radius:11px;padding:10px;background:#fff;color:#4a3b32}.music-row input[type=range]{width:95px;accent-color:#bd8061}.file-label{display:block;margin-top:12px;color:#8a7564;font-size:13px}.file-label input{display:block;width:100%;margin-top:7px;font-size:12px}footer{margin-top:auto;padding-top:20px;color:#a48f7d;font-size:12px;text-align:center}
.celebration{position:fixed;inset:0;z-index:20;display:grid;place-items:center;overflow:hidden;background:#3c2d2588;backdrop-filter:blur(5px)}.celebration-card{position:relative;z-index:2;width:min(88vw,380px);padding:34px 25px;border-radius:30px;background:#fffaf3;text-align:center;box-shadow:0 30px 80px #34201555;animation:pop .45s cubic-bezier(.2,1.5,.4,1)}.celebration-emoji{font-size:72px;line-height:1}.celebration h2{font-size:30px;margin:12px 0 7px}.celebration p{margin:0 0 22px;color:#8a7564}.confetti{position:absolute;left:var(--x);top:-20px;width:var(--w);height:var(--h);background:var(--color);transform:rotate(var(--r));animation:fall var(--time) linear var(--delay) forwards}.close-celebration{min-width:150px}.control:focus-visible,.tab:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #9067d6;outline-offset:2px}@keyframes fall{to{top:110%;transform:translateX(var(--drift)) rotate(720deg)}}@keyframes pop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}
.footer-links{display:flex;justify-content:center;gap:8px;margin-top:7px}.footer-links a{color:#806b5c;text-decoration:underline;text-underline-offset:3px}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading h2{margin:0}.text-button{border:0;background:none;color:#8a7564;font-size:12px;text-decoration:underline;text-underline-offset:3px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:15px 0}.stats div{padding:11px 3px;border-radius:14px;background:#f4e9dc;text-align:center}.stats strong{display:block;color:#5f4a3d;font-size:21px}.stats span{display:block;margin-top:3px;color:#907b6b;font-size:10px}.week-chart{height:86px;display:grid;grid-template-columns:repeat(7,1fr);align-items:end;gap:7px;padding:4px 2px}.chart-day{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px}.chart-day i{width:100%;max-width:27px;min-height:4px;border-radius:8px 8px 4px 4px;background:linear-gradient(#dba584,#bd8061)}.chart-day small,.chart-value{color:#9b8777;font-size:10px}.chart-value{min-height:12px;font-weight:700}.milestone{margin-top:14px;padding:13px;border-radius:16px;background:#f4e9dc}.milestone-copy{display:flex;align-items:center;gap:10px}.milestone-badge{font-size:28px}.milestone-copy div{min-width:0}.milestone-copy strong,.milestone-copy small{display:block}.milestone-copy strong{font-size:13px}.milestone-copy small{margin-top:2px;color:#947e6e;font-size:11px}.milestone-track{height:6px;margin-top:10px;overflow:hidden;border-radius:99px;background:#e3d4c3}.milestone-track i{display:block;height:100%;width:0;border-radius:inherit;background:#bd8061;transition:width .3s}.reward-button{width:100%;margin-top:10px;padding:9px;border:0;border-radius:11px;background:#bd8061;color:#fff;font-size:12px;font-weight:800}.history-note{text-align:center}.achievement{position:fixed;inset:0;z-index:25;display:grid;place-items:center;padding:20px;background:#3c2d2594;backdrop-filter:blur(7px)}.achievement-card{width:min(90vw,390px);padding:34px 24px;border:2px solid #d6af58;border-radius:30px;background:linear-gradient(145deg,#fffdf4,#f7e6bd);text-align:center;box-shadow:0 28px 80px #2c1c1255}.achievement-medal{display:grid;place-items:center;width:88px;height:88px;margin:auto;border:6px double #fff3c7;border-radius:50%;background:linear-gradient(145deg,#e8bf59,#b77b22);color:#fff9dd;font-size:27px;font-weight:900;box-shadow:0 8px 22px #9d6b2c4d}.achievement-kicker{margin:14px 0 4px;color:#9b6b2f;font-size:12px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}.achievement-card h2{margin:0;font-size:27px}.achievement-card>p:not(.achievement-kicker){color:#785f43;line-height:1.55}.achievement-actions{display:flex;justify-content:center;gap:9px;margin-top:22px}html[data-achievement="gold"] .primary,html[data-achievement="gold"] .reward-button{background:linear-gradient(135deg,#c79436,#a86620)}html[data-achievement="gold"] .card{box-shadow:0 22px 60px #b889342b,0 0 0 1px #d8b76655}
@media(max-width:420px){header{flex-wrap:wrap}.brand{font-size:16px}.header-actions{margin-left:auto}.tabs .tab{font-size:11px}.control{padding:0 11px;font-size:14px}.primary{min-width:113px}.scene{height:49dvh;min-height:285px}.duration-row{justify-content:center}.stats{gap:4px}.stats span{font-size:9px}}
@media(max-height:690px){.app{padding-top:12px}header{margin-bottom:9px}.scene{height:43dvh;min-height:250px}.card{padding-bottom:16px}.time{font-size:60px}.status{margin-bottom:10px}}
