:root{--bg: #f3f5f8;--panel: #ffffff;--panel-soft: #f8fafc;--ink: #20242c;--muted: #687284;--line: #d9dee7;--line-strong: #c4ccd8;--accent: #2563eb;--accent-soft: #e9f0ff;--green: #168451;--green-soft: #e7f7ef;--amber: #a86200;--amber-soft: #fff3d8;--red: #bf3b36;--red-soft: #fff0ef;--radius: 8px;--shadow: 0 14px 36px rgba(28, 35, 48, .08);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg)}html,body,#app{width:100%;height:100%;overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}input,select,textarea{width:100%;min-height:34px;padding:6px 9px;border:1px solid var(--line-strong);border-radius:6px;color:var(--ink);background:#fff}input:focus,select:focus,textarea:focus{border-color:var(--accent);outline:2px solid rgba(37,99,235,.16)}textarea{resize:vertical}.app{display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;height:100dvh;padding:18px;overflow:hidden}.auth-page{display:grid;place-items:center;min-height:100dvh;padding:18px;background:var(--bg)}.loading-page{display:grid;place-content:center;justify-items:center;gap:12px;min-height:100dvh;color:var(--muted);background:var(--bg)}.loading-indicator{width:30px;height:30px;border:3px solid var(--line-strong);border-top-color:var(--accent);border-radius:50%;animation:loading-spin .8s linear infinite}@keyframes loading-spin{to{transform:rotate(360deg)}}.auth-panel{display:grid;gap:18px;width:min(360px,100%);padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.auth-heading{display:grid;gap:4px}.auth-heading strong{font-size:22px;line-height:1.2}.auth-heading span{color:var(--muted);font-size:13px}.auth-form{display:grid;gap:12px}.auth-error{margin:0;color:var(--red);font-size:13px}.topbar,.focus-layout{width:min(1600px,100%);margin-right:auto;margin-left:auto}.app-notice{position:fixed;z-index:30;right:18px;bottom:18px;margin:0;padding:10px 12px;border:1px solid #f0bebc;border-radius:var(--radius);background:var(--red-soft);color:var(--red);font-size:13px}.topbar{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:16px;align-items:start}.brand{display:grid;gap:4px;padding-top:0;align-content:center}.brand strong{font-size:24px;line-height:1.15}.brand span,.muted{color:var(--muted);font-size:12px}.filters{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.filter-popover-wrap{position:relative}.filter-trigger{display:inline-flex;min-height:46px;overflow:hidden;border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--panel);transition:border-color .15s ease,box-shadow .15s ease}.filter-trigger:hover,.filter-trigger.open{border-color:#2563eb5c;box-shadow:0 8px 22px #1c233014}.filter-title-button,.filter-summary-button{min-height:44px;border:0;background:transparent;white-space:nowrap}.filter-title-button{padding:0 12px 0 14px;color:var(--ink);font-size:15px;font-weight:650}.filter-title-button:hover{color:var(--accent);background:var(--accent-soft)}.filter-summary-button{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;width:104px;padding:0 12px;border-left:1px solid var(--line);color:#3c4655;font-size:13px;font-weight:600}.filter-summary-button:hover{background:var(--panel-soft)}.filter-title-button:focus-visible,.filter-summary-button:focus-visible{position:relative;z-index:1;outline:2px solid rgba(37,99,235,.24);outline-offset:-2px}.filter-chevron{flex:0 0 auto;width:8px;height:8px;border:solid var(--muted);border-width:0 2px 2px 0;transform-origin:center;transform:rotate(135deg);transition:transform .15s ease}.filter-trigger.open .filter-chevron{transform:rotate(45deg)}.filter-dropdown-wrap:after{position:absolute;z-index:19;top:100%;right:0;width:max(100%,180px);height:8px;content:""}.filter-popover{position:absolute;z-index:20;right:0;display:grid;gap:12px;width:320px;margin-top:6px;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.filter-dropdown-menu{top:100%;min-width:100%;width:max-content;max-width:min(360px,calc(100vw - 36px))}.filter-dropdown-menu .choice-row{display:grid;grid-template-columns:1fr;gap:6px}.filter-dropdown-menu .seg{width:100%;justify-content:start;text-align:left}label span,.dropdown-field>span{color:var(--muted);font-size:12px;white-space:nowrap}.seg,.ghost-btn,.primary-btn,.danger-btn,.dropdown-trigger,.dropdown-option{min-height:32px;padding:0 11px;border-radius:6px;border:1px solid transparent;white-space:nowrap;transition:background .15s ease,border-color .15s ease,transform .15s ease}.seg{color:#3c4655;background:transparent}.seg.active,.ghost-btn.active{color:var(--accent);background:var(--accent-soft);border-color:#2563eb2e}.ghost-btn{border-color:var(--line-strong);color:#364152;background:var(--panel)}.primary-btn{border-color:var(--accent);color:#fff;background:var(--accent)}.danger-btn{border-color:#f0bebc;color:var(--red);background:var(--red-soft)}.dropdown-field{position:relative;display:grid;gap:6px}.dropdown{position:relative}.dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border-color:var(--line-strong);color:var(--ink);background:#fff;text-align:left}.dropdown-trigger span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chevron{flex:0 0 auto;color:var(--muted);font-size:12px}.dropdown-menu{position:absolute;z-index:10;right:0;left:0;display:grid;gap:4px;margin-top:6px;padding:6px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}.dropdown-option{display:grid;grid-template-columns:18px minmax(0,1fr);gap:6px;align-items:center;width:100%;border-color:transparent;color:#364152;background:transparent;text-align:left}.dropdown-option.active{color:var(--accent);background:var(--accent-soft)}.checkmark{color:var(--accent);text-align:center}.seg:active,.ghost-btn:active,.primary-btn:active,.danger-btn:active,.filter-title-button:active,.filter-summary-button:active{transform:translateY(1px)}.primary-btn:disabled,.ghost-btn:disabled,.danger-btn:disabled{opacity:.55}.panel{min-width:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.panel-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;height:56px;padding:10px 14px;border-bottom:1px solid var(--line)}.panel-head>.primary-btn,.panel-head>.ghost-btn,.panel-head>.danger-btn{min-height:34px}.icon-btn{width:32px;height:32px;border:1px solid var(--line-strong);border-radius:6px;color:#364152;background:var(--panel)}.panel-head.compact{height:auto;min-height:auto}.panel-title{display:grid;gap:2px;min-width:0}.panel-title strong{font-size:18px;line-height:1.2}.detail-panel-title{display:flex;flex:1;align-items:center;gap:7px}.detail-panel-title strong{min-width:0;overflow-wrap:anywhere}.detail-time-info{display:inline-flex;flex:0 0 auto;margin-left:auto;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;color:var(--muted);outline:none}.detail-time-info-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;font-family:Georgia,serif;font-size:11px;font-weight:700;line-height:1}.detail-time-info:hover,.detail-time-info:focus-visible{color:var(--accent)}.detail-time-info:focus-visible .detail-time-info-icon{outline:2px solid rgba(37,99,235,.2);outline-offset:2px}.detail-time-tooltip{position:absolute;z-index:5;top:calc(100% - 5px);right:14px;display:none;gap:7px;width:max-content;max-width:calc(100% - 28px);padding:10px 12px;border:1px solid var(--line-strong);border-radius:6px;color:var(--ink);background:var(--panel);box-shadow:0 8px 22px #1c23301f;font-size:13px;font-weight:400;pointer-events:none}.detail-time-tooltip span{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px}.detail-time-tooltip b{color:var(--muted);font-size:12px;font-weight:400}.detail-time-info:hover .detail-time-tooltip,.detail-time-info:focus-visible .detail-time-tooltip{display:grid}.tree-panel-title{display:flex;flex:1 1 220px;align-items:center;flex-wrap:wrap;gap:8px}.tree-expansion-toggle{--marker-core: var(--muted);flex:0 0 auto}.tree-breadcrumb{display:flex;flex:1 1 180px;flex-wrap:wrap;align-items:center;min-width:0;gap:2px 6px}.tree-breadcrumb button,.tree-breadcrumb-current{max-width:100%;overflow-wrap:anywhere;color:var(--ink);font-size:17px;font-weight:700;line-height:1.25}.tree-breadcrumb button{padding:0;border:0;background:transparent;cursor:pointer;text-align:left}.tree-breadcrumb button:hover{color:var(--accent)}.tree-breadcrumb button:focus-visible{outline:2px solid rgba(37,99,235,.35);outline-offset:2px}.tree-breadcrumb-current{color:var(--muted)}.tree-breadcrumb-separator{flex:0 0 auto;color:var(--muted)}label{display:grid;gap:6px}.choice-row{display:flex;flex-wrap:wrap;gap:7px}.focus-layout{display:grid;grid-template-columns:minmax(0,calc(100% - 404px)) 390px;gap:14px;height:100%;min-height:0}.mobile-page-nav{display:none}.work-zone{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;min-height:0}.work-zone.has-detail{grid-template-columns:minmax(0,calc(100% - 354px)) 340px}.tree-zone{display:grid;grid-template-rows:minmax(0,1fr);gap:14px;min-width:0;min-height:0}.activity-zone{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:14px;min-height:0}.activity-zone.heatmap-collapsed{grid-template-rows:minmax(0,1fr)}.main-panel{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;overflow:hidden;box-shadow:none}.tree-list{min-height:0;height:auto;overflow:auto;padding:16px;scroll-padding:24px}.tree-card{width:100%;min-width:100%;overflow:hidden;padding:6px 12px;border-radius:var(--radius)}.tree-card+.tree-card{margin-top:7px}.tree-node+.tree-node{margin-top:10px}.tree-node{--tree-connector: 34px;position:relative;width:100%;min-width:0}.tree-node:not(:last-child):before{content:"";position:absolute;top:-11px;bottom:-11px;left:calc(var(--tree-offset) - var(--tree-connector));width:1px;background:#94a3b894}.tree-node.depth-0:before{display:none}.tree-row{display:grid;grid-template-columns:24px minmax(180px,1fr) minmax(96px,36%);align-items:center;gap:8px;width:calc(100% - var(--tree-offset));min-width:0;min-height:48px;margin-left:var(--tree-offset);padding:6px 8px;border:1px solid rgba(217,222,231,.64);border-radius:8px;color:inherit;background:#ffffffd1;text-align:left;position:relative;cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease,box-shadow .15s ease}.tree-node:last-child>.tree-row:before,.tree-row:after{content:"";position:absolute;left:calc(var(--tree-connector) * -1);background:#94a3b894}.tree-node:last-child>.tree-row:before{top:-11px;bottom:50%;left:calc(var(--tree-connector) * -1 - 1px);width:1px}.tree-row:after{top:50%;width:var(--tree-connector);height:1px}.tree-node.depth-0>.tree-row:before,.tree-row.depth-0:after{display:none}.tree-row.depth-0{grid-template-columns:24px minmax(180px,1fr) minmax(150px,36%);width:100%;margin-left:0;min-height:52px;border-color:#c4ccd8c7;background:#fff}.tree-node.depth-1{--tree-connector: 28px}.tree-row.depth-1{--tree-connector: 28px;grid-template-columns:24px minmax(170px,1fr) minmax(96px,36%);min-height:48px}.tree-node.depth-2{--tree-connector: 28px}.tree-row.depth-2{--tree-connector: 28px;grid-template-columns:24px minmax(160px,1fr) minmax(96px,36%);min-height:46px}.tree-row.selected-path{border-color:#2563eb3d;background:linear-gradient(90deg,#e9f0ffa8,#fff 72%)}.tree-row.selected{border-color:#2563eb9e;background:linear-gradient(90deg,#e8f0ff,#f8fbff);color:var(--accent)}.tree-row:hover{border-color:#2563eb38;background:#fff}.tree-row.selected-path:hover,.tree-row.selected-path:focus-within{border-color:#2563eb52;background:linear-gradient(90deg,#e9f0ffc7,#fff 72%)}.tree-row.selected:hover,.tree-row.selected:focus-within{border-color:#2563ebb8;background:linear-gradient(90deg,#dce8ff,#f5f9ff)}.tree-row.drag-source{border-style:dashed;color:var(--muted);background:#f8fafcc7}.tree-row:hover .tree-title{color:var(--accent)}.tree-row:focus-visible{outline:2px solid rgba(37,99,235,.35);outline-offset:-2px}.tree-title{display:block;min-width:0;padding:0;border:0;color:inherit;background:transparent;font-size:16px;font-weight:700;text-align:left}.tree-row.depth-1 .tree-title{font-size:15px}.tree-row.depth-2 .tree-title{font-size:14px}.tree-title span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.node-marker{position:relative;z-index:1;display:inline-grid;place-items:center;width:var(--marker-size, 20px);height:var(--marker-size, 20px);justify-self:center;border:1px solid var(--marker-ring, rgba(104, 114, 132, .4));border-radius:999px;background:#fff;color:var(--marker-core, var(--accent))}.node-toggle{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:pointer;transition:opacity .15s ease}.node-toggle:before,.node-toggle:after{content:"";position:absolute;width:calc(var(--marker-core-size, 8px) * 1.2);height:2px;border-radius:1px;background:var(--marker-core, var(--accent));transition:opacity .15s ease}.node-toggle:after{transform:rotate(90deg)}.node-toggle.expanded:after{opacity:0}.node-toggle:hover{opacity:.7}.node-toggle:focus-visible,.tree-title:focus-visible{outline:2px solid rgba(37,99,235,.35);outline-offset:2px}.node-leaf{border-color:transparent;background:transparent;box-shadow:none}.node-marker.depth-0{--marker-size: 22px;--marker-core-size: 10px}.node-marker.depth-1{--marker-size: 18px;--marker-core-size: 8px}.node-marker.depth-2{--marker-size: 15px;--marker-core-size: 6px}.node-marker.status-进行中{--marker-core: var(--green);--marker-ring: rgba(22, 132, 81, .34);--marker-halo: rgba(22, 132, 81, .1)}.node-marker.status-已完成{--marker-core: var(--accent);--marker-ring: rgba(37, 99, 235, .32);--marker-halo: rgba(37, 99, 235, .09)}.node-marker.status-暂缓{--marker-core: var(--amber);--marker-ring: rgba(168, 98, 0, .36);--marker-halo: rgba(168, 98, 0, .1)}.row-meta{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;justify-content:stretch;gap:6px;min-width:0;max-width:100%;padding:0;border:0;color:inherit;background:transparent;text-align:right}.status-switcher{grid-column:2;justify-self:end}.status-trigger{display:inline-flex;align-items:center;gap:6px;border:0;cursor:pointer}.status-trigger:focus-visible{outline:2px solid rgba(37,99,235,.35);outline-offset:2px}.status-menu{position:fixed;z-index:70;display:grid;gap:4px;min-width:112px;padding:6px;border:1px solid var(--line);border-radius:6px;background:var(--panel)}.status-menu button{min-height:30px;padding:0 9px;border:0;border-radius:5px;color:var(--ink);background:transparent;text-align:left}.status-menu button:hover,.status-menu button:focus-visible{background:var(--panel-soft)}.status-menu button.active{color:var(--accent);background:var(--accent-soft);font-weight:700}.row-tags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0;overflow:hidden}.status-pill{grid-column:2;justify-self:end}.tree-children{position:relative;display:flow-root}.tree-children>.tree-node:first-child{margin-top:10px}.drop-placeholder{width:calc(100% - var(--drop-offset, 0px));min-height:40px;margin:5px 0 5px var(--drop-offset, 0px);border:1px dashed rgba(37,99,235,.48);border-radius:8px;background:#e9f0ff8a}.drop-placeholder.child{min-height:36px}.drop-placeholder.root-end{--drop-offset: 0px;margin-top:14px}.drag-ghost{position:fixed;z-index:60;max-width:260px;padding:8px 10px;border:1px solid rgba(37,99,235,.32);border-radius:8px;color:var(--accent);background:#fff;font-size:14px;font-weight:700;pointer-events:none}body.node-dragging{-webkit-user-select:none;user-select:none}.tree-card>.tree-node>.tree-children{padding-bottom:2px}.tree-card>.tree-node>.tree-row{min-height:52px}.tag,.status-pill{min-height:22px;padding:3px 7px;border-radius:999px;font-size:12px;line-height:16px}.tag{color:#435064;background:#eef2f7}.status-pill.status-进行中{color:var(--green);background:var(--green-soft)}.status-pill.status-已完成{color:var(--accent);background:var(--accent-soft)}.status-pill.status-暂缓{color:var(--amber);background:var(--amber-soft)}.detail-column{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;overflow:hidden}.detail-column-body{display:grid;grid-template-rows:minmax(0,1fr);min-height:0;padding:14px}.node-detail-body{grid-template-rows:auto minmax(0,1fr) auto;gap:14px;overflow:hidden}.node-detail-list{display:flex;flex-wrap:wrap;gap:18px 24px;margin:0}.node-detail-list div{display:grid;gap:3px;flex:0 1 auto;min-width:112px;max-width:100%}.node-detail-list dt{color:var(--muted);font-size:12px}.node-detail-list dd{margin:0;overflow-wrap:anywhere;font-size:14px}.detail-history{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:var(--panel-soft)}.detail-history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;padding:0 11px;border-bottom:1px solid var(--line)}.detail-history-head strong{font-size:13px}.detail-history-head span{color:var(--muted);font-size:12px}.detail-history-list{display:grid;align-content:start;min-height:0;margin:0;padding:0;overflow-y:auto;list-style:none}.detail-history-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding:0 11px}.detail-history-list li+li{border-top:1px solid var(--line)}.detail-history-list time{color:#435064;font-size:13px}.detail-history-list strong{flex:0 0 auto;font-size:13px;font-variant-numeric:tabular-nums}.detail-history-record-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}.detail-history-duration{min-height:26px;padding:0;border:0;border-bottom:1px dashed var(--line-strong);border-radius:0;color:var(--ink);background:transparent;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.detail-history-minute-input{width:60px;min-height:26px;padding:2px 5px;text-align:right;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.detail-history-delete{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:20px;min-height:20px;padding:0;border:0;border-radius:50%;color:var(--muted);background:transparent;font-size:14px;font-weight:600;line-height:1;transition:background-color .15s ease,color .15s ease,transform .15s ease}.detail-history-delete:hover,.detail-history-delete:focus-visible{color:#435064;background:#e5e9ef;transform:scale(1.06)}.detail-actions{display:grid;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));align-self:end;gap:8px;width:100%;container-type:inline-size}.detail-progress-btn{width:100%;min-height:40px;min-width:0;padding-right:8px;padding-left:8px;font-size:clamp(12px,5cqi,15px)}.commit-scope-toggle{display:inline-grid;grid-template-columns:repeat(2,max-content);justify-self:start;padding:3px;border:1px solid var(--line);border-radius:6px;background:var(--panel-soft)}.commit-scope-toggle button{min-height:26px;padding:0 9px;border:0;border-radius:4px;color:var(--muted);background:transparent;font-size:12px}.commit-scope-toggle button.active{color:var(--accent);background:#fff;box-shadow:0 1px 3px #1c23301a}.form-grid{display:grid;gap:10px}.empty-state{color:var(--muted)}.empty-state{padding:20px}.day-results-panel{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;overflow:hidden}.activity-panel-head{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);display:grid}.activity-view-toggle{min-width:0}.activity-panel-title{justify-self:center;text-align:center;white-space:nowrap}.heatmap-toggle-btn{justify-self:end;width:78px;padding-right:8px;padding-left:8px;color:var(--muted);font-size:12px;font-weight:650;line-height:1}.heatmap-toggle-btn:hover{border-color:#2563eb61;color:var(--accent);background:var(--accent-soft)}.heatmap-toggle-btn:focus-visible{outline:2px solid rgba(37,99,235,.35);outline-offset:2px}.result-scroll{display:grid;align-content:start;gap:12px;min-height:0;overflow:auto;padding:14px}.result-group{display:grid;gap:8px}.result-group h3{margin:0;color:var(--muted);font-size:14px;line-height:1.2}.activity-node-list{display:grid;gap:8px;padding:0;margin:0;list-style:none}.activity-node-list button{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:10px;width:100%;min-height:54px;padding:11px 12px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--panel);text-align:left}.activity-node-list button:hover,.activity-node-list button:focus-visible{border-color:#2563eb61;background:var(--accent-soft)}.activity-node-list strong,.activity-node-list small{overflow-wrap:anywhere}.activity-node-list small{color:var(--muted);font-size:12px;white-space:nowrap}.heatmap-panel{display:grid;grid-template-rows:auto auto;align-self:end;overflow:hidden}.center-title{text-align:center}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-content:start;gap:6px;overflow:visible;padding:14px}.weekday-label{color:var(--muted);font-size:11px;line-height:20px;text-align:center}.heat-cell-placeholder{aspect-ratio:1}.heat-cell{aspect-ratio:1;border-radius:4px;border:1px solid var(--line);color:#364152;background:#eef2f7;font-size:12px}.heat-cell.level-1{background:#d8e7ff}.heat-cell.level-2{background:#a9c9ff}.heat-cell.level-3{background:#2563eb;color:#fff}.heat-cell.selected{outline:2px solid var(--ink);outline-offset:1px}.compact-empty{padding:14px}.progress-page{display:grid;place-items:center;min-height:100dvh;padding:24px;background:var(--bg)}.progress-content{--progress-title-font-size: 45px;display:grid;justify-items:center;gap:24px;width:min(760px,100%);text-align:center}.progress-heading{display:grid;justify-items:center;gap:10px;max-width:100%}.progress-path{max-width:100%;margin:0;color:var(--muted);overflow-wrap:anywhere;font-size:14px}.progress-content h1{max-width:100%;margin:0;overflow-wrap:anywhere;font-size:var(--progress-title-font-size);letter-spacing:0;line-height:1.25}.progress-time-zone{display:grid;place-items:center;gap:8px}.progress-clock{font-variant-numeric:tabular-nums;font-size:clamp(48px,10vw,96px);font-weight:700;letter-spacing:0;line-height:1}.progress-total-clock{color:var(--muted);font-size:14px;line-height:1}.progress-saving{min-height:20px;margin:0;color:var(--muted);font-size:13px}.progress-controls{display:grid;justify-items:center;gap:12px;max-width:100%}.progress-error{display:flex;align-items:center;gap:10px;max-width:100%;padding:10px 12px;border:1px solid #f0bebc;border-radius:6px;color:var(--red);background:var(--red-soft)}.progress-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.progress-actions button{min-width:92px;min-height:42px}.modal-backdrop{position:fixed;z-index:50;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:18px;background:#20242c47}.modal{display:grid;gap:14px;width:min(460px,100%);padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.warning-modal{border-color:#f0bebc}.warning-content{display:grid;gap:16px}.warning-content p{margin:0;color:#713330;line-height:1.55}.warning-actions{display:flex;justify-content:flex-end;gap:8px}.context-menu{position:fixed;z-index:40;display:grid;gap:4px;min-width:150px;padding:6px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:var(--shadow)}.context-menu button{min-height:32px;padding:0 10px;border:0;border-radius:6px;color:#364152;background:transparent;text-align:left}.context-menu button:hover{background:var(--panel-soft)}.context-menu .danger-text{color:var(--red)}@media(max-width:980px){html,body,#app{height:auto;min-height:100%;overflow:auto}.app{grid-template-rows:auto auto;height:auto;min-height:100dvh;overflow:visible}.topbar,.focus-layout{grid-template-columns:1fr}.filters{justify-content:flex-start}.focus-layout{grid-auto-rows:max-content;height:auto;min-height:0;overflow:visible}.work-zone,.work-zone.has-detail{grid-template-columns:1fr;grid-template-rows:auto auto;min-height:auto}.tree-list{height:auto;max-height:60dvh}.activity-zone{grid-template-rows:auto auto}.detail-column{min-height:360px;max-height:70dvh}.month-grid{max-height:none}}@media(max-width:640px){html,body,#app{height:100%;min-height:0;overflow:hidden}.app{grid-template-rows:auto minmax(0,1fr) auto;gap:8px;height:100dvh;min-height:0;padding:8px;overflow:hidden}.progress-page{min-height:100dvh;padding:18px}.progress-content{gap:20px}.progress-content{--progress-title-font-size: 28px}.progress-clock{font-size:clamp(44px,18vw,68px)}.topbar{display:block;width:100%}.brand{display:none}.filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}.filter-dropdown-wrap,.filter-trigger{width:100%}.filter-trigger{display:grid;grid-template-columns:auto minmax(0,1fr);min-height:36px;border-radius:6px}.filter-title-button{min-height:34px;padding:0 7px;font-size:12px}.filter-summary-button{width:auto;min-width:0;min-height:34px;justify-content:space-between;gap:4px;padding:0 6px;font-size:11px}.filter-summary-button span:first-child{overflow:hidden;text-overflow:ellipsis}.filter-chevron{width:6px;height:6px;border-width:0 1.5px 1.5px 0}.choice-row{align-items:stretch}.filter-popover{right:auto;left:0;width:min(280px,calc(100vw - 16px))}.filter-dropdown-wrap:nth-child(2) .filter-popover{left:50%;transform:translate(-50%)}.filter-dropdown-wrap:nth-child(3) .filter-popover{right:0;left:auto;transform:none}.focus-layout{display:flex;gap:0;width:100%;height:100%;min-height:0;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}.focus-layout::-webkit-scrollbar{display:none}.work-zone,.work-zone.has-detail{display:contents}.tree-zone,.detail-column,.activity-zone{flex:0 0 100%;width:100%;min-width:100%;height:100%;min-height:0;scroll-snap-align:start;scroll-snap-stop:always}.tree-zone>.main-panel,.detail-column{height:100%}.detail-column{max-height:none}.tree-list{height:auto;max-height:none;overflow-x:hidden;overflow-y:auto}.activity-zone{grid-template-rows:minmax(0,1fr) auto}.activity-zone.heatmap-collapsed{grid-template-rows:minmax(0,1fr)}.activity-panel-head{gap:6px;padding-right:10px;padding-left:10px}.activity-view-toggle{padding:2px}.activity-view-toggle button{padding-right:7px;padding-left:7px;font-size:11px}.activity-panel-title strong{font-size:16px}.mobile-page-nav{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:3px;min-height:40px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.mobile-page-nav button{min-width:0;min-height:32px;padding:0 8px;border:0;border-radius:5px;color:var(--muted);background:transparent;font-size:12px;font-weight:650}.mobile-page-nav button.active{color:var(--accent);background:var(--accent-soft)}.mobile-page-nav button:focus-visible{outline:2px solid rgba(37,99,235,.4);outline-offset:-2px}.tree-row{display:flex;flex-wrap:wrap;gap:6px 8px;min-width:0;padding-top:8px;padding-bottom:8px}.tree-title{flex:0 1 auto;max-width:calc(100% - 38px)}.row-meta{flex:0 0 auto;margin-left:auto}}@media(max-width:640px)and (prefers-reduced-motion:reduce){.focus-layout{scroll-behavior:auto}}
