:root{color-scheme:light;--paper:#f7f7f0;--surface:#fffef9;--forest:#29432e;--green:#4c6c3d;--sage:#e0e7d3;--line:#e1e4d8;--muted:#737b6c;--gold:#c5ae68;--danger:#a34436;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:16px;color:var(--forest);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.55rem;border:1px solid transparent;background:transparent;border-radius:10px;padding:.7rem 1rem;min-height:44px;transition:background .15s,transform .15s}button:hover{background:var(--sage)}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}input,textarea,select{width:100%;background:#fcfcf6;border:1px solid #cbd2c1;border-radius:9px;padding:.75rem .85rem;min-height:46px}input:focus,textarea:focus,select:focus{outline:2px solid #789563;outline-offset:1px}input[type=checkbox]{width:19px;height:19px;min-height:0;accent-color:var(--green);margin:0;flex-shrink:0}input[type=date],input[type=time]{min-width:0}textarea{resize:vertical}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2329432e'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:2rem}label{display:block;font-weight:550;margin:.9rem 0 .45rem}.muted{color:var(--muted)}.small{font-size:.875rem;line-height:1.6}.primary{background:var(--green);color:white}.primary:hover{background:#3b592f}.outline{border-color:#a4b198;background:transparent}.danger{color:var(--danger)}.wide{width:100%}.check{display:flex;align-items:center;gap:.6rem;font-weight:400}.check .muted{margin-left:auto;font-size:.8rem}.eyebrow{font-size:.8rem;letter-spacing:.13em;color:var(--muted);margin:0 0 .8rem}.login-screen{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:3rem;background:radial-gradient(ellipse at 16% 85%,#e9eddb88,transparent 55%)}.login-card{width:min(1080px,100%);display:grid;grid-template-columns:1fr 1fr;border:1px solid white;border-radius:24px;overflow:hidden;box-shadow:0 20px 70px #33492d16;background:var(--surface)}.login-art{position:relative;min-height:620px;background:#e1e9d4}.login-art>img{position:absolute;width:100%;height:100%;object-fit:cover}.art-heading{position:absolute;top:2.5rem;left:3rem}.art-heading h1{font-size:3rem;margin:0;font-weight:750;letter-spacing:.08em}.art-heading p{font-size:1.25rem;letter-spacing:.12em;margin:.5rem 0}.login-form-wrap{padding:3.5rem 3.5rem 2rem;align-self:center}.login-form-wrap h2{font-size:2.3rem;letter-spacing:.03em;margin:0}.login-intro{font-size:.9rem;margin:1rem 0 1.5rem}.login-form-wrap .wide{min-height:49px;margin:.4rem 0}.remember{margin:1rem 0 .3rem}.local-hint{text-align:center;font-size:.8rem;margin:.7rem 0}.login-footer{color:var(--muted);font-size:.875rem;letter-spacing:.1em;margin:1.6rem 0 0}.form-message{min-height:1.5rem;font-size:.875rem;color:var(--danger);line-height:1.5;margin:.5rem 0}.workspace{min-height:100dvh;display:grid;grid-template-columns:228px minmax(0,1fr)}[hidden]{display:none!important}.sidebar{position:sticky;top:0;height:100dvh;padding:1.6rem 1rem 1rem;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#f1f3e9}.brand{display:flex;align-items:center;gap:.55rem;margin:.4rem .5rem 2.5rem}.brand img{width:47px;height:47px;border-radius:12px}.brand>span{font-size:1.7rem;font-weight:750;letter-spacing:.08em}.brand small{align-self:flex-end;font-size:.65rem;letter-spacing:.15em;margin-bottom:.4rem;color:var(--muted)}nav{display:grid;gap:.5rem}nav button{justify-content:flex-start;padding:.9rem 1.1rem;gap:1rem;font-weight:550}nav button.active{background:#dce5cd;color:#2e492c}svg{width:21px;height:21px;display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.sidebar-note{margin:auto 1.1rem;color:#95a18b;font-size:.9rem;line-height:1.9}.little-leaf{font-size:2.4rem;color:#abb793}.sidebar-bottom{display:grid;gap:.4rem;margin-top:2rem}.sidebar-bottom>button{justify-content:flex-start;gap:.8rem;text-align:left}.account{border-top:1px solid var(--line);border-radius:0;padding-top:1.2rem}.avatar{border-radius:50%;display:grid;place-items:center;background:#e2e5c7;color:#627747;width:36px;height:36px;flex-shrink:0;font-size:.85rem}.account strong{display:block;font-weight:550;font-size:.9rem;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account small{display:block;font-size:.75rem;margin-top:.3rem;color:var(--muted)}.main-panel{padding:2.5rem 3rem 1.25rem;max-width:1700px;width:100%;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;margin-bottom:2rem}.page-header h1{font-size:2.2rem;letter-spacing:.03em;margin:0 0 .65rem}.page-header .eyebrow{letter-spacing:.06em}.page-header p:last-child{font-size:.85rem;margin:0;line-height:1.6}.header-actions{display:flex;gap:.7rem;flex-shrink:0}.today-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:1.5rem}.summary{display:flex;gap:2.5rem;padding:1.5rem 1.8rem;border-radius:15px;background:#e8eddf;margin-bottom:1.7rem}.summary strong{display:block;font-size:1.9rem;font-weight:600;margin-top:.4rem;font-variant-numeric:tabular-nums}.summary span{font-size:.85rem;color:#65745c}.summary-note{margin-left:auto;align-self:center;font-size:.9rem;color:#738467;letter-spacing:.05em}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:1.6rem 0 .8rem}.section-heading h2{font-size:1.05rem;margin:0;font-weight:600}.section-heading .muted{font-size:.8rem}.task-list{border:1px solid var(--line);background:var(--surface);border-radius:13px;overflow:hidden}.task-row{display:flex;align-items:flex-start;gap:1rem;padding:1rem 1.15rem;border-bottom:1px solid #e8eadf}.task-row:last-child{border-bottom:0}.task-row>input{margin-top:.35rem}.task-copy{min-width:0;flex:1}.task-title{display:block;padding:0;border:0;border-radius:2px;min-height:25px;font-weight:500;text-align:left;overflow-wrap:anywhere;line-height:1.6;justify-content:flex-start}.task-title:hover{background:transparent;text-decoration:underline;text-underline-offset:4px}.task-row.done .task-title{text-decoration:line-through;color:#8d9485}.task-meta{display:flex;flex-wrap:wrap;gap:.4rem .85rem;color:var(--muted);font-size:.8rem;margin-top:.4rem;line-height:1.5}.tag{background:#edf0e4;padding:.05rem .45rem;border-radius:4px;color:#71805f}.task-tools{display:flex;align-items:center;gap:.25rem}.task-time{font-size:.85rem;white-space:nowrap;color:#637359;padding-top:.4rem}.star{color:#a98d3b}.icon-button{font-size:1.4rem;min-height:36px;min-width:36px;padding:.1rem .45rem;border-radius:7px;color:var(--muted)}.empty{padding:2rem;text-align:center;background:#fffef977;border:1px dashed #d4dcc8;border-radius:13px;color:var(--muted);font-size:.9rem;line-height:1.9}.empty strong{display:block;font-size:1rem;color:#54694b;margin-bottom:.3rem}.mini-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:1.1rem}.mini-panel h2{font-size:1rem;margin:.2rem 0 1rem}.weekdays,.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekdays>span{text-align:center;padding:.5rem 0;font-size:.8rem;color:var(--muted)}.mini-grid .day{padding:0;min-height:34px;font-size:.8rem;border-radius:50%;aspect-ratio:1}.day.other{color:#abb2a3}.day.is-today .day-number{color:var(--green);font-weight:750}.day.selected{background:var(--sage)}.mini-grid .day.selected{background:var(--green);color:white}.mini-grid .day.selected .day-number{color:white}.quiet-card{padding:1.5rem 1rem 0;color:#7c896f;font-size:.9rem;line-height:2}.quiet-card img{width:95px;height:95px;object-fit:contain;mix-blend-mode:multiply;float:right;border-radius:50%}.quiet-card h3{font-weight:500;font-size:1rem}.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}.month-switch{display:flex;gap:.3rem;align-items:center}.month-switch h2{font-size:1.2rem;min-width:140px;text-align:center;margin:0 .6rem}.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:1.4rem}.full-calendar{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}.full-calendar .weekdays{background:#f0f3e8;border-bottom:1px solid var(--line)}.full-grid .day{min-height:105px;border-radius:0;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:.6rem;gap:.4rem;overflow:hidden}.full-grid .day:nth-child(7n){border-right:0}.full-grid .day-number{font-size:.9rem;align-self:flex-start}.day-preview{width:100%;font-size:.72rem;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background:#ecf0e4;padding:.2rem .25rem;border-radius:3px}.day-preview.completed{text-decoration:line-through;opacity:.6}.day-more{font-size:.7rem;color:var(--muted)}.day-detail h2{font-size:1.1rem;margin:0 0 .5rem}.day-detail>p{font-size:.85rem;margin:0 0 1.3rem}.day-detail>.primary{width:100%;margin-top:1rem}.day-detail .task-row{padding:.85rem .75rem;gap:.65rem}.day-detail .task-time{display:none}.day-detail .task-tools{display:none}.day-detail .task-meta{font-size:.75rem}.filter-bar{display:flex;gap:.7rem;margin-bottom:1.2rem}.filter-bar input{flex:1;min-width:0}.filter-bar select{max-width:145px}.page-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:1rem;margin-top:2.5rem;color:#8c9482;font-size:.75rem}dialog{border:1px solid #e7e9dd;border-radius:20px;padding:0;background:var(--surface);color:var(--forest);box-shadow:0 20px 80px #26352230;width:min(650px,calc(100% - 2rem));max-height:90dvh}dialog::backdrop{background:#28322660;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 1.8rem 1rem}.dialog-heading h2{font-size:1.5rem;margin:0}.editor-fields{padding:0 1.8rem 1.2rem}.editor-fields>label:first-child{margin-top:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.properties{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin-top:1rem}.properties label{margin:0}.properties select{width:auto;flex:1}.dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:.7rem;flex-wrap:wrap;border-top:1px solid var(--line);padding:1rem 1.8rem;position:sticky;bottom:0;background:var(--surface)}.button-group{display:flex;gap:.7rem;margin-left:auto}.dialog-footer button{min-width:85px}#message-dialog{max-width:480px}#message-text{padding:0 1.8rem 1rem;white-space:pre-line;font-size:.95rem;line-height:1.85;margin-top:0;overflow-wrap:anywhere}#message-actions{justify-content:flex-end}.settings-content{padding:0 1.8rem 1.5rem;line-height:1.8}.settings-content h3{font-size:1rem;margin:1.5rem 0 .5rem}.settings-content p{font-size:.9rem}.settings-content .small{font-size:.8rem}#toast{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);padding:.85rem 1.4rem;background:var(--forest);color:white;border-radius:10px;box-shadow:0 4px 20px #29432e30;font-size:.9rem;z-index:10;max-width:90vw}
@media(min-width:1500px){.main-panel{padding:3rem 4rem}.full-grid .day{min-height:125px}.today-layout{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:1150px){.main-panel{padding:2rem 1.7rem}.today-layout{grid-template-columns:minmax(0,1fr) 230px}.calendar-layout{grid-template-columns:minmax(0,1fr) 245px}.workspace{grid-template-columns:190px minmax(0,1fr)}.summary{gap:1.7rem}.summary-note{display:none}.header-actions{gap:.4rem}.header-actions button{padding:.65rem .75rem}.full-grid .day{min-height:85px}.day-preview{font-size:.65rem}.login-form-wrap{padding:2.5rem}.login-art{min-height:580px}}
@media(max-width:900px){.today-layout{grid-template-columns:1fr}.today-aside{display:none}.calendar-layout{grid-template-columns:1fr}.day-detail{margin-top:.6rem}.sidebar-note{display:none}.sidebar-bottom{margin-top:auto}.page-header{align-items:flex-start}.header-actions{flex-direction:column}.login-screen{padding:1.5rem}.login-form-wrap{padding:2rem}.art-heading{left:1.8rem}.art-heading h1{font-size:2.5rem}.art-heading p{font-size:1rem}.remember .muted{display:none}}
@media(max-width:640px){.workspace{display:block}.sidebar{position:sticky;z-index:2;height:auto;padding:.6rem .8rem;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid var(--line);gap:.4rem}.brand{margin:0}.brand img{width:32px;height:32px}.brand>span{font-size:1.1rem}.brand small{display:none}.sidebar nav{display:flex;margin-left:auto;gap:.15rem}.sidebar nav button{padding:.55rem .6rem;font-size:.85rem;gap:.3rem;min-height:40px}.sidebar nav svg{display:none}.sidebar-bottom{display:flex;margin:0}.sidebar-bottom>button{padding:.5rem;min-width:36px;min-height:36px}.sidebar-bottom>button>span:not([data-icon]){display:none}#account-open{display:none}.main-panel{padding:1.5rem 1rem}.page-header{gap:.6rem;margin-bottom:1.3rem}.page-header h1{font-size:1.8rem}.page-header .eyebrow{font-size:.72rem}.page-header p:last-child{font-size:.75rem;max-width:190px}.header-actions{gap:.4rem}.header-actions button{font-size:.8rem;padding:.5rem .65rem;min-height:38px}.header-actions svg{width:16px;height:16px}.summary{gap:2rem;padding:1.2rem 1.3rem}.summary strong{font-size:1.5rem}.summary span{font-size:.75rem}.task-row{gap:.7rem;padding:.9rem}.task-title{font-size:.95rem}.task-time{font-size:.75rem}.task-tools .icon-button{display:none}.calendar-toolbar{gap:0}.month-switch h2{font-size:1rem;min-width:115px;margin:0}.full-grid .day{padding:.4rem .2rem;min-height:75px;gap:.25rem}.day-preview{font-size:.6rem}.day-more{font-size:.6rem}.login-screen{padding:1rem}.login-card{grid-template-columns:1fr;max-width:430px;border-radius:20px}.login-art{min-height:185px;height:185px}.login-art>img{object-position:50% 57%;opacity:.85}.art-heading{top:1.3rem;left:1.5rem}.art-heading h1{font-size:2.3rem}.art-heading p{font-size:.9rem}.login-form-wrap{padding:1.7rem 1.5rem}.login-form-wrap h2{font-size:1.8rem}.login-intro{margin:.7rem 0 1rem}.login-form-wrap .eyebrow{display:none}.login-footer{font-size:.75rem}.form-grid{gap:.7rem}.dialog-heading{padding:1.2rem 1.2rem .8rem}.editor-fields{padding:0 1.2rem 1rem}.dialog-footer{padding:.85rem 1.2rem}.dialog-footer button{min-width:70px}.properties{gap:.75rem;font-size:.85rem}.properties select{min-width:90px}.settings-content{padding:0 1.2rem 1.2rem}.filter-bar{flex-wrap:wrap}.filter-bar input{width:100%;flex:auto}.filter-bar select{max-width:none;width:auto;flex:1}.page-footer{font-size:.65rem}#message-text{padding:0 1.2rem 1rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:640px){.sidebar .brand{white-space:nowrap;flex-shrink:0}.sidebar nav button{white-space:nowrap;flex-shrink:0}.sidebar-bottom .nav-label{display:none}.sidebar-bottom{flex-shrink:0}}
