:root{--bg:#f5f4ef;--paper:#fffefa;--ink:#26372f;--muted:#77877b;--line:#e1e6df;--green:#2d604d;--soft:#e9f0e8;--orange:#bd8054;--shadow:0 14px 38px rgba(34,67,47,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9fc9aa;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em}p{line-height:1.6}.app-shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:#fafaf6;border-right:1px solid var(--line);padding:27px 15px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand,.mobile-brand{display:flex;align-items:center;gap:10px;padding:0 10px}.brand{margin-bottom:35px}.brand-icon{background:var(--green);border-radius:10px;display:grid;place-items:center;width:33px;height:33px;color:white;font-size:23px;font-weight:850;letter-spacing:-.1em;position:relative}.brand-icon span{position:absolute;right:6px;bottom:7px;background:#e3bb87;width:5px;height:5px;border-radius:50%}.brand b,.mobile-brand b{font-size:19px;letter-spacing:-.06em}.brand small{display:block;color:#8a998e;font-size:10px;letter-spacing:.11em;margin-top:2px}.side-section{font-size:10px;letter-spacing:.15em;color:#a1aca2;font-weight:800;margin:0 10px 12px}.side-current{display:flex;align-items:center;gap:10px;background:#e8f0e7;color:var(--green);font-weight:750;border-radius:10px;padding:11px 12px;font-size:12px}.side-current-icon{font-size:20px;line-height:1}.side-current i{margin-left:auto;font-size:10px;font-style:normal;color:#9eb2a3}.stages-label{margin-top:32px}.stage-list{display:grid;gap:3px}.stage-list button{display:flex;align-items:center;gap:8px;border:0;background:transparent;border-radius:9px;padding:10px;color:#617367;text-align:left;font-size:12px;font-weight:700}.stage-list button:hover,.stage-list button.active{background:#eef3ed;color:var(--green)}.stage-list button span{font-size:10px;color:#a7b7a9;font-weight:750}.stage-list button small{font-size:9px;color:#a2ada4;margin-left:auto}.side-note{margin-top:auto;border:1px solid #e0e9dd;background:#eff3ea;border-radius:13px;padding:14px 13px;color:#607565;font-size:11px}.side-note b{margin-left:7px}.side-note p{font-size:10px;line-height:1.6;margin:8px 0 10px}.side-note button{border:0;background:none;color:var(--green);text-decoration:underline;text-underline-offset:3px;padding:0;font-size:10px}.safe-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#75ac7b}.workspace{min-width:0}.topbar{height:62px;border-bottom:1px solid var(--line);background:var(--paper);display:flex;align-items:center;justify-content:space-between;padding:0 4%}.mobile-brand{display:none}.top-context{font-size:11px;font-weight:650;color:#718277}.top-context i{color:#b8c2b7;font-style:normal;margin:0 8px}.demo-badge{display:flex;align-items:center;gap:7px;background:#edf4ec;border:1px solid #e1ebdd;border-radius:30px;padding:7px 11px;color:#5d8a64;font-size:10px;font-weight:750}main{max-width:1400px;margin:auto;padding:20px 4% 70px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:12px}.eyebrow,.scope-label{color:#6b8a72;font-size:10px;letter-spacing:.17em;font-weight:850}.page-heading h1{font-family:Georgia,"Songti SC",serif;font-size:31px;font-weight:650;margin:4px 0 4px}.page-heading p{color:#7b8b7c;font-size:12px;margin:0}.heading-note{text-align:right;display:grid;gap:3px}.heading-note b{color:var(--green);font-size:18px;font-family:Georgia,serif}.heading-note span{color:#a0ada2;font-size:10px}.breadcrumb{display:flex;gap:8px;align-items:center;margin-bottom:10px;min-height:25px;flex-wrap:wrap}.breadcrumb button{border:0;background:none;color:#8c9b8d;font-size:12px;font-weight:750;padding:3px 0}.breadcrumb button.active{color:var(--green)}.breadcrumb .separator{color:#b7c3b8;font-size:12px}.chart-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:18px 20px 14px}.chart-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.chart-header h2{font-family:Georgia,"Songti SC",serif;font-size:22px;font-weight:650;margin:5px 0 4px}.chart-header p{font-size:11px;color:#849286;margin:0}.chart-header-actions{text-align:right;display:grid;gap:8px;justify-items:end}.scope-meta{font-size:10px;color:#9caa9e;white-space:nowrap}.back-button{background:#edf3ec;border:1px solid #dce7dc;color:var(--green);border-radius:8px;padding:7px 9px;font-size:10px;font-weight:750}.chart-legend-head{display:flex;justify-content:space-between;gap:15px;color:#536a56;font-size:11px;font-weight:800;margin:16px 0 8px}.chart-legend-head small{font-size:10px;font-weight:500;color:#9ba99c;margin-left:6px}.chart-legend-head>span:last-child{font-size:10px;font-weight:500;color:#9da99e}.legend{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.legend button{border:1px solid #e3e8e1;background:#fff;border-radius:20px;padding:7px 10px;display:flex;align-items:center;gap:7px;color:#506351;font-size:11px;font-weight:700}.legend button.off{opacity:.43}.legend button .legend-dot{width:7px;height:7px;border-radius:50%;background:var(--dim-color)}.chart-frame{position:relative;border:1px solid #ecf0ea;border-radius:12px;background:linear-gradient(180deg,#fbfcf8,#f8faf5);overflow:hidden;height:290px}#score-chart{display:block;width:100%;height:100%}.chart-empty{position:absolute;left:50%;top:41%;transform:translate(-50%,-50%);text-align:center;background:#fffefaeb;border:1px solid #e4e9e2;border-radius:9px;padding:11px 14px;color:#7a8b7e;font-size:11px;z-index:2;max-width:240px}.chart-foot{display:flex;justify-content:space-between;color:#9aa99c;font-size:10px;margin:11px 1px 14px}.event-key{display:inline-block;width:7px;height:7px;background:var(--orange);transform:rotate(45deg);margin-right:4px}.period-strip{display:flex;gap:5px;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin;scrollbar-color:#d0dbce transparent}.period-strip button{white-space:nowrap;border:1px solid #e1e8df;background:#f6f8f3;border-radius:7px;color:#7e907f;font-size:10px;font-weight:750;padding:7px 9px}.period-strip button.has-event::before{content:"◆";color:var(--orange);font-size:6px;margin-right:5px}.period-strip button:hover,.period-strip button.active{border-color:#92b69c;background:#e6f0e6;color:var(--green)}.lower-content{margin-top:20px}.data-note{font-size:10px;color:#9aa89c;margin:0 0 15px}.metric-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.metric{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:15px 17px}.metric small{display:block;color:#9baa9d;font-size:10px;font-weight:700;margin-bottom:7px}.metric strong{font-family:Georgia,"Songti SC",serif;font-size:23px;color:var(--green);font-weight:650}.metric span{display:block;color:#91a092;font-size:10px;margin-top:3px}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,32%);gap:15px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:18px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-head h3{font-family:Georgia,"Songti SC",serif;font-size:18px;margin:0;font-weight:650}.panel-head span{color:#9aaa9d;font-size:10px}.event-list{display:grid;gap:8px}.event-item{border:1px solid #e8ebe5;background:#fbfcf8;border-radius:10px;padding:11px 12px;text-align:left;display:flex;gap:11px;align-items:flex-start;width:100%;color:var(--ink)}.event-item:hover{border-color:#b7cdb7;background:#f5f9f3}.event-item time{font-size:10px;color:#7a957f;font-weight:800;white-space:nowrap;padding-top:2px;min-width:48px}.event-item strong{font-size:11px;display:block;margin-bottom:2px}.event-item small{font-size:10px;color:#95a297}.event-item .event-arrow{margin-left:auto;color:var(--green);font-size:14px}.empty-copy{font-size:11px;color:#9ba89d;border:1px dashed #d7e0d5;border-radius:9px;padding:15px}.sample-day{background:linear-gradient(135deg,#e8f0e6,#f8f6ee);border:1px solid #dce7db;border-radius:11px;padding:16px;display:flex;flex-direction:column;min-height:220px}.sample-day>span{color:#688b72;font-size:10px;letter-spacing:.12em;font-weight:800}.sample-day h3{font-family:Georgia,"Songti SC",serif;font-size:19px;margin:15px 0 8px}.sample-day p{color:#6d806f;font-size:11px}.sample-day button{margin-top:auto;align-self:flex-start;background:none;border:0;padding:0;color:var(--green);font-size:11px;font-weight:800}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.day-tile{min-height:57px;border:1px solid #e6ebe3;background:#fafbf7;border-radius:8px;text-align:left;padding:6px 7px;display:flex;flex-direction:column;justify-content:space-between;color:#627565}.day-tile:hover{border-color:#9ebfa4;background:#eff7ed}.day-tile strong{font-size:11px}.day-tile small{font-size:8px;color:#9baa9d}.day-tile.has-note{background:#eaf3e9;border-color:#cbdfca}.day-tile.has-event small{color:#ae7b54}.day-tile.empty{border:0;background:none;pointer-events:none}.day-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:15px}.day-hero{background:linear-gradient(135deg,#e8f0e6,#f9f7f0);border:1px solid #dfeadf;border-radius:14px;padding:25px;min-height:350px}.day-hero .day-date{font-size:11px;letter-spacing:.12em;font-weight:800;color:#6b9274}.day-hero h2{font-family:Georgia,"Songti SC",serif;font-size:30px;line-height:1.3;font-weight:600;margin:14px 0}.day-hero .mood{display:inline-flex;background:#fffdf8;color:#507a58;border-radius:20px;padding:5px 10px;font-size:10px;font-weight:800}.day-hero .feeling{font-size:15px;color:#3d5c45;margin:20px 0 8px}.day-hero .reflection{color:#6a7f6c;font-size:12px;white-space:pre-wrap}.day-hero .no-reflection{color:#98a79a;font-size:12px}.day-hero button,.primary-button{border:1px solid var(--green);background:var(--green);color:#fff;border-radius:9px;padding:10px 14px;font-size:11px;font-weight:800}.day-hero button{margin-top:17px}.day-score-panel .panel-head{margin-bottom:20px}.score-row{display:grid;grid-template-columns:85px minmax(0,1fr) 27px;gap:8px;align-items:center;margin:12px 0;font-size:10px;color:#657869}.score-row .track{height:6px;background:#edf1eb;border-radius:10px;overflow:hidden}.score-row .fill{height:100%;border-radius:10px}.score-row b{text-align:right;font-size:11px}.day-event{margin-top:20px;border-top:1px solid #e9eee7;padding-top:18px}.day-event small{color:#a1ada2;font-size:10px;font-weight:800}.day-event p{font-size:11px;margin:7px 0 0;color:#6f8171}.day-dialog{border:1px solid #dce6da;border-radius:16px;padding:0;width:min(520px,calc(100vw - 24px));max-height:90vh;box-shadow:0 30px 80px #162b2260;background:#fffefa;color:var(--ink)}.day-dialog::backdrop{background:#18322694;backdrop-filter:blur(2px)}.day-dialog form{padding:25px;max-height:90vh;overflow:auto}.dialog-head{display:flex;justify-content:space-between;gap:12px}.dialog-head span{font-size:10px;letter-spacing:.14em;font-weight:850;color:#76a17b}.dialog-head h2{font-family:Georgia,"Songti SC",serif;font-size:22px;margin:7px 0 0}.dialog-head button{width:30px;height:30px;border-radius:50%;border:0;background:#eef3ed;color:#68806b;font-size:20px}.dialog-warning{font-size:10px;color:#6f8773;background:#f0f5ed;border-radius:8px;padding:9px 11px;margin:18px 0}.day-dialog label{display:block;font-size:11px;color:#657b69;font-weight:750;margin:13px 0}.day-dialog input,.day-dialog textarea,.day-dialog select{display:block;width:100%;border:1px solid #dfe8dc;background:#fff;border-radius:8px;padding:9px 10px;margin-top:6px;font-size:12px;color:var(--ink)}.day-dialog textarea{min-height:75px;resize:vertical}.day-dialog input::placeholder,.day-dialog textarea::placeholder{color:#b2beb3}.score-edit-heading{font-size:11px;color:#5d735f;font-weight:800;margin-top:18px}.score-edit-heading small{font-size:10px;color:#a4b1a4;font-weight:500}.score-edit-row{display:grid;grid-template-columns:85px 1fr 26px;align-items:center;gap:8px;font-size:10px;color:#6b7f6d;margin:7px 0}.score-edit-row input{margin:0;accent-color:var(--green);padding:0}.score-edit-row b{text-align:right}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.secondary-button{border:1px solid #d8e4d7;background:#fff;color:var(--green);border-radius:9px;padding:10px 14px;font-size:11px;font-weight:800}.toast{position:fixed;bottom:20px;right:20px;background:#234633;color:#fff;padding:10px 14px;border-radius:9px;font-size:11px;opacity:0;transform:translateY(10px);transition:all .2s;pointer-events:none;z-index:20}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1050px){.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:23px 10px}.stage-list button small{display:none}.content-layout{grid-template-columns:1fr 250px}}
@media(max-width:800px){.app-shell{display:block}.sidebar{display:none}.topbar{height:55px;padding:0 16px}.mobile-brand{display:flex;padding:0}.mobile-brand .brand-icon{width:28px;height:28px;font-size:20px;border-radius:8px}.mobile-brand b{font-size:17px}.top-context{display:none}main{padding:24px 16px 60px}.chart-card{padding:17px}.chart-frame{height:280px}.content-layout,.day-layout{grid-template-columns:1fr}.sample-day{min-height:180px}.heading-note{display:none}}
@media(max-width:560px){.page-heading h1{font-size:30px}.chart-header h2{font-size:21px}.chart-header{align-items:flex-start}.scope-meta{display:none}.chart-legend-head{margin-top:21px}.chart-legend-head>span:last-child{display:none}.legend{gap:5px}.legend button{font-size:10px;padding:6px 8px}.chart-frame{height:270px}.metric-row{gap:6px}.metric{padding:11px}.metric strong{font-size:18px}.month-grid{gap:3px}.day-tile{padding:5px;min-height:50px}.day-hero{padding:19px;min-height:280px}.day-hero h2{font-size:24px}.period-strip button{padding:6px 7px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
.page-heading{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.chart-foot>span:last-child{white-space:nowrap}
