:root{font-family:Noto Sans SC,Microsoft YaHei,system-ui,sans-serif;color:#24322b;background:#f5f6f2;font-synthesis:none;--bg:#f5f6f2;--surface:#fff;--surface-soft:#eef1eb;--text:#24322b;--muted:#768078;--line:#e3e7e1;--accent:#526b5c;--accent-2:#dbe5dc;--warm:#e7b874;--danger:#b6534c;--shadow:0 12px 40px rgba(45,62,52,.07)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea,select{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(82,107,92,.22);outline-offset:2px}h1,h2,h3,p{margin-top:0}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:236px;padding:28px 18px;display:flex;flex-direction:column;background:#26392f;color:#edf2ec;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 36px}.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#f2e9d8;color:#3c5747;font:700 22px Georgia}.brand strong{display:block;font-size:19px;letter-spacing:.03em}.brand small{display:block;color:#afbbb3;margin-top:2px}.sidebar nav{display:grid;gap:7px}.sidebar nav button,.bottom-nav button{border:0;background:transparent}.sidebar nav button{display:flex;align-items:center;gap:13px;color:#c6d0ca;border-radius:12px;padding:12px 14px;text-align:left}.sidebar nav button:hover,.sidebar nav button.active{color:#fff;background:#ffffff1a}.sidebar nav button.active{box-shadow:inset 3px 0 #e7b874}.local-badge{font-size:12px;color:#a8b5ac;margin:auto 8px 0;display:flex;align-items:center;gap:8px}.local-badge span{width:8px;height:8px;border-radius:50%;background:#8fb99c;box-shadow:0 0 0 4px #8fb99c1f}.main-content{margin-left:236px;min-height:100vh}.page{max-width:1220px;margin:auto;padding:50px 52px 80px}.page-header{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:34px}.page-header h1{font-family:Georgia,"Noto Serif SC",serif;font-size:38px;font-weight:600;margin-bottom:8px;letter-spacing:-.02em}.page-header p{color:var(--muted);margin-bottom:0}.eyebrow{font-size:12px!important;font-weight:700;letter-spacing:.16em;color:#9a7a4c!important;margin-bottom:8px!important}.header-actions,.empty-actions{display:flex;gap:10px;flex-wrap:wrap}.button{border:0;border-radius:10px;min-height:42px;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;transition:.18s ease}.button:hover{transform:translateY(-1px)}.button:disabled{opacity:.5;cursor:not-allowed;transform:none}.button-primary{background:var(--accent);color:#fff;box-shadow:0 4px 12px #526b5c2e}.button-secondary{background:var(--accent-2);color:#314c3d}.button-ghost{background:transparent;color:var(--accent)}.button-ghost:hover{background:var(--surface-soft)}.button-danger{background:#f8e7e5;color:var(--danger)}.card{background:var(--surface);border:1px solid rgba(220,226,219,.9);border-radius:18px;box-shadow:var(--shadow)}.stack{display:grid;gap:28px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:28px 2px 13px}.section-heading>div{display:flex;align-items:baseline;gap:10px}.section-heading h2{font-size:19px;margin:0}.section-heading span{color:var(--muted);font-size:13px}.section-heading button{white-space:nowrap}.progress{height:7px;background:#e7ebe5;border-radius:999px;overflow:hidden}.progress span{display:block;height:100%;background:var(--accent);border-radius:inherit;transition:width .35s ease}.today-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);gap:30px}.week-summary{padding:25px}.week-summary>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.week-summary strong{font-family:Georgia,serif;font-size:30px}.section-label{font-weight:600}.summary-bottom{display:flex;justify-content:space-between;margin-top:13px;color:var(--muted);font-size:13px}.summary-bottom button{border:0;background:transparent;color:var(--accent);display:flex;align-items:center}.task-list-card{overflow:hidden;min-height:180px}.today-task{padding:17px 19px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:13px}.today-task:last-child{border-bottom:0}.today-task.done .task-main strong{text-decoration:line-through;color:#8e9891}.check-button{width:26px;height:26px;border-radius:50%;border:1.5px solid #bdc7bf;background:#fff;display:grid;place-items:center;flex:none}.done .check-button,.check-button:has(svg:not(.lucide-circle)){background:var(--accent);border-color:var(--accent);color:#fff}.task-main,.week-task-main{background:transparent;border:0;text-align:left;display:grid;gap:3px;flex:1;min-width:0}.task-main strong,.week-task-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-main small{color:var(--muted)}.habit-panel>.card{padding:10px 17px}.habit-row{display:flex;align-items:center;gap:12px;width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);padding:15px 2px;text-align:left}.habit-row:last-child{border:0}.habit-check{width:23px;height:23px;border:1.5px solid #c3cbc5;border-radius:7px;display:grid;place-items:center}.habit-row.checked{color:#718076;text-decoration:line-through}.habit-row.checked .habit-check{background:var(--accent);color:#fff;border-color:var(--accent)}.empty{text-align:center;padding:46px 24px;color:var(--muted)}.empty>svg{color:#9aaa9f;margin-bottom:12px}.empty h3{color:var(--text);font-size:17px;margin-bottom:6px}.empty p{max-width:440px;margin:0 auto 18px;line-height:1.7}.empty .button{margin:0 4px}.search-box{max-width:560px;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 14px;margin-bottom:24px}.search-box svg{color:var(--muted)}.search-box input{border:0;background:transparent;width:100%;padding:13px 0;outline:0}.notes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.note-card{overflow:hidden;display:flex;flex-direction:column;min-height:245px}.note-open{background:transparent;border:0;text-align:left;padding:21px;flex:1}.note-date{font-size:11px;color:#9b7b4d;text-transform:uppercase}.note-open h2{font-family:Georgia,"Noto Serif SC",serif;font-size:20px;margin:11px 0}.note-open p{font-size:14px;color:var(--muted);line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tag,.status-pill{font-size:12px;padding:5px 9px;border-radius:999px;background:var(--surface-soft);color:var(--accent)}.note-actions{display:flex;border-top:1px solid var(--line)}.note-actions button{flex:1;border:0;background:transparent;padding:11px;display:flex;gap:6px;align-items:center;justify-content:center;color:var(--muted)}.note-actions button+button{border-left:1px solid var(--line)}.week-hero{padding:25px 28px;margin-bottom:28px;background:linear-gradient(110deg,#fff 55%,#eef2ed)}.week-nav{display:flex;align-items:center;gap:8px;margin-bottom:18px}.week-nav button{width:32px;height:32px;border:0;border-radius:8px;background:#fff;display:grid;place-items:center}.week-nav select,.week-select{border:0;background:transparent;color:var(--muted);padding:5px}.week-hero-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.week-hero-title span{font-size:12px;color:#9a7a4c;font-weight:700}.week-hero-title h2{font-family:Georgia,"Noto Serif SC",serif;font-size:27px;margin:4px 0}.week-hero-title p{color:var(--muted);font-size:13px;margin:0}.ring{width:92px;height:92px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle at center,#fff 61%,transparent 62%),conic-gradient(var(--accent) calc(var(--p)*1%),#dfe5df 0)}.ring strong{font-size:19px}.ring small{font-size:10px;color:var(--muted)}.theme-stack{display:grid;gap:14px}.theme-card{overflow:hidden}.theme-card>header{display:flex;justify-content:space-between;align-items:center;padding:16px 19px}.theme-title{display:flex;align-items:center;gap:10px;border:0;background:transparent;text-align:left;min-width:0}.theme-title svg{transition:.2s}.theme-title svg.collapsed{transform:rotate(-90deg)}.theme-title h3{margin:0 0 2px;font-size:16px}.theme-title span{font-size:12px;color:var(--muted)}.row-actions{display:flex;align-items:center;gap:2px}.row-actions button,.icon-button{border:0;background:transparent;color:var(--muted);padding:7px;border-radius:7px}.row-actions button:hover,.icon-button:hover{background:var(--surface-soft);color:var(--text)}.row-actions button:disabled{opacity:.25;cursor:not-allowed}.theme-tasks{border-top:1px solid var(--line)}.week-task{display:flex;align-items:center;gap:12px;padding:13px 18px 13px 22px;border-bottom:1px solid #eef0ed}.week-task.done strong{text-decoration:line-through;color:#8a958d}.week-task-main{display:flex;justify-content:space-between;align-items:center;gap:12px}.week-task-main span{font-size:12px;color:var(--muted);white-space:nowrap}.add-task-row{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--accent);padding:13px 23px;width:100%}.menu-danger{margin-left:6px}.bottom-nav{display:none}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#16211b73;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:100;display:grid;place-items:center;padding:20px}.modal{width:min(520px,100%);max-height:calc(100vh - 40px);background:#fff;border-radius:18px;box-shadow:0 24px 80px #0003;display:flex;flex-direction:column;overflow:hidden}.modal-wide{width:min(850px,100%)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:19px 22px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:19px;margin:0}.modal-body{padding:22px;overflow:auto}.modal-footer{padding:14px 22px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px}.footer-spacer{flex:1}.field{display:grid;gap:7px;color:#46534b;font-size:13px;font-weight:600}.field small{font-size:11px;color:var(--muted);font-weight:400}.field input,.field textarea,.field select,.form-stack>input{width:100%;border:1px solid #d9dfda;border-radius:10px;padding:10px 11px;background:#fbfcfa;color:var(--text);resize:vertical}.form-stack{display:grid;gap:17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.confirm-text{line-height:1.75;margin:0}.toast{position:fixed;right:24px;bottom:24px;z-index:200;color:#fff;background:#344c3e;padding:13px 18px;border-radius:11px;box-shadow:0 12px 40px #0003;animation:toast-in .25s}.toast-error{background:#9f4843}@keyframes toast-in{0%{transform:translateY(10px);opacity:0}}.picker-list{display:grid}.picker-list button{display:flex;justify-content:space-between;align-items:center;border:0;border-bottom:1px solid var(--line);background:transparent;padding:13px 5px;text-align:left}.picker-list button div{display:grid;gap:2px}.picker-list small{color:var(--muted)}.editor-tabs{display:flex;border-bottom:1px solid var(--line)}.editor-tabs button{border:0;background:transparent;padding:9px 13px}.editor-tabs button.active{color:var(--accent);box-shadow:inset 0 -2px var(--accent)}.note-editor{font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important}.markdown-preview{min-height:280px;border:1px solid var(--line);border-radius:10px;padding:14px 18px;line-height:1.8}.markdown-preview pre{overflow:auto;background:#f2f4f1;padding:12px;border-radius:8px}.import-paste>p{color:var(--muted)}.import-paste>textarea{width:100%;min-height:340px;border:1px solid var(--line);border-radius:12px;padding:14px;font-family:ui-monospace,Consolas,monospace;resize:vertical}.import-paste details{margin-top:14px}.import-paste pre{white-space:pre-wrap;background:#f5f7f4;padding:13px;border-radius:9px;font-size:12px}.issue-list{margin-top:13px;padding:12px;background:#fff6f4;border-radius:10px}.issue-list p{display:flex;align-items:flex-start;gap:7px;margin:4px;color:var(--muted)}.issue-list .error{color:var(--danger)}.issue-list .warning{color:#966b2b}.preview-status,.conflict-box{display:flex;gap:12px;padding:15px;border-radius:12px;background:#eef4ef;color:#3e5849;margin-bottom:16px}.preview-status small{display:block;margin-top:3px}.inline-warning{color:#976d2e;display:flex;gap:6px;align-items:center;font-size:13px}.conflict-box{background:#fff5e5;color:#665135}.conflict-box p{font-size:13px;margin:4px 0 9px}.conflict-box label{display:block;margin:7px 0}.preview-themes{display:grid;gap:20px;margin-top:22px}.preview-themes>section{padding:16px;border:1px solid var(--line);border-radius:12px}.preview-task{margin-top:10px;border-top:1px solid var(--line);padding-top:10px}.preview-task summary{display:flex;align-items:center;gap:7px;font-weight:600;cursor:pointer;margin-bottom:13px}.danger-confirm{display:flex!important;align-items:flex-start;gap:8px;padding:12px!important;background:#fae9e7;border-radius:9px;color:#9b4640!important;font-weight:600}.detail-meta{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:13px}.status-pill.complete{background:#dfece2;color:#385a43}.detail-sections{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:22px 0}.detail-sections section{background:#f7f8f5;border-radius:10px;padding:14px}.detail-sections h3{font-size:13px;color:var(--muted);margin-bottom:8px}.detail-sections p{margin:0;line-height:1.7}.prewrap{white-space:pre-wrap}.modal hr{border:0;border-top:1px solid var(--line);margin:22px 0}.stat-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:16px}.stat-card{padding:21px;display:flex;flex-direction:column;gap:9px}.stat-card>span{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.stat-card strong{font-family:Georgia,serif;font-size:32px}.stat-card small{color:var(--muted)}.stat-card.accent{background:#314b3c;color:#fff}.stat-card.accent span,.stat-card.accent small{color:#c3d0c8}.stat-card.accent .progress{background:#62786b}.stat-card.accent .progress span{background:#e6bd7b}.growth-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:18px}.growth-grid>.card,.review-card{padding:1px 21px 21px}.history-list{display:grid}.history-list button{border:0;border-bottom:1px solid var(--line);background:transparent;display:flex;justify-content:space-between;text-align:left;padding:13px 8px}.history-list button.active{background:#f2f5f1;border-radius:9px}.history-list button div{display:grid;gap:2px}.history-list small{color:var(--muted)}.history-list>button>span{font-weight:700}.review-list{display:grid;gap:7px}.review-list div{display:flex;gap:9px;align-items:center;padding:11px;background:#fff4e6;border-radius:9px;color:#775b31}.review-card{margin-top:18px}.form-actions{display:flex;justify-content:flex-end}.settings-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);gap:24px}.habit-manage-list>div{display:flex;justify-content:space-between;align-items:center;padding:16px 19px;border-bottom:1px solid var(--line)}.habit-manage-list>div:last-child{border:0}.habit-manage-list>div>div:first-child{display:grid;gap:4px}.habit-manage-list small{color:var(--muted)}.checkin-dots{display:flex;gap:5px;margin-top:5px}.checkin-dots span{width:8px;height:8px;border-radius:50%;background:#dfe4df}.checkin-dots span.hit{background:var(--accent)}.data-card{overflow:hidden}.data-action{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:20px;border-bottom:1px solid var(--line)}.data-action h3{font-size:15px;margin:0 0 3px}.data-action p{font-size:13px;color:var(--muted);margin:0}.data-icon{width:42px;height:42px;border-radius:12px;background:#e9efea;color:var(--accent);display:grid;place-items:center;flex:none}.safety-note{display:flex;gap:11px;padding:16px 20px;background:#fff8ea;color:#705a36;font-size:12px;line-height:1.65}.safety-note p{margin:0}.about-card{padding:23px}.about-card h2{margin:15px 0 5px}.about-card>p{color:var(--muted);line-height:1.7}.about-card dl{margin:22px 0 0}.about-card dl div,.restore-preview dl div{display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid var(--line);font-size:13px}.about-card dt,.restore-preview dt{color:var(--muted)}.about-card dd,.restore-preview dd{margin:0}.storage-card{padding:18px;display:flex;gap:13px;color:var(--accent)}.storage-card h3{font-size:14px;margin:0 0 5px}.storage-card p{font-size:12px;color:var(--muted);line-height:1.7;margin:0}.weekday-picker{display:flex;gap:7px}.weekday-picker button{border:1px solid var(--line);background:#fff;border-radius:50%;width:38px;height:38px}.weekday-picker button.active{background:var(--accent);color:#fff;border-color:var(--accent)}.switch-row{display:flex;justify-content:space-between;align-items:center}.switch-row span{display:grid;gap:3px}.switch-row small{color:var(--muted)}.switch-row input{width:42px;height:22px;accent-color:var(--accent)}.restore-ok{display:flex;align-items:center;gap:8px;color:#3b6047;font-weight:600}.loading{height:100vh;display:grid;place-items:center;color:var(--muted)}@media(max-width:1000px){.page{padding:40px 30px 80px}.today-grid,.settings-layout{grid-template-columns:1fr}.notes-grid{grid-template-columns:repeat(2,1fr)}.stat-grid{grid-template-columns:1fr 1fr}.stat-card:first-child{grid-column:1/-1}}@media(max-width:740px){body{background:#f7f8f5}.sidebar{display:none}.main-content{margin:0;padding-bottom:74px}.bottom-nav{position:fixed;display:flex;inset:auto 0 0;background:#fffffff5;border-top:1px solid var(--line);padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));z-index:50;justify-content:space-around}.bottom-nav button{display:grid;justify-items:center;gap:2px;color:var(--muted);font-size:10px;padding:4px 10px}.bottom-nav button.active{color:var(--accent)}.page{padding:28px 16px 40px}.page-header{align-items:flex-start;margin-bottom:25px}.page-header h1{font-size:31px}.page-header>div:last-child.header-actions{display:none}.page-header>.button{padding:9px 11px}.today-header{display:block}.today-header>.button{margin-top:16px}.today-grid{gap:10px}.section-heading{margin-top:23px}.notes-grid,.stat-grid,.growth-grid{grid-template-columns:1fr}.stat-card:first-child{grid-column:auto}.week-hero{padding:20px}.week-hero-title h2{font-size:22px}.ring{width:76px;height:76px}.theme-card>header{align-items:flex-start}.theme-card>header>.row-actions{flex-wrap:wrap;justify-content:flex-end;max-width:130px}.week-task{padding-left:14px}.week-task-main{display:grid;gap:3px}.week-task>.row-actions button:not(:last-child){display:none}.modal-backdrop{padding:0;align-items:end}.modal{width:100%;max-height:94vh;border-radius:18px 18px 0 0}.modal-wide{width:100%}.modal-body{padding:18px}.modal-footer{padding-bottom:calc(14px + env(safe-area-inset-bottom));flex-wrap:wrap}.form-grid,.detail-sections{grid-template-columns:1fr}.footer-spacer{display:none}.data-action{grid-template-columns:auto 1fr}.data-action>.button{grid-column:1/-1}.settings-layout{gap:12px}.toast{left:14px;right:14px;bottom:82px;text-align:center}.week-select{max-width:150px}.weekday-picker{justify-content:space-between;gap:3px}.weekday-picker button{width:36px;height:36px}.import-paste>textarea{min-height:300px}.summary-bottom{gap:8px}}@media(max-width:420px){.page-header{gap:10px}.page-header .button{font-size:0}.page-header .button svg{margin:0}.week-hero-title{align-items:flex-start}.ring{width:68px;height:68px}.ring small{display:none}.week-task>.row-actions button{padding:5px}.notes-grid{gap:12px}.modal-footer .button{flex:1}.modal-footer .button-danger{flex:0 0 auto}.footer-spacer{display:block;flex-basis:100%;height:0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.import-intro{display:flex;gap:11px;margin-bottom:14px;color:var(--accent)}.import-intro strong{display:block}.import-intro p{color:var(--muted);margin:4px 0 0;line-height:1.65}.format-help{margin-top:14px}.format-help>p{color:var(--muted);font-size:13px}.import-paste pre,.source-fragment pre,.original-source pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7f4;padding:13px;border-radius:9px;font-size:12px;line-height:1.65;max-height:360px;overflow:auto}.preview-section{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.preview-section>h3{display:flex;align-items:center;gap:7px;font-size:16px}.preview-section>p{color:var(--muted);font-size:13px}.preview-themes{margin-top:0}.preview-task summary span{flex:1}.preview-task summary small{display:flex;align-items:center;gap:4px;color:var(--muted);font-weight:400}.pending-section{background:#fffaf0;border:1px solid #f0dfbd;border-radius:12px;padding:16px}.pending-item{display:grid;gap:7px;margin-top:13px}.pending-item>span{font-size:12px;color:#8a6b38}.pending-item textarea,.pending-item select{width:100%;border:1px solid #e1d5be;border-radius:9px;padding:9px;background:#fff}.habit-suggestions>label{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px}.habit-suggestions>label>span{display:grid;gap:3px}.habit-suggestions small{color:var(--muted)}.source-fragment,.original-source{margin-top:14px}.source-fragment summary,.original-source summary{cursor:pointer;color:var(--accent);font-size:13px}.original-source summary{display:flex;align-items:center;gap:6px}.plan-overview{padding:22px;margin-bottom:26px}.plan-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.plan-overview-grid section{background:#f7f8f5;border-radius:11px;padding:15px}.plan-overview-grid section:nth-child(3),.plan-overview-grid section.pending-view{grid-column:1/-1}.plan-overview-grid h3{font-size:13px;color:var(--muted);margin-bottom:8px}.plan-overview-grid p{margin:0;line-height:1.75}.pending-view{background:#fff8e9!important}.detail-meta{flex-wrap:wrap}@media(max-width:740px){.plan-overview-grid{grid-template-columns:1fr}.plan-overview-grid section{grid-column:auto!important}}.auto-resize-textarea{display:block;max-width:100%;min-width:0;overflow-x:hidden!important;overflow-y:hidden!important;resize:none!important;white-space:pre-wrap;overflow-wrap:anywhere}.modal-body{overflow-x:hidden}.field,.form-grid>*{min-width:0}.match-impact{padding:9px 11px;border:1px solid #ead2a8;border-radius:8px;background:#fffaf0}.preview-subtasks{display:grid;gap:9px;padding:13px;border:1px solid #dce5de;border-radius:10px;background:#f7faf7}.preview-subtasks>div:first-child{display:grid;gap:3px}.preview-subtasks small{color:var(--muted);font-weight:400}.preview-subtask-row{display:grid;grid-template-columns:auto minmax(0,1fr) 150px;gap:8px;align-items:center}.preview-subtask-row>input:not([type=checkbox]),.preview-subtask-row select{width:100%;min-width:0;border:1px solid #d9dfda;border-radius:8px;padding:8px 9px;background:#fff}.preview-subtask-row>input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.optional-task-field{display:grid;gap:7px}.optional-task-field>header{display:flex;justify-content:space-between;align-items:center;color:#46534b;font-size:13px}.optional-task-field>header button{border:0;background:transparent;color:var(--muted);padding:4px 7px}.optional-task-field>textarea{width:100%;border:1px solid #d9dfda;border-radius:10px;padding:10px 11px;background:#fbfcfa;color:var(--text)}.add-field-bar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:12px;border:1px dashed #ccd6ce;border-radius:10px}.add-field-bar>span{font-size:12px;color:var(--muted);margin-right:3px}.add-field-bar button{border:0;background:#edf3ee;color:var(--accent);border-radius:8px;padding:7px 9px;display:flex;align-items:center;gap:4px;font-size:12px}.subtask-editor{border-top:1px solid var(--line);padding-top:17px}.subtask-editor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.subtask-editor h3{font-size:15px;margin:0 0 4px}.subtask-editor header p,.subtask-empty{font-size:12px;color:var(--muted);margin:0}.subtask-edit-list{display:grid;gap:8px;margin-top:13px}.subtask-edit-row{display:grid;grid-template-columns:34px minmax(0,1fr) 145px auto;gap:8px;align-items:center}.subtask-edit-row>input,.subtask-edit-row>select{width:100%;min-width:0;border:1px solid #d9dfda;border-radius:9px;padding:9px;background:#fbfcfa}.subtask-state{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eef2ee;color:var(--muted);font-size:11px}.subtask-state.complete{background:#dfece2;color:#385a43}.subtask-empty{padding:14px 0}.task-detail-sections{grid-template-columns:1fr}.task-detail-sections>section{min-width:0}.subtask-group{margin-top:12px;border:1px solid #dce4de;border-radius:9px;background:#fff;overflow:hidden}.subtask-group>summary{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;cursor:pointer;color:var(--accent);font-size:13px;font-weight:600}.subtask-group>summary strong{font-size:12px}.subtask-group[open]>summary{border-bottom:1px solid var(--line)}.subtask-check-row{display:flex;align-items:flex-start;gap:10px;width:100%;border:0;border-bottom:1px solid #edf0ed;background:#fff;padding:11px 12px;text-align:left;line-height:1.55}.subtask-check-row:last-child{border-bottom:0}.subtask-check-row.complete>span:last-child{text-decoration:line-through;color:var(--muted)}.subtask-check-row .habit-check{flex:none;margin-top:1px}.subtask-check-row.complete .habit-check{background:var(--accent);border-color:var(--accent);color:#fff}.subtask-complete-prompt{display:flex;align-items:center;gap:10px;padding:14px;margin:17px 0;background:#edf5ee;border:1px solid #d3e2d5;border-radius:11px}.subtask-complete-prompt>div{flex:1}.subtask-complete-prompt p{font-size:12px;color:var(--muted);margin:4px 0 0}.subtask-complete-prompt .button{flex:none}@media(max-width:740px){.preview-subtask-row{grid-template-columns:auto minmax(0,1fr)}.preview-subtask-row select{grid-column:2}.subtask-editor>header{display:grid}.subtask-editor>header .button{justify-self:start}.subtask-edit-row{grid-template-columns:34px minmax(0,1fr) auto}.subtask-edit-row>select{grid-column:2}.subtask-edit-row>.row-actions{grid-row:1/3;grid-column:3}.subtask-complete-prompt{align-items:stretch;flex-wrap:wrap}.subtask-complete-prompt>div{flex-basis:100%}}.sync-sidebar{margin:auto 5px 0;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:#ffffff0f;color:#cbd5cf;padding:10px 11px;display:flex;align-items:center;gap:8px;text-align:left;font-size:12px}.sync-sidebar:hover{background:#ffffff1a;color:#fff}.sync-sidebar .lucide-refresh-cw{animation:sync-spin 1.2s linear infinite}.mobile-sync{display:none}.sync-status-同步失败,.sync-status-存在冲突{color:#f1c08c}.sync-status-当前离线,.sync-status-未配置{color:#aeb8b1}@keyframes sync-spin{to{transform:rotate(360deg)}}.cloud-card{padding:22px;margin-bottom:28px;overflow:hidden}.cloud-card-title{display:flex;align-items:center;gap:13px;margin-bottom:18px}.cloud-card-title h3,.cloud-unconfigured h3{margin:0 0 4px;font-size:16px}.cloud-card-title p,.cloud-unconfigured p{margin:0;color:var(--muted);line-height:1.65}.cloud-unconfigured{display:flex;align-items:flex-start;gap:16px}.cloud-unconfigured>svg{color:var(--muted);flex:none}.cloud-unconfigured ol{color:var(--muted);font-size:13px;line-height:1.8;padding-left:20px}.muted{color:var(--muted);font-size:12px;line-height:1.7}.cloud-login{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:13px;align-items:end;margin-bottom:18px}.text-button{border:0;background:transparent;color:var(--accent);padding:8px;text-align:left}.cloud-login>.text-button{grid-column:1/-1;justify-self:start}.migration-summaries{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cloud-summary{border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;gap:5px;background:#f9faf8}.cloud-summary strong{margin-bottom:3px}.cloud-summary span{font-size:12px;color:var(--muted)}.backup-gate{margin:16px 0;display:flex;align-items:center;gap:12px;padding:13px;background:#fff8ea;border-radius:11px}.backup-gate span{font-size:12px;color:#846d46}.backup-gate span.ready{color:#3f684c}.migration-actions,.sync-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.migration-help{font-size:12px;color:var(--muted);line-height:1.7;margin:15px 0 0}.migration-blocked{display:flex;gap:13px;color:#79502c}.migration-blocked h3{margin-bottom:6px}.migration-blocked p{color:var(--muted);line-height:1.7}.sync-overview{display:grid;grid-template-columns:minmax(180px,1.1fr) repeat(3,minmax(100px,1fr));gap:12px;align-items:stretch}.sync-overview>div,.sync-state{border:1px solid var(--line);border-radius:11px;padding:12px;display:flex;flex-direction:column;gap:4px}.sync-state{justify-content:center;align-items:flex-start;flex-direction:row;font-weight:700;background:#eef4ef;color:var(--accent)}.sync-state .lucide-refresh-cw{animation:sync-spin 1.2s linear infinite}.sync-overview strong{font-size:15px}.sync-overview small{font-size:11px;color:var(--muted)}.sync-error{margin:13px 0;display:flex;gap:8px;align-items:flex-start;background:#fff1ef;color:var(--danger);padding:11px;border-radius:9px;font-size:13px}.sync-actions{margin-top:15px}.conflict-section{margin-top:8px}.sync-conflict-card{padding:18px;margin-bottom:12px}.sync-conflict-card>header{display:flex;justify-content:space-between;gap:12px}.sync-conflict-card>header>div{display:flex;align-items:center;gap:8px;color:#956129}.sync-conflict-card>header>span{font-size:12px;color:var(--muted)}.sync-conflict-card>p{font-size:13px;color:var(--muted);line-height:1.7;margin:12px 0}.conflict-versions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.conflict-versions details{border:1px solid var(--line);border-radius:9px;overflow:hidden}.conflict-versions summary{padding:10px 12px;cursor:pointer;color:var(--accent);font-size:13px}.conflict-versions pre{margin:0;padding:12px;background:#f6f7f4;max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.sync-conflict-card>footer{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}@media(max-width:740px){.mobile-sync{position:fixed;display:flex;align-items:center;gap:5px;right:12px;top:max(10px,env(safe-area-inset-top));z-index:45;border:1px solid var(--line);border-radius:999px;background:#fffffff0;box-shadow:0 4px 14px #2d3e3414;padding:7px 10px;font-size:11px;color:var(--accent)}.mobile-sync .lucide-refresh-cw{animation:sync-spin 1.2s linear infinite}.cloud-card{padding:17px}.cloud-unconfigured{display:grid}.cloud-login,.migration-summaries,.sync-overview,.conflict-versions{grid-template-columns:1fr}.cloud-login>.button{width:100%}.backup-gate{align-items:stretch;flex-direction:column}.migration-actions>.button,.migration-actions>.text-button{width:100%;justify-content:center}.sync-conflict-card>header{display:grid}.sync-conflict-card>footer{display:grid}.sync-conflict-card>footer .button{width:100%}}
