body{font-family:system-ui,-apple-system,PingFang SC,sans-serif;background:#fafafa;color:#1a1a1a}main{min-height:100vh;max-width:40rem;margin:0 auto;padding:0 1.5rem;display:flex;flex-direction:column;justify-content:center}h1{font-size:2rem;font-weight:600}p{margin:.75rem 0 2rem;color:#666}nav{display:flex;gap:1.5rem}a{color:#1a1a1a;text-decoration:none;border-bottom:1px solid #ccc}a:hover{border-color:#1a1a1a}*{margin:0;box-sizing:border-box}.task-shell{min-height:100vh;max-width:46rem;margin:0 auto;padding:1.5rem 1.25rem 3rem;font-family:system-ui,-apple-system,PingFang SC,sans-serif;color:#1a1a1a;background:#fafafa}.task-loading{display:flex;align-items:center;justify-content:center;color:#999}.task-header{display:flex;align-items:baseline;gap:1rem;margin-bottom:1.25rem}.task-logo{font-size:.875rem;color:#999;text-decoration:none}.task-logo:hover{color:#1a1a1a}.task-header h1{flex:1;font-size:1.5rem;font-weight:700;letter-spacing:.02em}.task-ghost-btn{border:none;background:none;color:#999;font-size:.875rem;cursor:pointer;padding:.25rem .5rem;border-radius:6px}.task-ghost-btn:hover{color:#1a1a1a;background:#f0f0f0}.task-tabs{display:flex;gap:.25rem;background:#fff;border:1px solid #e8e8e8;border-radius:12px;padding:.25rem;margin-bottom:.75rem;position:sticky;top:.5rem;z-index:5;box-shadow:0 1px 3px #0000000a}.task-tabs button{flex:1;border:none;background:none;padding:.5rem .75rem;font-size:.9375rem;color:#666;border-radius:9px;cursor:pointer;transition:all .15s ease}.task-tabs button:hover{color:#1a1a1a}.task-tabs button.active{background:#1a1a1a;color:#fff;font-weight:600}.task-count{display:inline-block;margin-left:.375rem;min-width:1.375rem;padding:0 .3rem;font-size:.75rem;line-height:1.375;border-radius:999px;background:#ffffff2e}.task-tabs button:not(.active) .task-count{background:#f0f0f0;color:#666}.task-type-filter{display:flex;gap:.5rem;margin-bottom:.75rem}.task-type-filter button{display:inline-flex;align-items:center;gap:.375rem;border:1px solid #e8e8e8;background:#fff;color:#666;font-size:.8125rem;padding:.3rem .75rem;border-radius:999px;cursor:pointer;transition:all .15s ease}.task-type-filter button.active{border-color:#1a1a1a;color:#1a1a1a;font-weight:600}.task-dot{width:.5rem;height:.5rem;border-radius:50%}.task-add{display:flex;align-items:center;gap:.5rem;background:#fff;border:1px solid #e8e8e8;border-radius:12px;padding:.625rem .875rem;margin-bottom:1.25rem;box-shadow:0 1px 3px #0000000a;transition:border-color .15s ease}.task-add:focus-within{border-color:#bbb}.task-add-plus{color:#bbb;font-size:1.125rem;line-height:1}.task-add input[type=text],.task-add input:not([type]){flex:1}.task-add input{border:none;outline:none;font-size:.9375rem;background:none;color:#1a1a1a;min-width:0}.task-add input::placeholder{color:#bbb}.task-add-type{display:flex;gap:.25rem}.task-add-type button{border:1px solid #e8e8e8;background:#fff;color:#666;font-size:.75rem;padding:.2rem .55rem;border-radius:999px;cursor:pointer;transition:all .15s ease}.task-add-type button.active{color:#fff}.task-add-date{font-size:.8125rem;color:#666}.task-section{margin-bottom:1.5rem}.task-section h2{font-size:.8125rem;font-weight:600;color:#999;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.task-overdue h2{color:#d97706}.task-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:.375rem}.task-item{display:flex;align-items:flex-start;gap:.75rem;background:#fff;border:1px solid #e8e8e8;border-radius:12px;padding:.75rem .875rem;transition:border-color .15s ease,box-shadow .15s ease}.task-item:hover{border-color:#d5d5d5;box-shadow:0 2px 6px #0000000d}.task-item.done .task-title{color:#bbb;text-decoration:line-through}.task-item-editing{border-color:#1a1a1a}.task-check{flex-shrink:0;width:1.375rem;height:1.375rem;margin-top:.0625rem;border-radius:50%;border:1.5px solid #ccc;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .15s ease}.task-check:hover{border-color:#10b981}.task-item.done .task-check{background:#10b981;border-color:#10b981}.task-body{flex:1;min-width:0;cursor:text}.task-title-line{display:flex;align-items:baseline;gap:.5rem;flex-wrap:wrap}.task-title{font-size:.9375rem;line-height:1.5;word-break:break-word}.task-type-badge{font-size:.6875rem;font-weight:600;flex-shrink:0}.task-date{font-size:.75rem;color:#999;flex-shrink:0}.task-date.overdue{color:#d97706;font-weight:600}.task-note{margin-top:.25rem;font-size:.8125rem;color:#888;line-height:1.5;white-space:pre-wrap;word-break:break-word;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.task-actions{display:flex;gap:.125rem;opacity:0;transition:opacity .15s ease}.task-item:hover .task-actions,.task-item:focus-within .task-actions{opacity:1}.task-actions button{border:none;background:none;color:#bbb;font-size:.9375rem;width:1.625rem;height:1.625rem;border-radius:6px;cursor:pointer}.task-actions button:first-child:hover{color:#1a1a1a;background:#f0f0f0}.task-actions button:last-child:hover{color:#dc2626;background:#fef2f2}.task-done-today{border:1px dashed #e0e0e0;border-radius:12px;padding:.5rem .875rem}.task-done-today summary{font-size:.8125rem;color:#999;cursor:pointer;-webkit-user-select:none;user-select:none}.task-done-today .task-list{margin-top:.5rem}.task-history-switch{display:flex;gap:.5rem;margin-bottom:.75rem}.task-history-switch button{border:1px solid #e8e8e8;background:#fff;color:#666;font-size:.8125rem;padding:.3rem .875rem;border-radius:999px;cursor:pointer}.task-history-switch button.active{border-color:#1a1a1a;color:#1a1a1a;font-weight:600}.task-empty{padding:2rem 0;text-align:center;color:#bbb;font-size:.875rem}.task-edit-title,.task-edit-note{width:100%;border:1px solid #e8e8e8;border-radius:8px;padding:.45rem .625rem;font-size:.9375rem;font-family:inherit;color:#1a1a1a;outline:none;background:#fafafa}.task-edit-title:focus,.task-edit-note:focus{border-color:#1a1a1a;background:#fff}.task-edit-note{margin-top:.5rem;resize:vertical;font-size:.8125rem}.task-edit-row{display:flex;align-items:center;gap:.5rem;margin-top:.625rem;flex-wrap:wrap}.task-edit-seg{display:flex;border:1px solid #e8e8e8;border-radius:8px;overflow:hidden}.task-edit-seg button{border:none;background:none;font-size:.75rem;color:#666;padding:.3rem .625rem;cursor:pointer}.task-edit-seg button+button{border-left:1px solid #e8e8e8}.task-edit-seg button.active{background:#1a1a1a;color:#fff;font-weight:600}.task-edit-row input[type=date]{border:1px solid #e8e8e8;border-radius:8px;padding:.25rem .5rem;font-size:.8125rem;color:#666;outline:none}.task-edit-spacer{flex:1}.task-edit-save{border:none;background:#1a1a1a;color:#fff;font-size:.8125rem;font-weight:600;padding:.4rem 1rem;border-radius:8px;cursor:pointer}.task-edit-save:disabled{opacity:.4;cursor:not-allowed}.task-login-shell{display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,#fafafa,#f1f0ee)}.task-login{display:flex;flex-direction:column;gap:.875rem;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:2.5rem 2.25rem;width:min(22rem,90vw);box-shadow:0 8px 30px #0000000f}.task-login h1{font-size:1.25rem;font-weight:700;text-align:center;margin-bottom:.5rem}.task-login input{border:1px solid #e8e8e8;border-radius:10px;padding:.7rem .875rem;font-size:.9375rem;outline:none;transition:border-color .15s ease}.task-login input:focus{border-color:#1a1a1a}.task-login button{border:none;background:#1a1a1a;color:#fff;font-size:.9375rem;font-weight:600;padding:.7rem;border-radius:10px;cursor:pointer}.task-login button:disabled{opacity:.4;cursor:not-allowed}.task-login-error{color:#dc2626;font-size:.8125rem;text-align:center}.task-login a{text-align:center;font-size:.8125rem;color:#999;text-decoration:none}.task-login a:hover{color:#1a1a1a}.task-footer{margin-top:3rem;text-align:center;font-size:.75rem;color:#ccc}@media(max-width:480px){.task-shell{padding:1rem .875rem 2.5rem}.task-actions{opacity:1}.task-add{flex-wrap:wrap}.task-add input:not([type]){order:2;flex-basis:100%}}
