.app{display:flex;flex-direction:column;height:100vh;overflow:hidden}.app-header{background:#fff;border-bottom:1px solid #e1e5e9;padding:1rem 1.5rem;box-shadow:0 2px 4px #0000001a}.header-content{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto}.app-title{font-size:1.5rem;font-weight:600;color:#2d3748;margin:0}.header-actions{display:flex;gap:.5rem}.header-search{margin-top:1rem;max-width:1200px;margin-left:auto;margin-right:auto}.error-banner{background:#fed7d7;border:1px solid #feb2b2;color:#c53030;padding:.75rem 1.5rem;margin-bottom:0}.error-content{display:flex;align-items:center;gap:.75rem;max-width:1200px;margin:0 auto}.error-icon{font-size:1.2rem}.error-message{flex:1}.error-close{background:none;border:none;color:#c53030;cursor:pointer;padding:.25rem;border-radius:.25rem}.error-close:hover{background:#c530301a}.app-main{flex:1;overflow:hidden;background:#f7fafc}.main-content{display:flex;height:100%;max-width:1200px;margin:0 auto;gap:1px;background:#e2e8f0}.sidebar{width:400px;background:#fff;border-right:1px solid #e2e8f0;display:flex;flex-direction:column;overflow:hidden}.sidebar-header{padding:1rem;border-bottom:1px solid #e2e8f0;background:#f7fafc;display:flex;justify-content:space-between;align-items:center}.sidebar-header h2{font-size:1rem;font-weight:600;color:#4a5568;margin:0}.clear-search{background:none;border:none;color:#718096;cursor:pointer;font-size:.875rem;text-decoration:underline}.clear-search:hover{color:#2d3748}.content{flex:1;background:#fff;overflow:auto;padding:0}.welcome-screen{display:flex;align-items:center;justify-content:center;height:100%;padding:2rem}.welcome-content{text-align:center;max-width:400px}.welcome-icon{font-size:4rem;margin-bottom:1rem}.welcome-content h3{font-size:1.5rem;margin-bottom:1rem;color:#2d3748}.welcome-content p{margin-bottom:2rem;color:#718096;line-height:1.6}.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border:1px solid transparent;border-radius:.375rem;font-size:.875rem;font-weight:500;text-decoration:none;cursor:pointer;transition:all .2s;white-space:nowrap}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:#4299e1;color:#fff;border-color:#4299e1}.btn-primary:hover:not(:disabled){background:#3182ce;border-color:#3182ce}.btn-secondary{background:#e2e8f0;color:#4a5568;border-color:#e2e8f0}.btn-secondary:hover:not(:disabled){background:#cbd5e0;border-color:#cbd5e0}.btn-large{padding:.75rem 1.5rem;font-size:1rem}.app-footer{background:#2d3748;color:#a0aec0;padding:1rem 1.5rem;border-top:1px solid #4a5568}.footer-content{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;font-size:.875rem}.footer-stats{display:flex;gap:1rem}.memo-list{flex:1;overflow:hidden;display:flex;flex-direction:column}.memo-list-header{padding:1rem;border-bottom:1px solid #e2e8f0;background:#f7fafc}.memo-list-header h3{font-size:1rem;font-weight:600;color:#4a5568;margin:0}.memo-items{flex:1;overflow-y:auto}.memo-item{display:flex;padding:1rem;border-bottom:1px solid #f1f5f9;cursor:pointer;transition:background-color .2s;position:relative}.memo-item:hover{background:#f8fafc}.memo-item.selected{background:#ebf8ff;border-right:3px solid #4299e1}.memo-item-content{flex:1;min-width:0}.memo-title{font-weight:600;font-size:.9rem;color:#2d3748;margin-bottom:.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.memo-preview{font-size:.8rem;color:#718096;line-height:1.4;margin-bottom:.5rem;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.memo-meta{display:flex;gap:.5rem;font-size:.75rem;color:#a0aec0}.memo-edited{background:#fed7d7;color:#c53030;padding:.125rem .25rem;border-radius:.25rem}.memo-actions{display:flex;flex-direction:column;gap:.25rem;margin-left:.5rem}.delete-btn{background:none;border:none;cursor:pointer;padding:.25rem;border-radius:.25rem;opacity:.6;transition:all .2s}.delete-btn:hover{opacity:1;background:#fed7d7}.delete-confirm-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.delete-confirm-dialog{background:#fff;padding:1.5rem;border-radius:.5rem;box-shadow:0 10px 25px #0000004d;max-width:400px;margin:1rem}.confirm-title{font-weight:600;font-size:1.1rem;margin-bottom:.5rem;color:#2d3748}.confirm-memo-title{margin-bottom:.75rem;font-weight:500;color:#4a5568}.confirm-warning{color:#e53e3e;font-size:.875rem;margin-bottom:1.5rem}.confirm-actions{display:flex;gap:.75rem;justify-content:flex-end}.confirm-cancel{background:#e2e8f0;color:#4a5568;border:none;padding:.5rem 1rem;border-radius:.375rem;cursor:pointer;font-weight:500}.confirm-delete{background:#e53e3e;color:#fff;border:none;padding:.5rem 1rem;border-radius:.375rem;cursor:pointer;font-weight:500}.confirm-cancel:hover{background:#cbd5e0}.confirm-delete:hover{background:#c53030}.memo-list.loading{display:flex;align-items:center;justify-content:center;padding:2rem}.loading-message{color:#718096;font-size:.875rem}.memo-list.empty{display:flex;align-items:center;justify-content:center;padding:2rem}.empty-message{text-align:center;color:#718096}.empty-icon{font-size:2rem;margin-bottom:.5rem}.empty-sub{font-size:.875rem;margin-top:.5rem}.search-box{width:100%}.search-input-container{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:.75rem;color:#a0aec0;font-size:.875rem;pointer-events:none}.search-input{width:100%;padding:.75rem .75rem .75rem 2.25rem;border:1px solid #e2e8f0;border-radius:.5rem;font-size:.875rem;background:#fff;transition:border-color .2s}.search-input:focus{outline:none;border-color:#4299e1;box-shadow:0 0 0 3px #4299e11a}.search-clear{position:absolute;right:.5rem;background:none;border:none;color:#a0aec0;cursor:pointer;padding:.25rem;border-radius:.25rem;font-size:1rem}.search-clear:hover{background:#f7fafc;color:#4a5568}.search-info{margin-top:.5rem;font-size:.75rem;color:#718096}.memo-form{height:100%;display:flex;flex-direction:column;overflow:hidden}.memo-form-header{padding:1.5rem;border-bottom:1px solid #e2e8f0;background:#f7fafc}.memo-form-header h3{font-size:1.25rem;font-weight:600;color:#2d3748;margin:0 0 .5rem}.memo-form-meta{font-size:.75rem;color:#718096}.memo-form-content{flex:1;padding:1.5rem;overflow-y:auto;display:flex;flex-direction:column;gap:1.5rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-weight:500;font-size:.875rem;color:#4a5568}.required{color:#e53e3e}.form-input,.form-textarea{padding:.75rem;border:1px solid #e2e8f0;border-radius:.375rem;font-size:.875rem;transition:border-color .2s;font-family:inherit}.form-input:focus,.form-textarea:focus{outline:none;border-color:#4299e1;box-shadow:0 0 0 3px #4299e11a}.form-input.error,.form-textarea.error{border-color:#e53e3e}.form-textarea{resize:vertical;min-height:200px;line-height:1.5}.char-count{font-size:.75rem;color:#a0aec0;text-align:right}.error-message{color:#e53e3e;font-size:.75rem;font-weight:500}.form-actions{display:flex;gap:.75rem;justify-content:flex-end;padding-top:1rem;border-top:1px solid #f1f5f9}.form-status{padding:.75rem;background:#fffbeb;border:1px solid #f6e05e;border-radius:.375rem;margin-top:1rem}.unsaved-changes{font-size:.875rem;color:#d69e2e;font-weight:500}.loading-spinner{display:inline-block;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 768px){.main-content{flex-direction:column;gap:0}.sidebar{width:100%;height:40vh}.content{height:60vh}.header-content{flex-direction:column;gap:1rem}.footer-content{flex-direction:column;gap:.5rem;text-align:center}.footer-stats{justify-content:center}}@media (max-width: 480px){.app-header{padding:.75rem}.memo-form-content{padding:1rem}.sidebar-header,.memo-item{padding:.75rem}}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f5f7fa;color:#333;line-height:1.6}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}html,body,#root{height:100%}#root{display:flex;flex-direction:column}
