:root{--bg:var(--tg-theme-bg-color,#fff);--text:var(--tg-theme-text-color,#000);--hint:var(--tg-theme-hint-color,#707579);--link:var(--tg-theme-link-color,#2481cc);--button:var(--tg-theme-button-color,#2481cc);--button-text:var(--tg-theme-button-text-color,#fff);--sec:var(--tg-theme-secondary-bg-color,#efeff3);--section:var(--tg-theme-section-bg-color,#fff);--sep:var(--tg-theme-section-separator-color,#e7e7e7);--destructive:var(--tg-theme-destructive-text-color,#d14e4e);--safe-top:var(--tg-viewport-content-safe-area-inset-top,env(safe-area-inset-top,0px));--safe-bottom:var(--tg-viewport-safe-area-inset-bottom,env(safe-area-inset-bottom,0px));--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}:root[data-theme=light]{--bg:#fff;--text:#111418;--hint:#5f6672;--link:#1677c4;--button:#1677c4;--button-text:#fff;--sec:#f0f2f5;--section:#fff;--sep:#e1e4e9;--destructive:#d14e4e;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#17212b;--text:#f2f4f7;--hint:#93a1b0;--link:#6cb8f5;--button:#2773b5;--button-text:#fff;--sec:#0e1621;--section:#1e2c3a;--sep:#2a3846;--destructive:#ec6a6a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;overscroll-behavior:none;font:15px/1.4 -apple-system,SF Pro Text,Roboto,Segoe UI,system-ui,BlinkMacSystemFont,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}button{font:inherit;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;padding:0}button:disabled{opacity:.45;cursor:default}input{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--link);outline-offset:2px}.app{height:100%;padding-top:var(--safe-top);position:relative;overflow:hidden}.route{inset:var(--safe-top) 0 0 0;background:var(--bg);position:absolute}.screen{flex-direction:column;height:100%;display:flex}.scroll{padding-bottom:calc(24px + var(--safe-bottom));scrollbar-width:none;flex:1;overflow-y:auto}.scroll::-webkit-scrollbar{display:none}.empty{text-align:center;color:var(--hint);padding:32px 16px}.topbar{border-bottom:1px solid var(--sep);flex:none;align-items:center;gap:8px;height:56px;padding:0 8px 0 16px;display:flex}.topbar-title{flex-direction:column;flex:1;min-width:0;display:flex}.topbar-name{white-space:nowrap;text-overflow:ellipsis;font-size:17px;font-weight:600;overflow:hidden}.space-avatar{color:#fff;border-radius:6px;flex:none;justify-content:center;align-items:center;width:36px;height:36px;font-weight:600;display:flex}.icon-button{border-radius:22px;flex:none;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.icon-button:active{background:var(--sec)}.pill-button{height:36px;color:var(--button-text);background:var(--button);border-radius:18px;padding:0 16px;font-weight:600}.pill-button--ghost{color:var(--link);background:0 0;padding:0 8px;font-weight:500}.pill-button--block{text-align:center;border-radius:12px;width:calc(100% - 32px);height:48px;margin:16px;display:block}.sync-badge{color:var(--hint);white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.sync-badge--offline,.sync-badge--error{color:var(--destructive)}.chips{scrollbar-width:none;gap:8px;padding:12px 16px;display:flex;overflow-x:auto}.chip{background:var(--sec);border-radius:16px;flex:none;align-items:center;gap:8px;height:32px;padding:0 14px;font-size:14px;font-weight:500;display:flex}.chip--active{background:var(--button);color:var(--button-text)}.chip-dot{border-radius:3px;width:10px;height:10px}.hint-banner{background:var(--sec);color:var(--hint);border-radius:10px;margin:0 16px 12px;padding:10px 12px;font-size:13px}.tile-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:82px;grid-auto-flow:dense;gap:8px;padding:0 16px 24px;display:grid}.tile{color:#fff;border-radius:6px;position:relative;overflow:hidden}.tile-hit{color:#fff;width:100%;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.tile-hit:active{transition:transform .12s;transform:scale(.97)}.tile--editing{animation:.32s ease-in-out infinite alternate jig}.tile--hidden{opacity:.4}.tile-hide{color:#fff;background:#0006;border-radius:14px;justify-content:center;align-items:center;width:28px;height:28px;display:flex;position:absolute;top:4px;right:4px}.tile-face{flex-direction:column;justify-content:flex-end;gap:3px;padding:12px 12px 32px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.tile-face--s{justify-content:center;align-items:center;padding:8px 8px 22px}.tile-big{letter-spacing:-1px;font-size:40px;font-weight:300;line-height:1}.tile-face--s .tile-big{font-size:24px}.tile-l1{white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:600;overflow:hidden}.tile-l2{white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.tile-progress{background:#ffffff4d;border-radius:2px;height:4px;margin-top:6px;overflow:hidden}.tile-progress>div{background:#fff;height:100%}.tile-label{white-space:nowrap;align-items:center;gap:6px;font-size:12px;font-weight:500;display:flex;position:absolute;bottom:7px;left:10px;right:10px;overflow:hidden}@keyframes jig{0%{transform:rotate(-.7deg)}to{transform:rotate(.7deg)}}@media (prefers-reduced-motion:reduce){.tile--editing{outline-offset:-4px;outline:2px dashed #ffffffb3;animation:none}}.list{margin:0;padding:0;list-style:none}.list-row{border-bottom:1px solid var(--sep);background:var(--bg);align-items:center;gap:8px;width:100%;min-height:52px;padding:0 8px 0 16px;display:flex}.list-row--column{flex-direction:column;align-items:stretch;padding:8px 16px}.list-row--add{color:var(--link);gap:12px}.row-main{flex:1;align-items:center;gap:12px;min-width:0;min-height:52px;display:flex}.row-icon{color:#fff;border-radius:6px;flex:none;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.row-icon--plain{color:var(--hint)}.row-title{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.row-meta{color:var(--hint);white-space:nowrap;font-size:13px}.row-input{background:0 0;border:0;outline:none;flex:1;width:100%;min-width:0;padding:8px 0}.row-input--done{color:var(--hint);text-decoration:line-through}.check-row{flex:1;align-items:center;gap:12px;min-width:0;display:flex}.check-row input[type=checkbox]{width:22px;height:22px;accent-color:var(--button);flex:none}.check-text{flex-direction:column;flex:1;min-width:0;display:flex}.danger-link{color:var(--destructive);margin:24px 16px;display:block}.switch{width:22px;height:22px;accent-color:var(--button)}.segmented{border:0;flex-wrap:wrap;gap:6px;margin:8px 0 0 44px;padding:0;display:flex}.segmented legend{color:var(--hint);margin-bottom:6px;font-size:13px}.seg{background:var(--sec);border-radius:14px;padding:6px 12px;font-size:14px}.seg--on{background:var(--button);color:var(--button-text)}.seg input{opacity:0;pointer-events:none;position:absolute}.editor-scroll{padding:12px 16px}.note-title{background:0 0;border:0;outline:none;width:100%;padding:4px 0 8px;font-size:24px;font-weight:700}.note-body .ProseMirror{outline:none;min-height:50vh}.note-body .ProseMirror p{margin:.4em 0}.note-body ul[data-type=taskList]{padding-left:4px;list-style:none}.note-body ul[data-type=taskList] li{gap:8px;display:flex}.note-body a{color:var(--link)}.plain-note{white-space:pre-wrap;font:inherit;padding:0 16px}.sheet-backdrop{z-index:10;background:#00000059;align-items:flex-end;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.sheet{background:var(--section);width:100%;padding:8px 0 calc(8px + var(--safe-bottom));border-radius:14px 14px 0 0;animation:.22s ease-out up}.sheet--dialog{padding:20px 0 calc(8px + var(--safe-bottom))}.sheet--dialog h2{margin:0 16px 8px;font-size:19px}.sheet--dialog p{color:var(--hint);margin:0 16px}.sheet-item{align-items:center;gap:14px;width:100%;height:52px;padding:0 20px;display:flex}.sheet-item:active{background:var(--sec)}.sheet-item--cancel{color:var(--link);justify-content:center;font-weight:600}@keyframes up{0%{transform:translateY(100%)}to{transform:none}}@media (prefers-reduced-motion:reduce){.sheet{animation:none}}.form{flex-direction:column;gap:16px;padding:8px 16px 24px;display:flex}.field{border:0;flex-direction:column;gap:6px;margin:0;padding:0;font-size:14px;display:flex}.field legend{color:var(--hint);margin-bottom:6px;padding:0;font-size:13px}.field>span{color:var(--hint);font-size:13px}.field input[type=text],.field input:not([type]),.field select{border:1px solid var(--sep);background:var(--bg);border-radius:10px;height:44px;padding:0 12px;font-size:16px}.swatches{flex-wrap:wrap;gap:10px;display:flex}.swatch{border-radius:8px;width:36px;height:36px;display:block;position:relative}.swatch input{opacity:0;cursor:pointer;margin:0;position:absolute;top:0;bottom:0;left:0;right:0}.swatch--on,.swatch:focus-within{outline:3px solid var(--link);outline-offset:2px}.check-line{align-items:center;gap:12px;min-height:44px;font-size:16px;display:flex}.check-line input{width:22px;height:22px;accent-color:var(--button)}.form-error{background:var(--sec);color:var(--destructive);border-radius:10px;margin:12px 16px 0;padding:10px 12px;font-size:14px}.form .form-error{margin:0}.hint{color:var(--hint);margin:0;font-size:14px}.invite{padding:24px 16px}.invite-title{margin:0 0 8px;font-size:22px}.invite p{margin:0 0 12px}.section-title{color:var(--hint);text-transform:uppercase;letter-spacing:.03em;margin:20px 16px 4px;font-size:13px;font-weight:600}.row-actions{flex-wrap:wrap;gap:16px;padding:0 0 10px 44px;display:flex}.link-button{color:var(--link);min-height:32px;font-size:14px}.link-button--danger{color:var(--destructive)}.pill-button--secondary{background:var(--sec);color:var(--text)}.pill-button:disabled{opacity:.5}.search-input{box-sizing:border-box;width:100%;padding:12px 16px}.row-meta--wrap{white-space:normal;display:block}.store-hint{color:var(--hint);margin:12px 16px 0;font-size:13px}.store-link{color:var(--link);margin:12px 16px 4px;display:block}.store-list{flex-direction:column;gap:10px;margin:0;padding:14px 16px 24px;list-style:none;display:flex}.store-card{background:var(--sec);border-radius:10px;align-items:center;gap:12px;padding:12px;display:flex}.store-icon{color:#fff;border-radius:6px;flex:none;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.store-info{flex:1;min-width:0}.store-name{font-size:16px;font-weight:600}.store-desc{color:var(--hint);font-size:13px}.store-btn{background:var(--button);height:36px;color:var(--button-text);border-radius:18px;flex:none;padding:0 14px;font-size:14px;font-weight:600}.store-btn--on{background:var(--bg);color:var(--hint)}.store-toast{left:16px;right:16px;bottom:calc(16px + var(--safe-bottom));background:var(--text);color:var(--bg);text-align:center;border-radius:10px;padding:10px 14px;font-size:14px;position:fixed}.sheet-text{flex-direction:column;align-items:flex-start;display:flex}.sheet-hint{color:var(--hint);font-size:12px}.back-button{z-index:5;position:absolute;top:6px;left:4px}.route--back .topbar{padding-left:52px}.route--back .editor-scroll{padding-top:56px}.pomo-clock{flex-direction:column;align-items:center;gap:8px;padding:24px 16px 8px;display:flex}.pomo-phase{color:var(--hint);font-size:15px}.pomo-time{font-variant-numeric:tabular-nums;font-size:64px;font-weight:700}
