:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#292929;background:#f3f4f9;font-size:16px;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{border:0;background:none;color:inherit;cursor:pointer;padding:0}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #4b75f5;outline-offset:4px}[hidden]{display:none!important}.app-header{background:white;padding:24px 36px;border-bottom:1px solid #eee}.app-header h1{font-size:24px;margin:0;font-weight:600;max-width:908px;margin:auto}main{max-width:980px;margin:36px auto;padding:0 36px 64px}.input-bar{display:flex;align-items:center;gap:16px;background:white;border:1px solid #edf0f4;border-radius:14px;padding:12px 20px;min-height:64px}.input-bar input{border:0;outline:0;flex:1;min-width:0;height:36px;background:none;font-size:18px;color:#292929}.plus{font-size:30px;color:#727986;width:24px}.date{color:#000;font-size:16px;white-space:nowrap}.input-bar .date{min-height:36px}.search-icon{width:24px;height:24px;flex:none;fill:none;stroke:#a8a9ad;stroke-width:2.3;stroke-linecap:round}.clear{font-size:28px;color:#9299a5;flex:none;width:24px}nav{display:flex;gap:12px;margin:24px 0}nav button{padding:14px 20px;color:#727986;font-size:17px;border-radius:12px}nav .active{background:transparent;color:#000;font-weight:700}.group{background:white;border-radius:20px;padding:18px 24px;margin-top:22px}.group-header{display:flex;align-items:center;gap:12px;min-height:44px}.group-title{font-size:19px;font-weight:600;text-align:left;flex:1}.group.overdue .group-title{color:#bc6546}.group.completed .group-title{color:#aaa}.group-controls{display:flex;align-items:center;gap:8px}.group-toggle{display:flex;align-items:center;gap:14px;min-height:44px;padding:0 4px;color:#aaa}.chevron{width:10px;height:10px;border-right:1.5px solid #ccc;border-bottom:1.5px solid #ccc;transform:rotate(45deg);margin-bottom:5px}.collapsed .chevron{transform:rotate(-45deg);margin-bottom:0}.sort{width:36px;height:36px;color:#9299a5;display:grid;place-items:center}.sort svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.task{display:flex;align-items:center;gap:12px;min-height:64px;background:white;position:relative;border-radius:8px;touch-action:pan-y}.task input[type=checkbox],.detail-meta input{appearance:none;width:20px;height:20px;flex:none;border:1.5px solid #aaa;border-radius:4px;margin:0;cursor:pointer;position:relative}.task input:checked,.detail-meta input:checked{background:#dedede;border-color:#dedede}.task input:checked:after,.detail-meta input:checked:after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(40deg)}.task-text{flex:1;min-width:0;font-size:18px;line-height:1.6;text-align:left;overflow-wrap:anywhere;padding:14px 0}.task-date{-webkit-appearance:none;appearance:none;flex:0 0 auto;font-family:inherit;font-size:16px;font-weight:400;line-height:24px;font-variant-numeric:lining-nums tabular-nums;margin-left:12px;max-width:160px;text-align:right;-webkit-text-size-adjust:100%;text-size-adjust:100%}.task.done .task-text{color:#aaa}.task.done .date{color:#c5c5c5}.task.overdue .date{color:#bc6546}.task.placeholder{background:#fff}.task.placeholder>*{visibility:hidden}.drag-ghost{position:fixed;z-index:100;pointer-events:none;background:#fff;box-shadow:0 8px 24px #2d417833;border-radius:10px;transform:none;opacity:1}.dragging-page{overflow:hidden;user-select:none;touch-action:none}.empty{text-align:center;color:#9299a5;padding:90px 20px}.empty .tick{display:block;font-size:34px;color:#4b75f5;background:#edf2ff;width:66px;height:66px;line-height:66px;border-radius:20px;margin:0 auto 24px}.empty p{color:#292929;font-size:20px}.overlay{position:fixed;inset:0;background:#19213052;z-index:10;display:flex;align-items:flex-end;justify-content:center}.panel{position:relative;width:min(720px,100%);padding:24px 28px 32px;background:white;border-radius:24px 24px 0 0;animation:enter 1s cubic-bezier(.16,1,.3,1) both;max-height:94dvh;overflow:auto}@keyframes enter{from{transform:translateY(100%)}to{transform:translateY(0)}}.panel header{display:flex;align-items:center;gap:14px;margin-bottom:24px;min-height:48px}.panel header strong{flex:1;font-size:20px}.round{height:48px;width:48px;flex:none;border:1px solid #e8e8ea;border-radius:50%;background:#fafafa;font-size:28px}.confirm{background:#4b75f5;color:white;border-color:#4b75f5;font-size:24px}.detail{height:58dvh;min-height:360px;display:flex;flex-direction:column}.detail-meta{display:flex;align-items:center;gap:14px;margin-bottom:20px}.detail-meta .date{font-size:20px;line-height:40px}.detail-title{font-size:24px;font-weight:600;line-height:1.6;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;flex:1;align-content:start;padding:4px 0}.detail-title.done{color:#aaa}#detail-menu{position:absolute;right:28px;top:80px;z-index:2}#delete-task{width:64px;height:64px;border-radius:16px;background:#fafafa;box-shadow:0 3px 12px #0000000d;display:grid;place-items:center}#delete-task svg{width:28px;height:30px;fill:none;stroke:#ff575e;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}.detail.editing{height:100dvh;max-height:100dvh;border-radius:0;animation:none}#text-editor{flex:1;min-height:180px;width:100%;border:0;resize:none;outline:0;font-size:24px;line-height:1.6;font-weight:600;background:white}.calendar-overlay{z-index:20}.calendar{background:#f9f9fb}.calendar header strong{text-align:center}.month{display:flex;align-items:center;justify-content:space-between;margin:20px 0;font-size:20px}.month button{font-size:32px;width:42px;color:#aaa}.weekdays,#calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.weekdays{color:#aaa;text-align:center;padding:10px 0;font-size:15px}.calendar-day{height:52px;width:52px;max-width:100%;justify-self:center;margin:4px 0;border-radius:50%;font-size:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.calendar-day.selected{background:#4b75f5;color:white}.calendar-day small{font-size:11px}#clear-date{display:block;color:#ff575e;margin:84px auto 24px;padding:16px;font-size:18px}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 24px;background:#444;color:white;border-radius:10px;z-index:200}@media(max-width:600px){.app-header{padding:18px 24px}.app-header h1{text-align:center;font-size:20px}main{margin:22px auto;padding:0 20px 36px}.input-bar{gap:10px;padding:10px 14px}.input-bar input{font-size:16px}nav{gap:4px}nav button{padding:12px 13px;font-size:15px}.group{padding:14px 16px}.group-title{font-size:17px}.task{gap:10px}.task-text{font-size:16px}.task-date{font-size:16px;margin-left:4px;max-width:100px}.panel{padding:20px 24px 32px}.calendar-day{height:44px;width:44px}}
/* Desktop sheets float slightly above the edge so all four corners stay visible. */
.overlay{padding:12px 16px}.panel{border-radius:24px;max-height:calc(100dvh - 24px)}.detail-title{flex:none;display:block;min-height:42px;margin-top:0}.detail.editing{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:24px}.calendar-spacer{width:48px;height:48px;flex:none}#clear-date{margin-top:102px}.task.placeholder{background:transparent;pointer-events:none}.drag-ghost{will-change:transform}.task-text{user-select:none;-webkit-user-select:none}
/* Preserve authored line breaks in list cards, as in the detail editor. */
.task-text{white-space:pre-wrap}
.header-inner{max-width:908px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px}.header-inner h1{margin:0}.account-controls{display:flex;align-items:center;gap:14px;font-size:14px;color:#9299a5}.account-controls button{color:#4b75f5}.connection{background:white;padding:28px;border-radius:20px;margin-bottom:24px}.connection h2{margin:0 0 16px;font-size:21px}.connection p{color:#727986;line-height:1.6}.connection form{display:flex;gap:12px}.connection input{width:100%;min-width:0;border:1px solid #dce1eb;border-radius:10px;padding:12px}.connection form button{white-space:nowrap;background:#4b75f5;color:white;padding:12px 20px;border-radius:10px}#connect-error{color:#bc6546}#retry-cloud{color:#4b75f5;font-size:14px}button:disabled,input:disabled,textarea:disabled{cursor:default;opacity:.5}.search-dates{display:flex;align-items:center;gap:12px;margin:16px 0;color:#9299a5;font-size:14px}.search-dates button{padding:8px 12px;border-radius:8px;background:white;color:#4b75f5}@media(max-width:600px){.header-inner{flex-wrap:wrap}.account-controls{font-size:12px}.connection{padding:20px}.search-dates{gap:8px}}

#connect-qr{width:220px;max-width:100%;margin:16px auto}#connect-qr svg{display:block;width:100%;height:auto;background:white}.connection details{margin-top:20px}.connection summary{cursor:pointer;color:#777;font-size:13px}
/* Match the current mini-program controls and compact menus. */
nav{align-items:center}#options-menu{margin-left:auto;flex:none;color:#727986;font-size:24px}nav button.active{background:none;color:#000;font-weight:700}.empty{padding:62px 20px 18px}.empty p{font-size:18px}.empty small{display:block;line-height:1.6}.version-footer{text-align:center;font-size:13px;color:#aaa;margin:58px 0 12px}.search-dates{margin:16px 0}.search-dates #search-start,.search-dates #search-end{flex:1;min-width:0;color:#9299a5}.search-dates{padding-right:0}.search-dates #clear-search-dates{width:44px;min-height:44px;flex:none;font-size:24px}.search-dates:after{content:'';width:44px;flex:none}.search-dates:has(#clear-search-dates:not([hidden])):after{display:none}#month-label{font-size:20px;font-weight:600;width:auto;flex:1;color:#292929}.options-overlay{z-index:30}.menu-panel{width:min(720px,100%);background:white;border-radius:18px;overflow:hidden}.menu-content{animation:enter .5s cubic-bezier(.16,1,.3,1) both}.menu-content>button,.language-options>button{display:block;width:100%;position:relative;text-align:center;font-size:18px;line-height:44px;min-height:44px;border-bottom:1px solid #edf0f4}.menu-heading{position:relative;text-align:center;height:44px;line-height:44px;color:#727986;border-bottom:1px solid #edf0f4}.menu-heading button{position:absolute;left:0;top:0;width:48px;height:44px;font-size:28px}.language-options,.guide-content{max-height:55dvh;overflow:auto}.language-options span{position:absolute;right:28px;color:#4b75f5}.guide-content{padding:6px 24px;font-size:18px;line-height:1.6}.month-wheel-overlay{z-index:25}.month-wheel-panel{width:min(720px,100%);background:white;border-radius:18px;padding:10px 16px 16px;animation:enter .5s cubic-bezier(.16,1,.3,1) both}.month-wheel-panel header{display:flex;justify-content:space-between}.month-wheel-panel header button{padding:10px;color:#727986}#month-wheel-confirm{color:#4b75f5}.month-wheels{width:220px;max-width:80%;margin:auto;display:flex;position:relative}.wheel-column{height:220px;width:50%;padding:88px 0;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;mask-image:linear-gradient(transparent,black 35%,black 65%,transparent)}.wheel-column::-webkit-scrollbar{display:none}.wheel-column button{display:block;width:100%;height:44px;min-height:44px;scroll-snap-align:center;font-size:18px;font-weight:700;color:#aaa;text-align:center}.wheel-column button.chosen{color:#292929}.arabic .empty,.arabic .menu-heading,.arabic .guide-content,.arabic .group-title,.arabic .input-bar input{direction:rtl}.arabic .input-bar input{text-align:right}

/* Keep filter geometry stable and match record typography in menus. */
.search-dates{min-height:44px;margin:16px 0}.search-dates button{min-height:44px}.search-dates #clear-search-dates{background:transparent;padding:0;color:#9299a5}.search-dates + #groups .group:first-child{margin-top:16px}.wheel-column button{display:flex;align-items:center;justify-content:center;line-height:normal}.month-wheels:after{content:"";position:absolute;top:88px;left:0;right:0;height:44px;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4;pointer-events:none}.menu-panel{background:transparent;overflow:visible}.menu-content{background:white;border-radius:18px;overflow:hidden}@media(max-width:600px){.menu-content>button,.language-options>button{font-size:16px}}

.guide-content p{white-space:pre-wrap}

.header-inner{min-width:0}.app-header h1{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.account-controls{flex-shrink:0}.detail header strong{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.name-settings{padding:24px}.name-settings h2{font-size:18px;font-weight:500;margin:0 0 20px}.name-settings input{width:100%;height:44px;min-height:44px;padding:0 12px;border:1px solid #ddd;border-radius:8px;font-size:16px}.name-settings p{font-size:13px;color:#727986}.name-buttons{display:flex;justify-content:flex-end;gap:16px}.name-buttons button{padding:12px 20px}.name-buttons button:last-child{color:#000}#name-overlay{z-index:30}

#name-overlay .menu-panel{background:#fff;overflow:hidden}

.name-style-options{display:flex;gap:16px;margin-top:20px}.name-style-options label{flex:1;color:#727986;font-size:14px}.name-style-options select{display:block;width:100%;margin-top:8px;padding:10px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#292929;font:inherit}.name-preview{padding:12px 16px;margin:20px 0;background:#f5f5f7;border-radius:8px}.name-preview>span{font-size:13px;color:#727986}#name-preview-title{font-size:20px;font-weight:600;text-align:center;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.name-settings{max-height:85vh;overflow-y:auto}

/* LXGW WenKai subset (SIL OFL 1.1), see fonts/OFL.txt. */
@font-face{font-family:"Notebook WenKai";src:url("fonts/notebook-wenkai.woff2") format("woff2"),url("fonts/notebook-wenkai.woff") format("woff");font-weight:100 900;font-style:normal;font-display:swap}

select,option{font-family:inherit}

.name-style-options{display:block}.name-style-options>div>span{color:#727986;font-size:14px}.name-font-options,.name-color-options{display:flex;gap:12px;margin-top:12px}.name-font-option{flex:1;min-width:0;padding:12px 4px;border:1px solid #e5e5e8;border-radius:8px;font-size:15px}.name-font-option.selected{border-color:#292929;background:#f5f5f7}.name-color-option{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px}.color-swatch{display:block;width:26px;height:26px;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #ddd}.name-color-option.selected .color-swatch{box-shadow:0 0 0 2px #292929}.name-style-options button:disabled{opacity:.45;cursor:default}

.task-date{display:inline-flex;align-items:center;gap:4px}.task-repeat-icon{width:13px;height:13px;flex-shrink:0}.done .task-repeat-icon{opacity:.45}

.calendar-repeat-wrap{position:relative;margin-top:24px}.calendar-repeat-wrap>button{display:flex;align-items:center;justify-content:space-between;width:100%;background:white;border-radius:14px;padding:18px 20px;gap:12px}.calendar-repeat-wrap>button>span{display:flex;align-items:center;gap:8px}.calendar-repeat-wrap img{width:20px;height:20px}.calendar-repeat-menu{position:absolute;bottom:calc(100% + 8px);right:0;min-width:240px;max-width:100%;padding:8px;background:#fafafd;border:1px solid #e6e6e8;border-radius:18px;box-shadow:0 8px 28px #0002;z-index:2}.calendar-repeat-menu button{display:flex;justify-content:space-between;gap:20px;width:100%;text-align:start;padding:14px;border-radius:10px}.calendar-repeat-menu button[aria-pressed=true]{color:#4b75f5}.calendar-repeat-menu button:last-child{border-top:1px solid #e6e6e8}.calendar-repeat-wrap~#clear-date{margin-top:24px}.custom-repeat-overlay{z-index:40}.custom-repeat-panel{background:#f9f9fb;max-width:560px}.custom-repeat-panel header strong{text-align:center}.custom-repeat-type,.custom-repeat-card{background:white;padding:20px;border-radius:16px;margin-top:20px}.custom-repeat-type{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.custom-repeat-type>span:last-child,#custom-repeat-summary,#custom-repeat-next{color:#727986}.custom-repeat-fields{display:flex;justify-content:center;align-items:center;gap:20px;padding:36px 0}.custom-repeat-fields input,.custom-repeat-fields select{font:inherit;font-size:24px;min-height:52px;max-width:45%;width:120px;padding:8px;border:1px solid #e5e5e8;border-radius:10px;background:white}.custom-repeat-fields input{text-align:center}#custom-repeat-summary,#custom-repeat-next{margin:16px 4px}.custom-repeat-panel button:disabled{opacity:.45}@media(max-width:420px){.custom-repeat-fields{gap:10px}.custom-repeat-type,.custom-repeat-card{padding:16px}.custom-repeat-fields input,.custom-repeat-fields select{width:100px}}
