:root{--font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;--ease-out: cubic-bezier(.23, 1, .32, 1);--ease-spring: cubic-bezier(.22, 1.15, .36, 1);--ease-drawer: cubic-bezier(.32, .72, 0, 1);--accent: #2f7cf6;--check-fill: #4b8df8;--check-border: #b8c0cc;--accent-surface: rgba(47, 124, 246, .12);--accent-border: rgba(47, 124, 246, .34);--deadline: #e33d45;--deadline-surface: rgba(227, 61, 69, .11);--inbox: #2f80ed;--backlog: #d9b56a;--log: #3ec46d;--trash: #8f949e;--area: #6ec29d;--warning: #ff9500;--bg-content: #ffffff;--bg-home: #f2f3f7;--bg-sidebar: #f3f4f6;--bg-surface: #ffffff;--bg-elevated: rgba(255, 255, 255, .88);--bg-home-top: rgba(242, 243, 247, .9);--bg-card: rgba(24, 30, 42, .045);--bg-hover: rgba(24, 30, 42, .045);--bg-selection: rgba(24, 30, 42, .08);--bg-pill: rgba(255, 255, 255, .9);--text-primary: #1c1c1e;--text-secondary: #6c727e;--text-tertiary: #9aa1ae;--separator: rgba(60, 60, 67, .12);--border-subtle: rgba(18, 22, 32, .08);--border-strong: rgba(18, 22, 32, .15);--shadow-card: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 26px rgba(15, 23, 42, .11);--shadow-popover: 0 12px 34px rgba(15, 20, 30, .15), 0 1px 4px rgba(15, 20, 30, .07);--shadow-fab: 0 6px 20px rgba(47, 124, 246, .36), 0 2px 6px rgba(15, 20, 30, .12);--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px)}html[data-theme=dark]{--accent: #5c94f5;--check-fill: #5c94f5;--check-border: #59606e;--accent-surface: rgba(92, 148, 245, .16);--bg-content: #1d1f23;--bg-home: #131417;--bg-sidebar: #16181c;--bg-surface: #262930;--bg-elevated: rgba(29, 31, 35, .88);--bg-home-top: rgba(19, 20, 23, .9);--bg-card: rgba(255, 255, 255, .06);--bg-hover: rgba(255, 255, 255, .055);--bg-selection: rgba(255, 255, 255, .1);--bg-pill: rgba(38, 41, 48, .88);--text-primary: #eef0f4;--text-secondary: #949ba8;--text-tertiary: #666d7a;--separator: rgba(255, 255, 255, .085);--border-subtle: rgba(255, 255, 255, .08);--border-strong: rgba(255, 255, 255, .16);--shadow-card: 0 2px 6px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .45);--shadow-popover: 0 16px 40px rgba(0, 0, 0, .5), 0 1px 4px rgba(0, 0, 0, .3);--shadow-fab: 0 8px 24px rgba(32, 92, 204, .44), 0 2px 6px rgba(0, 0, 0, .38)}*,*:before,*:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0;padding:0;background:var(--bg-content);color:var(--text-primary);font-family:var(--font-sans);font-size:15px;line-height:1.4;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}button,input,textarea,select{font-family:inherit;color:inherit}button{background:none;border:0;padding:0;cursor:pointer}.tap-btn{transition:transform .12s var(--ease-out),background-color .14s ease,opacity .14s ease}.tap-btn:active:not(:disabled){transform:scale(.97)}.tap-btn:disabled{opacity:.45;cursor:default}.app-shell{display:flex;height:100%;width:100%;overflow:hidden;background:var(--bg-content)}.sidebar-pane{width:264px;flex:0 0 264px;background:var(--bg-sidebar);border-right:.5px solid var(--separator);display:flex;flex-direction:column;height:100%;overflow:hidden}.detail-pane{flex:1 1 auto;min-width:0;height:100%;display:flex;flex-direction:column;position:relative;background:var(--bg-content)}@media(max-width:819px){.sidebar-pane{width:100%;flex:1 1 100%;border-right:none;background:var(--bg-home)}.sidebar-pane.mobile-hidden,.detail-pane.mobile-hidden{display:none}}.detail-topbar{position:sticky;top:0;z-index:20;padding:calc(var(--safe-top) + 6px) 16px 6px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;background:var(--bg-elevated);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.topbar-left{display:flex;align-items:center;gap:6px;min-width:0}.topbar-back{display:none;align-items:center;gap:2px;height:36px;padding:0 10px 0 4px;margin-left:-6px;border-radius:999px;color:var(--accent);font-size:16px;font-weight:500}@media(max-width:819px){.topbar-back{display:inline-flex}}.topbar-back:hover{background:var(--bg-hover)}.topbar-right{display:flex;align-items:center;gap:4px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;color:var(--text-secondary)}.icon-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.text-action-btn{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 11px;border-radius:999px;font-size:13px;font-weight:500;color:var(--accent);background:var(--accent-surface)}.text-action-btn.neutral{color:var(--text-secondary);background:var(--bg-card)}.text-action-btn.danger{color:var(--deadline);background:var(--deadline-surface)}.detail-scroll{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:6px 18px calc(130px + var(--safe-bottom))}.detail-inner{max-width:740px;margin:0 auto}@media(min-width:820px){.detail-scroll{padding:8px 40px calc(120px + var(--safe-bottom))}}.screen-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.screen-title-left{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.screen-title{margin:0;font-size:27px;font-weight:700;letter-spacing:-.025em;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editable-title-input{font-size:26px;font-weight:700;letter-spacing:-.025em;border:0;background:transparent;outline:none;width:100%;padding:0}.sync-pill{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:999px;background:var(--bg-card);font-size:12px;font-weight:500;color:var(--text-secondary);font-variant-numeric:tabular-nums}.sync-dot{width:7.5px;height:7.5px;border-radius:999px;background:var(--log)}.sync-dot.syncing{background:var(--accent);animation:pulse-dot 1s ease-in-out infinite}.sync-dot.offline{background:var(--warning)}@keyframes pulse-dot{0%,to{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.8)}}.sidebar-scroll{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:calc(var(--safe-top) + 10px) 12px 24px}.sidebar-search-btn{width:100%;height:36px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 12px;border-radius:10px;background:var(--bg-card);color:var(--text-tertiary);font-size:14px;font-weight:500;margin-bottom:14px}@media(max-width:819px){.sidebar-scroll{padding:calc(var(--safe-top) + 12px) 16px 24px}.sidebar-search-btn{background:var(--bg-surface);box-shadow:0 1px 2px #0000000a;margin-bottom:16px}}.sidebar-group{display:flex;flex-direction:column;margin-bottom:14px}@media(max-width:819px){.sidebar-group{background:var(--bg-surface);border-radius:13px;overflow:hidden;box-shadow:0 1px 2px #0000000a;margin-bottom:12px}}.sidebar-item{width:100%;min-height:34px;display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:8px;font-size:14.5px;font-weight:500;color:var(--text-primary);text-align:left;position:relative}.sidebar-item:hover{background:var(--bg-hover)}.sidebar-item.active{background:var(--bg-selection)}.sidebar-item.indented{padding-left:28px}@media(max-width:819px){.sidebar-item{min-height:46px;padding:8px 14px;gap:12px;border-radius:0;font-size:16px;font-weight:400}.sidebar-item+.sidebar-item:before,.sidebar-area-header+.sidebar-item:before{content:"";position:absolute;top:0;left:46px;right:0;height:.5px;background:var(--separator)}.sidebar-item.indented{padding-left:16px}.sidebar-item.active{background:transparent}}.sidebar-item-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-count{font-size:14px;font-weight:400;color:var(--text-tertiary);font-variant-numeric:tabular-nums}.sidebar-area-header{display:flex;align-items:center;gap:6px;min-height:34px;padding:5px 8px 5px 4px;border-radius:8px;position:relative}.sidebar-area-header:hover{background:var(--bg-hover)}.sidebar-area-header.active{background:var(--bg-selection)}@media(max-width:819px){.sidebar-area-header{min-height:46px;padding:8px 14px 8px 12px;border-radius:0}.sidebar-area-header.active{background:transparent}}.sidebar-footer{padding:10px 14px calc(10px + var(--safe-bottom));display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--bg-sidebar);border-top:.5px solid var(--separator)}@media(max-width:819px){.sidebar-footer{background:var(--bg-home);border-top:none;justify-content:flex-start;gap:10px;padding:10px 84px calc(18px + var(--safe-bottom)) 18px}}.home-new-list-btn{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:500;color:var(--text-secondary);padding:6px 4px}.task-list{display:flex;flex-direction:column}.task-row-wrap{border-radius:8px;transition:background-color .12s ease}.task-row-wrap:hover{background:var(--bg-hover)}.task-row{display:flex;align-items:flex-start;gap:4px;padding:3px 6px 3px 2px;min-height:42px}.checkbox-hit{width:34px;height:34px;margin-top:1px;flex:0 0 34px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px}.task-main-hit{flex:1 1 auto;min-width:0;padding:7px 0;display:flex;align-items:baseline;justify-content:space-between;gap:8px;text-align:left}.task-main-left{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}.task-title-line{display:flex;align-items:center;gap:6px}.task-title{font-size:15.5px;line-height:1.35;color:var(--text-primary);word-break:break-word}.task-title.completed{color:var(--text-secondary)}.task-subtitle{font-size:12.5px;color:var(--text-tertiary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-indicators{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;font-size:12px;color:var(--text-tertiary)}.task-meta-chip{display:inline-flex;align-items:center;gap:3px}.task-focus-dot{width:6px;height:6px;border-radius:999px;background:var(--accent);flex:0 0 6px}.deadline-badge{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:500;color:var(--text-secondary);white-space:nowrap}.deadline-badge.overdue{color:var(--deadline)}.inline-checklist{padding:0 12px 8px 40px;display:flex;flex-direction:column;gap:3px}.inline-check-item{display:flex;align-items:center;gap:8px;min-height:28px;font-size:14px;color:var(--text-primary);text-align:left}.inline-check-item.done{color:var(--text-tertiary)}.task-card-expanded{margin:8px -6px 12px;padding:12px 14px 10px;background:var(--bg-surface);border-radius:14px;box-shadow:var(--shadow-card);border:.5px solid var(--border-subtle);animation:card-expand .2s var(--ease-out)}@keyframes card-expand{0%{opacity:.85;transform:scale(.985)}to{opacity:1;transform:scale(1)}}.card-title-row{display:flex;align-items:flex-start;gap:4px}.card-title-input{flex:1;min-width:0;border:0;background:transparent;outline:none;font-size:16px;font-weight:500;line-height:1.38;padding:6px 0 4px;color:var(--text-primary)}.card-body-indent{padding-left:38px}.card-notes-input{width:100%;border:0;background:transparent;outline:none;resize:none;font-size:14.5px;line-height:1.48;padding:2px 0 8px;color:var(--text-primary)}.card-notes-input::placeholder,.card-title-input::placeholder{color:var(--text-tertiary)}.card-tags-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.card-tag-pill{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 9px;border-radius:7px;background:var(--bg-card);font-size:12.5px;font-weight:500;color:var(--text-secondary)}.card-tag-pill.overdue{background:var(--deadline-surface);color:var(--deadline)}.card-checklist{border-top:.5px solid var(--separator);margin:4px 0 8px}.card-check-row{display:flex;align-items:center;gap:8px;min-height:36px;border-bottom:.5px solid var(--separator)}.card-check-circle{width:15px;height:15px;border-radius:999px;flex:0 0 15px;display:inline-flex;align-items:center;justify-content:center;border:1.4px solid var(--check-border)}.card-check-circle.done{border-color:transparent;background:var(--check-fill)}.card-check-input{flex:1;min-width:0;border:0;background:transparent;outline:none;font-size:14.5px}.card-check-input.done{color:var(--text-tertiary)}.card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:4px;padding-top:8px;margin-top:4px;border-top:.5px solid var(--separator)}.card-toolbar-icons{display:flex;align-items:center;gap:2px}.card-done-btn{font-size:14px;font-weight:600;color:var(--accent);padding:6px 8px;border-radius:8px}.card-done-btn:hover{background:var(--accent-surface)}.section-heading{margin-top:22px;margin-bottom:6px}.things-heading-row{display:flex;align-items:center;gap:6px;padding:5px 4px;border-bottom:1.5px solid;margin-bottom:4px}.things-heading-title{flex:1;min-width:0;font-size:15px;font-weight:700;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.section-heading-count{font-size:12px;font-weight:600;color:var(--text-tertiary);font-variant-numeric:tabular-nums}.things-tabs{display:flex;align-items:center;gap:20px;border-bottom:.5px solid var(--separator);margin:4px 0 14px}.things-tab{position:relative;padding:8px 2px 10px;font-size:14px;font-weight:600;color:var(--text-tertiary);transition:color .14s ease}.things-tab.active{color:var(--text-primary)}.things-tab.active:after{content:"";position:absolute;left:0;right:0;bottom:-.5px;height:2px;border-radius:2px;background:var(--accent)}.project-notes-input{width:100%;border:0;background:transparent;resize:none;outline:none;font-size:14.5px;line-height:1.48;color:var(--text-secondary);padding:2px 0 6px}.project-notes-input::placeholder{color:var(--text-tertiary)}.floating-dock{position:fixed;right:18px;bottom:calc(18px + var(--safe-bottom));left:18px;z-index:35;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;pointer-events:none}@media(min-width:820px){.floating-dock{left:284px;right:28px}}.floating-dock>*{pointer-events:auto}.working-on-wrap{position:relative;flex:0 1 360px;min-width:0}.working-on-surface{background:var(--bg-pill);border:.5px solid var(--border-subtle);border-radius:16px;box-shadow:var(--shadow-popover);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);overflow:hidden}.working-on-queue{border-bottom:.5px solid var(--separator);padding:6px 8px;max-height:240px;overflow-y:auto}.working-on-current{display:flex;align-items:center;gap:6px;min-height:48px;padding:5px 12px 5px 6px}.working-on-caption{font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--accent)}.working-on-title{font-size:14px;font-weight:500;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.working-on-badge{font-size:12px;font-weight:600;color:var(--text-secondary);background:var(--bg-card);padding:2px 7px;border-radius:999px;font-variant-numeric:tabular-nums}.fab-add{width:54px;height:54px;flex:0 0 54px;margin-left:auto;border-radius:999px;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:var(--shadow-fab)}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#00000057;display:flex;align-items:flex-end;justify-content:center;animation:fade-in .18s var(--ease-out)}@media(min-width:720px){.sheet-backdrop{align-items:center;padding:24px}}.sheet-panel{width:100%;max-width:520px;max-height:88dvh;background:var(--bg-surface);border-radius:18px 18px 0 0;box-shadow:var(--shadow-popover);display:flex;flex-direction:column;overflow:hidden;padding-bottom:var(--safe-bottom);animation:slide-up .22s var(--ease-drawer)}@media(min-width:720px){.sheet-panel{border-radius:14px;max-height:84dvh;padding-bottom:0}}.sheet-handle{width:36px;height:4px;border-radius:999px;background:var(--border-strong);margin:8px auto 2px}@media(min-width:720px){.sheet-handle{display:none}}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px 10px;border-bottom:.5px solid var(--separator)}.sheet-title{margin:0;font-size:16px;font-weight:600}.sheet-body{flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 16px 18px;display:flex;flex-direction:column;gap:14px}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes slide-up{0%{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}.field-label{font-size:12px;font-weight:600;color:var(--text-secondary);margin-bottom:6px;display:block}.card-box{background:var(--bg-card);border-radius:12px;padding:10px 12px}.text-input{width:100%;border:.5px solid var(--border-subtle);background:var(--bg-content);border-radius:10px;padding:10px 12px;font-size:15px;outline:none}.text-input:focus{border-color:var(--accent)}.sheet-list-row{width:100%;min-height:44px;display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;font-size:15px;text-align:left}.sheet-list-row:hover{background:var(--bg-hover)}.sheet-list-row.selected{background:var(--accent-surface);color:var(--accent);font-weight:600}.chip-row{display:flex;flex-wrap:wrap;gap:6px}.chip-btn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 11px;border-radius:999px;background:var(--bg-card);font-size:13px;font-weight:500;color:var(--text-primary)}.chip-btn.selected{background:var(--accent-surface);color:var(--accent)}.primary-btn{width:100%;min-height:44px;border-radius:11px;background:var(--accent);color:#fff;font-size:15px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px}.secondary-btn{width:100%;min-height:44px;border-radius:11px;background:var(--bg-card);color:var(--text-primary);font-size:15px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px}.danger-btn{width:100%;min-height:44px;border-radius:11px;background:var(--deadline-surface);color:var(--deadline);font-size:15px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px}.color-swatch-row{display:flex;align-items:center;gap:10px}.color-swatch{width:26px;height:26px;border-radius:999px}.color-swatch.selected{box-shadow:0 0 0 2px var(--bg-surface),0 0 0 4px var(--text-primary)}.empty-state{text-align:center;padding:72px 24px 32px;color:var(--text-secondary)}.empty-state-icon{color:var(--text-tertiary);opacity:.55;margin-bottom:10px;display:flex;justify-content:center}.empty-state-title{font-size:16px;font-weight:600;color:var(--text-secondary);margin:0 0 4px}.empty-state-hint{font-size:13px;color:var(--text-tertiary);margin:0}.auth-screen{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px 18px;background:var(--bg-home)}.auth-card{width:100%;max-width:390px;background:var(--bg-surface);border-radius:20px;padding:28px 22px 24px;box-shadow:var(--shadow-card);border:.5px solid var(--border-subtle);display:flex;flex-direction:column;gap:16px}.attachments-grid{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.attachment-thumb{position:relative;width:72px;height:72px;border-radius:10px;overflow:hidden;background:var(--bg-card);border:.5px solid var(--border-subtle)}.attachment-thumb img{width:100%;height:100%;object-fit:cover;display:block}.attachment-delete{position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:999px;background:#000000a6;color:#fff;display:flex;align-items:center;justify-content:center}.toast-banner{position:fixed;top:calc(var(--safe-top) + 12px);left:50%;transform:translate(-50%);z-index:100;padding:8px 16px;border-radius:999px;background:var(--text-primary);color:var(--bg-content);font-size:13px;font-weight:600;box-shadow:var(--shadow-popover);animation:fade-in .15s var(--ease-out)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}}
