*{margin:0;padding:0;box-sizing:border-box}html{font-size:16px;-webkit-text-size-adjust:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;background:#f5f5f5;color:#333;line-height:1.5;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{min-height:100vh;display:flex;flex-direction:column}.app{min-height:100vh;display:flex;flex-direction:column;max-width:600px;margin:0 auto;width:100%}.header{background:#4a90a4;color:#fff;padding:1rem;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:100;box-shadow:0 2px 4px #0000001a}.header h1{font-size:1.5rem;font-weight:600}.counter{background:#fff3;padding:.25rem .75rem;border-radius:1rem;font-size:.9rem;font-weight:500}.main{flex:1;padding:1rem;display:flex;flex-direction:column}.input-section{display:flex;flex-direction:column;gap:1rem;flex:1}.text-input{flex:1;min-height:300px;padding:1rem;font-size:1rem;font-family:inherit;border:2px solid #ddd;border-radius:8px;resize:none;transition:border-color .2s}.text-input:focus{outline:none;border-color:#4a90a4}.text-input::placeholder{color:#999}.input-actions{display:flex;gap:.75rem}.btn{padding:.875rem 1.5rem;font-size:1rem;font-weight:500;border:none;border-radius:8px;cursor:pointer;transition:background-color .2s,opacity .2s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{flex:1;background:#4a90a4;color:#fff}.btn-primary:hover:not(:disabled){background:#3d7a8c}.btn-secondary{background:#e0e0e0;color:#333}.btn-secondary:hover:not(:disabled){background:#d0d0d0}.btn-danger{background:#dc3545;color:#fff}.btn-danger:hover:not(:disabled){background:#c82333}.checklist-section{display:flex;flex-direction:column;gap:1rem;flex:1}.checklist{list-style:none;display:flex;flex-direction:column;gap:.5rem;flex:1}.checklist-item{background:#fff;border-radius:8px;display:flex;align-items:center;box-shadow:0 1px 3px #0000001a;transition:transform .15s,box-shadow .15s}.checklist-item:active{transform:scale(.98)}.checklist-item.checked{background:#f0f0f0}.checklist-item.checked .item-text{text-decoration:line-through;color:#888}.item-label{flex:1;display:flex;align-items:center;gap:.75rem;padding:1rem;cursor:pointer;-webkit-tap-highlight-color:transparent}.item-label input[type=checkbox]{position:absolute;opacity:0;width:0;height:0}.checkmark{width:24px;height:24px;border:2px solid #4a90a4;border-radius:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background-color .15s}.item-label input:checked+.checkmark{background:#4a90a4}.item-label input:checked+.checkmark:after{content:"";width:6px;height:12px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}.item-text{font-size:1rem;word-break:break-word}.btn-remove{width:44px;height:44px;background:transparent;border:none;font-size:1.5rem;color:#999;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.btn-remove:hover{color:#dc3545}.list-actions{display:flex;flex-wrap:wrap;gap:.5rem;padding-top:.5rem;border-top:1px solid #eee}.list-actions .btn{flex:1;min-width:120px;padding:.75rem 1rem;font-size:.9rem}@media (max-width: 480px){.header{padding:.875rem 1rem}.header h1{font-size:1.25rem}.main{padding:.75rem}.text-input{min-height:250px}.input-actions,.list-actions{flex-direction:column}.list-actions .btn{min-width:auto}}.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;animation:fadeIn .15s ease}.modal{background:#fff;border-radius:12px;padding:1.5rem;max-width:360px;width:100%;box-shadow:0 8px 32px #0003;animation:scaleIn .15s ease}.modal-message{font-size:1.05rem;margin-bottom:1.25rem;text-align:center}.modal-actions{display:flex;gap:.75rem}.modal-actions .btn{flex:1}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes scaleIn{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}
