:root{--bg:#fbf7f5;--paper:#fff;--ink:#352c32;--muted:#877c80;--rose:#a94764;--rose-soft:#f5e5e9;--line:#eee5e6;--green:#638677;--shadow:0 8px 35px #61394b08;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a,input,textarea,select{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #a9476480;outline-offset:3px}h1,h2,h3,p{margin:0}button{border:0}a{color:var(--rose)}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink)}.brand img{width:39px;height:39px;border-radius:12px}.brand strong{font-family:serif;font-size:24px;letter-spacing:3px}.brand small{display:block;font-size:10px;letter-spacing:1.5px;color:var(--muted);margin-top:3px}.shell{max-width:1100px;margin:auto;padding:0 36px 40px}.header{display:flex;align-items:center;justify-content:space-between;height:105px;border-bottom:1px solid var(--line);margin-bottom:30px}.header-right{display:flex;align-items:center;gap:14px}.cloud{font-size:12px;color:var(--green);display:flex;align-items:center;gap:6px}.avatar{width:40px;height:40px;border-radius:50%;background:var(--rose-soft);color:var(--rose);font-size:16px}.nav{display:flex;gap:6px;margin-bottom:29px}.nav button{background:none;color:var(--muted);padding:10px 20px;display:flex;gap:9px;align-items:center;border-radius:12px;font-size:14px}.nav button.active{background:var(--rose-soft);color:var(--rose);font-weight:600}.greeting{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:23px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;color:var(--rose);margin-bottom:10px}.greeting h1,.page-title{font-size:27px;font-weight:600;letter-spacing:1px}.subtitle{font-size:13px;color:var(--muted);line-height:1.8;margin-top:7px}.date-label{font-size:12px;color:var(--muted);white-space:nowrap}.dashboard{display:grid;grid-template-columns:1.25fr 1fr;gap:20px}.card{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:25px;box-shadow:var(--shadow)}.card h2{font-size:16px;font-weight:600;display:flex;align-items:center;gap:9px}.hero{background:#f6e9e9;position:relative;overflow:hidden;border-color:#f0dddf;min-height:353px;display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px}.hero:before,.hero:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;border:1px solid #c87a8c18;right:-125px;top:-100px}.hero:after{width:290px;height:290px;top:auto;right:auto;left:-210px;bottom:-100px}.hero>*{position:relative}.status-pill{font-size:11px;background:#ffffff9c;color:var(--rose);padding:6px 13px;border-radius:30px;letter-spacing:1px}.ring{width:186px;height:186px;border-radius:50%;border:8px solid #e8cdd5;outline:1px solid #e7c5d0;outline-offset:8px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:24px 0 19px;background:#fff9f970;box-shadow:inset 0 0 0 1px #ffffff}.ring small{font-size:12px;color:var(--muted)}.ring strong{font-family:Georgia,serif;font-size:63px;color:var(--rose);line-height:1.15;font-weight:400}.ring .no-record{font-size:36px;letter-spacing:4px}.ring span{font-size:12px;color:var(--rose)}.hero-note{font-size:12px;color:#8c6673;margin-bottom:18px;line-height:1.7}.primary{background:var(--rose);color:white;display:inline-flex;justify-content:center;align-items:center;gap:7px;border-radius:12px;min-height:44px;padding:11px 22px;font-size:14px}.primary:hover{background:#933b55}.secondary{background:#f8f1f2;color:var(--rose);border-radius:11px;min-height:42px;padding:10px 17px;font-size:13px}.text-button{background:none;color:var(--rose);padding:5px;font-size:12px}.outline{background:white;border:1px solid var(--line);color:var(--ink);padding:10px 15px;border-radius:10px;font-size:13px}.danger{color:#b7354c}.right-stack{display:flex;flex-direction:column;gap:18px}.metric-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.metric{padding:22px}.metric small{font-size:11px;color:var(--muted)}.metric strong{display:block;font-family:Georgia,serif;font-size:31px;font-weight:400;margin:12px 0 6px}.metric strong span{font-family:inherit;font-size:12px;margin-left:4px;color:var(--muted)}.metric p{font-size:11px;line-height:1.6;color:var(--muted)}.daily-card{flex:1}.card-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.feeling-row{display:flex;gap:12px;align-items:center}.feeling-symbol{width:51px;height:51px;border-radius:16px;background:#f5efe4;color:#9b865e;display:grid;place-items:center;font-size:24px}.feeling-row h3{font-size:14px;font-weight:500;margin-bottom:5px}.feeling-row p{font-size:12px;line-height:1.7;color:var(--muted)}.mini-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:17px}.tag{font-size:11px;padding:5px 9px;border-radius:7px;background:#f7f2f2;color:#91767e}.comfort{margin-top:18px;padding:13px 15px;border-radius:11px;background:#f8f7f2;font-size:12px;color:#8c8375;line-height:1.7}.calendar-card{margin-top:20px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.weekday{text-align:center;color:var(--muted);font-size:11px;padding:8px 0}.day{aspect-ratio:1.18;max-height:62px;border-radius:12px;background:none;color:var(--ink);position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:13px;min-height:35px}.day:hover{background:#faf2f3}.day.period{background:var(--rose-soft);color:var(--rose);font-weight:600}.day.forecast{border:1px dashed #d8a7b5;background:#fdf7f8;color:#af7687}.day.today .number{border-bottom:2px solid var(--rose)}.day.selected{box-shadow:inset 0 0 0 2px var(--rose)}.day.future{color:#bcb1b6}.day .dot{width:4px;height:4px;background:var(--green);border-radius:50%;position:absolute;bottom:8px}.calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.month-controls{display:flex;align-items:center;gap:7px;font-size:14px}.icon-button{background:#faf5f5;display:grid;place-items:center;width:33px;height:33px;border-radius:9px;color:var(--muted)}.legend{display:flex;gap:15px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-top:15px}.legend span{display:flex;gap:6px;align-items:center}.swatch{width:11px;height:11px;border-radius:3px;background:var(--rose-soft)}.swatch.predict{background:#fdf7f8;border:1px dashed #d8a7b5}.swatch.record{width:5px;height:5px;background:var(--green);border-radius:50%}.disclaimer{color:#93878d;font-size:11px;line-height:1.8;margin:21px auto 0;display:flex;gap:7px;align-items:flex-start}.disclaimer svg{width:16px;height:16px;margin-top:2px}.foot{display:flex;justify-content:center;gap:8px;font-size:10px;letter-spacing:1px;color:#b2a3aa;margin-top:26px}.two-col{display:grid;grid-template-columns:1.25fr 1fr;gap:20px;margin-top:22px}.empty{text-align:center;padding:35px 10px}.empty svg{width:38px;height:38px;color:#c2a1ad;margin-bottom:12px}.empty h3{font-size:15px;font-weight:500;margin-bottom:9px}.empty p{color:var(--muted);font-size:12px;line-height:1.9;max-width:300px;margin:0 auto 19px}.period-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}.period-item:last-child{border:0;padding-bottom:0}.period-mark{width:38px;height:38px;border-radius:12px;background:var(--rose-soft);color:var(--rose);display:grid;place-items:center;flex-shrink:0}.period-info{flex:1}.period-info strong{display:block;font-size:13px;font-weight:500}.period-info p{font-size:11px;color:var(--muted);margin-top:6px}.chart{display:flex;align-items:flex-end;gap:15px;min-height:150px;padding-top:25px}.chart-item{flex:1;text-align:center;font-size:11px;color:var(--muted)}.bar{height:var(--bar-height);min-height:10px;max-height:110px;background:#ddb5c2;border-radius:8px 8px 3px 3px;margin:7px auto 8px;max-width:42px}.settings-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;margin-top:22px}.form{display:flex;flex-direction:column;gap:17px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#74616b}.field input,.field select,.field textarea{width:100%;background:#fffcfc;border:1px solid #e8dfe2;color:var(--ink);border-radius:11px;padding:12px 13px;min-width:0;font-size:14px;outline:none}.field input:focus,.field textarea:focus,.field select:focus{border-color:#ba6c84;box-shadow:0 0 0 3px #a947640c}.field textarea{resize:vertical;min-height:90px}.field input[type=checkbox]{width:auto}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hint{font-size:11px;line-height:1.8;color:var(--muted)}.setting-action{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 0;border-bottom:1px solid var(--line)}.setting-action:last-child{border:0}.setting-action h3{font-size:13px;font-weight:500;margin-bottom:6px}.setting-action p{font-size:11px;color:var(--muted);line-height:1.7}.btn-row{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.chip-row{display:flex;flex-wrap:wrap;gap:8px}.chip{padding:9px 13px;border:1px solid var(--line);background:white;color:var(--muted);border-radius:10px;font-size:12px}.chip.selected{background:var(--rose-soft);border-color:#d7a2b3;color:var(--rose)}.note-preview{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:13px;color:#796c74;margin-top:15px}.auth-shell{max-width:1100px;min-height:100vh;margin:auto;padding:32px 40px;display:flex;flex-direction:column}.auth-top{display:flex;justify-content:space-between;align-items:center}.private-badge{color:var(--green);font-size:11px;display:flex;align-items:center;gap:6px}.auth-main{display:grid;grid-template-columns:1.15fr 1fr;gap:80px;align-items:center;flex:1;padding:60px 0}.auth-copy h1{font-family:serif;font-size:46px;line-height:1.45;font-weight:500;letter-spacing:3px}.auth-copy h1 em{color:var(--rose);font-style:normal}.auth-copy>p{font-size:14px;color:var(--muted);line-height:2;margin-top:22px;max-width:330px}.auth-art{position:relative;width:160px;height:160px;display:grid;place-items:center;border:1px solid #e7d3d9;border-radius:50%;margin-bottom:32px;background:#f5e8eb}.auth-art:before{content:"";width:130px;height:130px;position:absolute;border:1px dashed #d7b4c1;border-radius:50%}.auth-art svg{width:76px;height:76px;stroke-width:.7;color:var(--rose)}.auth-features{display:flex;gap:20px;flex-wrap:wrap;margin-top:32px;font-size:11px;color:#8f7580}.auth-features span{display:flex;gap:5px;align-items:center}.auth-card{padding:33px;border-radius:26px;box-shadow:0 15px 60px #8749590b}.auth-card h2{font-family:serif;font-size:23px;letter-spacing:1px}.auth-tabs{display:flex;background:#f8f1f3;padding:4px;border-radius:11px;margin:23px 0}.auth-tabs button{flex:1;background:none;color:var(--muted);padding:10px;border-radius:8px;font-size:13px}.auth-tabs button.selected{background:white;color:var(--rose);box-shadow:0 2px 8px #9c506711}.auth-card .primary{width:100%;margin-top:4px}.auth-error,.form-error{color:#bb3453;font-size:12px;line-height:1.8}.auth-note{font-size:11px;color:#9c8b94;text-align:center;margin-top:18px;line-height:1.8}.loading{display:flex;min-height:80vh;align-items:center;justify-content:center;flex-direction:column;gap:18px;color:var(--muted);font-size:13px}.loading img{width:56px;height:56px}.offline-box{max-width:420px;margin:20vh auto;text-align:center;padding:28px}.offline-box h2{font-size:21px;margin-bottom:13px}.offline-box p{color:var(--muted);font-size:13px;line-height:1.8;margin-bottom:20px}dialog{border:1px solid var(--line);border-radius:22px;padding:27px;width:440px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 36px);overflow:auto;color:var(--ink);box-shadow:0 20px 100px #382a3440}dialog::backdrop{background:#35233355;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.modal-head h2{font-size:19px;font-weight:600}.modal-head button{background:none;color:var(--muted);font-size:25px;line-height:1}#toast{position:fixed;bottom:105px;left:50%;transform:translate(-50%,15px);background:#42353fee;color:white;padding:12px 19px;border-radius:12px;font-size:12px;line-height:1.7;max-width:calc(100vw - 35px);width:max-content;opacity:0;pointer-events:none;transition:.2s;z-index:100}#toast.show{opacity:1;transform:translate(-50%,0)}.hidden{display:none!important}.calendar-page .calendar-grid{gap:10px}.calendar-page .day{aspect-ratio:1;max-height:77px}.date-record-title{font-size:16px;margin-bottom:7px}.safe-note{background:#f5f8f5;color:#688074;padding:14px;border-radius:12px;font-size:11px;line-height:1.9}.check-label{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted)}.check-label input{accent-color:var(--rose)}.notice{padding:14px 16px;margin-top:15px;background:#fff6e9;color:#997644;border:1px solid #f2e5cf;border-radius:12px;font-size:12px;line-height:1.9}.bar-chart{display:block;width:100%;height:120px;margin:5px auto}.privacy-note{margin-top:20px}.trend-summary{font-size:12px;color:var(--muted);line-height:1.8;margin-top:14px}input[type=file]{max-width:100%}
@media(min-width:800px){.calendar-card .calendar-grid{gap:11px}.calendar-card .day{aspect-ratio:2.3}.hero .primary{width:210px}}@media(max-width:800px){.shell{padding:0 20px 115px}.header{height:80px;margin-bottom:24px}.brand img{width:35px;height:35px}.brand strong{font-size:22px}.cloud{font-size:10px}.header-right{gap:9px}.nav{position:fixed;z-index:20;bottom:0;left:0;right:0;border-top:1px solid var(--line);background:#fffcfcfa;backdrop-filter:blur(10px);display:flex;justify-content:space-around;padding:10px 6px calc(10px + env(safe-area-inset-bottom));margin:0;gap:0}.nav button{flex-direction:column;font-size:10px;gap:5px;padding:6px 20px;border-radius:10px}.nav button.active{background:none}.dashboard{grid-template-columns:1fr;gap:16px}.right-stack{gap:16px}.greeting h1{font-size:23px}.greeting{align-items:flex-start}.date-label{font-size:10px;padding-top:4px}.card{padding:20px;border-radius:19px}.hero{min-height:340px;padding:26px 20px}.hero .primary{width:75%;max-width:260px}.ring{width:178px;height:178px;margin-top:23px;margin-bottom:18px}.metric-row{gap:14px}.metric{padding:18px}.metric strong{font-size:29px}.daily-card{padding:20px}.calendar-grid{gap:4px}.day{border-radius:9px;aspect-ratio:1.12;font-size:12px}.calendar-page .calendar-grid{gap:5px}.calendar-page .day{aspect-ratio:.85}.legend{gap:12px}.two-col,.settings-grid{grid-template-columns:1fr;gap:16px;margin-top:18px}.page-title{font-size:24px}.auth-shell{padding:25px 22px}.private-badge{font-size:10px}.auth-main{grid-template-columns:1fr;gap:28px;padding:32px 0}.auth-copy{text-align:center}.auth-copy h1{font-size:30px;letter-spacing:2px}.auth-copy>p{font-size:12px;margin:13px auto 0}.auth-art{width:86px;height:86px;margin:0 auto 20px}.auth-art:before{width:68px;height:68px}.auth-art svg{width:45px;height:45px}.auth-features{justify-content:center;margin-top:18px;gap:14px;font-size:10px}.auth-features svg{width:16px;height:16px}.auth-card{padding:24px;max-width:430px;width:100%;margin:auto}.auth-card h2{font-size:21px}.auth-shell .foot{margin-top:0;margin-bottom:6px}.form-row{gap:10px}dialog{padding:24px 20px}.calendar-head h2{font-size:14px}.month-controls{font-size:12px}.icon-button{width:29px;height:29px}.foot{font-size:9px}.disclaimer{font-size:10px}.setting-action{gap:10px}.setting-action .outline{white-space:nowrap}.subtitle{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
