@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;600&family=DM+Sans:wght@400;500;600&display=swap');
:root{font-family:'DM Sans','Microsoft JhengHei',sans-serif;color-scheme:dark;--bg:#191b18;--surface:#242621;--card:#2b2e27;--ink:#eee9de;--muted:#b0b0a1;--accent:#c9b58e;--line:#494b40;--button:#cebd9a;--buttonInk:#25271e;--serif:'Noto Serif TC','PMingLiU',serif}
*{box-sizing:border-box}body{margin:0;padding:28px 16px;min-height:100dvh;background:#171915;color:var(--ink);display:flex;align-items:flex-start;justify-content:center}button,input,textarea,select{font:inherit}button{background:none;border:0;color:inherit;cursor:pointer}button:disabled{opacity:.24;cursor:default}button:hover:not(:disabled){color:var(--accent)}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button{touch-action:manipulation}button svg{width:19px;height:19px;display:block}.app{width:min(430px,100%);padding:23px 24px 16px;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 20px 80px #0003}.top-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 1px 20px}h1{font:500 16px var(--serif);letter-spacing:1px;margin:0;white-space:nowrap}.brand-divider{font-family:sans-serif;font-weight:400;font-size:12px;opacity:.4;margin:0 8px}.brand-subtitle{font-family:'Microsoft JhengHei',sans-serif;font-weight:400;font-size:10px;letter-spacing:1px;color:var(--muted)}.datetime{display:flex;gap:9px;font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted);letter-spacing:.6px;white-space:nowrap}.page-frame{perspective:1500px}.task-page{display:grid;grid-template-rows:repeat(6,76px);gap:10px;transform-origin:50% 0;transform-style:preserve-3d}.todo-row{background:var(--card);border:1px solid color-mix(in srgb,var(--line) 75%,transparent);border-radius:3px;position:relative;overflow:hidden}.todo-row.blank{background:transparent;border-color:color-mix(in srgb,var(--line) 50%,transparent)}.row-dot{position:absolute;width:3px;height:3px;border-radius:50%;background:var(--accent);left:12px;top:12px}.row-title{position:absolute;left:23px;top:10px;right:12px;text-align:left;padding:0;font:400 19px/1.35 var(--serif);color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:51px;overflow-wrap:anywhere}.row-title:hover{color:var(--ink)!important}.row-actions{position:absolute;bottom:3px;right:6px;display:flex;gap:0;padding-left:6px;background:var(--card)}.row-actions button{width:28px;height:25px;display:grid;place-items:center;color:var(--muted);padding:4px;opacity:.7}.row-actions button:hover{opacity:1;background:color-mix(in srgb,var(--accent) 9%,transparent);border-radius:4px}.row-actions svg{width:14px;height:14px}.row-title:focus-visible{outline-offset:0}.blank-add{position:absolute;inset:0;width:100%;text-align:center;font-size:12px;color:var(--muted);opacity:.6}.pagination{display:flex;justify-content:center;align-items:center;gap:14px;height:31px;margin:5px 0 4px;color:var(--muted);font-size:9px;letter-spacing:2px}.pagination button{width:26px;height:27px;padding:0;font-size:21px;font-weight:400}.pagination.single{visibility:hidden}.toolbar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);padding-top:12px;gap:2px}.toolbar button{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:9px;color:var(--muted);min-width:0;padding:4px 0;position:relative}.toolbar button:last-child{color:var(--accent)}.toolbar .tool-icon{height:20px;display:grid;place-items:center}.toolbar button[data-active=true]:after{content:'';position:absolute;top:0;right:8px;width:3px;height:3px;border-radius:50%;background:var(--accent)}.toolbar button[aria-pressed=false]{opacity:.45}.page-turn{animation:pageTurn .48s cubic-bezier(.2,.7,.3,1)}@keyframes pageTurn{from{transform:rotateX(-38deg) translateY(-6px);opacity:.12}to{transform:rotateX(0);opacity:1}}.icon{font-size:23px;color:var(--muted);padding:5px;width:36px;height:36px;display:grid;place-items:center}.primary{background:var(--button);color:var(--buttonInk);padding:12px 24px;border-radius:4px;min-height:42px;font-size:12px}.text-button{font-size:11px;color:var(--muted);padding:5px 0}.timer-panel{padding:10px 0}.eyebrow{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.digits{display:flex;justify-content:center;align-items:center;font-size:72px;font-variant-numeric:tabular-nums;line-height:1.3;margin:22px 0 14px;gap:10px;letter-spacing:-2px}.digits b{font-weight:400;font-size:40px;color:var(--muted)}.timer-caption{font-size:11px;color:var(--muted);text-align:center;line-height:1.7;overflow-wrap:anywhere}.meter{height:2px;background:var(--line);margin-top:18px}.meter i{display:block;background:var(--accent);height:100%;width:0;transition:width .5s}.timer-actions{display:flex;align-items:center;justify-content:center;gap:16px;margin:20px 0}.timer-panel .form-field{margin-top:25px}.quiet-moment{position:relative;min-height:110px;margin-top:15px;display:none;place-items:center;overflow:hidden;border-radius:4px}.resting .quiet-moment{display:grid}.quiet-moment p{font:400 13px var(--serif);position:relative;z-index:1;background:var(--surface);padding:10px}.theme-choices{display:grid;gap:12px}.theme-choice{padding:20px;text-align:left;border:1px solid var(--line);border-radius:5px;font:400 17px var(--serif)}.theme-choice small{display:block;font:10px sans-serif;margin-top:8px;opacity:.6}.theme-choice.active{outline:1px solid var(--accent)}details{margin:15px 0}summary{font-size:11px;color:var(--muted);cursor:pointer}details .symbols{margin-top:15px}.settings-menu{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}.form-bottom{display:flex;justify-content:space-between;align-items:center}.task-page.empty .todo-row:first-child{border-style:dashed}
body[data-theme=paper]{color-scheme:light;--bg:#ebe9dc;--surface:#faf7ee;--card:#fffdf6;--ink:#3e4c3f;--muted:#79816e;--accent:#6c8362;--line:#d4d7c6;--button:#667c5e;--buttonInk:#fffdf6;background:#e4e7dc}body[data-theme=paper] .app{border-radius:12px 4px 14px 5px;box-shadow:5px 9px 0 #667c5e12}body[data-theme=paper] .todo-row{border-radius:3px 8px 4px 7px;border-bottom-width:2px}body[data-theme=paper] h1{font-weight:600}body[data-theme=zen]{color-scheme:light;--bg:#e7e2d9;--surface:#f2eee7;--card:#f2eee7;--ink:#514a40;--muted:#8b8276;--accent:#8b7962;--line:#d7d0c5;--button:#817866;--buttonInk:#fffdf5;background:#e5e0d7}body[data-theme=zen] .app{border:0;border-radius:0;box-shadow:none}body[data-theme=zen] .todo-row{border:0;border-bottom:1px solid var(--line);border-radius:0}body[data-theme=zen] .row-title{font-weight:400}
dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;width:calc(100% - 28px);max-width:440px;max-height:90dvh;overflow:auto;box-shadow:0 20px 100px #0006}dialog::backdrop{background:#10140fc4;backdrop-filter:blur(5px)}.sheet-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.sheet-header small,#ringDialog>small{font-size:8px;letter-spacing:2px;color:var(--accent)}.sheet-header h2,#ringDialog h2{font:500 22px var(--serif);margin:8px 0 0}.stack{display:grid;gap:12px}.form-field{display:grid;gap:8px;margin-bottom:16px;font-size:12px;color:var(--muted)}input:not(#quickText),textarea,select{background:var(--bg);border:1px solid var(--line);border-radius:5px;padding:11px;color:var(--ink);width:100%;font-size:13px}textarea{resize:vertical;min-height:120px;line-height:1.7}input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent)}.secondary{border:1px solid var(--line);border-radius:5px;padding:12px;font-size:12px}.hint{font-size:11px;line-height:1.8;color:var(--muted)}.hint a{color:var(--accent)}.divider{height:1px;background:var(--line);margin:22px 0}.symbols{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.symbols button{display:flex;flex-direction:column;align-items:center;gap:6px;border:1px solid var(--line);border-radius:5px;padding:13px 4px;font-size:11px}.symbols b{font-size:25px;font-weight:400;color:var(--accent)}.symbols .active{background:var(--card);border-color:var(--accent)}.list-row{display:flex;gap:11px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.list-row>button.entry{flex:1;text-align:left;min-width:0}.list-row strong{display:block;font-size:13px;font-weight:400;overflow-wrap:anywhere;line-height:1.6}.list-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.row-symbol{font-size:24px;min-width:20px;color:var(--accent)}.row-actions{display:flex;gap:4px}.row-actions button{font-size:12px;padding:7px;color:var(--muted)}.list-row.done strong{text-decoration:line-through;opacity:.5}.filter-bar{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.filter-bar button{border:1px solid var(--line);padding:8px 10px;border-radius:4px;font-size:11px}.filter-bar .active{background:var(--accent);color:var(--buttonInk)}.preview-row{display:flex;align-items:start;gap:9px;padding:8px 0}.preview-row input[type=text]{flex:1;min-width:0}.preview-row input[type=checkbox]{margin-top:13px}.status-pill{font-size:9px;border:1px solid var(--line);border-radius:20px;padding:3px 8px;color:var(--muted);white-space:nowrap}.connection{display:flex;align-items:center;justify-content:space-between;margin-top:15px;font-size:12px}.alarm-row time{font-size:25px;font-variant-numeric:tabular-nums}.alarm-row .entry{flex:1}.alarm-row p{margin:6px 0;font-size:11px}.laps{font-size:10px;color:var(--muted);text-align:center;margin-top:12px;max-height:40px;overflow:auto;line-height:1.7}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;background:var(--button);color:var(--buttonInk);padding:12px 20px;border-radius:7px;font-size:12px;box-shadow:0 10px 30px #0004;z-index:20}#ringDialog{text-align:center;padding:35px 24px}#ringDialog p{font-size:13px;line-height:1.8;color:var(--muted);margin:22px 0}.rest-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.28}.quiet-moment>div,.quiet-moment>button{position:relative;z-index:1}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.file-label{display:block;text-align:center;cursor:pointer}.check-label{display:flex;align-items:center;gap:8px;font-size:12px}.empty{text-align:center;padding:24px 0;font-size:12px;color:var(--muted);line-height:1.9}[hidden]{display:none!important}
.list-row .row-actions{position:static;background:none}.list-row .row-actions button{width:auto}.form-field textarea{min-height:90px}.sheet-header h2{font-size:20px}.sheet-header{margin-bottom:20px}#ringDialog p{margin:20px 0}.theme-choice[data-theme=luxe]{background:#242621;color:#eee9de}.theme-choice[data-theme=paper]{background:#faf7ee;color:#3e4c3f}.theme-choice[data-theme=zen]{background:#f2eee7;color:#514a40}@media(max-width:480px){body{padding:12px 10px}.app{padding:20px 18px 13px}.datetime{font-size:10px;gap:7px}.row-title{font-size:18px}.brand-subtitle{font-size:9px}}@media(max-width:350px){.brand-subtitle,.brand-divider{display:none}.app{padding:18px 14px 12px}.toolbar button{font-size:8px}.row-title{font-size:17px}}@media(max-height:710px){body{padding-top:12px}.task-page{grid-template-rows:repeat(6,64px);gap:8px}.row-title{font-size:17px;top:8px;-webkit-line-clamp:1;max-height:27px}.app{padding-top:18px}.top-line{padding-bottom:15px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* A quiet mechanical board: six physical leaves, one page transition. */
.app{border-radius:10px;background:linear-gradient(130deg,#2c2e27,#22251f);box-shadow:0 1px 0 #ffffff0c inset,0 -1px 0 #0005 inset,0 26px 70px #0004;padding:24px 26px 18px}.top-line{padding-bottom:22px}h1{letter-spacing:1.5px}.task-page{gap:12px;perspective:1200px;transform:none;transform-style:preserve-3d}.todo-row{--leaf:linear-gradient(180deg,#32352d,#2c2f27);background:none;overflow:visible;border:0;border-radius:5px;box-shadow:0 3px 3px #0004,0 1px 0 #ffffff0c;perspective:700px;isolation:isolate}.row-face{position:absolute;inset:0;background:var(--leaf);border-radius:5px;box-shadow:inset 0 1px 0 #ffffff10,inset 0 0 0 1px #ffffff06;overflow:hidden;transform-origin:50% 50%;backface-visibility:hidden}.row-face:after{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:#12170f4d;box-shadow:0 1px 0 #ffffff05;pointer-events:none;z-index:2}.todo-row:before,.todo-row:after{content:'';position:absolute;top:calc(50% - 5px);width:3px;height:10px;border-radius:1px;background:linear-gradient(90deg,#3a3c30,#a08e68,#464738);box-shadow:0 1px 2px #0008;z-index:4;pointer-events:none}.todo-row:before{left:-1px}.todo-row:after{right:-1px}.row-dot{width:2.5px;height:2.5px;top:10px;left:12px;opacity:.8}.row-title{font-weight:500;top:14px;left:24px;font-size:20px;letter-spacing:.3px;text-shadow:0 1px 1px #0005;z-index:3;line-height:1.3;max-height:26px;-webkit-line-clamp:1}.row-actions{background:transparent;z-index:3;bottom:4px;right:7px;gap:2px}.row-actions button{color:var(--muted);opacity:.65;padding:4px}.todo-row.blank{background:none;border:0}.todo-row.blank .row-face{opacity:.45}.task-page.empty .todo-row:first-child{border:0}.blank-add{z-index:3;font-size:11px}.toolbar{padding-top:13px;border-color:#ffffff13}.toolbar button{font-size:9px;letter-spacing:.3px;color:#b7b8a9}.toolbar button svg{width:18px;height:18px}.toolbar button:hover{color:var(--accent);transform:translateY(-1px)}.pagination{margin-top:8px;margin-bottom:7px;height:24px}.page-turn{animation:none}.page-turn .row-face{animation:leafIn .62s cubic-bezier(.22,.7,.32,1) both;animation-delay:calc(var(--row)*.045s)}.page-turn .row-outgoing{z-index:5;pointer-events:none;animation:leafOut .62s cubic-bezier(.55,.05,.8,.5) both;animation-delay:calc(var(--row)*.045s)}@keyframes leafIn{0%,40%{transform:rotateX(88deg);filter:brightness(.55)}100%{transform:rotateX(0);filter:brightness(1)}}@keyframes leafOut{0%{transform:rotateX(0);filter:brightness(1);opacity:1}49%{transform:rotateX(-90deg);filter:brightness(.5);opacity:1}50%,100%{transform:rotateX(-90deg);opacity:0}}
body[data-theme=paper]{background:#e6e8db;background-image:radial-gradient(#7d896a16 .6px,transparent .6px);background-size:5px 5px}body[data-theme=paper] .app{background:#f6f4e9;border:1px solid #d4d8c5;border-radius:9px 5px 11px 6px;box-shadow:4px 7px 0 #7d896a16,0 20px 65px #50623d12}body[data-theme=paper] .todo-row{--leaf:linear-gradient(180deg,#fffef7,#faf8ed);border:0;border-radius:4px;box-shadow:0 2px 0 #d9deca,0 4px 7px #4f644b0d}body[data-theme=paper] .row-face{border-radius:4px;box-shadow:inset 0 0 0 1px #c9d0bc55}body[data-theme=paper] .row-face:after{background:#71826219;box-shadow:0 1px 0 #fff9}body[data-theme=paper] .todo-row:before,body[data-theme=paper] .todo-row:after{background:#9da98b;box-shadow:0 1px 1px #374f2f20}body[data-theme=paper] .row-title{text-shadow:0 1px 0 #fff;font-weight:500;color:#44523d}body[data-theme=paper] .toolbar{border-color:#b8c2a855}body[data-theme=paper] .toolbar button{color:#68775e}
body[data-theme=zen]{background:#e4ded4;background-image:radial-gradient(ellipse at 30% 10%,#fcf8f0aa,transparent 70%);--ink:#514334;--muted:#86745e;--accent:#7e6346;--card:#e4d4bd;--line:#cabcaa}body[data-theme=zen] .app{background-color:#e7d8c3;background-image:linear-gradient(115deg,#f8eedec9,#e0cfb78c),url('assets/ash-wood.png');background-size:cover;border:1px solid #d1bea3;border-radius:7px;box-shadow:inset 0 1px 0 #fff9,inset 0 -2px 0 #bca68b33,0 20px 65px #5c4a3020;padding:24px 26px 18px}body[data-theme=zen] .todo-row{--leaf:linear-gradient(180deg,#f6e9d6a8,#f0e0c8a1),url('assets/ash-wood.png');border:0;border-radius:3px;box-shadow:0 3px 2px #70583225,0 5px 8px #70583210}body[data-theme=zen] .row-face{background-image:var(--leaf);background-size:100% 100%,490px auto;background-position:center,calc(var(--row)*-19px) calc(var(--row)*-91px);border-radius:3px;box-shadow:inset 0 1px 0 #fff9,inset 0 -1px 0 #9a7d4e35,inset 1px 0 0 #fff5}body[data-theme=zen] .row-face:after{background:#816d5033;box-shadow:0 1px 0 #fff4}body[data-theme=zen] .todo-row:before,body[data-theme=zen] .todo-row:after{background:linear-gradient(90deg,#9d8968,#d4c5ad,#9f8d71);box-shadow:0 1px 2px #5f4a292e;width:3px}body[data-theme=zen] .row-title{color:#51402f;font-weight:500;letter-spacing:.7px;text-shadow:0 1px 0 #fff8}body[data-theme=zen] .row-actions button{color:#715b41}body[data-theme=zen] .toolbar{border-color:#a38d6a45}body[data-theme=zen] .toolbar button{color:#776046}body[data-theme=zen] .brand-subtitle,body[data-theme=zen] .datetime{color:#897357}
@media(max-width:480px){.app,body[data-theme=zen] .app{padding:22px 20px 16px}.row-title{font-size:19px}}@media(max-height:710px){.app,body[data-theme=zen] .app{padding-top:19px}.task-page{gap:10px}.top-line{padding-bottom:18px}.row-title{top:12px;font-size:18px}}@media(prefers-reduced-motion:reduce){.page-turn .row-face{animation:none!important}.row-outgoing{display:none}}

/* Flat, uninterrupted faces. Motion only appears during interaction. */
.row-face::after,.todo-row::before,.todo-row::after{display:none}
.top-line{gap:8px}.header-timer{margin-left:auto;padding:3px 0;white-space:nowrap;font:500 11px 'DM Sans','Microsoft JhengHei',sans-serif;letter-spacing:.2px;font-variant-numeric:tabular-nums;color:#efae83}.datetime{margin-left:auto;gap:7px;letter-spacing:.2px}.header-timer:hover{color:#ffceaa!important}.header-timer[data-phase=short],.header-timer[data-phase=long]{color:#abc6a0}
body[data-theme=paper] .header-timer,body[data-theme=zen] .header-timer{color:#a94d2a}body[data-theme=paper] .header-timer:hover,body[data-theme=zen] .header-timer:hover{color:#773214!important}body[data-theme=paper] .header-timer[data-phase=short],body[data-theme=paper] .header-timer[data-phase=long],body[data-theme=zen] .header-timer[data-phase=short],body[data-theme=zen] .header-timer[data-phase=long]{color:#4e6e43}
.todo-row .row-title{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;top:14px;left:24px;right:76px;font-size:25px;font-weight:500;line-height:1.25;max-height:32px;letter-spacing:.4px;-webkit-line-clamp:unset}
.todo-row .row-title.two-lines{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;top:9px;font-size:18px;line-height:1.25;max-height:45px;overflow-wrap:anywhere;letter-spacing:.2px}
.todo-row.completing .row-face{animation:completeLeafOut .32s ease-in both!important;pointer-events:none}
.todo-row.completing::after{content:'✓';display:grid;place-items:center;position:absolute;inset:0;width:auto;height:auto;border-radius:5px;background:var(--leaf);background-size:100% 100%,490px auto;color:var(--accent);font:400 27px 'DM Sans',sans-serif;box-shadow:inset 0 1px 0 #ffffff12;transform-origin:center;backface-visibility:hidden;animation:completeLeafIn .32s .28s cubic-bezier(.15,.8,.3,1) both;z-index:4}
@keyframes completeLeafOut{to{transform:rotateX(-90deg);filter:brightness(.75)}}@keyframes completeLeafIn{from{transform:rotateX(90deg);opacity:.3}to{transform:rotateX(0);opacity:1}}
@media(max-width:390px){.has-countdown .brand-subtitle,.has-countdown .brand-divider{display:none}.header-timer{font-size:10px}.datetime{font-size:10px}.todo-row .row-title{font-size:24px}}
@media(max-height:710px){.todo-row .row-title{top:11px;font-size:24px}.todo-row .row-title.two-lines{top:7px;font-size:17px;line-height:1.15;max-height:40px}}
@media(prefers-reduced-motion:reduce){.todo-row.completing .row-face{animation:none!important;opacity:.25}.todo-row.completing::after{animation:none!important;transform:none}}
.task-page.empty{padding:0}
@media(min-width:481px) and (min-height:711px) and (max-height:800px){body{padding:12px 16px}.app,body[data-theme=zen] .app{padding-top:18px}.top-line{padding-bottom:16px}}
