@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============ Tokens — Tema Claro (padrão) ============ */
:root {
  --header-bg: #0f2b35;
  --header-bg-2: #1b4f5a;
  --accent:   #6366f1;
  --accent-2: #00c896;
  --danger:   #dc2626;
  --warn:     #f59e0b;

  --bg:       #f4f6f9;
  --bg-card:  #ffffff;
  --bg-soft:  #f8fafc;
  --grid-bg:  #e3e9f2;        /* fundo do grid: os gaps entre slots viram linhas visíveis */
  --border:   #c4cdda;
  --border-soft: #cbd5e1;     /* bordas dos slots mais definidas (acessibilidade) */
  --text:     #1a2035;
  --text-muted: #6b7a99;

  --slot-livre-bg:    #ffffff;
  --slot-livre-hover: #eef2ff;
  --slot-ocupado-bg:  linear-gradient(135deg, #eef2ff, #dbeafe);
  --slot-ocupado-bd:  #a5b4fc;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow:    0 2px 12px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 40px rgba(15,43,53,.18);
}

/* ============ Tema Escuro ============ */
:root[data-theme="dark"] {
  --header-bg: #0a1628;
  --header-bg-2: #1e1b4b;
  --bg:       #0a1628;
  --bg-card:  #0f172a;
  --bg-soft:  #1a2035;
  --grid-bg:  #0f172a;        /* escuro: mantém o fundo do card (sem mudança visual) */
  --border:   #1e293b;
  --border-soft: #273548;
  --text:     #f1f5f9;
  --text-muted: #94a3b8;

  --slot-livre-bg:    #1a2035;
  --slot-livre-hover: #273548;
  --slot-ocupado-bg:  linear-gradient(135deg, rgba(99,102,241,.25), rgba(99,102,241,.1));
  --slot-ocupado-bd:  rgba(99,102,241,.45);

  --shadow:    0 2px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
}
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ============ Inputs (modal) ============ */
/* O login usa estilos inline (mesma DNA do dashboard); só o modal usa estas regras. */
.modal-label input {
  background: var(--bg-soft);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border .15s, box-shadow .15s, background .15s;
}
.modal-label input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}

#btn-entrar, .btn-primary {
  background: linear-gradient(135deg, var(--header-bg), var(--header-bg-2));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(15,43,53,.25);
  transition: transform .1s, box-shadow .15s, filter .15s;
}
#btn-entrar:hover, .btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
#btn-entrar:active, .btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all .15s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

.btn-icon {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: 14px;
  transition: all .15s;
}
.btn-icon:hover { background: var(--bg-soft); border-color: var(--text-muted); }

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
}
.btn-danger:hover { filter: brightness(1.1); }

.erro { color: #dc2626; font-size: 13px; min-height: 18px; font-weight: 500; }
:root[data-theme="dark"] .erro { color: #fca5a5; }

/* ============ Toggle Tema ============ */
.theme-toggle {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: 16px;
  transition: all .15s;
}
.theme-toggle:hover { background: var(--bg-soft); }

/* ============ APP ============ */
/* App ocupa a tela inteira; a grade preenche o espaço restante (sem scroll vertical). */
.app-screen { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.topbar, .salas-nav, .semana-nav { flex: 0 0 auto; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--header-bg), var(--header-bg-2));
  color: #fff;
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-logo { height: 36px; object-fit: contain; }
.topbar-title { font-weight: 700; font-size: 15px; color: #fff; }
.topbar-sub { font-size: 12px; color: rgba(255,255,255,.7); }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}
.topbar .btn-ghost { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.25); background: transparent; }
.topbar .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.topbar .theme-toggle { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); color: #fff; }
.topbar .theme-toggle:hover { background: rgba(255,255,255,.2); }

/* Tabs de salas */
.salas-nav {
  display: flex; gap: 10px; padding: 12px 28px 0; overflow-x: auto;
  background: var(--bg);
}
.sala-tab {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.sala-tab .dot { width: 9px; height: 9px; border-radius: 50%; }
.sala-tab:hover { color: var(--text); border-color: var(--text-muted); }
.sala-tab.active {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.sala-tab small { color: var(--text-muted); font-weight: 500; margin-left: 4px; }

/* Navegação semana */
.semana-nav {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 28px 8px;
}
.semana-label {
  font-weight: 700; font-size: 14px; color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  min-width: 240px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.semana-label:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.semana-label svg { color: var(--accent); flex-shrink: 0; }
.semana-label-wrap { position: relative; }

/* Calendário customizado */
.cal-pop {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  z-index: 60;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  width: 290px;
  animation: calin .16s ease;
}
@keyframes calin { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.cal-head { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.cal-title { flex: 1; text-align: center; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.cal-title b { color: var(--text); font-weight: 800; }
.cal-nav {
  width: 30px; height: 30px; border-radius: 9px;
  border: none; background: var(--bg-soft); color: var(--text-muted);
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  display: grid; place-items: center; transition: all .14s;
}
.cal-nav:hover { background: var(--accent); color: #fff; }
.cal-dow { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 4px; }
.cal-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-muted); padding: 4px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day {
  position: relative;
  aspect-ratio: 1; border: none; background: transparent; cursor: pointer;
  border-radius: 50%; font-size: 13px; font-weight: 600; color: var(--text);
  font-family: inherit; display: grid; place-items: center;
  transition: background .12s, color .12s, transform .1s;
}
.cal-day.vazio { visibility: hidden; cursor: default; }
.cal-day:hover { background: rgba(99,102,241,.14); color: var(--accent); transform: scale(1.05); }
.cal-day.na-semana { background: rgba(99,102,241,.12); border-radius: 9px; }
/* Hoje — círculo verde AlugueON, destaque forte */
.cal-day.hoje {
  background: var(--accent-2); color: #fff; font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,200,150,.4);
}
.cal-day.hoje:hover { background: var(--accent-2); color: #fff; }
.cal-day.na-semana.hoje { background: var(--accent-2); border-radius: 50%; }
/* Pontinho: dia tem reserva na sala atual */
.cal-day.tem-reserva::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.cal-day.hoje.tem-reserva::after { background: #fff; }
.cal-hoje {
  width: 100%; margin-top: 12px; padding: 9px;
  border: none; border-radius: 10px;
  background: var(--bg-soft); color: var(--text); font-weight: 700; font-size: 12px;
  font-family: inherit; cursor: pointer; transition: all .14s;
}
.cal-hoje:hover { background: var(--accent); color: #fff; }

/* Grade */
.grid-wrap { flex: 1 1 auto; min-height: 0; padding: 8px 28px 16px; overflow: auto; }
.grid-agenda {
  display: grid;
  grid-template-columns: 80px repeat(5, minmax(140px, 1fr));
  grid-template-rows: auto;          /* cabeçalho com altura natural... */
  grid-auto-rows: minmax(24px, 1fr); /* ...e as 22 linhas preenchem o resto */
  gap: 2px;
  background: var(--grid-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 800px;
  height: 100%;
  box-shadow: var(--shadow);
}
.grid-head {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.grid-head .dia { font-weight: 700; color: var(--text); font-size: 13px; }
.grid-head .data { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }
.grid-head.hoje { border: 2px solid var(--accent); background: rgba(99,102,241,.08); }

.grid-hora {
  display: grid; place-items: center;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.slot {
  background: var(--slot-livre-bg);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
  text-align: center;
  color: var(--text);
}
.slot.livre { color: transparent; border-style: dashed; }
.slot.livre:not(.passado):hover {
  background: rgba(27,79,90,.14);
  border-style: solid;
  border-color: var(--header-bg-2);
  color: var(--header-bg-2);
}
:root[data-theme="dark"] .slot.livre:not(.passado):hover {
  background: rgba(0,200,150,.16);
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.slot.livre:not(.passado):hover::after { content: attr(data-hora) " · Agendar"; font-size: 11px; font-weight: 700; }
.slot.ocupado {
  background: var(--slot-ocupado-bg);
  border-color: var(--slot-ocupado-bd);
  color: var(--text);
  word-break: break-word;
  line-height: 1.2;
}
/* Hover em ocupado = vermelho. !important garante que vence a borda verde
   do check-in e a borda roxa da recorrência. */
.slot.ocupado:hover,
.slot.ocupado.checkin:hover,
.slot.ocupado.recorrente:hover {
  background: rgba(220,38,38,.16) !important;
  border-color: var(--danger) !important;
  color: var(--danger) !important;
  box-shadow: 0 4px 12px rgba(220,38,38,.2) !important;
}
/* Tema escuro: vermelho mais claro/forte pra contrastar com o fundo */
:root[data-theme="dark"] .slot.ocupado:hover,
:root[data-theme="dark"] .slot.ocupado.checkin:hover,
:root[data-theme="dark"] .slot.ocupado.recorrente:hover,
:root[data-theme="dark"] .slot.ocupado.passado:hover {
  background: rgba(220,38,38,.42) !important;
  border-color: #f87171 !important;
  color: #fff !important;
  box-shadow: none !important;
}
.slot.passado { opacity: .45; cursor: not-allowed; }
.slot.passado.livre:hover { background: var(--slot-livre-bg); border-color: var(--border-soft); transform: none; box-shadow: none; color: transparent; }
.slot.passado.livre:hover::after { content: ""; }
/* ocupado (mesmo no passado) sempre fica vermelho ao passar o mouse */
.slot.ocupado.passado:hover {
  opacity: 1;
  background: rgba(220,38,38,.14);
  border-color: var(--danger);
  color: var(--danger);
}

/* ============ MODAL ============ */
.modal {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  display: grid; place-items: center;
  z-index: 100;
  padding: 16px;
  animation: fadein .15s ease;
  backdrop-filter: blur(4px);
}
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-titulo { font-weight: 800; font-size: 17px; color: var(--text); }
.modal-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.modal-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; font-weight: 600; }
.modal-label input { width: 100%; }
.btn-primary { width: 100%; }
.btn-danger  { width: 100%; }

.ocupado-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.ocupado-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.ocupado-nome  { font-size: 20px; font-weight: 800; margin-top: 4px; color: var(--text); }

.modal-wide { max-width: 640px; }
.btn-danger-soft {
  width: 100%; margin-top: 10px;
  background: transparent; color: var(--danger);
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-sm); padding: 11px 16px; font-weight: 700; font-size: 13px; font-family: inherit;
}
.btn-danger-soft:hover { background: rgba(220,38,38,.08); }

/* Recorrência */
.rec-toggle {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--text); font-weight: 600;
  margin: 4px 0 12px; cursor: pointer;
}
.rec-toggle input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.rec-opcoes { margin-bottom: 8px; }

/* Slots: marcações de recorrência / check-in */
.slot.recorrente { border-left: 3px solid var(--accent); }
.slot.checkin::after { content: ""; position: absolute; }
.slot.ocupado.checkin {
  box-shadow: inset 0 0 0 1.5px var(--accent-2);
}
.slot { position: relative; }

/* ============ TOASTS ============ */
.toast-box {
  position: fixed; bottom: 20px; left: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; max-width: 340px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  animation: toastin .2s ease;
}
@keyframes toastin { from { opacity:0; transform: translateY(8px) } to { opacity:1; transform:none } }
.toast-msg { font-size: 13px; color: var(--text); font-weight: 600; line-height: 1.4; }
.toast-ok { border-left-color: var(--accent-2); }
.toast-erro { border-left-color: var(--danger); }
.toast-checkin { border-left-color: var(--warn); }
.toast-acoes { display: flex; gap: 8px; margin-top: 12px; }
.toast-btn {
  flex: 1; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; font-family: inherit;
  border: 1.5px solid var(--border); background: var(--bg-soft); color: var(--text-muted);
}
.toast-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.toast-btn:hover { filter: brightness(1.05); }

/* ============ ANALYTICS ============ */
.ana-load, .ana-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: 14px; }
.ana-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 6px; }
.ana-kpi { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px 10px; text-align: center; }
.ana-kpi-val { font-size: 24px; font-weight: 800; color: var(--text); }
.ana-kpi-lbl { font-size: 11px; color: var(--text-muted); margin-top: 3px; font-weight: 600; }
.ana-sub { font-size: 12px; color: var(--text-muted); margin: 10px 0 4px; }
.ana-secao { margin-top: 18px; }
.ana-secao h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--text); }
.ana-bar-row { display: grid; grid-template-columns: 130px 1fr 36px; align-items: center; gap: 10px; margin-bottom: 7px; }
.ana-bar-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ana-bar-track { background: var(--bg-soft); border-radius: 6px; height: 18px; overflow: hidden; }
.ana-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; }
.ana-bar-val { font-size: 12px; font-weight: 700; color: var(--text); text-align: right; }

/* ============ ASSISTENTE IA ============ */
.fab-ia {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(99,102,241,.5);
  transition: transform .15s;
}
.fab-ia:hover { transform: scale(1.07); }
.chat-panel {
  position: fixed; bottom: 92px; right: 24px; z-index: 150;
  width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 130px);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  animation: toastin .2s ease;
}
.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: linear-gradient(135deg, var(--header-bg), var(--header-bg-2)); color: #fff;
}
.chat-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.chat-head .btn-icon { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.2); color: #fff; width: 30px; height: 30px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 12px; font-size: 13px; line-height: 1.45; animation: chatin .22s ease; }
@keyframes chatin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-typing { display: inline-flex; align-items: center; gap: 4px; padding: 13px 14px; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-muted); opacity: .5;
  animation: typing 1.1s infinite ease-in-out both;
}
.chat-typing span:nth-child(2) { animation-delay: .18s; }
.chat-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing {
  0%, 80%, 100% { transform: scale(.7); opacity: .35; }
  40%           { transform: scale(1);  opacity: .9; }
}
.chat-bot { background: var(--bg-soft); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-acoes, .chat-msg .chat-acoes { display: flex; gap: 8px; margin-top: 10px; }
.chat-btn { padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; font-family: inherit; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-muted); cursor: pointer; }
.chat-btn.primary { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.chat-btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; background: var(--bg-soft); border: 1.5px solid var(--border-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text); font-family: inherit; outline: none; }
.chat-form input:focus { border-color: var(--accent); }
.chat-send { width: 40px; border: none; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-send:hover { filter: brightness(1.08); }

/* Responsivo */
@media (max-width: 720px) {
  .ana-kpis { grid-template-columns: repeat(2,1fr); }
  .ana-bar-row { grid-template-columns: 90px 1fr 30px; }
  .topbar { padding: 12px 16px; }
  .salas-nav, .semana-nav { padding-left: 16px; padding-right: 16px; }
  .grid-wrap { padding: 8px 16px 24px; }
  .grid-agenda { grid-template-columns: 60px repeat(5, minmax(110px, 1fr)); }
  .topbar-sub { display: none; }
}
