body{font-family:sans-serif;margin:0;padding:0;background-color:#f4f4f4;display:flex;justify-content:center;align-items:center;min-height:100vh;width:100vw;box-sizing:border-box}.chat-container{background-color:#fff;border-radius:8px;box-shadow:0 2px 10px #0000001a;width:300px;min-width:300px;display:flex;flex-direction:column;height:90vh;overflow:hidden}h1{text-align:center;padding:15px;margin:0;background-color:#4caf50;color:#fff;font-size:1.2em}.chat-messages{flex-grow:1;overflow-y:auto;padding:15px;border-bottom:1px solid #eee;display:flex;flex-direction:column}.message{padding:8px 12px;border-radius:15px;max-width:70%;word-wrap:break-word;margin-bottom:0}.message.user{background-color:#dcf8c6;align-self:flex-end;border-bottom-right-radius:5px}.message.ai{background-color:#f0f0f0;align-self:flex-start;border-bottom-left-radius:5px}.message p{margin:0}.message strong{display:block;font-size:.8em;margin-bottom:3px;color:#555}.chat-input{display:flex;padding:15px;border-top:1px solid #eee;background-color:#f9f9f9;justify-content:space-between;align-items:center}.chat-input input{flex-grow:1;padding:10px;border:1px solid #ccc;border-radius:20px;margin-right:10px;font-size:1em;max-width:220px;width:100%}.chat-input input:disabled{background-color:#eee}.chat-input button{padding:10px 20px;background-color:#4caf50;color:#fff;border:none;border-radius:20px;cursor:pointer;font-size:1em;transition:background-color .2s ease}.chat-input button:hover{background-color:#45a049}.chat-input button:disabled{background-color:#ccc;cursor:not-allowed}.password-screen{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:40px;text-align:center;flex-grow:1}.password-screen input{padding:10px;font-size:1em;border-radius:20px;border:1px solid #ccc;margin-bottom:10px;width:80%;max-width:300px}.password-screen button{padding:10px 20px;font-size:1em;background-color:#4caf50;color:#fff;border:none;border-radius:20px;cursor:pointer;transition:background-color .2s ease}.password-screen button:hover{background-color:#45a049}.error-message{color:#d8000c;margin-top:15px;font-weight:700}.login-avatar{width:100px;height:100px;border-radius:50%;object-fit:cover;margin-bottom:0;border:3px solid #eee}.message-row{display:flex;align-items:flex-end;margin-bottom:10px}.message-row.user{justify-content:flex-end}.chat-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;margin-right:10px}.title-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;border:3px solid #eee;margin-right:10px}.chat-title-row{display:flex;justify-content:center;align-items:center;padding:0;margin:0}.chat-title-row h1{display:flex;align-items:center;justify-content:center;background-color:#ff9800;color:#fff;font-size:1.2em;width:100%;margin:0;padding:15px;border-radius:8px 8px 0 0}
