:root{--surface:#f6f8fb;--ink:#111827;--muted:#64748b;--border:#d9e1ea;--blue:#2563eb;--green:#0f766e;color:var(--ink);background:var(--surface);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{margin:0;overflow-x:hidden}button,input,textarea{letter-spacing:0}.app-shell{background:var(--surface);grid-template-columns:220px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--border);background:#fff;height:100vh;padding:22px 16px;position:sticky;top:0}.brand{color:var(--ink);align-items:center;gap:12px;margin-bottom:28px;display:flex}.brand svg{color:var(--green)}.brand strong,.brand span{display:block}.brand strong{font-size:18px}.brand span{color:var(--muted);font-size:13px}.nav-tabs{gap:8px;display:grid}.nav-button,.icon-button,.ghost-button,.primary-button,.square-button,.segmented button{border:1px solid var(--border);color:var(--ink);cursor:pointer;font:inherit;background:#fff;border-radius:8px;min-height:38px}.nav-button{text-align:left;align-items:center;gap:10px;padding:10px 12px;display:flex}.nav-button.active{border-color:var(--blue);color:var(--blue);background:#eff6ff}.main-panel{min-width:0;padding:28px}.workspace{gap:18px;width:100%;display:grid}.page-header,.panel-title,.toolbar,.filter-row,.pager,.row-actions{align-items:center;display:flex}.page-header{justify-content:space-between;gap:16px}.page-header h1{margin:0;font-size:28px}.page-header span,.panel-title span,.metric span,time,.empty-text,.inline-message{color:var(--muted)}.summary-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.metric,.panel,.task-composer{border:1px solid var(--border);background:#fff;border-radius:8px}.metric{padding:16px}.metric strong{color:var(--ink);margin-top:8px;font-size:26px;display:block}.task-composer,.panel{padding:16px}textarea,input,select{box-sizing:border-box;border:1px solid var(--border);color:var(--ink);font:inherit;border-radius:8px;outline:none}textarea:focus,input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #2563eb1f}textarea{resize:vertical;width:100%;padding:12px;line-height:1.5}.toolbar{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:12px}.icon-button,.ghost-button,.primary-button{justify-content:center;align-items:center;gap:8px;padding:8px 12px;display:inline-flex}.compact-button{min-height:34px;padding:6px 10px}.primary-button{background:var(--blue);border-color:var(--blue);color:#fff}.ghost-button:hover,.icon-button:hover,.square-button:hover{background:#f8fafc}button:disabled{cursor:not-allowed;opacity:.55}.inline-message{margin:10px 0 0;font-size:14px}.panel-title{flex-wrap:wrap;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-title-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;display:inline-flex}.panel-title h2{margin:0;font-size:18px}.draft-list,.item-list,.problem-list,.progress-list{gap:10px;display:grid}.draft-row,.check-row,.problem-row{align-items:center;gap:10px;min-height:46px;display:grid}.draft-row{grid-template-columns:minmax(0,1fr) 38px}.draft-row input{width:100%;height:38px;padding:0 10px}.square-button{width:38px;height:38px;color:var(--ink);justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.danger-button{color:#b91c1c}.danger-button:hover{color:#991b1b;background:#fef2f2;border-color:#fecaca}.fit{width:fit-content}.check-row{border:1px solid var(--border);border-radius:8px;grid-template-columns:20px minmax(0,1fr) auto;padding:10px 12px}.task-title{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:inline-flex}.task-title-text,.problem-row strong{overflow-wrap:anywhere}.delay-badge{color:#c2410c;white-space:nowrap;background:#fff7ed;border-radius:999px;align-items:center;min-height:24px;padding:2px 8px;font-size:13px;font-weight:700;display:inline-flex}.done .task-title-text,.problem-row.done strong{color:var(--muted);text-decoration:line-through}.task-title-input{width:100%;height:38px;padding:0 10px}.task-meta{justify-content:flex-end;min-width:96px}.filter-row{flex-wrap:wrap;justify-content:space-between;gap:12px}.segmented{border:1px solid var(--border);background:#fff;border-radius:8px;display:inline-flex;overflow:hidden}.segmented button{border:0;border-radius:0;min-width:72px;padding:8px 12px}.segmented button.active{background:var(--green);color:#fff}.problem-row{border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1fr) auto;padding:12px 0}.problem-row:last-child{border-bottom:0}.problem-row label{align-items:center;gap:10px;min-width:0;display:flex}.subject-tag{color:#92400e;white-space:nowrap;background:#fef3c7;border-radius:6px;padding:3px 8px;font-size:13px}.knowledge-tag,.priority-tag,.problem-no{white-space:nowrap;border-radius:6px;padding:3px 8px;font-size:13px}.knowledge-tag{color:#075985;background:#e0f2fe}.priority-tag{font-weight:700}.priority-t0{color:#991b1b;background:#fee2e2}.priority-t1{color:#92400e;background:#fef3c7}.priority-t2{color:#166534;background:#dcfce7}.problem-no{color:var(--muted);background:#f1f5f9}.row-actions{gap:10px}.pager{justify-content:flex-end;gap:12px}.chart-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.chart-panel{min-width:0}.date-input{height:40px;padding:0 10px}.progress-row{grid-template-columns:150px minmax(120px,1fr) 58px;align-items:center;gap:12px;display:grid}.progress-row div:first-child{justify-content:space-between;gap:8px;display:flex}.progress-row strong{color:var(--ink)}.progress-row span,.progress-row em{color:var(--muted);font-style:normal}.progress-track{background:#e2e8f0;border-radius:999px;height:10px;overflow:hidden}.progress-track span{background:var(--green);height:100%;display:block}.summary-text{color:var(--ink);margin:0;line-height:1.8}.import-panel{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:760px}th,td{border-bottom:1px solid var(--border);text-align:left;padding:10px}th{color:var(--muted);font-weight:600}.empty-text{text-align:center;margin:0;padding:18px}.page-meta{color:var(--muted);justify-content:flex-end;align-items:center;display:flex}.date-picker{border:1px solid var(--border);color:#475569;cursor:pointer;background:#fff;border-radius:8px;align-items:center;gap:8px;min-height:42px;padding:0 14px;display:inline-flex}.date-picker:hover{color:var(--blue);background:#eff6ff;border-color:#bfdbfe}.date-picker input{width:136px;color:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-size:18px;font-weight:600}.date-picker input:focus{box-shadow:none;border-color:#0000}.date-avatar-group{justify-content:flex-end;align-items:center;gap:10px;display:inline-flex}.daily-avatar{width:46px;height:46px;box-shadow:0 0 0 1px var(--border);object-fit:cover;object-position:center 28%;border:2px solid #fff;border-radius:50%;flex:none;display:block}@media (width<=820px){.app-shell{grid-template-columns:1fr}.sidebar{z-index:10;border-right:0;border-bottom:1px solid var(--border);height:auto;padding:14px 14px 12px;position:sticky}.brand{margin-bottom:12px}.brand strong{font-size:16px}.brand span{font-size:12px}.nav-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.nav-button{justify-content:center;gap:6px;min-width:0;padding:9px 6px}.nav-button span{white-space:nowrap}.main-panel{padding:18px 14px 28px}.page-header{flex-wrap:wrap;align-items:flex-start}.page-meta,.date-avatar-group{justify-content:flex-start;width:100%}.page-header h1{font-size:24px}.toolbar,.filter-row,.import-panel{align-items:stretch}.toolbar>button,.filter-row>*,.import-panel>*{flex:140px}.panel-title-actions{justify-content:space-between;width:100%}.segmented{width:100%;display:flex}.segmented button{flex:1 1 0;min-width:0;padding:8px 6px}.icon-button,.ghost-button,.primary-button{min-height:42px}input[type=checkbox]{width:18px;height:18px}.summary-strip,.chart-grid{grid-template-columns:1fr}.check-row{grid-template-columns:24px minmax(0,1fr);align-items:flex-start}.check-row>.row-actions{grid-column:2;justify-content:flex-start}.task-meta{min-width:0}.problem-row,.progress-row{grid-template-columns:1fr}.problem-row label{flex-wrap:wrap;align-items:flex-start}.problem-row label input{margin-top:4px}.problem-row strong{flex:100%}.problem-row .row-actions,.progress-row div:first-child{justify-content:flex-start}.import-panel input[type=file]{min-width:0;max-width:100%}.table-wrap{-webkit-overflow-scrolling:touch}}@media (width<=520px){.sidebar{padding:12px 10px 10px}.brand{gap:8px}.brand svg{width:22px;height:22px}.brand strong{font-size:15px}.main-panel{padding:14px 10px 24px}.workspace{gap:14px}.page-header{gap:6px}.date-avatar-group{gap:8px}.daily-avatar{width:42px;height:42px}.date-picker{flex:auto;justify-content:center;min-width:0}.page-header h1{font-size:22px}.task-composer,.panel,.metric{padding:12px}.metric strong{font-size:22px}.nav-button{flex-direction:column;gap:3px;min-height:40px;padding:6px 4px;font-size:13px}.toolbar>button,.import-panel>*{flex-basis:100%}.fit,.date-input{width:100%}.square-button{width:42px;height:42px}textarea{min-height:120px}th,td{padding:9px 8px}}
