:root{--ink:#263445;--muted:#707c8c;--blue:#355fa0;--blue-soft:#e6edf9;--canvas:#f3f6f9;--line:#e2e7ee;--white:#fff;--red:#a84d45;font-family:'Avenir Next',Avenir,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--canvas)}button,input,textarea,select{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9bb6e5;outline-offset:3px}a{color:var(--blue);text-decoration:none}input,select,textarea{border:1px solid #d7dfe8;background:#fff;border-radius:6px;padding:10px 12px;max-width:100%;min-width:0}textarea{resize:vertical;line-height:1.5}input[type=checkbox]{accent-color:var(--blue);width:15px;height:15px;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:600;letter-spacing:-1px;line-height:1.25}h2{font-size:18px;font-weight:600;letter-spacing:-.3px}h3{font-size:15px;font-weight:600}h2>span,h3>span{font-size:13px;color:var(--muted);font-weight:400;margin-left:6px}.muted{color:var(--muted);line-height:1.6}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:9px 16px;border:1px solid #ccd6e3;border-radius:7px;background:#fff;font-weight:500;white-space:nowrap}.button:hover{background:#f7f9fc;border-color:#aabbd3}.button.primary{color:#fff;background:var(--blue);border-color:var(--blue)}.button.primary:hover{background:#294e86}.button.small{font-size:12px;padding:7px 10px;min-height:34px}.plain-button{padding:8px 11px;font-weight:500}.icon-button{width:33px;height:33px;display:inline-flex;align-items:center;justify-content:center;font-size:22px;border-radius:6px;flex-shrink:0}.icon-button:hover,.plain-button:hover{background:var(--blue-soft)}.text-link{color:var(--blue);padding:6px 0;font-size:13px;text-align:left}.text-link:hover{text-decoration:underline}.sidebar{width:222px;position:fixed;inset:0 auto 0 0;background:#f9fafc;border-right:1px solid var(--line);padding:28px 18px 20px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-size:20px;font-weight:650;margin:0 9px 38px;letter-spacing:-.6px}.brand-mark,.logo-mark{width:38px;height:38px;display:inline-flex;justify-content:center;align-items:center;background:var(--blue);color:#fff;border-radius:11px;font-size:26px;font-weight:600;letter-spacing:-2px;padding-right:2px}.brand small{display:block;color:var(--muted);font-size:10px;font-weight:400;letter-spacing:0;margin-top:4px}.sidebar nav{display:grid;gap:4px}.nav-item{display:flex;align-items:center;gap:12px;min-height:42px;text-align:left;padding:9px 12px;border-radius:7px;color:#637084;font-weight:500}.nav-item:hover{background:#edf1f7}.nav-item.active{background:var(--blue-soft);color:var(--blue);font-weight:600}.nav-icon{font-size:20px;width:20px;text-align:center;font-weight:400;line-height:20px}.nav-count{font-size:11px;margin-left:auto;min-width:22px;text-align:center;color:#8090a7}.sidebar-projects{margin:29px 10px 12px;overflow:auto}.section-label{font-size:12px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.project-link{display:flex;gap:9px;align-items:center;padding:8px 0;width:100%;text-align:left;color:#627084;font-size:12px}.project-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-link:hover{color:var(--blue)}.project-dot{display:inline-block;background:var(--project-color,#668371);width:6px;height:6px;border-radius:50%;flex-shrink:0}.sidebar-bottom{margin-top:auto;padding:16px 10px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:grid;gap:10px}.connection{display:flex;align-items:center;gap:7px}.connection i{width:6px;height:6px;background:#62917a;border-radius:50%}.sidebar-bottom small{font-size:10px;color:#8a96a5}.export-link{color:#66768d}.main{margin-left:222px;min-height:100vh;display:flex;flex-direction:column;min-width:0}.topbar{height:83px;border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between;background:#fff;gap:16px}.breadcrumb{font-size:12px;color:#6e7d91;white-space:nowrap}.breadcrumb span{margin:0 13px;color:#c5cdd7}.top-actions{display:flex;align-items:center;gap:18px}.search{display:flex;align-items:center;gap:6px;font-size:23px;color:#8b98aa}.search input{border:0;background:transparent;padding:8px 4px;font-size:12px;width:150px}.search kbd{font-size:11px;border:1px solid var(--line);border-radius:4px;width:18px;height:21px;display:grid;place-items:center}.avatar{width:31px;height:31px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;background:#e5eaf1;color:#6b7a90;font-size:11px;font-weight:600;flex-shrink:0}.content{padding:33px 34px 35px;flex:1;min-width:0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:25px}.page-heading p{font-size:13px;color:var(--muted);margin-top:9px;line-height:1.6}.heading-actions{display:flex;gap:10px;align-items:center}.week-nav{display:flex;align-items:center;border:1px solid #dce3ec;border-radius:7px;background:white;overflow:hidden;white-space:nowrap}.week-nav .icon-button{height:35px;width:34px;border-radius:0;color:#73839b}.week-nav .plain-button{font-size:12px;min-height:35px}.week-summary{display:flex;align-items:center;gap:24px;margin:0 0 24px;font-size:12px;color:var(--muted)}.week-summary strong{color:var(--ink);font-size:17px;font-weight:600;margin-right:5px}.summary-line{width:95px;height:4px;background:#dce5f1;border-radius:4px;overflow:hidden}.summary-line>span{display:block;background:#7894bc;height:100%}.week-summary>small{margin-left:auto;color:#8793a2;font-size:11px}.filters{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:19px}.filter-group{display:flex;gap:10px}.filters select{font-size:12px;background:transparent;border-color:#dce3eb;padding:7px 26px 7px 10px;height:34px;max-width:230px}.check-label{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);line-height:1.6}.week-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:#fff}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));min-height:560px}.day-column{border-right:1px solid var(--line);min-width:0;display:flex;flex-direction:column;position:relative;padding-bottom:10px;background:white}.day-column:last-child{border-right:0}.day-column.weekend{background:#fafbfd}.day-column.is-today{background:#f6f9ff;box-shadow:inset 0 3px var(--blue)}.day-head{padding:20px 13px 17px;display:flex;justify-content:space-between;align-items:center;min-height:100px;border-bottom:1px solid var(--line)}.day-head>div>span{font-size:11px;display:block;color:#68788f;margin-bottom:7px}.day-head strong{font-size:26px;line-height:1;font-weight:500;letter-spacing:-1px}.is-today .day-head strong{color:var(--blue);font-weight:650}.today-badge{font-size:9px;background:var(--blue);color:white;padding:4px 6px;border-radius:4px;align-self:flex-end;margin-bottom:2px}.day-count{font-size:10px;color:#96a1af}.day-tasks{padding:4px 10px}.task-card{display:flex;gap:8px;position:relative;padding:15px 1px;border-bottom:1px solid #edf0f4;min-width:0}.task-card:last-child{border-bottom:0}.task-check{padding:0;flex-shrink:0;width:14px;height:14px;line-height:12px;border:1.5px solid #b9c5d5;border-radius:4px;margin-top:4px;color:#fff;font-size:10px}.task-check:hover{border-color:var(--blue);background:#e6edf9}.task-check.checked{background:#dbe5e0;border-color:#dbe5e0;color:#6b8b78}.task-body{min-width:0;flex:1}.task-title{text-align:left;line-height:1.45;font-size:13px;font-weight:500;padding:0;word-break:break-word;width:100%;display:block}.task-title:hover{color:var(--blue)}.task-card.is-done .task-title{color:#748092;text-decoration:line-through;text-decoration-color:#b3bdc9}.task-meta{display:flex;flex-wrap:wrap;gap:5px 8px;font-size:11px;color:#748397;margin-top:7px;align-items:center;line-height:1.4}.task-meta:empty{display:none}.project-tag{display:inline-flex;align-items:center;gap:5px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.priority{color:#aa8253}.waiting{color:#8a74a7}.overdue{color:var(--red)}.task-progress{height:3px;background:#e5ebf3;margin-top:9px;border-radius:2px;max-width:70px;overflow:hidden}.task-progress span{display:block;height:100%;background:#8ca6ca}.day-add{font-size:11px;color:#8b9ab0;text-align:left;margin:8px 10px 0;padding:9px 5px;border-radius:5px}.day-add:hover{background:var(--blue-soft);color:var(--blue)}.day-empty{font-size:11px;color:#99a5b5;padding:24px 3px;line-height:1.7}.day-empty span{font-size:10px;color:#adb6c3;display:block;margin-top:5px;max-width:100px}.drag-over{background:#e6edf9!important;box-shadow:inset 0 0 0 2px #93acd3}.dragging{opacity:.4}footer{padding:16px 34px;border-top:1px solid var(--line);font-size:10px;color:#98a3b1;display:flex;justify-content:space-between;gap:20px}#save-status{color:#769580}.task-list{background:#fff;border:1px solid var(--line);border-radius:9px;padding:0 20px}.task-list .list-card{padding:18px 0;gap:12px}.list-card .task-title{font-size:14px}.list-card .task-meta{font-size:11px;margin-top:5px}.list-status{font-size:11px;color:#8c99aa;align-self:center;white-space:nowrap}.tree-task .task-card{padding-left:calc(var(--depth)*20px)}.tree-task+.tree-task{border-top:1px solid var(--line)}.tree-task .tree-task{border-top:1px solid #edf0f4}.today-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:28px}.today-layout h2{margin-bottom:15px}.today-layout .spaced{margin-top:30px}.today-layout .muted{margin:-3px 0 15px;font-size:12px}.daily-aside{background:#edf2f8;border-radius:9px;padding:22px;height:fit-content}.daily-habit{display:flex;align-items:flex-start;gap:10px;text-align:left;line-height:1.5;padding:12px 0;width:100%;font-size:12px;border-bottom:1px solid #dfe6f0}.daily-habit small{display:block;font-size:10px;color:#8a98aa;margin-top:5px}.habit-check{width:17px;height:17px;flex-shrink:0;border:1px solid #b2c2d7;border-radius:50%;margin-top:2px;text-align:center;line-height:16px;font-size:10px}.habit-check.complete{background:var(--blue);color:#fff;border-color:var(--blue)}.daily-aside>.text-link{margin-top:16px}.projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project-tile{display:block;min-width:0;background:#fff;border:1px solid var(--line);border-radius:9px;padding:23px;text-align:left;min-height:160px}.project-tile:hover{border-color:#9bb3d3}.project-tile .project-dot{width:8px;height:8px}.project-area{font-size:11px;color:var(--muted);margin-left:7px}.project-tile h2{margin:17px 0;font-size:17px;overflow-wrap:anywhere}.project-tile p{font-size:11px;color:var(--muted);display:flex;justify-content:space-between}.project-progress{height:3px;background:#edf1f6;margin-top:16px}.project-progress i{display:block;height:100%;background:#8aa2c1}.people-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.person-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px}.person-panel h2{display:flex;align-items:center;gap:10px;font-size:15px;margin-bottom:16px}.person-panel h2 small{margin-left:auto;color:var(--muted);font-weight:400;font-size:12px}.person-panel .muted{font-size:12px}.person-panel .text-link{margin-top:13px}.habits-toolbar{display:flex;align-items:center;justify-content:space-between;margin:25px 0 20px}.habits-toolbar>strong{font-size:14px;font-weight:500}.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:9px;background:#fff}.habits-table{width:100%;border-collapse:collapse;min-width:730px}.habits-table th,.habits-table td{border-bottom:1px solid var(--line);padding:17px;text-align:center}.habits-table thead th{font-size:12px;color:var(--muted);font-weight:400;background:#fafbfd;width:9%}.habits-table thead th strong{display:block;font-size:20px;font-weight:500;color:var(--ink);margin-top:6px}.habits-table th:first-child{text-align:left;width:37%}.habits-table tbody th{font-size:13px;font-weight:500}.habits-table tbody th small{display:block;font-weight:400;font-size:11px;color:var(--muted);margin-top:5px}.habits-table .current{background:var(--blue-soft)}.habit-cell{width:34px;height:34px;border-radius:50%;color:#b4bfcd;border:1px solid #e6ebf2;font-size:12px}.habit-cell:hover{background:var(--blue-soft)}.habit-cell.complete{background:#dfece4;color:#61866f;border-color:#dfece4;font-size:17px}.habit-cell.partial{background:#edf2fb;color:#5374aa}.habits-table tr:last-child>*{border-bottom:0}#habit-table>.muted{font-size:12px;margin-top:16px}.archive-intro{background:#e9eff8;border-radius:8px;padding:22px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.archive-intro p{color:#74849b;font-size:12px;margin-top:9px}.archive-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:18px;align-items:center;margin:25px 0 15px}.archive-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:65%;font-size:12px}.archive-breadcrumb>span{color:#abb6c5}#archive-search{display:flex;gap:8px}#archive-search input{width:180px;font-size:12px}.archive-row{display:flex;align-items:center;gap:11px;background:#fff;border-bottom:1px solid var(--line);padding:13px 16px;min-height:59px}.archive-row:first-child{border-radius:8px 8px 0 0}.archive-row:last-child{border-radius:0 0 8px 8px}.archive-row>div{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}.archive-row small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.archive-name{text-align:left;padding:0;font-size:13px;font-weight:500;overflow-wrap:anywhere}.archive-leaf{width:33px;text-align:center;color:#9aa7ba}.archive-percent{font-size:11px;color:#7a8da6}.report>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.report dd{margin:0;font-weight:600}.simple-form li{margin:10px 0;line-height:1.5;color:var(--muted);font-size:13px}.empty{text-align:center;padding:65px 25px;max-width:500px;margin:auto}.empty-symbol{font-size:28px;color:#8fa7c7;background:#f0f4fa;width:50px;height:50px;display:grid;place-items:center;border-radius:50%;margin:0 auto 20px}.empty p{font-size:13px;color:var(--muted);line-height:1.6;margin:10px 0 20px}.modal-open{overflow:hidden}.backdrop{position:fixed;inset:0;background:#14203755;z-index:20;display:flex;align-items:center;justify-content:center;padding:24px}.dialog{background:#fff;width:480px;max-width:100%;border-radius:13px;max-height:92vh;overflow-y:auto;box-shadow:0 20px 70px #14203730}.dialog>header{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.dialog>header h2{font-size:18px}.dialog.drawer{position:absolute;right:0;top:0;bottom:0;max-height:100vh;width:530px;border-radius:0;box-shadow:-12px 0 45px #14203715}.task-form,.simple-form{padding:24px 26px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#708096;margin-bottom:17px;min-width:0}.field input,.field textarea,.field select{color:var(--ink);width:100%;font-size:13px}.field .title-input{font-size:19px;font-weight:500;line-height:1.5;padding:12px;min-height:80px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-actions{display:flex;gap:12px;align-items:center;padding-top:8px}.parent-note{font-size:11px;color:var(--muted);line-height:1.6;margin:-5px 0 17px}.drawer-section{padding:24px 26px;border-top:1px solid var(--line)}.drawer-section h3{margin-bottom:13px}.drawer-section>.muted{font-size:11px;margin-bottom:14px}.plan-row{display:flex;align-items:center;gap:8px;margin-top:9px}.plan-row input{min-width:0;flex:1;font-size:12px;padding:8px}.drawer-section .task-title{font-size:13px}.drawer-section .text-link{margin-top:7px}.history>div{border-left:2px solid #e5ecf5;padding:0 0 17px 13px;font-size:11px}.history>div:last-child{padding-bottom:0}.history strong{font-weight:500}.history time{float:right;color:#9aa7b8;font-size:10px;margin-left:10px}.history p{color:#8a98aa;font-size:10px;line-height:1.6;margin-top:6px;overflow-wrap:anywhere}.drawer-bottom{padding:20px 26px;border-top:1px solid var(--line);display:flex;justify-content:space-between}.danger-link{color:var(--red);font-size:12px}.boot{height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;text-align:center;padding:25px}.boot p{color:var(--muted)}.login{max-width:360px;margin:12vh auto;padding:25px}.login h1{margin:25px 0 10px}.login p{color:var(--muted);margin-bottom:30px}.login .button{width:100%}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(15px);padding:13px 22px;background:#2f4866;color:#fff;border-radius:8px;font-size:13px;z-index:40;box-shadow:0 7px 30px #1c324a22;opacity:0;pointer-events:none;max-width:calc(100vw - 32px);transition:opacity .15s,transform .15s}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}#toast.error{background:#9b4b47}@media(min-width:1700px){.content{padding:40px 45px}.task-title{font-size:13px}.day-head>div>span{font-size:11px}.day-tasks{padding:6px 14px}.task-card{padding:17px 1px}.day-head{padding:22px 17px}}@media(max-width:1150px){.sidebar{width:190px;padding-left:12px;padding-right:12px}.main{margin-left:190px}.topbar{padding:0 24px}.content{padding:26px 24px}.breadcrumb{display:none}.topbar{justify-content:flex-end;height:72px}.week-summary>small{display:none}.projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.today-layout{grid-template-columns:minmax(0,1fr) 245px;gap:18px}.day-column{min-width:145px}.week-grid{grid-template-columns:repeat(7,minmax(145px,1fr))}}@media(max-width:760px){.sidebar{position:static;width:auto;padding:15px 16px 0;background:#fff;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0 0 16px;font-size:19px}.brand small{display:none}.brand-mark{height:31px;width:31px;font-size:23px}.sidebar nav{display:flex;overflow-x:auto;gap:5px;padding-bottom:9px}.nav-item{flex-shrink:0;padding:8px 11px;font-size:12px;min-height:35px;gap:6px}.nav-icon{font-size:16px;width:16px}.nav-count{display:none}.sidebar-projects,.sidebar-bottom{display:none}.main{margin-left:0;min-height:calc(100vh - 110px)}.topbar{height:65px;padding:0 18px;justify-content:space-between}.top-actions{width:100%;gap:10px}.top-actions .search{flex:1;min-width:0}.search input{width:100%;min-width:0}.search kbd,.avatar{display:none}.content{padding:24px 16px}.page-heading{gap:14px;align-items:flex-start;flex-direction:column;margin-bottom:20px}h1{font-size:27px}.page-heading p{font-size:12px}.heading-actions{align-self:flex-end;margin-top:-3px}.week-summary{gap:18px;margin-bottom:19px}.filters{align-items:flex-start;flex-direction:column;gap:10px}.filter-group{width:100%}.filters select{flex:1;min-width:0;max-width:50%}.week-grid{grid-template-columns:repeat(7,190px)}.task-title{font-size:13px}.day-head>div>span{font-size:11px}.task-meta{font-size:10px}.day-empty{font-size:12px}.day-empty span{max-width:none}.week-scroll{margin:0 -1px}.today-layout{grid-template-columns:1fr}.daily-aside{order:0}.daily-aside #today-habits{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.projects-grid,.people-grid{grid-template-columns:1fr}.list-card .task-title{font-size:13px}.list-status{display:none}.task-list{padding:0 14px}.archive-intro{padding:18px;align-items:flex-start;flex-direction:column}.archive-breadcrumb{max-width:100%}.archive-bar{display:block}#archive-search{margin-top:15px}#archive-search input{flex:1}.dialog.drawer{width:100%}.backdrop{padding:16px}.task-form,.simple-form,.drawer-section{padding:21px}.dialog>header{padding:18px 21px}.form-row{gap:11px}.plan-row{flex-wrap:wrap}.plan-row input{min-width:130px}.habits-toolbar{gap:10px;align-items:flex-start}.habits-toolbar>strong{font-size:12px}.history time{float:none;display:block;margin:5px 0}.drawer-bottom{padding:20px}.form-actions{flex-wrap:wrap}.button{font-size:12px}.task-form .button{font-size:13px}footer{padding:15px 17px;font-size:9px}.daily-habit{min-height:64px}#toast{font-size:12px;width:max-content}.table-scroll{margin-bottom:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Mobile planner: one selected day at a time, with persistent primary navigation. */
.mobile-title,.mobile-week,.mobile-more{display:none}
.mobile-menu{padding:10px 16px 20px;display:grid;gap:4px}
.mobile-menu-item{width:100%;min-height:54px;display:flex;align-items:center;gap:14px;padding:10px 13px;text-align:left;color:var(--ink);border-radius:8px;font-weight:500}
.mobile-menu-item:hover,.mobile-menu-item:focus-visible{background:var(--blue-soft)}
@media(max-width:760px){
 body{padding-bottom:calc(72px + env(safe-area-inset-bottom));overflow-x:hidden}
 .sidebar{position:fixed;inset:auto 0 0;width:100%;padding:0 6px env(safe-area-inset-bottom);border:0;border-top:1px solid var(--line);background:#fff;box-shadow:0 -5px 22px #26344512;z-index:10}
 .brand{display:none}
 .sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;overflow:visible;padding:0}
 .sidebar .nav-item{min-width:0;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 2px;border-radius:0;text-align:center;font-size:10px;line-height:1.2}
 .sidebar .nav-icon{width:auto;font-size:20px;line-height:22px}
 .sidebar .nav-item[data-view="inbox"],.sidebar .nav-item[data-view="people"],.sidebar .nav-item[data-view="archive"]{display:none}
 .sidebar .mobile-more{display:flex}
 .sidebar .nav-item.active{background:none;color:var(--blue);box-shadow:inset 0 3px var(--blue)}
 .main{min-height:100vh}
 .topbar{height:62px;padding:0 16px;gap:13px}
 .mobile-title{display:block;white-space:nowrap;font-size:16px;font-weight:650;letter-spacing:-.4px}
 .top-actions{width:auto;flex:1;justify-content:flex-end;gap:8px}
 .top-actions .search{flex:1;max-width:190px;font-size:20px}
 .search input{font-size:13px}
 .top-actions>.button{min-height:36px;padding:7px 10px;font-size:11px}
 .content{padding:21px 15px 30px}
 .page-heading{margin-bottom:16px}
 .page-heading h1{font-size:25px}
 .page-heading p{margin-top:5px}
 .page-heading .heading-actions{align-self:stretch;margin:0}
 .page-heading .heading-actions .week-nav{width:100%;justify-content:space-between}
 .week-summary{gap:13px;margin-bottom:16px}
 .week-summary strong{font-size:15px}
 .summary-line{flex:1;min-width:32px}
 .week-scroll{display:none}
 .mobile-week{display:block}
 .mobile-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-bottom:18px}
 .mobile-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:77px;padding:7px 1px;color:var(--muted);border-radius:9px;line-height:1}
 .mobile-day span{font-size:11px}
 .mobile-day strong{font-size:17px;color:var(--ink);font-weight:600}
 .mobile-day i{font-style:normal;font-size:10px;color:#8190a4}
 .mobile-day.is-today strong{color:var(--blue)}
 .mobile-day.selected{background:var(--blue);color:#fff}
 .mobile-day.selected strong,.mobile-day.selected i{color:#fff}
 .mobile-day-plan{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
 .mobile-day-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 16px 13px;border-bottom:1px solid var(--line)}
 .mobile-day-heading h2{font-size:16px;text-transform:capitalize}
 .mobile-day-heading p{font-size:11px;color:var(--muted);margin-top:4px}
 .mobile-add{width:34px;height:34px;flex-shrink:0;border-radius:7px;background:var(--blue-soft);color:var(--blue);font-size:23px;line-height:1}
 .mobile-day-plan .task-list{padding:0 15px}
 .mobile-day-plan .empty{border:0}
 #toast{bottom:calc(82px + env(safe-area-inset-bottom))}
 footer{padding-bottom:22px}
}
/* A calendar board for the two historical years. The existing blue is reserved for a selected date. */
.history-board-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 0 17px;flex-wrap:wrap}
.history-years{display:inline-flex;padding:3px;background:#e7edf5;border-radius:8px;gap:3px}
.history-year{padding:9px 20px;border-radius:6px;color:#647489;font-weight:600;min-width:82px}
.history-year.selected{background:#fff;color:var(--blue);box-shadow:0 1px 4px #2634451a}
.history-undated-link{padding:9px 2px;color:var(--blue);font-weight:600;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.history-board-summary{display:flex;align-items:center;gap:18px;color:var(--muted);font-size:12px;margin:0 0 18px}
.history-board-summary strong{font-size:20px;color:var(--ink);font-weight:650;margin-right:4px}
.history-board-summary span+span{border-left:1px solid var(--line);padding-left:18px}
.history-board-layout{display:block}
.history-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;min-width:0}
.history-month{min-width:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:15px 16px 16px}
.history-month>header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:1px 0 11px;margin-bottom:9px}
.history-month>header h2{font-size:18px;text-transform:capitalize;letter-spacing:-.4px}
.history-month>header span{font-size:11px;color:var(--muted);white-space:nowrap}
.history-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.history-weekday{text-align:center;color:#8b98a7;font-size:10px;line-height:25px}
.history-blank{min-height:42px}
.history-date{min-width:0;min-height:43px;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#8b97a6;font-weight:500}
.history-date>span{font-size:12px;line-height:15px}
.history-date small{font-size:9px;line-height:11px;color:#b9c3d0;font-weight:600}
.history-date.has-items{color:var(--ink);background:#edf3fb}
.history-date.has-items small{color:var(--blue)}
.history-date:hover{background:#dce9f9;color:var(--blue)}
.history-date.selected,.history-date.selected:hover{background:var(--blue);color:#fff}
.history-date.selected small{color:#fff}
.history-inspector{display:none;position:fixed;top:0;right:0;bottom:0;width:min(440px,100vw);background:#fff;border-left:1px solid var(--line);flex-direction:column;overflow:hidden;z-index:30;box-shadow:-10px 0 35px #14203724}
.history-inspector.is-open{display:flex}
.history-inspector-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:20px;border-bottom:1px solid var(--line)}
.history-inspector-head>div>span{font-size:11px;color:var(--muted)}
.history-inspector-head h2{font-size:19px;line-height:1.3;margin-top:5px}
.history-inspector-head h2::first-letter{text-transform:uppercase}
.history-inspector-body{padding:8px 19px 20px;overflow-y:auto;overscroll-behavior:contain}
.history-inspector-body>.muted{padding:13px 0}
.history-entry{border-bottom:1px solid var(--line);font-size:12px;line-height:1.5}
.history-entry:last-child{border-bottom:0}
.history-entry summary,.history-leaf{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 1px;overflow-wrap:anywhere}
.history-entry summary{cursor:pointer}
.history-entry summary>span:first-child,.history-leaf>span:first-child{flex:1}
.history-children{border-left:2px solid #dce5f1;margin:0 0 9px 8px;padding-left:10px}
.history-percent{font-size:10px;color:var(--blue);white-space:nowrap}
.history-percent.complete{color:#4f806d}
.history-source-group{border-bottom:1px solid var(--line)}
.history-source-group>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:13px 2px;font-weight:600;font-size:12px}
.history-source-group>summary small{color:var(--muted);font-weight:400;white-space:nowrap}
.history-source-group>div{padding-left:9px;border-left:2px solid var(--blue-soft);margin-bottom:9px}
.history-mobile-backdrop{display:block;position:fixed;inset:0;background:#17263c55;z-index:25}
/* A single visual rhythm carries task, project, people, archive and form screens. */
.task-card:hover{background:#f8fbff}
.task-title:hover{color:var(--blue)}
.project-tile:hover,.person-panel:hover{border-color:#b6c7dd}
.archive-row:hover{background:#f8fbff}
.field>input:focus,.field>select:focus,.field>textarea:focus{border-color:#8eaad0}
@media(min-width:1550px){.history-months{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){
 .history-months{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .sidebar .nav-item[data-view="history"]{display:none}
 .history-board-top{gap:10px}
 .history-years{width:100%;display:flex}
 .history-year{flex:1}
 .history-undated-link{padding:3px 0 7px}
 .history-months{grid-template-columns:1fr;gap:12px}
 .history-month{padding:13px 14px 15px}
 .history-date{min-height:45px}
 .history-inspector{top:auto;left:0;right:0;bottom:0;width:100%;height:auto;min-height:210px;max-height:min(75dvh,680px);border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -12px 40px #1420372b}
 .history-inspector-head{padding:17px 18px}
 .history-inspector-body{padding:5px 18px 22px}
 .archive-intro .heading-actions{width:100%;flex-wrap:wrap}
}

/* Small-screen views retain the same week, but show one usable day at a time. */
.mobile-habits{display:none}
.task-expand{display:inline-flex;align-items:center;gap:3px;padding:1px 4px;border-radius:4px;color:var(--blue);font-size:11px;line-height:1.4}
.task-expand:hover{background:var(--blue-soft)}
.task-expand>span{font-size:13px;transition:transform .15s}
.task-expand[aria-expanded="true"]>span{transform:rotate(90deg)}
.task-children{margin:0 0 5px 12px;padding-left:10px;border-left:2px solid #d5e1f1}
.task-children[hidden]{display:none}
.task-children .task-card{padding:11px 0}
@media(max-width:760px){
 #habit-table>.table-scroll,#habit-table>.muted{display:none}
 .mobile-habits{display:block}
 .mobile-habit-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:16px}
 .mobile-habit-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:54px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted)}
 .mobile-habit-day span{font-size:10px;text-transform:capitalize}
 .mobile-habit-day strong{font-size:17px;font-weight:600;color:var(--ink)}
 .mobile-habit-day.is-active{background:var(--blue);border-color:var(--blue);color:#fff}
 .mobile-habit-day.is-active strong{color:#fff}
 .mobile-habit-list{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
 .mobile-habit-row{display:flex;align-items:center;gap:11px;width:100%;min-height:70px;padding:12px 14px;text-align:left;border-bottom:1px solid var(--line)}
 .mobile-habit-row:last-child{border-bottom:0}
 .mobile-habit-row:hover{background:#f7f9fd}
 .mobile-habit-row .habit-check{flex:none}
 .mobile-habit-name{flex:1;min-width:0;font-size:13px;font-weight:600;line-height:1.35}
 .mobile-habit-name small{display:block;margin-top:4px;color:var(--muted);font-size:11px;font-weight:400}
 .mobile-habit-value{color:var(--blue);font-size:12px;white-space:nowrap}
 .mobile-habit-help{color:var(--muted);font-size:11px;line-height:1.5;margin-top:12px}
 .project-tile{min-height:128px;padding:17px 18px}
 .person-panel{padding:16px 18px}
}

.day-head-actions{align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:7px}
.day-head-add{display:grid;place-items:center;width:29px;height:29px;border:1px solid #d5e0ee;border-radius:6px;background:#eef3fb;color:var(--blue);font-size:22px;line-height:1}
.day-head-add:hover{background:var(--blue-soft);border-color:#a8bddd}
.week-archive{margin:10px 0 4px;padding:10px 0 3px;border-top:1px solid #d8e2ee;color:#526579}
.week-archive h3{display:flex;justify-content:space-between;gap:5px;margin:0 0 7px;font-size:10px;font-weight:650;color:#637995}
.week-archive h3 span{font-weight:500}
.week-archive-entry{padding:7px 0;border-top:1px solid #ebeff5;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.week-archive-entry summary{cursor:pointer}
.week-archive-entry summary:hover{color:var(--blue)}
.week-archive-nested{margin-left:7px;padding-left:8px;border-left:1px solid #d8e2ee}
.week-archive-note{padding:11px 0;color:var(--muted);font-size:11px;line-height:1.4}
.mobile-day-plan .week-archive{margin:0 0 8px;padding:12px 0 3px}
.mobile-day-plan .week-archive h3{font-size:12px}
.mobile-day-plan .week-archive-entry{font-size:13px;padding:11px 0}
/* iPhone (≈390–440 px): без автоувеличения полей, компактные заголовки и пустые состояния, окна по высоте видимого экрана */
@media(max-width:760px){
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
input,select,textarea,.field input,.field textarea,.field select,.filters select,.search input,#archive-search input,.plan-row input{font-size:16px}
.topbar{height:56px;padding:0 14px;position:sticky;top:0;z-index:8}
.content{padding:18px 14px 22px}
h1{font-size:25px;letter-spacing:-.6px}
.page-heading{margin-bottom:16px;gap:10px}
.page-heading p{margin-top:4px}
.week-summary{margin-bottom:14px}
.filters{gap:8px;margin-bottom:14px}
.filters select{height:38px;padding:6px 20px 6px 8px;text-overflow:ellipsis}
.empty{padding:26px 16px}
.empty-symbol{width:40px;height:40px;font-size:22px;margin-bottom:12px}
.empty p{margin:6px 0 14px}
.today-layout .spaced{margin-top:22px}
.backdrop{padding:10px;align-items:flex-end}
.dialog{max-height:calc(100dvh - 20px - env(safe-area-inset-bottom));width:100%;border-radius:14px}
.dialog.drawer{max-height:100dvh;border-radius:0}
.field .title-input{min-height:64px;font-size:18px}
.button,.icon-button,.nav-item{min-height:40px}
}
@media(max-width:380px){.form-row{grid-template-columns:1fr}.filters select{max-width:none}}
