:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#eaf0f8;background:#0c1119;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;min-height:100vh;background:#0c1119}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #a7c0e4;outline-offset:2px}a{color:#a9c8f4}p{margin:0}.app{min-height:100vh;display:flex;max-width:1460px;margin:auto}.sidebar{width:224px;flex-shrink:0;background:#111824;border-right:1px solid #253144;display:flex;flex-direction:column;padding:27px 13px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 38px}.brand-logo{width:37px;height:37px;display:grid;place-items:center;border-radius:12px;font-size:20px;font-weight:650;color:#f3f7ff;background:linear-gradient(145deg,#6586b7,#233850);box-shadow:0 3px 15px #0002}.brand-name{font-size:15px;font-weight:660;letter-spacing:.01em}.brand-sub{font-size:9px;letter-spacing:.14em;color:#8292aa;margin-top:4px}.nav{border:0;background:transparent;color:#8f9eb5;border-radius:11px;padding:12px 13px;display:flex;align-items:center;gap:13px;text-align:left;width:100%;font-size:13px;font-weight:550;margin:2px 0;transition:background .15s,color .15s}.nav:hover{background:#1c2939}.nav.active{background:#283a52;color:#e8f1ff}.nav svg,.bottom-nav svg{width:19px;height:19px;flex-shrink:0}.sidebar-footer{margin-top:auto;padding:16px 12px;border-top:1px solid #293446;display:flex;flex-direction:column;gap:10px}.sidebar-footer .secondary{width:100%}.main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{max-width:990px;width:100%;margin:0 auto;padding:40px 42px 6px;display:flex;justify-content:space-between;align-items:center;gap:16px}.eyebrow{font-size:10px;color:#7889a1;letter-spacing:.17em;font-weight:600;margin:0 0 7px}:is(.page-title,.page-preview-title){font-size:27px;line-height:1.25;letter-spacing:-.04em;font-weight:650;margin:0}.top-actions{display:flex;align-items:center;gap:8px}.icon-button{width:38px;height:38px;display:grid;place-items:center;border:1px solid #344054;border-radius:11px;background:#172232;color:#adc0dd}.icon-button svg{width:18px;height:18px}:is(.body-content,.page-preview-body){max-width:990px;width:100%;margin:0 auto;padding:22px 42px 64px;display:flex;flex-direction:column;gap:22px;flex:1}.section{display:flex;flex-direction:column;gap:11px}.section-heading{font-size:14px;font-weight:640;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0;color:#edf2fa}.section-meta{font-size:11px;color:#8498b3;font-weight:450}.capture{background:#192434;border:1px solid #2c3e53;border-radius:14px;padding:10px 11px}.capture-main{display:flex;gap:8px;align-items:center}.capture-input{background:transparent;border:0;min-width:0;flex:1;padding:9px 6px;color:#edf3fc;font-size:14px;outline:0}.capture-input::placeholder,.field::placeholder{color:#778aa5}.square{height:36px;min-width:36px;border:1px solid #415570;background:#273950;color:#bfd0e8;border-radius:9px;display:grid;place-items:center}.square svg{width:18px;height:18px}.primary{border:1px solid #668abf;background:#5c80b4;color:#fff;font-weight:620;border-radius:9px;padding:10px 15px;font-size:12px;min-height:36px}.primary:hover{background:#688dc6}.secondary{border:1px solid #3a4b62;background:#253349;color:#c6d5e9;border-radius:9px;padding:9px 12px;font-size:12px}.subtle-button{border:0;background:transparent;color:#9ab6de;padding:7px 0;font-size:12px}.choice-list{display:flex;flex-wrap:wrap;gap:7px;padding:9px 2px 2px}.choice{padding:8px 12px;border:1px solid #354961;background:#223147;border-radius:8px;font-size:12px;color:#c4d1e5}.choice.selected{border-color:#6d91c0;background:#385678;color:#f2f7ff}.capture-kind{font-size:11px;color:#9bb7dc;padding:6px 4px 0}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px 0 19px;border-bottom:1px solid #283548}.stat{display:flex;flex-direction:column;align-items:center;gap:6px}.stat-number{font-size:23px;font-weight:550;color:#dce6f6;letter-spacing:-.045em;font-variant-numeric:tabular-nums}.stat-label{font-size:11px;color:#8193ac}.list{display:flex;flex-direction:column;gap:7px}.task-row{display:flex;align-items:center;gap:12px;background:#1b2533;border:0;border-radius:11px;color:#edf3f9;width:100%;min-height:49px;padding:12px;text-align:left;user-select:none;-webkit-user-select:none;touch-action:pan-y}.task-row:hover{background:#233045}.task-row.done{background:#161e29;color:#8192a8}.task-row.done .task-title{text-decoration:line-through}.check{height:19px;width:19px;border:1.5px solid #899bb3;border-radius:50%;display:grid;place-items:center;font-size:12px;flex-shrink:0}.task-row.done .check{background:#5b80b8;color:white;border-color:#5b80b8}.task-title{flex:1;min-width:0;font-size:13px;line-height:1.55}.task-project{font-size:10px;color:#8b9eb7;max-width:130px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.goal{overflow:hidden;border:1px solid #2b384c;border-radius:12px;background:#182333}.goal-button{border:0;display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:59px;padding:0 15px;position:relative;isolation:isolate;color:#f7f9fc;font-weight:650;font-size:13px;text-align:left;overflow:hidden}.goal-button span{position:relative;z-index:1}.goal-fill{position:absolute;inset:0 auto 0 0;z-index:-1;transition:width .22s ease}.goal-steps{padding:9px;display:flex;flex-direction:column;gap:7px}.meters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.meter{position:relative;isolation:isolate;overflow:hidden;height:59px;border-radius:11px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;gap:5px;color:#f1f5fb;font-size:12px;font-weight:650;font-variant-numeric:tabular-nums}.meter-fill{position:absolute;z-index:-1;inset:0 auto 0 0}.tile{background:#1a2533;border:1px solid #2b3a4c;border-radius:12px;overflow:hidden}.tile-head{width:100%;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:transparent;border:0;color:#eff3f9;text-align:left;font-size:13px;font-weight:580}.tile-body{padding:0 15px 15px;display:flex;flex-direction:column;gap:11px}.summary{font-size:12px;color:#acbbcd;line-height:1.75}.muted{font-size:12px;color:#8598b1}.tag-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.tag{font-size:11px;color:#a6bddb;background:#26354a;padding:6px 9px;border-radius:7px;border:1px solid transparent;white-space:nowrap}.tag.clickable{cursor:pointer}.tag.active{background:#3b587a;border-color:#6c8db8;color:#edf5ff}.tag.mini{background:transparent;padding:2px;color:#9aaed0}.search-bar{display:flex;align-items:center;gap:10px;background:#1a2533;border:1px solid #2b3c50;border-radius:11px;padding:12px 13px;color:#95aaca}.search-bar svg{height:17px;width:17px}.search-bar input{min-width:0;width:100%;background:transparent;border:0;outline:0;color:#ecf3fd;font-size:13px}.search-bar input::placeholder{color:#8495a9}.muted-block{padding:26px 10px;text-align:center;border:1px dashed #38485e;border-radius:12px;color:#889bb2;font-size:12px}.project-row{background:#192432;border:1px solid #2e3c50;border-radius:12px;overflow:hidden}.project-head{border:0;background:transparent;color:#edf4fb;display:flex;align-items:center;gap:12px;justify-content:space-between;text-align:left;width:100%;padding:14px}.project-title{font-size:14px;font-weight:600}.project-meta{font-size:11px;color:#92a4bd;margin-top:7px}.project-progress{height:4px;background:#324357;border-radius:10px;overflow:hidden;margin-top:10px}.project-progress>div{height:100%;background:#6789bd;transition:width .2s}.project-body{border-top:1px solid #2c3b4d;margin:0 10px;padding:10px 0;display:flex;flex-direction:column;gap:7px}.inline-form{display:flex;gap:8px}.inline-form .field{flex:1;min-width:0}.field{background:#152131;border:1px solid #3a4e68;border-radius:9px;padding:11px 12px;color:#edf3fb;font-size:13px;width:100%;outline:0}.field-label{display:block;color:#a1b1c7;font-size:11px;margin-bottom:7px}.form-group{display:flex;flex-direction:column;gap:0}.divider{height:1px;background:#2d3b50}.row{display:flex;align-items:center;gap:10px}.spread{display:flex;justify-content:space-between;align-items:center;gap:12px}.more-entry{border:1px solid #2e3e53;background:#1b2634;color:#e8f0f9;border-radius:11px;padding:13px 14px;display:flex;gap:12px;align-items:center;text-align:left;width:100%}.more-entry svg{height:19px;width:19px;color:#a6b8d0}.more-entry span{flex:1;font-size:13px}.more-entry small{color:#8da0ba;font-size:11px}.modal-backdrop{position:fixed;inset:0;z-index:20;background:#05080ed9;display:flex;align-items:center;justify-content:center;padding:18px}.modal{background:#202c3c;border:1px solid #42536a;border-radius:17px;width:min(440px,100%);max-height:min(88vh,700px);overflow-y:auto;padding:22px;box-shadow:0 24px 65px #0008;display:flex;flex-direction:column;gap:17px}.modal-title{font-size:16px;font-weight:650}.modal-form{display:flex;flex-direction:column;gap:15px}.modal-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.modal-actions .right{display:flex;gap:8px}.danger{border:0;background:transparent;color:#d99098;font-size:12px;padding:9px 3px}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(430px,100%);background:#162131;border:1px solid #2d3b51;border-radius:18px;padding:29px;display:flex;flex-direction:column;gap:18px}.auth-title{font-size:22px;font-weight:640}.notice{background:#1f3145;border:1px solid #3b546c;border-radius:10px;color:#bad0ea;padding:11px 14px;font-size:12px;line-height:1.7}.error{background:#3d2630;color:#f0b9c2;border:1px solid #66404b}.toast{position:fixed;bottom:88px;right:22px;z-index:60;background:#263951;border:1px solid #54769e;color:#eaf2fc;padding:12px 15px;border-radius:10px;box-shadow:0 8px 35px #0006;font-size:12px;max-width:310px}.bottom-nav{display:none}.loading{min-height:100vh;display:grid;place-items:center;color:#9babbe}.loader{width:25px;height:25px;border:2px solid #405473;border-top-color:#aac6ee;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.home-project-link{display:flex;align-items:center;gap:12px;padding:14px 15px;border:1px solid #2e3b4b;background:#192333;color:#eaf1fa;border-radius:11px;width:100%;text-align:left}.home-project-link svg{height:19px;width:19px;color:#9bafd0}.home-project-link span{flex:1;font-size:13px}.home-project-link small{color:#8196b0;font-size:11px}.status-row{display:flex;justify-content:space-between;align-items:center;gap:9px}.option-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pwa-hint{color:#75869b;font-size:11px;line-height:1.6}.view-label{color:#8a9cb5;font-size:11px}.no-wrap{white-space:nowrap}.overlay-only{display:none}@media(max-width:760px),(max-width:1000px) and (pointer:coarse){.sidebar{display:none}.app{display:block;padding-bottom:69px}.topbar{padding:22px 18px 4px}:is(.body-content,.page-preview-body){padding:18px 16px 35px;gap:20px}:is(.page-title,.page-preview-title){font-size:24px}.bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));bottom:0;left:0;right:0;z-index:10;background:#111a26;border-top:1px solid #2b384c;padding:5px 5px 4px;box-shadow:0 -12px 26px #0003}.bottom-nav button{border:0;background:transparent;color:#8b9cb2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;padding:5px 2px;min-height:44px;border-radius:9px}.bottom-nav button.active{color:#bcd5ff}.modal-backdrop{padding:0;align-items:flex-end}.modal{max-height:88vh;width:100%;border-radius:19px 19px 0 0;padding:21px 19px calc(22px + env(safe-area-inset-bottom))}.toast{right:12px;left:12px;bottom:93px;max-width:none}}@media(max-width:370px){.task-project{max-width:70px}.meter{padding:0 7px;font-size:11px}.stat-number{font-size:21px}.capture{padding:9px}.capture-input{font-size:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Mobile app frame: the document stays still; lists and sheets own their scroll. */
button{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}
.task-row{touch-action:pan-y pinch-zoom}
.modal{overscroll-behavior-y:contain}
@media(max-width:760px),(max-width:1000px) and (pointer:coarse){
 html,body{height:100%;width:100%;overflow:hidden;overscroll-behavior:none}
 body{position:fixed;inset:0}
 #root{position:relative;height:var(--app-height,100%);width:100%;overflow:hidden;--mobile-nav-height:54px;--mobile-nav-offset:22px}
 .app{height:100%;min-height:0;display:flex;padding:0;overflow:hidden}
 .main{height:100%;min-height:0;padding-bottom:calc(var(--mobile-nav-height) + var(--mobile-nav-offset) + 12px);overflow:hidden}
 .topbar{flex-shrink:0;padding-top:calc(22px + env(safe-area-inset-top));padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right));padding-bottom:10px}
 :is(.body-content,.page-preview-body){flex:1;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;padding-bottom:24px;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 .bottom-nav{position:fixed;height:var(--mobile-nav-height);bottom:var(--mobile-nav-offset);left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));padding:4px;gap:2px;border:1px solid #303034;border-radius:28px;box-shadow:none}
 .capture-input,.field,.search-bar input{font-size:16px}
 .task-title,.project-title,.tile-head,.summary{overflow-wrap:anywhere}
 .modal-backdrop{position:fixed;inset:auto 0 auto;top:var(--keyboard-offset-top,0px);height:var(--app-height,100dvh);overscroll-behavior:none}
 .modal{max-height:calc(var(--app-height,100dvh) - max(12px,env(safe-area-inset-top)));overscroll-behavior:contain;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch}
 #root:has(.modal-backdrop) :is(.body-content,.page-preview-body){overflow-y:hidden}
 .auth-screen{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;align-items:center;padding:max(20px,env(safe-area-inset-top)) 20px max(20px,env(safe-area-inset-bottom))}
 .auth-card{flex-shrink:0;margin:auto 0}
 .loading{min-height:100%}
 .toast{position:absolute;bottom:calc(var(--mobile-nav-height) + var(--mobile-nav-offset) + 12px)}
 .keyboard-open .bottom-nav{display:none}
 .keyboard-open .main{padding-bottom:0}
 .keyboard-open .toast{bottom:12px}
}

/* Full installed-app frame, confirmed on the user's iPhone 11 / iOS 26.2. */
@media(max-width:760px),(max-width:1000px) and (pointer:coarse){
 .installed-full-height,.installed-full-height body{height:var(--app-height,100vh);min-height:0}
 .installed-full-height .bottom-nav{position:absolute}
}

/* The viewport contains one live page and at most one inert animation copy. */
.page-viewport,.page-screen{display:flex;flex:1;min-width:0;flex-direction:column}
.page-viewport{position:relative}.page-ghost{position:absolute;inset:0;pointer-events:none}
.keyboard-dismiss{display:none}.modal-header{position:sticky;top:0;z-index:2;flex-shrink:0;background:var(--app-surface)}
.modal-title{flex:1}.modal-header .icon-button{flex-shrink:0}
@media(max-width:760px),(max-width:1000px) and (pointer:coarse){
 .page-viewport{min-height:0;overflow:hidden}.page-screen{height:100%;min-height:0;width:100%;flex-shrink:0;background:var(--app-bg)}
 .page-viewport.is-paging .page-screen{border-radius:12px;overflow:hidden}
 .modal:focus-within .keyboard-dismiss,.keyboard-open .modal .keyboard-dismiss{display:block;flex-shrink:0;min-height:44px;padding:8px 10px;font-size:12px}
}
