/* ============================================================================
   Agenda NCC — estilos. Paleta oficial + design premium responsivo.
   ============================================================================ */
:root {
  --primary-color: #4A4C9C;
  --primary-light: #6B6DB8;
  --primary-dark: #2E3066;
  --success-color: #2E7D32;
  --danger-color: #C62828;
  --warning-color: #F57C00;
  --info-color: #0277BD;
  --admin-button-color: #4DB6AC;
  --admin-button-hover: #26A69A;
  --text-dark: #1A1A1A;
  --text-light: #FFFFFF;
  --text-gray: #666666;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --border-light: #ddd;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.18);
  --radius: 8px;
  --radius-lg: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 56px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
body { overflow: hidden; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; } /* 16px evita zoom no iOS */

/* -------------------- Botões -------------------- */
.btn {
  border: none; border-radius: var(--radius); padding: 12px 18px;
  font-size: 15px; font-weight: 600; transition: transform .08s ease, filter .15s ease, background .15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: #ececf4; color: var(--primary-dark); }
.btn-danger { background: var(--danger-color); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary-color); }
.btn-admin { background: var(--admin-button-color); color: #fff; }
.btn-admin:hover { background: var(--admin-button-hover); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; pointer-events: none; }

/* ============================================================================
   AUTENTICAÇÃO
   ============================================================================ */
.auth-view {
  height: 100%; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bottom) + 20px);
  background: linear-gradient(160deg, var(--primary-dark), var(--primary-color));
  overflow-y: auto;
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--bg-white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 28px 24px; animation: pop .25s ease;
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-logo { width: 68px; height: 68px; border-radius: 18px; box-shadow: var(--shadow); }
.auth-brand h1 { margin: 12px 0 2px; font-size: 22px; color: var(--primary-dark); }
.auth-sub { margin: 0; color: var(--text-gray); font-size: 14px; }
.auth-tabs {
  display: flex; background: var(--bg-light); border-radius: var(--radius);
  padding: 4px; margin-bottom: 20px;
}
.auth-tab {
  flex: 1; border: none; background: transparent; padding: 9px; border-radius: 6px;
  font-weight: 600; color: var(--text-gray); transition: all .15s;
}
.auth-tab.active { background: #fff; color: var(--primary-color); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-gray); }
.auth-form input {
  padding: 12px 14px; border: 1px solid var(--border-light); border-radius: var(--radius);
  background: #fafafb; transition: border .15s, box-shadow .15s;
}
.auth-form input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(74,76,156,.15); background: #fff; }
.auth-form .btn { margin-top: 6px; }
.auth-error { color: var(--danger-color); font-size: 13.5px; text-align: center; min-height: 18px; margin: 12px 0 0; }

/* ============================================================================
   APP
   ============================================================================ */
.app-view { height: 100%; display: flex; flex-direction: column; }

.app-header {
  display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-top) + 8px) 12px 8px;
  background: var(--primary-color); color: #fff; box-shadow: var(--shadow);
  z-index: 20;
}
.header-center { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.header-title { font-size: 16px; font-weight: 700; text-transform: capitalize; }
.btn-today {
  background: rgba(255,255,255,.18); color: #fff; border: none; border-radius: 20px;
  font-size: 11px; font-weight: 600; padding: 3px 12px;
}
.header-actions { display: flex; gap: 2px; }
.icon-btn {
  background: transparent; border: none; color: #fff; width: 40px; height: 40px;
  font-size: 26px; line-height: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.icon-btn:active { background: rgba(255,255,255,.2); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary-dark);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; border: 2px solid rgba(255,255,255,.5);
  overflow: hidden; position: relative; flex-shrink: 0;
}
.avatar img, .ur-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ur-avatar { overflow: hidden; }
/* Avatar clicável (troca de foto) */
.avatar-edit { cursor: pointer; padding: 0; }
.avatar-edit .avatar-cam {
  position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--bg-white); color: initial;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); border: 1.5px solid var(--bg-white);
}
/* Mini-avatar dentro dos chips da barra de pessoas */
.chip-ava { width: 18px; height: 18px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.chip-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Botões-link (alterar/remover foto) */
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--primary-color); font-size: 12.5px; font-weight: 600;
}
.link-btn.danger { color: var(--danger-color); }

.view-switch {
  display: flex; gap: 4px; padding: 8px 12px; background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}
.seg {
  flex: 1; border: none; background: var(--bg-light); color: var(--text-gray);
  padding: 8px 4px; border-radius: 20px; font-size: 13px; font-weight: 600; transition: all .15s;
}
.seg.active { background: var(--primary-color); color: #fff; }

.people-bar {
  display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--bg-white);
  border-bottom: 1px solid var(--border-light); -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.people-bar::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 12px; border-radius: 20px; border: 1.5px solid var(--border-light);
  background: #fff; font-size: 13px; font-weight: 600; color: var(--text-gray); transition: all .15s; flex-shrink: 0;
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.chip.active { border-color: var(--primary-color); color: var(--primary-dark); background: #f3f3fb; }
.chip.star::after { content: "★"; color: var(--warning-color); font-size: 11px; }

.calendar-area {
  flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--safe-bottom) + 90px); position: relative;
}

.fab {
  position: fixed; right: 18px; bottom: calc(var(--safe-bottom) + 18px);
  width: 58px; height: 58px; border-radius: 50%; border: none;
  background: var(--primary-color); color: #fff; font-size: 32px; line-height: 1;
  box-shadow: 0 6px 18px rgba(74,76,156,.5); z-index: 30; transition: transform .1s;
}
.fab:active { transform: scale(0.92); }

/* -------------------- Grade de tempo (Dia / Semana) -------------------- */
.timegrid { display: grid; position: relative; }
.tg-hours { position: relative; }
.tg-hour-label {
  position: absolute; left: 0; width: 46px; text-align: right; padding-right: 6px;
  font-size: 10.5px; color: var(--text-gray); transform: translateY(-6px);
}
.tg-hour-line { position: absolute; left: 46px; right: 0; border-top: 1px solid #eee; }
.tg-now-line { position: absolute; left: 46px; right: 0; border-top: 2px solid var(--danger-color); z-index: 5; }
.tg-now-line::before {
  content: ""; position: absolute; left: -4px; top: -5px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--danger-color);
}

.day-columns { position: absolute; left: 46px; right: 0; top: 0; bottom: 0; display: flex; }
.day-col { flex: 1; position: relative; border-left: 1px solid #f0f0f0; }

.ev-block {
  position: absolute; border-radius: 6px; padding: 3px 6px; overflow: hidden;
  color: #fff; font-size: 11.5px; line-height: 1.25; box-shadow: 0 1px 3px rgba(0,0,0,.18);
  border-left: 3px solid rgba(0,0,0,.25); cursor: pointer;
}
.ev-block .ev-t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-block .ev-time { opacity: .9; font-size: 10px; }
.ev-block.busy {
  background: repeating-linear-gradient(45deg, #9aa0a6, #9aa0a6 6px, #b0b4b8 6px, #b0b4b8 12px);
  color: #fff;
}
.ev-block.private-own { border-left-color: rgba(255,255,255,.7); }
.ev-lock { font-size: 9px; opacity: .9; }

.allday-row {
  display: flex; gap: 6px; padding: 6px 6px 6px 46px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border-light); background: #fbfbfd; min-height: 10px;
}
.allday-chip {
  font-size: 11px; font-weight: 600; color: #fff; padding: 3px 8px; border-radius: 12px; cursor: pointer;
}

/* Cabeçalho da semana */
.week-head { display: flex; padding-left: 46px; position: sticky; top: 0; background: var(--bg-white); z-index: 6; border-bottom: 1px solid var(--border-light); }
.week-head .wh { flex: 1; text-align: center; padding: 6px 2px; }
.week-head .wh .wd { font-size: 10px; color: var(--text-gray); text-transform: uppercase; }
.week-head .wh .wn { font-size: 15px; font-weight: 700; margin-top: 1px; }
.week-head .wh.today .wn { background: var(--primary-color); color: #fff; border-radius: 50%; width: 26px; height: 26px; line-height: 26px; display: inline-block; }

/* -------------------- Mês -------------------- */
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.month-dow { text-align: center; font-size: 10.5px; color: var(--text-gray); padding: 8px 0; text-transform: uppercase; font-weight: 600; background: var(--bg-white); }
.month-cell {
  min-height: 66px; border: .5px solid #eee; padding: 4px; position: relative; background: #fff;
  display: flex; flex-direction: column; gap: 2px;
}
.month-cell.other { background: #fafafa; }
.month-cell .mn { font-size: 12px; font-weight: 600; color: var(--text-dark); align-self: flex-end; }
.month-cell.today .mn { background: var(--primary-color); color: #fff; border-radius: 50%; width: 22px; height: 22px; text-align: center; line-height: 22px; }
.month-ev { font-size: 9.5px; color: #fff; border-radius: 3px; padding: 1px 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.month-more { font-size: 9px; color: var(--text-gray); }

/* -------------------- Lista / Agenda -------------------- */
.agenda-list { padding: 6px 12px; }
.agenda-day { margin-top: 14px; }
.agenda-day-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.agenda-day-head .ad-day { font-size: 20px; font-weight: 800; color: var(--primary-dark); }
.agenda-day-head .ad-rest { font-size: 12px; color: var(--text-gray); text-transform: capitalize; }
.agenda-day-head.is-today .ad-day { color: var(--primary-color); }
.agenda-item {
  display: flex; gap: 10px; align-items: stretch; background: #fff; border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06); cursor: pointer;
}
.agenda-item:active { background: #f7f7fb; }
.agenda-bar { width: 4px; border-radius: 4px; flex-shrink: 0; }
.agenda-info { flex: 1; min-width: 0; }
.agenda-info .ai-title { font-weight: 700; font-size: 14.5px; }
.agenda-info .ai-meta { font-size: 12px; color: var(--text-gray); margin-top: 2px; }
.agenda-time { font-size: 12px; color: var(--text-gray); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.agenda-owner { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; margin-top: 3px; }
.agenda-owner .dot { width: 8px; height: 8px; border-radius: 50%; }
.empty-state { text-align: center; color: var(--text-gray); padding: 48px 20px; }
.empty-state .es-emoji { font-size: 40px; }

/* ============================================================================
   MODAIS (bottom-sheet no mobile) + TOASTS
   ============================================================================ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100;
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease;
}
.modal {
  background: var(--bg-white); width: 100%; max-width: 520px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 18px 18px calc(var(--safe-bottom) + 18px); animation: slideUp .28s cubic-bezier(.2,.8,.2,1);
}
.modal-grab { width: 40px; height: 4px; border-radius: 3px; background: #d5d5d5; margin: 0 auto 12px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h2 { margin: 0; font-size: 18px; color: var(--primary-dark); }
.modal-close { background: var(--bg-light); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; color: var(--text-gray); }
.modal-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.modal-field > label { font-size: 12.5px; font-weight: 700; color: var(--text-gray); }
.modal-field input, .modal-field select, .modal-field textarea {
  padding: 11px 12px; border: 1px solid var(--border-light); border-radius: var(--radius); background: #fafafb;
}
.modal-field input:focus, .modal-field select:focus, .modal-field textarea:focus {
  outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(74,76,156,.15); background: #fff;
}
.modal-field textarea { resize: vertical; min-height: 60px; }
.field-row { display: flex; gap: 10px; }
.field-row > .modal-field { flex: 1; }
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.modal-actions .btn { flex: 1; }

/* Toggle de visibilidade */
.vis-toggle { display: flex; gap: 8px; }
.vis-opt {
  flex: 1; border: 1.5px solid var(--border-light); border-radius: var(--radius); padding: 10px;
  background: #fff; text-align: left; transition: all .15s;
}
.vis-opt.active { border-color: var(--primary-color); background: #f3f3fb; }
.vis-opt .vo-title { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.vis-opt .vo-desc { font-size: 11px; color: var(--text-gray); margin-top: 3px; }

.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.switch-row .sr-label { font-size: 14px; font-weight: 600; }
.switch-row .sr-sub { font-size: 11.5px; color: var(--text-gray); }
.switch {
  position: relative; width: 48px; height: 28px; border-radius: 20px; background: #ccc; border: none; transition: background .2s; flex-shrink: 0;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on { background: var(--success-color); }
.switch.on::after { transform: translateX(20px); }

/* Detalhe do evento */
.detail-row { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; align-items: flex-start; }
.detail-row .di { width: 22px; text-align: center; color: var(--primary-color); flex-shrink: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; }
.badge.pub { background: #e3f2fd; color: var(--info-color); }
.badge.priv { background: #fde8e8; color: var(--danger-color); }

/* Lista de usuários (admin) */
.user-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.user-row .ur-avatar { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.user-row .ur-info { flex: 1; min-width: 0; }
.user-row .ur-name { font-weight: 700; font-size: 14px; }
.user-row .ur-email { font-size: 11.5px; color: var(--text-gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 8px; }
.tag.admin { background: #ede7f6; color: #6A1B9A; }
.tag.off { background: #fde8e8; color: var(--danger-color); }

/* Toasts */
.toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 80px); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; }
.toast {
  background: var(--text-dark); color: #fff; padding: 11px 18px; border-radius: 24px;
  font-size: 13.5px; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; max-width: 90%;
}
.toast.success { background: var(--success-color); }
.toast.error { background: var(--danger-color); }
.toast.info { background: var(--info-color); }

.hint-box { background: #eef4fb; border: 1px solid #cfe3f6; color: #0b4a75; border-radius: var(--radius); padding: 12px; font-size: 12.5px; line-height: 1.5; }
.spinner { width: 34px; height: 34px; border: 3px solid #e0e0e0; border-top-color: var(--primary-color); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============================================================================
   TABLET (>= 768px)
   ============================================================================ */
@media (min-width: 768px) {
  .modal-backdrop { align-items: center; }
  .modal { border-radius: var(--radius-lg); max-height: 88vh; max-width: 560px; }
  .modal-grab { display: none; }               /* alça só faz sentido no bottom-sheet */
  .month-cell { min-height: 104px; }
  .header-title { font-size: 18px; }
  .auth-card { max-width: 420px; padding: 32px 28px; }
}

/* ============================================================================
   DESKTOP (>= 1024px) — workspace centralizado, calendário em cartão
   ============================================================================ */
@media (min-width: 1024px) {
  :root { --content-max: 1240px; }

  #app-view { background: var(--bg-light); }

  /* ---- Header: barra roxa de ponta a ponta, conteúdo arejado ---- */
  .app-header { height: 60px; padding: 0 24px; gap: 18px; }
  .header-center { flex-direction: row; align-items: center; gap: 14px; }
  .header-title { font-size: 20px; order: 2; }
  .btn-today { order: 1; font-size: 13px; padding: 7px 18px; }
  .header-actions { gap: 6px; }
  .avatar { width: 38px; height: 38px; font-size: 15px; }

  /* ---- Barra de ferramentas (seletor de visão + pessoas) centralizada ---- */
  .view-switch {
    max-width: var(--content-max); width: 100%; margin: 0 auto;
    justify-content: flex-start; gap: 8px;
    padding: 16px 24px 10px; background: transparent; border-bottom: none;
  }
  .seg { flex: 0 0 auto; min-width: 104px; padding: 9px 20px; font-size: 14px; }

  .people-bar {
    max-width: var(--content-max); width: 100%; margin: 0 auto;
    padding: 0 24px 14px; background: transparent; border-bottom: none; flex-wrap: wrap;
  }

  /* ---- Área do calendário como cartão branco ---- */
  .calendar-area {
    max-width: var(--content-max); width: calc(100% - 48px);
    margin: 0 auto 24px; background: var(--bg-white);
    border: 1px solid var(--border-light); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow-x: hidden;
    padding: 0 4px 8px;
  }
  /* Largura sob medida por visão */
  [data-view="day"]  .calendar-area { max-width: 880px; }
  [data-view="list"] .calendar-area,
  [data-view="month"] .calendar-area { padding-bottom: 76px; }
  [data-view="list"] .agenda-list { max-width: 760px; margin: 0 auto; padding: 14px 20px 8px; }

  /* Mês mais espaçoso e legível */
  .month-cell { min-height: 118px; padding: 6px; }
  .month-cell .mn { font-size: 13px; }
  .month-ev { font-size: 11px; padding: 2px 6px; margin-top: 1px; }
  .month-dow { font-size: 11.5px; padding: 10px 0; }

  /* Grade de tempo com leitura melhor */
  .tg-hour-label { font-size: 11px; }
  .week-head .wh .wn { font-size: 16px; }

  /* Agenda respira mais */
  .agenda-item { padding: 12px 16px; }
  .agenda-info .ai-title { font-size: 15px; }

  /* FAB alinhado à margem direita do conteúdo (não à ponta da tela) */
  .fab {
    right: max(24px, calc((100vw - var(--content-max)) / 2 + 24px));
    bottom: 28px; width: 56px; height: 56px;
  }
}

/* Telas muito largas — mais respiro sem esticar demais */
@media (min-width: 1600px) { :root { --content-max: 1440px; } }

/* ============================================================================
   HOVER (apenas mouse) — feedback rico sem "grudar" no toque
   ============================================================================ */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.04); }
  .icon-btn:hover { background: rgba(255,255,255,.22); }
  .seg:hover:not(.active) { background: #e4e4ef; }
  .chip:hover { border-color: var(--primary-light); }
  .modal-close:hover { background: #e4e4ef; }
  .fab:hover { filter: brightness(1.07); box-shadow: 0 10px 26px rgba(74,76,156,.55); }
  .agenda-item:hover { background: #f6f6fb; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
  .month-cell { cursor: pointer; }
  .month-cell:hover { background: #f6f6fb; }
  .month-cell.other:hover { background: #f0f0f4; }
  .day-col:hover { background: rgba(74,76,156,.025); }
  .ev-block { transition: transform .08s ease, filter .15s ease, box-shadow .15s ease; }
  .ev-block:hover { filter: brightness(1.07); transform: translateY(-1px); z-index: 7; box-shadow: 0 4px 10px rgba(0,0,0,.28); }
}
