.habit-container{max-width:800px;margin:0 auto;padding:2rem}.header{margin-bottom:2rem}h1{font-size:2.5rem;margin-bottom:.5rem;color:#1a1a1a}.subtitle{font-size:1.125rem;color:#666}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.section-header h2{font-size:1.5rem;color:#1a1a1a;margin:0}.form-section{background:#f9fafb;padding:1rem;border-radius:8px;margin-bottom:1.5rem}.form-row{display:flex;gap:.75rem}.form-row input[type=text]{flex:1;padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;font-family:inherit}.form-row input[type=text]:focus{outline:none;border-color:#6366f1}.time-input{padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;font-family:inherit;width:130px}.time-input:focus{outline:none;border-color:#6366f1}.form-options{margin-top:.75rem}.alarm-option{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-size:.875rem;color:#374151}.alarm-option input[type=checkbox]{width:16px;height:16px;cursor:pointer}.btn-primary{padding:.75rem 1.5rem;background:#6366f1;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:background .2s ease;white-space:nowrap}.btn-primary:hover{background:#4f46e5}.btn-secondary{padding:.75rem 1.5rem;background:#e5e7eb;color:#374151;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:background .2s ease}.btn-secondary:hover{background:#d1d5db}.btn-danger{padding:.5rem 1rem;background:#ef4444;color:#fff;border:none;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:background .2s ease}.btn-danger:hover{background:#dc2626}.btn-back{padding:.5rem 1rem;background:transparent;color:#6366f1;border:none;font-size:1rem;cursor:pointer;margin-bottom:1rem}.btn-back:hover{text-decoration:underline}.btn-icon{padding:.5rem;background:transparent;border:none;color:#6b7280;cursor:pointer;border-radius:4px;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.btn-icon:hover{background:#f3f4f6;color:#6366f1}.message{padding:1rem;border-radius:8px;margin-bottom:1.5rem;opacity:0;transition:opacity .3s ease}.message.visible{opacity:1}.message.success{background:#d1fae5;color:#065f46}.message.error{background:#fee2e2;color:#991b1b}.loading{text-align:center;padding:2rem;color:#666}.hidden{display:none!important}.checklists-list{display:flex;flex-direction:column;gap:.75rem}.checklist-card{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;background:#fff;border:1px solid #e5e7eb;border-radius:10px;cursor:pointer;transition:all .2s ease}.checklist-card:hover{border-color:#6366f1;box-shadow:0 2px 8px #6366f11a}.checklist-name{font-size:1.125rem;font-weight:500;color:#1a1a1a}.checklist-actions{display:flex;gap:.5rem;align-items:center}.history-link{color:#6b7280;text-decoration:none}.history-link:hover{color:#6366f1;background:#f3f4f6}.checklist-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.checklist-header h2{font-size:1.5rem;color:#1a1a1a;margin:0}.items-list{display:flex;flex-direction:column;gap:.5rem}.item-row{display:flex;justify-content:space-between;align-items:center;padding:.875rem 1rem;background:#fff;border:1px solid #e5e7eb;border-radius:8px;transition:all .2s ease}.item-row:hover{border-color:#d1d5db}.item-row.completed{background:#f0fdf4;border-color:#bbf7d0}.item-row.completed .item-name{text-decoration:line-through;color:#6b7280}.checkbox-label{display:flex;align-items:center;gap:.75rem;cursor:pointer;flex:1}.checkbox-label input[type=checkbox]{display:none}.checkmark{width:22px;height:22px;border:2px solid #d1d5db;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0}.checkbox-label input[type=checkbox]:checked+.checkmark{background:#22c55e;border-color:#22c55e}.checkbox-label input[type=checkbox]:checked+.checkmark:after{content:"";width:6px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg);margin-bottom:2px}.item-name{font-size:1rem;color:#1a1a1a}.item-time{font-size:.875rem;color:#6b7280;background:#f3f4f6;padding:.25rem .5rem;border-radius:4px;margin-left:.5rem}.alarm-icon{margin-left:.5rem;font-size:.875rem}.btn-delete-item{padding:.25rem .5rem;background:transparent;border:none;color:#ef4444;font-size:1.25rem;cursor:pointer;opacity:0;transition:opacity .2s ease;border-radius:4px}.item-row:hover .btn-delete-item{opacity:1}.btn-delete-item:hover{background:#fee2e2}.empty-state{text-align:center;padding:3rem 2rem;background:#f9fafb;border-radius:12px}.empty-state h3{font-size:1.25rem;margin-bottom:.5rem;color:#1a1a1a}.empty-state p{color:#666}.auth-required{max-width:600px;margin:4rem auto;text-align:center;padding:3rem;background:#f9fafb;border-radius:12px}@media(max-width:768px){.habit-container{padding:1rem}h1{font-size:2rem}.section-header{flex-direction:column;align-items:stretch;gap:1rem}.form-row{flex-direction:column}.form-row input[type=text],.time-input{width:100%}.checklist-header{flex-direction:column;align-items:stretch;gap:1rem}.btn-delete-item{opacity:1}.checkbox-label{flex-wrap:wrap}.item-time{margin-left:0;margin-top:.25rem;flex-basis:100%;padding-left:2rem}}
