:root{--bg: #f7f7f5;--panel: #ffffff;--line: #e7e9e6;--ink: #353d37;--muted: #a2aaa4;--accent: #159960;--accent-soft: #eef8f1;--danger: #d9534f;--shadow: 0 13px 39px rgba(14, 28, 19, .14);--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}input,textarea{font:inherit;color:inherit}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.app-shell{display:flex;flex-direction:column;height:100dvh;touch-action:manipulation}.app-shell>main.view{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.flomo-topbar{display:flex;align-items:center;justify-content:space-between;padding:calc(8px + var(--safe-top)) 14px 8px;background:#f7f7f5eb;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);position:relative;z-index:40}.flomo-topbar-btn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:12px;color:var(--ink)}.flomo-topbar-btn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.flomo-topbar-btn:active{background:#eef0ed}.flomo-header-title{display:flex;align-items:center;gap:6px;font-size:17px;font-weight:650;padding:8px 12px;border-radius:12px;max-width:55vw;overflow:hidden}.flomo-header-title svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}.flomo-header-title:active{background:#eef0ed}.section-header{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 8px;flex-shrink:0}.section-header h1{font-size:24px;font-weight:750;letter-spacing:-.02em}.list-count{font-size:13px;color:var(--muted)}.btn-quiet{color:var(--accent);font-size:14px;padding:6px 10px;border-radius:10px}.btn-danger{color:var(--danger);font-size:14px;padding:8px 14px;border-radius:10px;background:#fdf0ef}#notesView{position:relative}.sidebar{display:flex;flex-direction:column;flex:1;min-height:0;padding:0 10px}.note-list{flex:1;min-height:0;overflow-y:auto;padding:4px 0 calc(96px + var(--safe-bottom));-webkit-overflow-scrolling:touch}.note-list.virtual .virtual-spacer{position:relative}.note-list.virtual .virtual-window{position:absolute;left:0;right:0;top:0}.note-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:13px 15px;cursor:pointer;min-height:100px;display:flex;flex-direction:column;gap:3px;overflow:hidden;touch-action:pan-y;transition:transform .28s cubic-bezier(.22,1,.36,1),box-shadow .14s ease,border-color .14s ease;position:relative;will-change:transform}.note-card.dragging{transition:none}.note-card-wrap{position:relative;margin:0 8px 8px}.note-card-del{position:absolute;top:0;right:0;bottom:0;width:76px;border:0;border-radius:0 16px 16px 0;background:#e5484d;color:#fff;font-size:14px;font-weight:600;cursor:pointer}.note-card-del:active{background:#d5383d}.note-card-project{position:absolute;top:0;left:0;bottom:0;width:76px;border:0;border-radius:16px 0 0 16px;background:var(--accent);color:#fff;font-size:13px;font-weight:600;line-height:1.15;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.note-card-project:active{filter:brightness(.94)}.note-card-action-ico{font-size:16px;line-height:1}.note-card:active{transform:scale(.985)}.note-card.active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.note-title{font-size:15.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.note-excerpt{font-size:13.5px;color:#6b736d;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.note-card-media{display:flex;gap:6px}.note-card-thumb-wrap{position:relative;display:block;width:64px;height:46px;border-radius:8px;overflow:hidden;background:#f0f1ee;flex:none}.note-card-thumb{width:64px;height:46px;object-fit:cover;border-radius:8px;opacity:0;transition:opacity .2s ease;display:block}.note-card-thumb-wrap.is-loaded .note-card-thumb{opacity:1}.thumb-shimmer{position:absolute;inset:0;background:linear-gradient(100deg,#f0f1ee 30%,#f9faf8,#f0f1ee 70%);background-size:200% 100%;animation:shimmer 1.2s ease infinite}@keyframes shimmer{0%{background-position:120% 0}to{background-position:-80% 0}}.note-meta{display:flex;align-items:center;gap:6px;margin-top:auto;flex-wrap:wrap}.note-tag-chip{font-size:11.5px;color:var(--accent);background:var(--accent-soft);padding:2px 7px;border-radius:999px;white-space:nowrap}.note-date{font-size:11.5px;color:var(--muted);margin-left:auto}.empty-state{padding:60px 20px;text-align:center;color:var(--muted);font-size:14px}.editor-area{display:none;position:relative}.editor-empty{display:flex;align-items:center;justify-content:center;height:100%;color:var(--muted);font-size:15px}.editor-container{display:flex;flex-direction:column;height:100%;background:var(--panel)}.editor-header{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line)}.editor-header .icon-btn{font-size:22px;width:36px;height:36px;border-radius:10px}.editor-header .save-status{flex:1;text-align:center;font-size:12.5px;color:var(--muted)}.editor-body{flex:1;min-height:0;display:flex;flex-direction:column;position:relative}.note-content-input{flex:1;width:100%;border:none;outline:none;resize:none;padding:16px 18px;font-size:16px;line-height:1.7;background:transparent}.editor-footer{display:flex;align-items:center;gap:6px;padding:10px 12px calc(10px + var(--safe-bottom));border-top:1px solid var(--line)}.note-collapse-btn{font-size:13px;color:var(--muted);padding:8px 10px;border-radius:10px;display:flex;align-items:center;gap:4px}.note-folder-select{font-size:12.5px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:7px 8px;max-width:132px;min-width:96px}.symbol-toolbar{display:flex;gap:4px;margin-left:auto}.symbol-toolbar button{width:36px;height:36px;border-radius:10px;font-size:16px;color:var(--ink);display:flex;align-items:center;justify-content:center}.symbol-toolbar button:active{background:#f0f1ee}.tag-suggestions{position:absolute;left:14px;right:14px;bottom:12px;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:6px;display:flex;flex-direction:column;z-index:30}.tag-suggestions button{text-align:left;padding:10px 12px;border-radius:10px;font-size:14px;color:var(--accent)}.tag-suggestions button:active{background:var(--accent-soft)}@media (min-width: 900px){#notesView{flex-direction:row;flex:1}#notesView .sidebar{flex:0 0 40%;border-right:1px solid var(--line);padding:0 10px 0 14px}#notesView .editor-area{display:flex;flex:1 1 60%;min-width:0;border-right:1px solid var(--line)}#notesView .editor-container.mobile-fullscreen{position:static;width:auto;height:100%}.editor-empty.empty-state{display:flex}#notesView.editing-note .editor-empty,#notesView .sidebar.left-hidden,#notesView .folder-tree.left-hidden{display:none}.folder-tree{flex:0 0 252px;min-width:0;display:flex;flex-direction:column;background:#f8f9f8;border-left:1px solid var(--line)}.folder-tree-head{display:flex;align-items:center;justify-content:space-between;padding:24px 16px 8px;flex-shrink:0}.folder-tree-title{font-size:12.5px;font-weight:650;color:#8a918c;letter-spacing:.03em}.folder-tree-list{flex:1;min-height:0;overflow-y:auto;padding:4px 10px 24px;display:flex;flex-direction:column;gap:3px}.folder-tree-item{display:flex;align-items:center;gap:9px;width:100%;min-height:40px;padding:7px 11px;border-radius:11px;text-align:left;color:var(--ink);font-size:14.5px}.folder-tree-item svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;color:#9aa29c;flex:none}.folder-tree-item .folder-tree-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-tree-item .folder-tree-count{font-size:12px;color:#a7aea9;flex:none}.folder-tree-item.active{background:var(--accent-soft);color:var(--accent);font-weight:650}.folder-tree-item.active svg,.folder-tree-item.active .folder-tree-count{color:var(--accent)}.folder-tree-item:active{background:#f1f3f1}.folder-tree-child{padding-left:44px;min-height:36px}.folder-tree-empty{font-size:12.5px;color:#a2aaa4;padding:10px 12px;line-height:1.6}.folder-tree-tag-head{margin-top:18px}.folder-tree-tag .folder-tree-name{font-size:12.5px;color:#7a827c}.folder-tree-tag.active .folder-tree-name{color:var(--accent)}.folder-tree-row{position:relative;display:flex;align-items:center}.folder-tree-row[draggable=true]{cursor:grab}.folder-tree-row .folder-tree-main{flex:1;min-width:0}.folder-tree-parent-row .folder-tree-main{padding-left:4px}.folder-tree-del{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:7px;font-size:17px;color:var(--muted);background:var(--panel);opacity:0;z-index:2;display:flex;align-items:center;justify-content:center}.folder-tree-row:hover .folder-tree-del,.folder-tree-row:focus-within .folder-tree-del{opacity:1}.folder-tree-item.dragging,.folder-tree-row.dragging .folder-tree-item{opacity:.4}.flomo-sidebar-manage{color:var(--accent);font-size:13px}.icon-btn{font-size:18px;width:32px;height:32px;border-radius:9px;color:var(--ink)}.icon-btn:active{background:#eef0ed}}.desktop-folder-tree{display:none}.folder-arrow{width:26px;height:30px;flex:none;display:flex;align-items:center;justify-content:center;color:#a2aaa4;border-radius:8px}.folder-arrow svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .15s}.folder-arrow.open svg{transform:rotate(90deg)}.flomo-folder-row{display:flex;align-items:center}.flomo-folder-row .flomo-folder-arrow{width:30px;height:38px;flex:none}.flomo-folder-row .flomo-sidebar-item{flex:1;min-width:0}.flomo-folder-del{width:26px;height:26px;margin-right:6px;border-radius:8px;font-size:16px;color:var(--muted);opacity:0;flex:none;line-height:1}.flomo-folder-row:hover .flomo-folder-del,.flomo-folder-row:focus-within .flomo-folder-del{opacity:1}.folder-tree-item,.folder-arrow,.flomo-sidebar-item,.todos-project,.todo-row,.note-card,.quick-add,.flomo-tag-entry{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.flomo-sidebar-backdrop{position:fixed;inset:0;background:#00000059;z-index:60}.flomo-sidebar{position:fixed;top:0;left:0;bottom:0;width:min(320px,86vw);background:var(--bg);z-index:61;display:flex;flex-direction:column;box-shadow:2px 0 24px #0e1c131f;padding:calc(14px + var(--safe-top)) 14px var(--safe-bottom);animation:slideIn .22s ease}@keyframes slideIn{0%{transform:translate(-100%)}to{transform:translate(0)}}.flomo-sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 10px;font-size:17px;font-weight:700}.flomo-sidebar-close{font-size:22px;width:38px;height:38px;border-radius:12px;color:var(--muted)}.flomo-sidebar-close:active{background:#eef0ed}.flomo-sidebar-nav{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}.flomo-sidebar-item{display:flex;align-items:center;gap:12px;text-align:left;width:100%;min-height:46px;padding:8px 13px;border-radius:13px;color:var(--ink);font-size:15.5px}.flomo-sidebar-item svg{height:20px;width:20px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}.flomo-sidebar-item.active{background:var(--accent-soft);color:var(--accent);font-weight:650}.flomo-sidebar-item:active{background:#f1f3f1}.flomo-sidebar-label{font-size:12px;font-weight:600;color:var(--muted);padding:22px 16px 8px;letter-spacing:.03em}.flomo-sidebar-tags{display:flex;flex-direction:column;gap:3px}.flomo-sidebar-item.flomo-tag-entry{font-size:14.5px;min-height:42px;overflow-wrap:anywhere}.flomo-sidebar-tags .flomo-tag-parent{font-weight:600}.flomo-sidebar-tags .flomo-tag-child{padding-left:44px;color:#5a635c}.flomo-sidebar-tags .flomo-folder-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flomo-sidebar-tags .flomo-folder-count{font-size:12px;color:#a7aea9;flex:none}.flomo-sidebar-item.active .flomo-folder-count{color:var(--accent)}.flomo-tags-empty{color:#999;font-size:13px;padding:12px 16px 20px}@media (min-width: 900px){.flomo-sidebar,.flomo-sidebar-backdrop{display:none}}.flomo-composer-layer{position:fixed;inset:0;z-index:70;display:flex;align-items:flex-end}.flomo-composer-backdrop{position:absolute;inset:0;background:#00000040}.flomo-composer{position:relative;width:100%;max-height:78vh;background:var(--panel);border-radius:20px 20px 0 0;padding:18px 18px calc(16px + var(--safe-bottom));box-shadow:0 -8px 32px #0e1c1329;animation:composerUp .24s ease}@keyframes composerUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.flomo-composer-main textarea{width:100%;border:none;outline:none;resize:none;font-size:17px;line-height:1.6;min-height:64px;max-height:50vh;background:transparent}.flomo-composer-toolbar{display:flex;align-items:center;gap:6px;margin-top:12px}.flomo-composer-toolbar button{width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:var(--ink);font-size:17px}.flomo-composer-toolbar button:active{background:#f0f1ee}.flomo-composer-toolbar svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8}.flomo-composer-spacer{flex:1}.flomo-send{background:var(--accent)!important;color:#fff!important;border-radius:50%!important;width:42px!important;height:42px!important}.flomo-send svg{stroke:#fff}.flomo-fab{position:fixed;right:18px;bottom:calc(22px + var(--safe-bottom));width:56px;height:56px;border-radius:50%;background:var(--accent);color:#fff;font-size:28px;box-shadow:0 8px 22px #15996059;z-index:50;display:flex;align-items:center;justify-content:center}.flomo-fab:active{transform:scale(.94)}.todos-panel,.projects-panel{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto;padding:0 14px calc(96px + var(--safe-bottom))}.todos-layout{flex-direction:row;overflow:hidden;padding:0 0 calc(96px + var(--safe-bottom))}.todos-projects{width:240px;flex:none;border-right:1px solid var(--line);padding:16px 12px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.todos-projects-head{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:.6px;padding:0 8px 4px}.todos-projects-list{display:flex;flex-direction:column;gap:2px}.todos-project{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:8px 10px;border-radius:10px;font-size:14px;color:var(--ink);transition:background .13s ease}.todos-project:hover{background:#f1f3f0}.todos-project.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.todos-project.active .todos-project-count{color:var(--accent)}.todos-project-icon{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.55}.todos-project-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.todos-project-count{font-size:12px;color:var(--muted);flex:none;min-width:18px;text-align:right}.todos-project-row{display:flex;align-items:center;gap:2px}.todos-project-row .todos-project{flex:1;min-width:0}.todos-project-del{width:28px;height:28px;border-radius:8px;font-size:18px;color:var(--muted);opacity:0;flex:none}.todos-project-del:hover{color:var(--danger);background:#fbeceb}.todos-project-row:hover .todos-project-del,.todos-project-row:focus-within .todos-project-del{opacity:1}.todos-project-new{justify-content:center;color:var(--muted);border:1px dashed var(--line);background:transparent;margin-top:4px}.todos-project-new:hover{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.project-add{display:flex;align-items:center;gap:6px;background:var(--panel);border:1px solid var(--accent);border-radius:10px;padding:3px 6px 3px 10px;margin:4px 0 0}.project-add input{flex:1;min-width:0;border:none;outline:none;font-size:14px;background:transparent;padding:8px 0}.project-add .icon-btn{font-size:18px;width:30px;height:30px;border-radius:8px;color:var(--accent);background:var(--accent-soft);flex:none}.project-add .icon-btn:hover{background:#dff3e7}.todos-main{flex:1;min-width:0;display:flex;flex-direction:column;overflow-y:auto}.todos-list{flex:none;padding:6px 20px 12px}.todo-group{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--muted);padding:18px 2px 6px;letter-spacing:.2px}.todo-group:first-child{padding-top:10px}.todo-group.today{color:var(--accent)}.todo-group.tomorrow{color:#2e8b57}.todo-group.overdue{color:var(--danger)}.todo-group.weekend .todo-group-label{color:#b07a2e}.todo-group-label{flex:none}.todo-group-count{font-size:11px;font-weight:500;color:var(--muted);background:#eef0ed;border-radius:999px;padding:1px 8px}.todo-group.today .todo-group-count{color:var(--accent);background:var(--accent-soft)}.todo-group.overdue .todo-group-count{color:var(--danger);background:#fbeaea}.todo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:72px 30px 30px;gap:6px}.todo-empty-icon{width:42px;height:42px;stroke:#c8cdc8;stroke-width:1.6;fill:none;margin-bottom:6px}.todo-empty-title{font-size:15.5px;font-weight:600;color:#5f6762}.todo-empty-sub{font-size:13px;color:var(--muted)}.todo-empty-btn{margin-top:14px;padding:9px 22px;border-radius:999px;background:var(--accent);color:#fff;font-size:14px;font-weight:600;box-shadow:0 4px 14px #1599604d}.todo-empty-btn:active{transform:scale(.96)}.todo-group-rows{position:relative}.todo-row{display:flex;align-items:flex-start;gap:12px;padding:11px 4px;border-bottom:1px solid #f2f4f1;position:relative}.todo-group-rows .todo-row:last-child,.done-rows .todo-row:last-child{border-bottom:none}.todo-check{width:22px;height:22px;margin-top:1px;border-radius:50%;border:2px solid #cdd3ce;flex:none;display:flex;align-items:center;justify-content:center;transition:background .15s,border-color .15s}.todo-check:hover{border-color:var(--accent)}.todo-check svg{width:13px;height:13px;stroke:#fff;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .15s}.todo-check.checked{background:var(--accent);border-color:var(--accent)}.todo-check.checked svg{opacity:1}.todo-body{flex:1;min-width:0}.todo-text{font-size:15px;line-height:1.45;overflow-wrap:anywhere;cursor:default}.todo-edit-input{width:100%;border:1px solid var(--accent);border-radius:8px;background:var(--panel);outline:none;font-size:15px;padding:7px 10px;box-shadow:0 0 0 3px var(--accent-soft)}.todo-row.done .todo-text{color:var(--muted);text-decoration:line-through}.todo-meta{display:flex;gap:6px;margin-top:5px;flex-wrap:wrap;align-items:center}.todo-due{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:var(--muted);border-radius:6px;padding:2px 8px;background:#f1f3f0;transition:background .13s}.todo-due:hover{background:#e6e9e4}.todo-due-icon{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.todo-due.today{color:var(--accent);background:var(--accent-soft)}.todo-due.today:hover{background:#e0f2e7}.todo-due.tomorrow{color:#2e8b57;background:#e9f5ee}.todo-due.overdue{color:var(--danger);background:#fbeaea}.todo-due.overdue:hover{background:#f7dede}.todo-link{font-size:11.5px;color:var(--accent);background:var(--accent-soft);border-radius:6px;padding:2px 8px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.todo-actions{display:flex;align-items:center;gap:2px;flex:none;opacity:0;transition:opacity .13s}.todo-row:hover .todo-actions,.todo-row:focus-within .todo-actions{opacity:1}.todo-edit,.todo-delete{width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center}.todo-edit{color:var(--muted)}.todo-edit svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.todo-edit:hover{color:var(--accent);background:var(--accent-soft)}.todo-delete{color:#b9c0bb;font-size:18px}.todo-delete:hover{color:var(--danger);background:#fbeaea}.done-toggle{display:flex;align-items:center;gap:6px;margin:16px 2px 6px;color:var(--muted);font-size:13px;text-align:left;padding:7px 8px;border-radius:8px}.done-toggle:hover{background:#f1f3f0;color:var(--ink)}.done-toggle-icon{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}.done-toggle-icon.open{transform:rotate(90deg)}.done-rows{padding-bottom:4px}.todo-enter-active{transition:opacity .2s ease,transform .2s ease}.todo-leave-active{transition:opacity .18s ease,transform .18s ease;position:absolute;left:4px;right:4px}.todo-enter-from{opacity:0;transform:translateY(-6px)}.todo-leave-to{opacity:0;transform:translate(14px)}.todo-move{transition:transform .22s ease}.todos-input-bar{position:sticky;bottom:0;left:0;right:0;display:flex;align-items:center;gap:8px;background:linear-gradient(transparent,var(--bg) 34%);padding:12px 20px 16px;z-index:5}.todo-input{flex:1;min-width:0;border:none;outline:none;background:#eef0ec;border-radius:22px;padding:12px 16px;font-size:15px}.todo-input::placeholder{color:var(--muted)}.todo-date-btn{flex:none;min-width:44px;height:44px;padding:0 10px;border-radius:22px;background:#eef0ec;font-size:14px;display:flex;align-items:center;justify-content:center;color:var(--muted)}.todo-date-btn.active{color:var(--accent);background:var(--accent-soft);font-weight:600}.todo-date-btn:active{background:#e2e5e0}.todo-date-clear{flex:none;width:22px;height:22px;border-radius:50%;background:#dfe3de;color:#6b736d;font-size:14px;display:flex;align-items:center;justify-content:center}.todo-date-hidden{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.todo-add-btn{flex:none;width:44px;height:44px;border-radius:50%;background:var(--accent);color:#fff;font-size:24px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #15996059}.todo-add-btn:active{transform:scale(.94)}.projects-list{display:flex;flex-direction:column;gap:6px}.project-row{display:flex;align-items:center;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px 16px;text-align:left}.project-title{flex:1;font-size:15.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-count{font-size:12.5px;color:var(--muted)}.project-chevron{color:var(--muted);font-size:18px}.project-delete{margin-top:18px;align-self:flex-start}.search-panel{position:fixed;inset:0;z-index:45;background:var(--bg);display:flex;flex-direction:column;padding:0 14px calc(40px + var(--safe-bottom));animation:fadeIn .18s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.search-entry{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:6px 8px 6px 14px;margin:6px 0 12px}.search-entry input{flex:1;border:none;outline:none;font-size:15.5px;padding:9px 0;background:transparent}.search-results{flex:1;min-height:0;overflow-y:auto}.search-group{font-size:12px;color:var(--muted);font-weight:600;padding:14px 6px 6px}.search-row{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:12px 14px;margin-bottom:6px}.search-row-title{font-size:14.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-row-meta{display:flex;gap:6px}.search-row-meta span{font-size:11px;color:var(--accent)}.sync-chip{position:fixed;left:50%;bottom:calc(14px + var(--safe-bottom));transform:translate(-50%);font-size:11.5px;color:var(--muted);background:#ffffffeb;border:1px solid var(--line);border-radius:999px;padding:4px 12px;z-index:80;pointer-events:auto;cursor:pointer}.sync-chip:active{background:#f0f1ee}.sync-chip.conflict{color:#c77d1f}.sync-chip.error,.sync-chip.offline{color:var(--danger)}.toast{position:fixed;top:calc(16px + env(safe-area-inset-top,0px));left:50%;transform:translate(-50%);z-index:1200;max-width:calc(100vw - 48px);padding:10px 20px;border-radius:999px;background:#1c201eeb;color:#fff;font-size:13.5px;line-height:1.4;text-align:center;box-shadow:0 8px 24px #0003;pointer-events:none;animation:toast-in .18s ease}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%)}}.sync-menu-layer{position:fixed;inset:0;z-index:130}.sync-menu{position:fixed;left:50%;bottom:calc(52px + var(--safe-bottom));transform:translate(-50%);width:min(340px,calc(100vw - 40px));background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:6px;display:flex;flex-direction:column;animation:syncFixFade .15s ease}.sync-menu-item{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:10px 14px;border-radius:11px;font-size:14.5px;text-align:left;color:var(--ink)}.sync-menu-item:active{background:#f0f1ee}.sync-menu-toggle input{width:20px;height:20px;accent-color:var(--accent)}.sync-menu-cancel{color:var(--muted);border-top:1px solid var(--line);border-radius:0 0 11px 11px}.sync-menu-rule{padding:8px 14px 12px;display:flex;flex-direction:column;gap:4px}.sync-menu-rule-title{font-size:12px;font-weight:650;color:var(--muted)}.sync-menu-rule-text{font-size:12.5px;line-height:1.55;color:var(--muted)}.sync-fix-layer{position:fixed;inset:0;z-index:120;background:#00000059;display:flex;align-items:flex-end;justify-content:center;animation:syncFixFade .18s ease}.sync-fix-panel{width:100%;max-width:560px;background:var(--panel);border-radius:18px 18px 0 0;padding:10px 16px calc(18px + var(--safe-bottom));box-shadow:0 -6px 30px #0000001f;max-height:70dvh;display:flex;flex-direction:column}.sync-fix-head{display:flex;align-items:center;justify-content:space-between;padding:8px 2px;font-size:16px;font-weight:650;flex-shrink:0}.sync-fix-body{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}.sync-fix-group{padding:14px 0;border-top:1px solid var(--line)}.sync-fix-group:first-of-type{border-top:none}.sync-fix-label{font-size:13px;color:var(--muted);margin-bottom:10px}.sync-fix-list{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-direction:column;gap:6px}.sync-fix-item{display:flex;align-items:center;gap:8px;font-size:13.5px}.sync-fix-item-kind{flex:none;font-size:11px;color:var(--accent);background:var(--accent-soft);border-radius:6px;padding:2px 7px}.sync-fix-item-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}.sync-fix-actions{display:flex;gap:8px}.sync-fix-btn{flex:1;min-height:42px;border-radius:11px;background:var(--accent);color:#fff;font-size:14px;font-weight:600}.sync-fix-btn:active{opacity:.88}.sync-fix-btn-alt{background:#eef0ed;color:var(--ink);font-weight:500}.sync-fix-btn:disabled{opacity:.5}.sync-fix-empty{padding:26px 0;text-align:center;color:var(--muted);font-size:14px}@keyframes syncFixFade{0%{opacity:0}to{opacity:1}}.lightbox{position:fixed;inset:0;background:#000000e6;display:flex;align-items:center;justify-content:center;z-index:200;cursor:zoom-out}.lightbox img{max-width:94vw;max-height:94vh;border-radius:8px}@media (max-width: 899px){.todos-layout{flex-direction:column;overflow-y:auto}.todos-projects{width:auto;border-right:none;border-bottom:1px solid var(--line);padding:10px 12px;flex-direction:row;overflow-x:auto;overflow-y:hidden;flex:none;gap:6px}.todos-projects-head{display:none}.todos-projects-list{flex-direction:row;gap:6px;align-items:center}.todos-project{width:auto;flex:none;white-space:nowrap;padding:7px 12px;border:1px solid var(--line);border-radius:999px;gap:6px}.todos-project:hover{background:transparent}.todos-project.active{border-color:var(--accent);background:var(--accent-soft)}.todos-project-icon{width:14px;height:14px}.todos-project-row{flex:none}.todos-project-row:hover .todos-project-del,.todos-project-row:focus-within .todos-project-del{opacity:1}.todos-project-del{opacity:1;width:24px;height:24px}.flomo-folder-del{opacity:1}.todos-project-new{display:flex;margin:0;border-radius:999px;padding:7px 14px}.project-add{display:flex;flex:none;width:220px;margin:0;border-radius:999px;padding:2px 4px 2px 14px}.project-add input{padding:7px 0;font-size:13.5px}.project-add .icon-btn{width:28px;height:28px;font-size:16px}.todos-list{padding:4px 16px 12px}.todos-input-bar{padding:10px 14px calc(14px + var(--safe-bottom))}.todo-actions{opacity:1}.todo-edit,.todo-delete{width:26px;height:26px}.folder-tree-del{opacity:1;background:transparent}.editor-area{display:block}.editor-container.mobile-fullscreen{position:fixed;inset:0;z-index:65;background:var(--panel);padding-top:var(--safe-top)}.editor-empty{display:none}}@keyframes viewFade{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.view-switch{animation:viewFade .18s ease}.editor-up-enter-active,.editor-up-leave-active{transition:opacity .18s ease,transform .18s ease}.editor-up-enter-from{opacity:0;transform:translateY(24px)}.editor-up-leave-to{opacity:0;transform:translateY(12px)}@media (prefers-reduced-motion: reduce){.flomo-composer,.flomo-sidebar,.search-panel,.note-card{animation:none;transition:none}.view-switch,.thumb-shimmer{animation:none!important}.editor-up-enter-active,.editor-up-leave-active,.note-card-thumb{transition:none!important}}
