*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;color:#1e293b}.app{max-width:640px;margin:0 auto;padding:40px 20px}.card{background:#fff;border-radius:16px;box-shadow:0 20px 40px #00000026;padding:32px;margin-bottom:24px}.header{text-align:center;margin-bottom:28px}.header h1{font-size:28px;font-weight:800;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;margin-bottom:8px}.header p{color:#64748b;font-size:14px}.badges{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:16px}.badge{background:#eef2ff;color:#4f46e5;font-size:12px;font-weight:600;padding:4px 12px;border-radius:999px}.section-title{font-size:16px;font-weight:700;margin-bottom:16px;display:flex;align-items:center;gap:8px}.add-form{display:flex;gap:8px;margin-bottom:16px}.add-form input{flex:1;padding:10px 14px;border:2px solid #e2e8f0;border-radius:10px;font-size:14px;outline:none;transition:border-color .2s}.add-form input:focus{border-color:#667eea}.add-form button{padding:10px 20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:10px;font-weight:600;cursor:pointer;transition:opacity .2s}.add-form button:hover{opacity:.9}.add-form button:disabled{opacity:.5;cursor:not-allowed}.todo-list{list-style:none}.todo-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #f1f5f9}.todo-item:last-child{border-bottom:none}.todo-item input[type=checkbox]{width:18px;height:18px;accent-color:#667eea;cursor:pointer}.todo-item span{flex:1;font-size:14px}.todo-item span.completed{text-decoration:line-through;color:#94a3b8}.todo-item button{background:none;border:none;color:#ef4444;cursor:pointer;font-size:16px;padding:4px}.todo-item button:hover{color:#b91c1c}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.stat{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:16px;text-align:center}.stat .value{font-size:24px;font-weight:800;color:#4f46e5}.stat .label{font-size:12px;color:#64748b;margin-top:4px}.kv-demo{display:flex;flex-direction:column;gap:12px}.kv-row{display:flex;gap:8px}.kv-row input{flex:1;padding:10px 14px;border:2px solid #e2e8f0;border-radius:10px;font-size:14px;outline:none}.kv-row button{padding:10px 16px;background:#0f172a;color:#fff;border:none;border-radius:10px;font-weight:600;cursor:pointer;font-size:13px}.kv-result{font-family:monospace;background:#0f172a;color:#34d399;padding:12px 14px;border-radius:10px;font-size:13px;word-break:break-all}.footer{text-align:center;color:#fffc;font-size:13px;margin-top:24px}.footer a{color:#fff;font-weight:600}.loading{text-align:center;color:#64748b;padding:20px;font-size:14px}.error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;padding:12px 14px;border-radius:10px;font-size:13px;margin-bottom:16px}
