:root{--bg-primary: #0f0f23;--bg-secondary: #1a1a2e;--bg-tertiary: #16213e;--accent: #6366f1;--accent-hover: #818cf8;--text-primary: #e2e8f0;--text-secondary: #94a3b8;--text-muted: #64748b;--border: #334155;--error: #f87171;--bubble-bg: #3730a3;--bubble-shadow: rgba(99, 102, 241, .3)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Segoe UI,-apple-system,BlinkMacSystemFont,sans-serif;background:linear-gradient(135deg,var(--bg-primary) 0%,var(--bg-secondary) 100%);color:var(--text-primary);min-height:100vh;line-height:1.6}.app-container{max-width:600px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column;background:var(--bg-secondary);box-shadow:0 0 60px #00000080}.loading{flex:1;display:flex;align-items:center;justify-content:center;color:var(--text-muted)}.header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:var(--bg-tertiary);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100}.header h1{font-size:1.25rem;font-weight:600;background:linear-gradient(135deg,var(--accent) 0%,#a855f7 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.user-info{display:flex;align-items:center;gap:12px}.user-email{font-size:.875rem;color:var(--text-secondary);max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-logout{padding:6px 12px;font-size:.75rem;background:transparent;border:1px solid var(--border);color:var(--text-secondary);border-radius:6px;cursor:pointer;transition:all .2s}.btn-logout:hover{border-color:var(--error);color:var(--error)}.auth-container{flex:1;display:flex;align-items:center;justify-content:center;padding:20px}.auth-box{width:100%;max-width:360px;padding:32px;background:var(--bg-tertiary);border-radius:16px;border:1px solid var(--border);box-shadow:0 25px 50px -12px #00000080}.auth-box h2{text-align:center;margin-bottom:24px;font-size:1.5rem;font-weight:600}.auth-box form{display:flex;flex-direction:column;gap:16px}.auth-box input{padding:14px 16px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:10px;color:var(--text-primary);font-size:1rem;transition:border-color .2s,box-shadow .2s}.auth-box input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--bubble-shadow)}.auth-box input::placeholder{color:var(--text-muted)}.btn-primary{padding:14px;background:linear-gradient(135deg,var(--accent) 0%,#7c3aed 100%);border:none;border-radius:10px;color:#fff;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 20px var(--bubble-shadow)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.auth-switch{text-align:center;margin-top:20px;color:var(--text-secondary);font-size:.875rem}.btn-link{background:none;border:none;color:var(--accent);cursor:pointer;font-size:.875rem;font-weight:500;margin-left:4px;transition:color .2s}.btn-link:hover{color:var(--accent-hover);text-decoration:underline}.error-message{margin-top:16px;padding:12px;background:#f871711a;border:1px solid var(--error);border-radius:8px;color:var(--error);font-size:.875rem;text-align:center}.memo-container{flex:1;display:flex;flex-direction:column;height:calc(100vh - 65px)}.memo-list{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px}.memo-list::-webkit-scrollbar{width:6px}.memo-list::-webkit-scrollbar-track{background:transparent}.memo-list::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}.memo-item{display:flex;flex-direction:column;align-items:flex-end;animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.memo-bubble{max-width:85%;padding:12px 16px;background:linear-gradient(135deg,var(--bubble-bg) 0%,#4c1d95 100%);border-radius:18px 18px 4px;box-shadow:0 4px 15px var(--bubble-shadow);word-break:break-word;white-space:pre-wrap}.memo-time{margin-top:6px;font-size:.75rem;color:var(--text-muted);padding-right:4px}.memo-form{display:flex;gap:12px;padding:16px 20px;background:var(--bg-tertiary);border-top:1px solid var(--border)}.memo-form textarea{flex:1;padding:12px 16px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:24px;color:var(--text-primary);font-size:1rem;font-family:inherit;resize:none;max-height:120px;transition:border-color .2s}.memo-form textarea:focus{outline:none;border-color:var(--accent)}.memo-form textarea::placeholder{color:var(--text-muted)}.btn-send{width:48px;height:48px;background:linear-gradient(135deg,var(--accent) 0%,#7c3aed 100%);border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .2s,box-shadow .2s;flex-shrink:0}.btn-send:hover{transform:scale(1.05);box-shadow:0 6px 20px var(--bubble-shadow)}.btn-send svg{width:20px;height:20px}.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--text-muted);text-align:center;padding:40px}.empty-state-icon{font-size:4rem;margin-bottom:16px;opacity:.5}.empty-state-text{font-size:1.125rem}.loading-more{text-align:center;padding:12px;color:var(--text-muted);font-size:.875rem}.date-divider{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--text-muted);font-size:.75rem;margin:8px 0}.date-divider:before,.date-divider:after{content:"";flex:1;height:1px;background:var(--border)}@media (max-width: 480px){.header{padding:12px 16px}.header h1{font-size:1.1rem}.memo-list{padding:16px}.memo-form{padding:12px 16px}.auth-box{padding:24px}}
