*{box-sizing:border-box;margin:0;padding:0}html{font-size:16px}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;background-color:#f5f5f5;color:#333;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.container{max-width:600px;margin:0 auto;padding:1rem;min-height:100vh}.header{background:#0070f3;color:#fff;padding:1rem;text-align:center;position:sticky;top:0;z-index:100;box-shadow:0 2px 8px #0000001a;transition:all .3s ease}.header h1{font-size:1.5rem;font-weight:600;margin:0}.header-subtitle{font-size:.875rem;opacity:.9;margin-top:.25rem;margin-bottom:0}.manage-stores-link{color:#fff;text-decoration:none;font-size:.875rem;padding:.5rem 1rem;background:#fff3;border-radius:6px;transition:background .2s}.manage-stores-link:hover{background:#ffffff4d}.offline-banner{background:#ff9800;color:#fff;padding:1rem;display:flex;align-items:center;gap:1rem;box-shadow:0 2px 8px #0000001a;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.offline-icon{font-size:1.5rem}.offline-text{display:flex;flex-direction:column;gap:.125rem}.offline-text strong{font-size:.875rem;font-weight:600}.offline-subtext{font-size:.75rem;opacity:.9}.install-banner{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;box-shadow:0 2px 8px #0000001a;animation:slideDown .3s ease-out}.install-content{display:flex;align-items:center;gap:1rem;flex:1}.install-icon{font-size:1.5rem}.install-text{display:flex;flex-direction:column;gap:.125rem}.install-text strong{font-size:.875rem;font-weight:600}.install-subtext{font-size:.75rem;opacity:.9}.install-actions{display:flex;gap:.5rem;align-items:center}.install-button{background:#fff;color:#667eea;border:none;padding:.5rem 1rem;border-radius:6px;font-weight:600;font-size:.875rem;cursor:pointer;transition:all .2s}.install-button:hover{transform:scale(1.05);box-shadow:0 2px 8px #0003}.dismiss-button{background:transparent;color:#fff;border:none;width:32px;height:32px;border-radius:50%;font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}.dismiss-button:hover{background:#fff3}.store-section{background:#fff;padding:1rem;margin-bottom:1rem;border-radius:8px;box-shadow:0 1px 3px #0000001a}.store-label{display:block;font-weight:600;margin-bottom:.5rem;color:#333}.store-input{width:100%;padding:.75rem;border:2px solid #e0e0e0;border-radius:6px;font-size:1rem;transition:border-color .2s}.store-input:focus{outline:none;border-color:#0070f3}.content{padding:1rem 0}.add-item-form{display:flex;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap}.input-wrapper{position:relative;flex:1;min-width:150px}.add-item-input{width:100%;padding:.75rem;border:2px solid #e0e0e0;border-radius:6px;font-size:1rem}.add-item-input:focus{outline:none;border-color:#0070f3}.add-item-button{background:#10b981;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .2s;min-width:80px}.add-item-button:hover{background:#059669}.add-item-button:active{transform:scale(.98)}.store-input-inline{flex:0 1 200px;min-width:120px}.suggestions{position:absolute;top:calc(100% + .25rem);left:0;right:0;background:#fff;border:2px solid #0070f3;border-radius:8px;max-height:200px;overflow-y:auto;z-index:50;box-shadow:0 8px 24px #0070f326,0 4px 8px #0000001a}.suggestion-item{padding:.75rem 1rem;cursor:pointer;border-bottom:1px solid #e8f0fe;transition:all .15s ease}.suggestion-item:last-child{border-bottom:none}.suggestion-item:hover{background:linear-gradient(to right,#e8f0fe,#f0f7ff);color:#0070f3;font-weight:500}.items-list{list-style:none;display:flex;flex-direction:column;gap:.5rem}.item-row{display:flex;align-items:center;gap:.75rem;background:#fff;padding:1rem;border-radius:8px;box-shadow:0 1px 3px #0000001a;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.item-row:not(.completed):active{background:#10b9810d}.item-row.completed{opacity:.7}.item-row.completing{animation:itemComplete .3s ease-out forwards}.item-row.dragging{opacity:.4;transform:scale(.95);cursor:grabbing;animation:dragActivate .3s ease-out}@keyframes dragActivate{0%{transform:scale(1);box-shadow:0 1px 3px #0000001a}50%{transform:scale(1.05);box-shadow:0 4px 12px #10b9814d}to{transform:scale(.95);box-shadow:0 1px 3px #0000001a}}.item-row.drag-over{border:2px dashed #10b981;border-radius:8px;background:#10b9810d}.item-row:not(.completed){cursor:grab}.item-row:not(.completed):active{cursor:grabbing}.drag-handle{color:#999;font-size:1.25rem;line-height:1;cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:0 .25rem;opacity:.6;transition:opacity .2s}.drag-handle:hover{opacity:1;color:#666}.item-row.dragging .drag-handle{cursor:grabbing}@keyframes itemComplete{0%{opacity:1;transform:translate(0) scale(1)}50%{transform:translate(10px) scale(.98)}to{opacity:.5;transform:translate(0) scale(.95)}}.item-content{flex:1;display:flex;flex-direction:column;gap:.25rem}.item-text{font-size:1rem;word-break:break-word}.item-text.completed{text-decoration:line-through;color:#999}.item-store{font-size:.75rem;color:#666;background:#f0f0f0;padding:.125rem .5rem;border-radius:4px;align-self:flex-start;cursor:pointer;transition:background-color .2s}.item-store:hover{background:#e0e0e0}.edit-store-form{display:flex;gap:.25rem;align-items:center;margin-top:.25rem}.edit-store-input{flex:1;padding:.25rem .5rem;border:2px solid #0070f3;border-radius:4px;font-size:.75rem;min-width:100px}.edit-store-input:focus{outline:none;border-color:#0051a2}.save-store-button,.cancel-store-button{width:24px;height:24px;border:none;border-radius:4px;font-size:.875rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s}.save-store-button{background:#28a745;color:#fff}.save-store-button:hover{background:#218838}.cancel-store-button{background:#dc3545;color:#fff}.cancel-store-button:hover{background:#c82333}.delete-button{background:#dc3545;color:#fff;border:none;width:40px;height:40px;border-radius:50%;font-size:1.25rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s,transform .1s;flex-shrink:0}.delete-button:hover{background:#c82333}.delete-button:active{transform:scale(.95)}.actions{margin-top:1.5rem;display:flex;justify-content:center}.clear-completed-button{background:#ffc107;color:#333;border:none;padding:.75rem 1.5rem;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .2s}.clear-completed-button:hover{background:#e0a800}.empty-state{text-align:center;padding:3rem 1rem;color:#999}.empty-state-icon{font-size:4rem;margin-bottom:1rem}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal{background:#fff;padding:1.5rem;border-radius:8px;max-width:400px;width:100%;box-shadow:0 4px 20px #0003}.modal h2{margin-bottom:1rem;font-size:1.25rem}.modal p{margin-bottom:1.5rem;color:#666}.modal-actions{display:flex;gap:.5rem;justify-content:flex-end}.modal-button{padding:.5rem 1rem;border-radius:4px;border:none;font-weight:600;cursor:pointer}.modal-button.cancel{background:#e0e0e0;color:#333}.modal-button.danger{background:#dc3545;color:#fff}.modal-button:hover{opacity:.9}.password-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:2rem;background:linear-gradient(135deg,#667eea,#764ba2)}.password-box{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 8px 32px #0003;max-width:400px;width:100%;text-align:center}.password-box h1{margin-bottom:.5rem;color:#333}.password-box p{color:#666;margin-bottom:1.5rem}.password-form{display:flex;flex-direction:column;gap:.75rem}.password-input{padding:.75rem;border:2px solid #e0e0e0;border-radius:6px;font-size:1rem}.password-input:focus{outline:none;border-color:#0070f3}.password-submit{background:#0070f3;color:#fff;border:none;padding:.75rem;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer}.password-submit:hover{background:#0051a2}.error-message{color:#dc3545;font-size:.875rem;margin-top:.5rem}.back-link{color:#fff;text-decoration:none;font-size:1rem;padding:.5rem;transition:opacity .2s}.back-link:hover{opacity:.8}.section-title{font-size:1.125rem;font-weight:600;margin-bottom:1rem;color:#333}.stores-list{list-style:none;display:flex;flex-direction:column;gap:.75rem}.store-item{background:#fff;padding:1rem;border-radius:8px;box-shadow:0 1px 3px #0000001a;display:flex;justify-content:space-between;align-items:center;gap:1rem}.store-info{flex:1;display:flex;flex-direction:column;gap:.25rem}.store-name{font-size:1rem;font-weight:600;color:#333}.store-count{font-size:.875rem;color:#666}.store-actions{display:flex;gap:.5rem}.store-action-button{width:36px;height:36px;border:none;border-radius:6px;font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.store-action-button.edit{background:#0070f3;color:#fff}.store-action-button.edit:hover{background:#0051a2}.store-action-button.delete{background:#dc3545;color:#fff}.store-action-button.delete:hover:not(:disabled){background:#c82333}.store-action-button.delete:disabled{background:#e0e0e0;cursor:not-allowed;opacity:.5}.store-action-button.save{background:#28a745;color:#fff;width:40px;height:40px}.store-action-button.save:hover{background:#218838}.store-action-button.cancel{background:#dc3545;color:#fff;width:40px;height:40px}.store-action-button.cancel:hover{background:#c82333}.edit-store-row{flex:1;display:flex;gap:.5rem;align-items:center}.edit-store-input-full{flex:1;padding:.5rem;border:2px solid #0070f3;border-radius:6px;font-size:1rem}.edit-store-input-full:focus{outline:none;border-color:#0051a2}@media (max-width: 480px){.container{padding:.5rem}.header h1{font-size:1.25rem}.add-item-form{flex-direction:column}.input-wrapper{width:100%;min-width:0}.add-item-input{padding:.5rem;font-size:1rem}.store-input-inline{flex:1 1 auto;min-width:0;width:100%}.add-item-button{width:100%;padding:.625rem 1rem}.item-row{padding:.75rem}.delete-button{width:36px;height:36px;font-size:1rem}}
