:root {
  color-scheme: light;
  --marinho: #132a3a;
  --marinho-2: #1d3b4f;
  --laranja: #e76532;
  --laranja-escuro: #c94e20;
  --fundo: #f5f1ea;
  --papel: #fffdf9;
  --linha: #e6dfd5;
  --texto: #1c2c36;
  --muted: #6f7b82;
  --sucesso: #16805b;
  --erro: #b64338;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--texto); background: var(--fundo); min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.escondido { display: none !important; }
.entrada { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1.08fr) minmax(360px, .92fr); background: var(--papel); }
.entrada-marca { background: var(--marinho); color: white; padding: clamp(48px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.entrada-marca::after { content: ""; position: absolute; width: 340px; height: 340px; border: 70px solid rgba(255,255,255,.035); border-radius: 50%; right: -150px; bottom: -150px; }
.marca-simbolo, .assistente-icone { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--laranja); color: white; font-weight: 800; font-size: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.sobretitulo { margin: 26px 0 12px; font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .16em; color: var(--laranja); }
.entrada-marca h1 { margin: 0; max-width: 650px; font: 650 clamp(36px, 5vw, 64px)/1.02 Georgia, serif; letter-spacing: -.035em; }
.entrada-marca > p:not(.sobretitulo) { max-width: 590px; color: #c8d3d9; font-size: 18px; line-height: 1.65; margin: 28px 0; }
.selo-seguranca { width: fit-content; display: flex; align-items: center; gap: 9px; color: #dbe5ea; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 10px 14px; font-size: 13px; }
.selo-seguranca span { width: 8px; height: 8px; background: #54d39b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(84,211,155,.12); }
.entrada-formulario { padding: 40px clamp(30px, 8vw, 110px); display: grid; place-items: center; }
.form-card { width: min(430px, 100%); }
.form-card h2 { font: 650 36px/1.15 Georgia, serif; letter-spacing: -.02em; margin: 0 0 10px; }
.apoio { color: var(--muted); line-height: 1.55; margin-bottom: 28px; }
label { display: block; font-weight: 750; font-size: 13px; margin: 18px 0 8px; }
input { width: 100%; height: 48px; border: 1px solid #cfc8be; border-radius: 11px; padding: 0 14px; background: #fff; color: var(--texto); outline: none; }
input:focus, textarea:focus { border-color: var(--laranja); box-shadow: 0 0 0 3px rgba(231,101,50,.12); }
.erro-form { color: var(--erro); min-height: 21px; font-size: 13px; margin: 12px 0 0; }
.botao { border: 0; border-radius: 11px; padding: 12px 16px; font-weight: 750; }
.botao.primario { background: var(--laranja); color: white; }
.botao.primario:hover { background: var(--laranja-escuro); }
.botao.largo { width: 100%; margin-top: 8px; height: 49px; }
.app { min-height: 100vh; display: grid; grid-template-columns: 290px minmax(0, 1fr); background: var(--papel); }
.sidebar { height: 100vh; position: sticky; top: 0; background: var(--marinho); color: white; padding: 22px 17px 16px; display: flex; flex-direction: column; z-index: 20; }
.sidebar-topo, .logo-pequeno, .perfil, .topbar { display: flex; align-items: center; }
.sidebar-topo { justify-content: space-between; }
.logo-pequeno { gap: 11px; }
.logo-pequeno > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--laranja); font-weight: 850; }
.logo-pequeno div, .perfil-texto { min-width: 0; display: flex; flex-direction: column; }
.logo-pequeno strong { font-size: 16px; }
.logo-pequeno small, .perfil small { color: #9db0bb; font-size: 11px; margin-top: 2px; }
.nova { margin: 28px 0; width: 100%; color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); text-align: left; }
.nova:hover { background: rgba(255,255,255,.16); }
.nav-titulo { color: #78909d; font-size: 10px; font-weight: 850; letter-spacing: .16em; padding: 0 10px; }
.lista-conversas { display: flex; flex-direction: column; gap: 4px; overflow: auto; max-height: calc(100vh - 280px); }
.conversa-item { width: 100%; border: 0; background: transparent; color: #cbd7de; border-radius: 9px; padding: 10px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.conversa-item:hover, .conversa-item.ativa { background: rgba(255,255,255,.1); color: white; }
.perfil { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 16px 5px 0; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e8b891; color: #59301d; font-weight: 850; }
.perfil-texto { flex: 1; }
.perfil strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.icone { border: 0; background: transparent; color: inherit; min-width: 34px; min-height: 34px; border-radius: 8px; font-size: 18px; }
.icone:hover { background: rgba(255,255,255,.1); }
.conteudo { min-width: 0; height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--papel); }
.topbar { min-height: 74px; padding: 14px 28px; border-bottom: 1px solid var(--linha); justify-content: space-between; gap: 14px; }
.topbar h2 { margin: 0 0 4px; font-size: 17px; }
.topbar p { margin: 0; color: var(--muted); font-size: 12px; }
.status-ponto { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: #a0a9ae; }
.status-ponto.ok { background: var(--sucesso); box-shadow: 0 0 0 4px rgba(22,128,91,.1); }
.status-ponto.erro { background: var(--erro); }
.usuario-topo { color: var(--muted); font-size: 13px; }
.chat { overflow-y: auto; padding: 42px max(24px, calc((100% - 860px) / 2)); scroll-behavior: smooth; }
.boas-vindas { text-align: center; max-width: 850px; margin: 5vh auto 20px; }
.boas-vindas .assistente-icone { margin: 0 auto 20px; }
.boas-vindas h1 { margin: 0; font: 650 clamp(30px, 4vw, 44px)/1.12 Georgia, serif; letter-spacing: -.025em; }
.boas-vindas > p { color: var(--muted); line-height: 1.6; max-width: 650px; margin: 15px auto 30px; }
.atalhos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.atalhos button { border: 1px solid var(--linha); background: white; border-radius: 14px; padding: 16px; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; box-shadow: 0 2px 8px rgba(19,42,58,.04); color: var(--texto); }
.atalhos button:hover { border-color: #d3a082; transform: translateY(-1px); }
.atalhos span { grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #fff0e8; color: var(--laranja-escuro); font-size: 18px; }
.atalhos strong { font-size: 14px; }
.atalhos small { margin-top: 3px; color: var(--muted); }
.mensagens { display: flex; flex-direction: column; gap: 18px; }
.mensagem { display: flex; gap: 11px; max-width: 760px; animation: entrar .18s ease-out; }
.mensagem.usuario { align-self: flex-end; flex-direction: row-reverse; }
.mensagem .mini-avatar { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--marinho); color: white; font-weight: 800; font-size: 12px; }
.mensagem.usuario .mini-avatar { background: #ead6c6; color: #59301d; border-radius: 50%; }
.balao { padding: 12px 15px; border-radius: 4px 15px 15px 15px; background: #f3f0eb; line-height: 1.55; font-size: 14px; min-width: 80px; }
.usuario .balao { background: var(--marinho); color: white; border-radius: 15px 4px 15px 15px; }
.balao p { margin: 0; white-space: pre-wrap; }
.hora-msg { display: block; margin-top: 6px; font-size: 10px; opacity: .55; }
.cards-resposta { display: grid; gap: 8px; margin-top: 12px; }
.agendamento-card { border: 1px solid #ded7ce; border-left: 4px solid var(--laranja); border-radius: 10px; background: white; padding: 11px 12px; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; }
.agendamento-card strong { font-size: 13px; }
.agendamento-card span, .agendamento-card small { color: var(--muted); font-size: 12px; }
.agendamento-card button { grid-row: 1 / span 3; grid-column: 2; align-self: center; border: 1px solid var(--linha); background: white; border-radius: 8px; padding: 7px 9px; color: var(--marinho); font-size: 12px; font-weight: 750; }
.confirmacoes { margin-top: 12px; display: flex; gap: 8px; }
.confirmacoes button { border: 0; border-radius: 9px; padding: 9px 13px; font-weight: 750; font-size: 13px; }
.confirmar { background: var(--laranja); color: white; }
.recusar { background: #e9e5df; color: var(--texto); }
.digitando { width: fit-content; display: flex; align-items: center; gap: 4px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.digitando span { width: 6px; height: 6px; border-radius: 50%; background: var(--laranja); animation: pular 1s infinite alternate; }
.digitando span:nth-child(2) { animation-delay: .18s; }.digitando span:nth-child(3) { animation-delay: .36s; }.digitando em { margin-left: 7px; font-style: normal; }
.composer-area { padding: 14px max(24px, calc((100% - 860px) / 2)) 18px; background: rgba(255,253,249,.96); border-top: 1px solid var(--linha); }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 15px; border: 1px solid #d7d0c6; border-radius: 15px; background: white; box-shadow: 0 8px 30px rgba(19,42,58,.07); }
.composer textarea { flex: 1; border: 0; outline: 0; resize: none; min-height: 34px; max-height: 130px; padding: 7px 0; color: var(--texto); background: transparent; box-shadow: none; }
.composer button { width: 39px; height: 39px; border-radius: 11px; border: 0; background: var(--laranja); color: white; font-size: 17px; }
.composer button:disabled { opacity: .45; cursor: wait; }
.composer-area > p { text-align: center; color: #889197; font-size: 10px; margin: 8px 0 0; }
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--marinho); color: white; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.2); z-index: 50; font-size: 13px; }
.mobile-only { display: none; }
@keyframes entrar { from { opacity: 0; transform: translateY(4px); } }
@keyframes pular { to { transform: translateY(-5px); opacity: .45; } }
@media (max-width: 800px) {
  .entrada { grid-template-columns: 1fr; }
  .entrada-marca { min-height: 36vh; padding: 38px 28px; }
  .entrada-marca h1 { font-size: 38px; }
  .entrada-marca > p:not(.sobretitulo) { font-size: 15px; margin: 18px 0; }
  .entrada-formulario { padding: 36px 24px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; width: min(310px, 88vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 50px rgba(0,0,0,.22); }
  .sidebar.aberta { transform: translateX(0); }
  .mobile-only { display: inline-grid; place-items: center; }
  .topbar { padding: 12px 16px; }
  .usuario-topo { display: none; }
  .chat { padding: 26px 16px; }
  .atalhos { grid-template-columns: 1fr; }
  .composer-area { padding: 10px 12px 12px; }
}
@media (max-width: 480px) {
  .entrada-marca { display: none; }
  .entrada { display: block; background: var(--papel); }
  .entrada-formulario { min-height: 100vh; }
  .boas-vindas { margin-top: 20px; }
  .boas-vindas h1 { font-size: 30px; }
  .mensagem { max-width: 94%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
.acessos { width: 100%; margin: auto 0 12px; text-align: left; color: #dce6eb; background: transparent; border: 1px solid rgba(255,255,255,.12); }
.acessos:hover { background: rgba(255,255,255,.08); }
.modal-acessos { width: min(680px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); border: 0; border-radius: 18px; padding: 24px; color: var(--texto); background: var(--papel); box-shadow: 0 28px 80px rgba(8,25,35,.28); }
.modal-acessos::backdrop { background: rgba(10,28,39,.58); }
.modal-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.modal-topo .sobretitulo { margin: 0 0 8px; }
.modal-topo h2 { margin: 0; font: 650 30px/1.1 Georgia, serif; }
.modal-topo .icone { color: var(--texto); }
.lista-usuarios { display: grid; gap: 7px; max-height: 220px; overflow: auto; margin: 18px 0 24px; }
.usuario-linha { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; padding: 11px 12px; border: 1px solid var(--linha); border-radius: 10px; background: white; }
.usuario-linha strong { font-size: 13px; }
.usuario-linha span, .usuario-linha small { color: var(--muted); font-size: 12px; }
.usuario-linha .papel { grid-row: 1 / span 2; grid-column: 2; align-self: center; padding: 5px 8px; border-radius: 999px; background: #eef2f4; font-size: 10px; font-weight: 800; color: var(--marinho); }
.usuario-form { border-top: 1px solid var(--linha); padding-top: 20px; }
.usuario-form h3 { margin: 0 0 8px; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid label { margin-top: 12px; }
.form-grid input, .form-grid select { margin-top: 7px; width: 100%; height: 43px; border: 1px solid #cfc8be; border-radius: 10px; padding: 0 11px; background: white; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .modal-acessos { padding: 19px; } }