:root{color-scheme:light;--ink:#243832;--muted:#718079;--green:#24594b;--pale:#e9f0eb;--line:#e2e8df;--bg:#f7f8f3;--red:#a54132;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.65}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation;border:0;background:none;min-height:44px;border-radius:10px}
button:disabled{opacity:.5;cursor:not-allowed}
button:hover:not(:disabled){filter:brightness(.96)}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #98bfa9;outline-offset:3px}
[hidden]{display:none!important}
h2,h3,p{margin-top:0}
.shell{max-width:816px;margin:0 auto;padding:32px 24px 20px}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.brand{display:flex;gap:10px;align-items:center}
.brand h1{font-size:20px;letter-spacing:.04em;margin:0;font-weight:650}
.account-actions{display:flex;align-items:center;gap:2px}
.status{color:var(--muted);font-size:11px;display:flex;align-items:center;gap:6px}
.status:before{content:"";width:5px;height:5px;border-radius:50%;background:#86a995;flex-shrink:0}
.status.bad{color:var(--red)}
.status.bad:before{background:var(--red)}
.text-button{color:var(--green);padding:8px 12px;font-size:13px;white-space:nowrap}
#logout{color:var(--muted)}
.planner{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 5px 24px #24383204}
.calendar-panel{padding:18px 24px 20px;border-bottom:1px solid var(--line);background:#fcfdf9}
.calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.month-picker{position:relative;display:flex;align-items:center;gap:7px;margin:0;min-height:44px;font-size:19px;font-weight:600;white-space:nowrap;border-radius:8px;cursor:pointer}
.month-picker:focus-within{outline:3px solid #98bfa9;outline-offset:3px}
.month-chevron{color:var(--muted);font-size:17px;font-weight:400}
.month-picker input{position:absolute;inset:0;opacity:0;width:100%;height:100%;min-width:0;cursor:pointer;padding:0;border:0}
.month-picker input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}
.navigation{display:flex;align-items:center;gap:2px}
.icon-button{border:1px solid var(--line);background:#fff;width:44px;flex-shrink:0;font-size:25px;line-height:1}
.navigation .icon-button{border:0;background:transparent}
.navigation .text-button{margin-left:4px;padding:7px 12px;background:var(--pale)}
.day-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.day-button{display:flex;flex-direction:column;align-items:center;gap:1px;padding:8px 0 7px;border:1px solid transparent;border-radius:12px}
.day-button .weekday{font-size:11px;color:var(--muted)}
.day-button .day-number{font-size:21px;font-weight:600;line-height:1.65}
.day-button .day-count{font-size:10px;min-height:16px;color:var(--muted)}
.day-button.is-today{border-color:#b2c9b9}
.day-button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}
.day-button[aria-pressed=true] .weekday,.day-button[aria-pressed=true] .day-count{color:#e0e8df}
.list-panel{padding:23px 24px 12px}
.list-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:24px}
.list-heading h2{font-size:19px;margin:0 0 2px;font-weight:600}
.muted{color:var(--muted);font-size:13px}
.list-heading .muted{font-size:12px}
.primary{background:var(--green);color:#fff;padding:10px 18px;font-weight:500;font-size:14px;white-space:nowrap}
.secondary{border:1px solid var(--line);background:#fff;padding:9px 16px;font-size:14px}
.group{margin:0 0 24px}
.group-title{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted);margin:0 0 8px;font-weight:500}
.group-count{display:inline-block;background:#f0f4ed;border-radius:5px;color:var(--green);font-size:10px;line-height:18px;min-width:19px;text-align:center;padding:0 4px}
.group-caption{margin-left:auto;font-size:11px;color:#8b968c}
.group-empty{padding:13px 0;font-size:13px;color:#929c92;margin:0}
.task-row{display:flex;align-items:center;gap:4px;padding:7px 0;min-height:60px}
.task-row+.task-row{border-top:1px solid #edf0e9}
.check-button{width:40px;flex:0 0 40px;display:flex;align-items:center;justify-content:flex-start}
.check-circle{width:21px;height:21px;border:1.5px solid #b2bdb4;border-radius:50%;line-height:18px;text-align:center;font-size:13px}
.is-completed .check-circle{color:white;background:#6c8e7e;border-color:#6c8e7e}
.task-open{flex:1;min-width:0;text-align:left;padding:6px 0;display:flex;align-items:center;gap:16px;justify-content:space-between}
.task-text{overflow-wrap:anywhere;white-space:pre-wrap}
.task-date{font-size:11px;color:var(--muted);white-space:nowrap}
.edit-mark{color:#aab5aa;flex-shrink:0;font-size:18px}
.is-completed .task-text{text-decoration:line-through;color:#8c968e}
.completed{margin:0;border-top:1px solid var(--line);padding:7px 0}
.completed summary{cursor:pointer;color:var(--muted);font-size:13px;padding:7px 0;min-height:44px}
.completed>div{margin-top:3px}
.footnote{font-size:11px;color:#879187;line-height:1.8;margin:14px 2px 0}
.notice,.conflict{background:#fff5df;color:#745821;border:1px solid #ecd8ad;border-radius:10px;padding:13px 15px;font-size:13px;margin-bottom:16px}
.conflict p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;margin:7px 0}
.eyebrow{color:var(--green);font-size:12px;letter-spacing:.12em;margin-bottom:6px;font-weight:600}
.login-card{max-width:410px;margin:75px auto 65px;padding:34px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 16px 50px #2e452608}
.login-card h2{font-size:27px;margin-bottom:12px}
.login-card form{margin-top:30px}
.login-card .primary{width:100%;margin-top:18px;display:flex;justify-content:space-between}
.login-note{font-size:11px;color:var(--muted);text-align:center;margin:25px 0 0}
label{display:block;font-size:13px;margin-bottom:8px;font-weight:500}
input,textarea,select{width:100%;min-height:44px;background:#fbfcf9;border:1px solid #d4ddd3;border-radius:9px;padding:10px 12px}
textarea{resize:vertical;min-height:98px;font-size:16px}
.message{font-size:13px;margin:12px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.message:empty{display:none}
.error{color:var(--red)}
dialog{border:1px solid var(--line);border-radius:20px;width:calc(100% - 32px);max-width:520px;padding:28px;background:#fff;box-shadow:0 25px 90px #162c2b25;max-height:calc(100dvh - 32px);overflow:auto}
dialog::backdrop{background:#1b302d4d;backdrop-filter:blur(3px)}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.dialog-heading h2{font-size:21px;margin:0}
.dialog-heading .icon-button{border:0;background:#f2f5ee;width:36px;min-height:36px}
.form-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:12px;margin-top:20px}
.small{font-size:11px}
#schedule-hint{margin:10px 0 18px}
.dialog-actions{display:flex;gap:8px;margin-top:22px;align-items:center}
.danger{font-size:12px;color:var(--red);padding:4px 8px}
.spacer{flex:1}
.save-hint{text-align:right;margin:12px 0 0}
@media(max-width:600px){
 .shell{padding:20px 14px max(16px,env(safe-area-inset-bottom))}
 .masthead{margin-bottom:18px}
 .brand h1{font-size:18px}
 .brand img{width:32px;height:32px}
 .account-actions .text-button{padding:7px 9px}
 .planner{border-radius:16px}
 .calendar-panel{padding:12px 12px 15px}
 .month-picker{font-size:16px;gap:4px}
 .calendar-heading{gap:4px;margin-bottom:9px}
 .navigation{gap:0}
 .navigation .icon-button{width:34px}
 .navigation .text-button{padding:7px 9px;margin-left:2px}
 .day-strip{gap:3px}
 .day-button{border-radius:9px;padding:6px 0}
 .day-button .day-number{font-size:18px}
 .list-panel{padding:19px 16px 8px}
 .list-heading{margin-bottom:22px;gap:8px}
 .list-heading h2{font-size:16px}
 .list-heading .muted{font-size:11px}
 .primary{padding:10px 13px;font-size:13px}
 .task-row{padding:6px 0}
 .task-open{gap:8px}
 .task-text{font-size:14px}
 .check-button{width:33px;flex-basis:33px}
 .group{margin-bottom:21px}
 .login-card{margin:55px auto 30px;padding:27px}
 .form-grid{grid-template-columns:1fr}
 dialog{padding:23px}
 .dialog-actions .primary,.dialog-actions .secondary{padding:9px 12px}
}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,opacity .15s}}
