.login-container{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:1rem;background:linear-gradient(135deg,#1a1a2e,#16213e)}.login-card{background:#fff;border-radius:16px;padding:2.5rem 2rem;width:100%;max-width:400px;box-shadow:0 20px 60px #0000004d}.login-logo{text-align:center;margin-bottom:1.5rem}.login-avatar{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#e91e8c,#ff6b9d);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.3rem;color:#fff;margin:0 auto .75rem}.login-logo h1{font-size:1.3rem;color:#1a1a2e}.login-subtitle{font-size:.85rem;color:#888;margin-top:.25rem}.login-info{background:#f8f4ff;border:1px solid #e8dff5;border-radius:10px;padding:.85rem;font-size:.9rem;color:#555;margin-bottom:1.25rem;text-align:center}.login-form{display:flex;flex-direction:column;gap:1rem}.login-btn{margin-top:.5rem;width:100%;padding:.75rem}.input-bar{display:flex;align-items:flex-end;gap:.5rem;padding:.65rem .75rem;background:#f0f2f5;border-top:1px solid #ddd}.input-text{flex:1;padding:.6rem .85rem;border:1.5px solid #ddd;border-radius:10px;font-size:.95rem;font-family:inherit;resize:none;outline:none;max-height:120px;line-height:1.4}.input-text:focus{border-color:#e91e8c}.input-text::placeholder{color:#aaa}.btn-send{width:44px;height:44px;border:none;border-radius:50%;background:linear-gradient(135deg,#e91e8c,#c4157a);color:#fff;font-size:1.3rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;flex-shrink:0}.btn-send:hover:not(:disabled){transform:scale(1.05);box-shadow:0 4px 12px #e91e8c59}.btn-send:disabled{opacity:.4;cursor:not-allowed}@media(max-width:600px){.input-bar{padding:.5rem;gap:.35rem}}.chat-container{display:flex;flex-direction:column;flex:1;overflow:hidden}.chat-messages{flex:1;overflow-y:auto;padding:1rem;background:#efeae2;background-image:url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d6d0c5' fill-opacity='0.15'%3E%3Cpath d='M0 0h80v80H0z'/%3E%3Cpath d='M20 20h1v1h-1zm20 0h1v1h-1zm20 0h1v1h-1zm-40 20h1v1h-1zm20 0h1v1h-1zm20 0h1v1h-1zm-40 20h1v1h-1zm20 0h1v1h-1zm20 0h1v1h-1z' fill-opacity='0.15'/%3E%3C/g%3E%3C/svg%3E");display:flex;flex-direction:column;gap:.4rem}.chat-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;text-align:center;color:#888;gap:.5rem;padding:2rem}.chat-empty-icon{font-size:3rem;margin-bottom:.5rem}.chat-empty h2{font-size:1.1rem;color:#555}.chat-empty p{font-size:.9rem}.chat-date-divider{text-align:center;margin:.75rem 0}.chat-date-divider span{background:#d9e2ea;color:#555;font-size:.75rem;padding:.3rem .85rem;border-radius:8px;font-weight:500}.msg{max-width:75%;padding:.5rem .7rem;border-radius:10px;position:relative;word-wrap:break-word}.msg-me{align-self:flex-end;background:#d9fdd3;border-top-right-radius:3px}.msg-other{align-self:flex-start;background:#fff;border-top-left-radius:3px}.msg-ai{align-self:flex-start;background:#fff;border-left:3px solid #e91e8c;border-top-left-radius:3px}.msg-author{font-size:.75rem;font-weight:600;margin-bottom:.2rem}.msg-content{font-size:.92rem;line-height:1.45;white-space:pre-wrap}.msg-time{font-size:.65rem;color:#999;text-align:right;margin-top:.2rem}.msg-typing{display:flex;gap:4px;padding:.3rem 0}.dot{width:8px;height:8px;background:#bbb;border-radius:50%;animation:bounce 1.4s ease-in-out infinite}.dot:nth-child(2){animation-delay:.2s}.dot:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-6px)}}@media(max-width:600px){.msg{max-width:88%}.chat-messages{padding:.5rem}}.team-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#0006;z-index:100;display:flex;justify-content:flex-end}.team-panel{width:340px;max-width:90vw;background:#fff;height:100%;display:flex;flex-direction:column;padding:1.25rem;gap:1rem;overflow-y:auto;box-shadow:-4px 0 20px #0000001a}.team-header{display:flex;justify-content:space-between;align-items:center}.team-header h2{font-size:1.1rem}.team-list{display:flex;flex-direction:column;gap:.5rem}.team-member{display:flex;justify-content:space-between;align-items:center;padding:.65rem .75rem;background:#f8f9fa;border-radius:8px}.team-member.inactive{opacity:.5}.team-member strong{font-size:.9rem}.member-email{font-size:.75rem;color:#888}.badge-admin{font-size:.65rem;font-weight:600;text-transform:uppercase;color:#e91e8c;background:#fce4ec;padding:.1rem .4rem;border-radius:4px;margin-left:.4rem}.btn-sm{font-size:.8rem;padding:.35rem .65rem}.team-add-form{display:flex;flex-direction:column;gap:.75rem;padding:1rem;background:#f8f9fa;border-radius:10px}.team-add-form h3{font-size:.95rem}.member-whatsapp{margin-top:.3rem;padding:0;border:none;background:none;font-size:.75rem;color:#1a7f4b;cursor:pointer;font-family:inherit}.member-whatsapp:hover{text-decoration:underline}.settings-form{display:flex;flex-direction:column;gap:.9rem}.settings-form textarea{width:100%;padding:.6rem .75rem;border:1.5px solid #ddd;border-radius:8px;font-family:inherit;font-size:.9rem;resize:vertical;outline:none}.settings-form textarea:focus{border-color:#e91e8c}.logo-row{display:flex;align-items:center;gap:.75rem}.logo-actions{display:flex;flex-direction:column;gap:.4rem;font-size:.8rem;min-width:0}.logo-preview{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#e91e8c,#ff6b9d);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.logo-preview img{width:100%;height:100%;object-fit:contain;background:#fff}.has-logo{background:#fff!important;overflow:hidden}.has-logo img{width:100%;height:100%;object-fit:contain}.settings-panel{width:520px}.settings-hint{font-size:.8rem;color:#888}.settings-section{display:flex;flex-direction:column;gap:.6rem;padding-bottom:.9rem;border-bottom:1px solid #eee}.settings-section h3{font-size:.95rem}.settings-section input,.repeat-card input,.repeat-row input{width:100%;padding:.5rem .65rem;border:1.5px solid #ddd;border-radius:8px;font-family:inherit;font-size:.88rem;outline:none}.settings-section input:focus{border-color:#e91e8c}.settings-section input[type=file]{border:none;padding:0}.repeat-card{display:flex;flex-direction:column;gap:.4rem;padding:.75rem;background:#f8f9fa;border-radius:10px}.repeat-card .btn{align-self:flex-start}.repeat-row{display:flex;gap:.4rem;align-items:center}.settings-section>.btn{align-self:flex-start}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;background:#f0f2f5;color:#1a1a2e;-webkit-font-smoothing:antialiased}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;gap:1rem;color:#666}.loading-spinner{width:40px;height:40px;border:3px solid #e0e0e0;border-top-color:#e91e8c;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app{display:flex;flex-direction:column;height:100vh;max-width:1200px;margin:0 auto;background:#fff;box-shadow:0 0 20px #00000014}.app-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:#1a1a2e;color:#fff;flex-shrink:0}.header-left{display:flex;align-items:center;gap:.75rem}.header-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#e91e8c,#ff6b9d);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem}.app-header h1{font-size:1rem;font-weight:600}.header-subtitle{font-size:.75rem;opacity:.7}.header-right{display:flex;align-items:center;gap:.75rem}.header-user{font-size:.85rem;opacity:.9}.btn-icon{background:none;border:none;font-size:1.25rem;cursor:pointer;padding:.25rem;border-radius:6px;transition:background .15s}.btn-icon:hover{background:#ffffff26}.app-body{display:flex;flex:1;overflow:hidden;position:relative}.btn{padding:.6rem 1.5rem;border:none;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .15s;font-family:inherit}.btn-primary{background:linear-gradient(135deg,#e91e8c,#c4157a);color:#fff}.btn-primary:hover{transform:translateY(-1px);box-shadow:0 4px 12px #e91e8c59}.btn-primary:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.btn-secondary{background:#f0f2f5;color:#1a1a2e}.btn-secondary:hover{background:#e4e6ea}.form-group{display:flex;flex-direction:column;gap:.4rem}.form-group label{font-size:.85rem;font-weight:500;color:#555}.form-group input,.form-group select{padding:.65rem .85rem;border:1.5px solid #ddd;border-radius:8px;font-size:.95rem;font-family:inherit;outline:none;transition:border-color .15s}.form-group input:focus,.form-group select:focus{border-color:#e91e8c}.error-msg{color:#dc3545;font-size:.85rem;text-align:center}@media(max-width:600px){.app{max-width:100%}.app-header{padding:.5rem .75rem}.header-user{display:none}}
