:root{color:#202335;background:#f4f5ff;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}.page-shell{display:grid;min-height:100vh;place-items:center;padding:32px 20px;background:radial-gradient(circle at 10% 6%,rgba(129,140,248,.22),transparent 32%),radial-gradient(circle at 90% 95%,rgba(45,212,191,.19),transparent 30%),#f4f5ff;transition:background .25s ease}.todo-card{width:min(100%,680px);overflow:hidden;border:1px solid rgba(255,255,255,.84);border-radius:24px;background:#ffffffe0;box-shadow:0 22px 60px #4f46e524,0 3px 9px #0f172a0a;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand-heading{display:flex;min-width:0;align-items:center;gap:14px}.brand-logo{display:grid;width:56px;height:56px;flex:0 0 auto;place-items:center;border-radius:18px;background:linear-gradient(135deg,#777ef6,#31c9b5);box-shadow:0 10px 20px #5b61cf33;transition:background .3s ease,box-shadow .3s ease}.brand-logo svg{width:31px;height:31px;fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.6}.card-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:36px 38px 26px}.header-actions{display:flex;align-items:center;gap:16px}.theme-switcher{display:flex}.theme-options{display:flex;gap:2px;padding:3px;border-radius:10px;background:#f4f4fa}.theme-option{display:inline-flex;height:29px;flex:0 0 auto;align-items:center;gap:4px;padding:0 7px;border:0;border-radius:7px;background:transparent;color:#85889b;font-size:11px;white-space:nowrap;transition:color .18s,background .18s,box-shadow .18s}.theme-option svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.theme-option:hover{color:#585ec4}.theme-option.active{background:#fff;color:#565bc5;font-weight:700;box-shadow:0 2px 6px #32346114}.theme-option:focus-visible{outline:3px solid rgba(99,102,241,.24);outline-offset:2px}.eyebrow{margin:0 0 8px;color:#777cc8;font-size:11px;font-weight:800;letter-spacing:.14em}h1{margin:0;color:#202335;font-size:clamp(28px,6vw,36px);line-height:1.15;letter-spacing:-.045em}.subtitle{margin:9px 0 0;color:#83879a;font-size:14px}.progress{display:grid;width:72px;height:72px;flex:0 0 auto;place-content:center;border:5px solid #e5e7ff;border-radius:50%;background:#fafaff;text-align:center}.progress-number{color:#595fc3;font-size:14px;font-weight:800;line-height:1.1}.progress-label{margin-top:2px;color:#989bb0;font-size:10px}.add-form{display:flex;gap:10px;padding:0 38px}.new-todo-input,.edit-input{width:100%;min-width:0;border:1px solid #e6e7f0;outline:none;color:#292c3c;transition:border-color .2s,box-shadow .2s}.new-todo-input{height:50px;padding:0 16px;border-radius:13px;background:#fbfbff;font-size:15px}.new-todo-input::placeholder{color:#afb1bf}.new-todo-input:focus,.edit-input:focus{border-color:#9196ec;box-shadow:0 0 0 4px #6366f11f}.add-button{display:inline-flex;height:50px;flex:0 0 auto;align-items:center;gap:6px;padding:0 17px;border:0;border-radius:13px;background:#5b61cf;color:#fff;font-size:14px;font-weight:700;box-shadow:0 7px 15px #5b61cf3d;transition:background .2s,transform .2s}.add-button span{font-size:20px;font-weight:400;line-height:1}.add-button:hover:not(:disabled){background:#4f55bf;transform:translateY(-1px)}.add-button:disabled{background:#c8cae8;box-shadow:none}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:25px 38px 14px}.filters{display:inline-flex;gap:3px;padding:3px;border-radius:10px;background:#f4f4fa}.filter-button,.clear-button{border:0;background:transparent;color:#888ba0;font-size:13px;transition:color .18s,background .18s,box-shadow .18s}.filter-button{padding:7px 11px;border-radius:7px}.filter-button:hover{color:#565b75}.filter-button.active{background:#fff;color:#565bc5;font-weight:700;box-shadow:0 2px 6px #32346114}.clear-button{padding:7px 0}.clear-button:hover{color:#e15f72}.todo-list{display:grid;gap:8px;align-content:start;height:190px;max-height:365px;margin:0;padding:0 28px 20px;overflow:auto;scrollbar-gutter:stable;list-style:none}.todo-item{display:flex;min-height:58px;align-items:center;gap:13px;padding:9px 10px;border:1px solid transparent;border-radius:13px;transition:background .18s,border-color .18s}.todo-item:hover,.todo-item.editing{border-color:#ececf5;background:#fbfbfe}.check-control{position:relative;display:grid;width:22px;height:22px;flex:0 0 auto;place-items:center}.check-control input{position:absolute;width:1px;height:1px;opacity:0}.checkmark{display:grid;width:21px;height:21px;place-items:center;border:2px solid #c8cad8;border-radius:7px;color:transparent;font-size:13px;font-weight:800;line-height:1;transition:background .18s,border-color .18s,color .18s}.check-control input:focus-visible+.checkmark{outline:3px solid rgba(99,102,241,.24);outline-offset:2px}.check-control input:checked+.checkmark{border-color:#5d63ce;background:#5d63ce;color:#fff}.todo-title{min-width:0;flex:1;overflow:hidden;border:0;background:transparent;color:#333649;font-size:15px;line-height:1.4;text-align:left;text-overflow:ellipsis;white-space:nowrap}.todo-title:hover{color:#5a60c7}.completed .todo-title{color:#a6a9b7;text-decoration:line-through}.edit-input{height:38px;flex:1;padding:0 10px;border-radius:8px;background:#fff;font-size:15px}.item-actions{display:flex;gap:2px;opacity:0;transition:opacity .18s}.todo-item:hover .item-actions,.todo-item:focus-within .item-actions{opacity:1}.icon-button{display:grid;width:32px;height:32px;place-items:center;border:0;border-radius:8px;background:transparent;color:#9194a6}.icon-button:hover{background:#eef;color:#5a60c7}.icon-button.delete:hover{background:#fff0f2;color:#df536c}.icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.empty-state{display:grid;min-height:190px;place-content:center;padding:24px;color:#7f8296;text-align:center}.empty-icon{display:grid;width:42px;height:42px;margin:0 auto 12px;place-items:center;border-radius:50%;background:#e8e9ff;color:#646ad1;font-size:22px;font-weight:800}.empty-state p{margin:0;color:#595c70;font-size:15px;font-weight:700}.empty-state span{margin-top:6px;font-size:13px}.card-footer{display:flex;justify-content:space-between;gap:12px;padding:17px 38px;border-top:1px solid #f0f0f5;color:#85889a;font-size:12px}.edit-hint{color:#a5a7b5}:root[data-theme=dark]{color:#e9ebf6;background:#11121c}:root[data-theme=dark] .page-shell{background:radial-gradient(circle at 10% 6%,rgba(99,102,241,.22),transparent 32%),radial-gradient(circle at 90% 95%,rgba(20,184,166,.16),transparent 30%),#11121c}:root[data-theme=dark] .todo-card{border-color:#ffffff14;background:#1b1d2eeb;box-shadow:0 22px 60px #00000047,0 3px 9px #0000002e}:root[data-theme=dark] .brand-logo{background:linear-gradient(135deg,#211b4f,#494187 52%,#146f82);box-shadow:0 12px 30px #23186c80,inset 0 0 0 1px #ffffff29}:root[data-theme=dark] .eyebrow{color:#a9aeff}:root[data-theme=dark] h1{color:#f0f1fa}:root[data-theme=dark] .subtitle,:root[data-theme=dark] .progress-label{color:#a5a8ba}:root[data-theme=dark] .progress{border-color:#43466b;background:#262941}:root[data-theme=dark] .progress-number{color:#bdc0ff}:root[data-theme=dark] .new-todo-input,:root[data-theme=dark] .edit-input{border-color:#424662;background:#202238;color:#f0f1fa}:root[data-theme=dark] .new-todo-input::placeholder{color:#7f8399}:root[data-theme=dark] .new-todo-input:focus,:root[data-theme=dark] .edit-input:focus{border-color:#8d92ff;box-shadow:0 0 0 4px #818cf833}:root[data-theme=dark] .add-button{background:#7379e8;box-shadow:0 7px 15px #6366f140}:root[data-theme=dark] .add-button:hover:not(:disabled){background:#858af0}:root[data-theme=dark] .add-button:disabled{background:#464a71;color:#a9acc0}:root[data-theme=dark] .filters,:root[data-theme=dark] .theme-options{background:#262940}:root[data-theme=dark] .filter-button,:root[data-theme=dark] .clear-button,:root[data-theme=dark] .theme-option{color:#a5a8bb}:root[data-theme=dark] .filter-button:hover,:root[data-theme=dark] .theme-option:hover{color:#c1c4ff}:root[data-theme=dark] .filter-button.active,:root[data-theme=dark] .theme-option.active{background:#3b3f60;color:#d9dcff;box-shadow:0 2px 7px #0000002e}:root[data-theme=dark] .clear-button:hover{color:#ff95a4}:root[data-theme=dark] .todo-item:hover,:root[data-theme=dark] .todo-item.editing{border-color:#3a3e5a;background:#22243a}:root[data-theme=dark] .checkmark{border-color:#696d88}:root[data-theme=dark] .check-control input:checked+.checkmark{border-color:#8288f0;background:#7479e6}:root[data-theme=dark] .todo-title{color:#e2e4f0}:root[data-theme=dark] .todo-title:hover{color:#bcc0ff}:root[data-theme=dark] .completed .todo-title{color:#7c8096}:root[data-theme=dark] .icon-button{color:#a1a5ba}:root[data-theme=dark] .icon-button:hover{background:#3b3e61;color:#c4c7ff}:root[data-theme=dark] .icon-button.delete:hover{background:#4b2c3a;color:#ff9bac}:root[data-theme=dark] .empty-state{color:#a5a8ba}:root[data-theme=dark] .empty-icon{background:#3a3d61;color:#c3c6ff}:root[data-theme=dark] .empty-state p{color:#e1e3ef}:root[data-theme=dark] .card-footer{border-top-color:#353853;color:#a3a6b8}:root[data-theme=dark] .edit-hint{color:#777b92}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:640px){.card-header{flex-wrap:wrap}.header-actions{width:100%;justify-content:space-between}}@media(max-width:560px){.page-shell{align-items:center;padding:20px 12px}.todo-card{border-radius:24px}.card-header{padding:30px 22px 22px}.add-form{padding:0 22px}.toolbar{padding:22px 22px 12px}.todo-list{padding:0 12px 18px}.card-footer{padding:16px 22px}.edit-hint{display:none}}@media(max-width:390px){.brand-heading{gap:12px}.brand-logo{width:50px;height:50px;border-radius:16px}.card-header{align-items:flex-start}.add-button{padding:0 13px}.theme-option{width:29px;justify-content:center;padding:0}.theme-option span{display:none}.toolbar{align-items:flex-start;flex-direction:column}}
