/* ==========================================================================
   Orwatha SPA (Leptos) — styles measured from the Figma file.
   Frames: Login / Cadastro / Recuperar senha (Onboarding), CRM, EVENTOS,
   Criar um evento. Loaded after tokens.css + theme.css.
   Extract specs with:  python scripts/figma_spec.py <frame>
   ========================================================================== */
:root {
  --ink-60: rgba(3, 7, 18, 0.6);
  --ink-30: rgba(3, 7, 18, 0.3);
  --ink-15: rgba(3, 7, 18, 0.15);
}
body { margin: 0; }
.material-icons { font-size: 24px; line-height: 1; vertical-align: middle; flex: none; }
.mi16 { font-size: 16px; }
.mi20 { font-size: 20px; }

/* ---- Auth (Login, Cadastro, Recuperar/Redefinir senha) ------------------- */
/* 1440×1024 frame: page pad 56/28 · left panel 906 · right panel 450 · content 418. */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  height: 100vh; height: 100dvh;
  background: var(--color-surface);
  padding: clamp(0.75rem, 5.5vh, 3.5rem) clamp(0.75rem, 2vw, 1.75rem);
  overflow: hidden; box-sizing: border-box;
}
.auth-panels {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(0.5rem, 2vw, 1.75rem);
  max-width: 1440px; width: 100%; height: 100%;
}
@media (min-width: 1024px) { .auth-panels { grid-template-columns: 906fr 450fr; } }
.auth-panel { background: var(--color-surface-muted); border-radius: 16px; min-height: 0; overflow: hidden; }
@media (max-width: 1023px) { .auth-panel--left { display: none; } }
.auth-panel--right {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(24px, 25.9vh, 236px);        /* 236px between the form and the footer link */
  padding: 32px 16px; overflow-y: auto; box-sizing: border-box;
}
.auth-panel--stepper { gap: 32px; }
.auth-content { width: 100%; max-width: 418px; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.auth-content--28 { gap: 28px; }
.auth-head { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.auth-logo { display: flex; align-items: center; justify-content: center; height: 80px; padding: 12px 24px; box-sizing: border-box; }
.auth-title-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 8px; min-height: 112px; width: 100%; box-sizing: border-box; }
.auth-title { margin: 0; align-self: stretch; text-align: center; font-size: 32px; font-weight: 700; line-height: 48px; color: var(--color-ink); }
.auth-subtitle { margin: 0; align-self: stretch; text-align: center; font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ink-60); }
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.auth-form--tight { gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 12px; }
.auth-label { font-size: 16px; font-weight: 700; line-height: 24px; color: var(--color-ink); }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
/* 60px field, 2px #030712 @15% outline (Penpot), 12px radius, 30% placeholder. */
.auth-input {
  width: 100%; height: 60px; padding: 16px 20px; box-sizing: border-box;
  background: transparent; border: 2px solid var(--ink-15); border-radius: 12px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 24px;
  color: var(--color-ink); outline: none;
}
.auth-input::placeholder { color: var(--ink-30); }
.auth-input:focus { border-color: var(--color-primary); }
.auth-input-wrap .auth-input { padding-right: 56px; }
.auth-eye { position: absolute; right: 20px; display: flex; background: none; border: 0; padding: 0; cursor: pointer; color: var(--color-ink); }
.auth-hint { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 400; line-height: 16px; color: var(--ink-60); }
.auth-hint .material-icons { font-size: 16px; color: #111827; }
.auth-link-right { align-self: flex-end; font-size: 12px; line-height: 16px; color: var(--ink-60); text-decoration: none; }
.auth-terms { display: flex; align-items: flex-start; gap: 8px; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ink-60); }
.auth-terms .material-icons { font-size: 24px; color: #111827; }
.auth-terms strong { font-weight: 600; color: var(--color-ink); }
.auth-footer { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 400; line-height: 16px; color: var(--ink-60); }
.auth-footer a { font-weight: 600; color: var(--color-ink); text-decoration: none; }
.auth-actions { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.auth-error { margin: 0; width: 100%; font-size: 12px; line-height: 20px; color: var(--color-error); text-align: center; }

/* Figma "Button": 52px pill, 16/400. */
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  height: 52px; padding: 8px 20px; box-sizing: border-box;
  border-radius: 99px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 24px;
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.fx-btn--block { width: 100%; }
.fx-btn--primary { background: var(--color-primary); color: #f9fafb; }
.fx-btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.fx-btn--sm { height: 36px; padding: 8px 8px 8px 20px; }
.fx-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.fx-btn__dot { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; }
.fx-btn__dot .material-icons { font-size: 16px; }

/* Stepper: 12px dots, 8px gap. Current = 15% fill, others = 2px 15% outline. */
.stepper { display: flex; align-items: center; justify-content: center; gap: 8px; height: 12px; }
.stepper__step { width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--ink-15); box-sizing: border-box; }
.stepper__step--active { background: var(--ink-15); border-color: var(--ink-15); }

/* Toast: outline only. */
.fx-toast { width: 100%; box-sizing: border-box; padding: 16px; border-radius: 12px; border: 1px solid; display: flex; flex-direction: column; gap: 8px; }
.fx-toast--success { border-color: #15803d; }
.fx-toast--success .fx-toast__title { color: #15803d; }
.fx-toast__title { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 700; line-height: 24px; }
.fx-toast__title .material-icons { font-size: 20px; }
.fx-toast__body { margin: 0; font-size: 12px; font-weight: 400; line-height: 20px; color: var(--ink-60); }

/* ==========================================================================
   App shell — CRM / Eventos / Criar evento
   ========================================================================== */
.app { display: flex; height: 100vh; height: 100dvh; overflow-x: auto; overflow-y: hidden; background: var(--color-surface); color: var(--color-ink); font-family: var(--font-sans); }
.app--hub > .rail { margin-right: 8px; }
.pane { flex: none; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--ink-15); box-sizing: border-box; }

/* Application rail: 48px, pad 16/8, gap 32, 32px circular buttons. */
.rail { width: 48px; flex: none; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 16px 8px; border-right: 1px solid var(--ink-15); }
.rail__nav { display: flex; flex-direction: column; gap: 20px; }
.rail__spacer { flex: 1; }
.rail__settings { font-size: 24px; color: #111827; }
.round-btn { width: 32px; height: 32px; box-sizing: border-box; border-radius: 64px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--color-ink); background: transparent; color: #111827; cursor: pointer; text-decoration: none; }
.round-btn .material-icons { font-size: 16px; }
.round-btn--on { background: var(--color-primary); border-color: var(--color-primary); color: #f9fafb; }
.sq-btn { width: 32px; height: 32px; box-sizing: border-box; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--color-ink); background: transparent; color: #111827; cursor: pointer; flex: none; }
.sq-btn--soft { border-color: var(--ink-15); }
.sq-btn .material-icons { font-size: 16px; }

/* Pane heading (40px) and searchbar (34px). */
.pane-body { display: flex; flex-direction: column; gap: 32px; padding: 16px 8px; min-height: 0; flex: 1; box-sizing: border-box; }
.pane-heading { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 8px 0; flex: none; box-sizing: border-box; }
.pane-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 24px; color: #202220; }
.mini-add { width: 20px; height: 20px; padding: 2px; box-sizing: border-box; border-radius: 64px; background: #e5e7eb; border: 0; display: inline-flex; align-items: center; justify-content: center; color: #111827; cursor: pointer; }
.mini-add .material-icons { font-size: 16px; }
.sbar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 4px; background: #e5e7eb; border: 1px solid var(--ink-15); flex: none; }
.sbar .material-icons { font-size: 16px; color: #111827; }
.sbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 16px; color: var(--color-ink); }
.sbar input::placeholder { color: var(--ink-30); }
.sbar--light { background: var(--color-surface); height: 36px; width: 300px; max-width: 100%; }

/* Sidebar dropdowns (Figma "Dropdown": 32px rows, 16px between groups). */
.dd-list { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; min-height: 0; }
.dd { display: flex; flex-direction: column; border-radius: 4px; }
.dd__row { display: flex; align-items: center; justify-content: space-between; gap: 7px; width: 100%; height: 32px; padding: 8px; box-sizing: border-box; border: 0; background: transparent; cursor: pointer; text-align: left; font-family: var(--font-sans); font-size: 12px; line-height: 16px; color: var(--color-ink); border-radius: 4px; }
.dd__lead { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.dd__lead .material-icons, .dd__tail .material-icons { font-size: 16px; color: #111827; }
.dd__tail { display: flex; align-items: center; gap: 8px; }
.dd__count { font-weight: 600; color: var(--ink-30); }
.dd__item { padding-left: 16px; font-weight: 400; }
.dd__item--l2 { padding-left: 24px; }
.dd__item--on .dd__label { color: var(--color-primary); }
.dd__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Conversation rows: 52px avatar, 16/700 name, 12/700 30% preview, 12px padding. */
.conv-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.conv { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 12px; border: 0; border-top: 1px solid var(--ink-15); background: transparent; cursor: pointer; text-align: left; font-family: var(--font-sans); color: inherit; position: relative; }
.conv:first-child { border-top: 0; }
.conv:hover { background: rgba(125, 82, 244, 0.04); }
.conv--on { background: var(--color-primary-soft); }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 64px; background: var(--color-primary); color: #f9fafb; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.avatar--sm { width: 32px; height: 32px; }
.avatar .material-icons { font-size: 24px; }
.avatar--sm .material-icons { font-size: 16px; }
.conv__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.conv__name { font-size: 16px; font-weight: 700; line-height: 24px; color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__preview { font-size: 12px; font-weight: 700; line-height: 20px; color: var(--ink-30); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv__side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; align-self: stretch; flex: none; }
.conv__time { font-size: 12px; font-weight: 700; line-height: 20px; color: var(--ink-30); }
.badge { min-width: 19px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 64px; background: var(--color-primary); color: #f9fafb; font-size: 12px; font-weight: 700; line-height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.conv__pin { position: absolute; right: 8px; bottom: 8px; display: none; border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--ink-30); }
.conv__pin .material-icons { font-size: 16px; }
.conv:hover .conv__pin, .conv__pin--on { display: inline-flex; }
.conv__pin--on { color: var(--color-primary); }
.empty { padding: 24px 16px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-60); }

/* Chat pane: flexible, pad 16/8, space-between. */
.chat { flex: 1 1 0; min-width: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 16px 8px; box-sizing: border-box; border-right: 1px solid var(--ink-15); min-height: 0; }
.chat__top { display: flex; align-items: center; gap: 10px; flex: none; }
.chat__top .pane-heading { flex: 1; min-width: 0; }
.assign { position: relative; display: flex; align-items: center; gap: 7px; width: 190px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 4px; border: 1px solid var(--ink-15); background: transparent; flex: none; }
.assign .material-icons { font-size: 16px; color: #111827; }
.assign select { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; cursor: pointer; font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 16px; color: var(--color-ink); padding: 0; }
.chat__messages { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; padding: 0 8px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: min(62%, 560px); }
.msg--in { align-self: flex-start; }
.msg--out { align-self: flex-end; padding-right: 16px; }
.msg__col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bubble { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; box-sizing: border-box; }
.bubble--in { background: var(--color-primary-soft); }
.bubble--out { background: var(--ink-15); }
.bubble__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bubble__who { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--color-ink); }
.bubble__time { font-size: 12px; font-weight: 400; line-height: 17px; color: var(--ink-60); }
.bubble__text { margin: 0; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--color-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.receipt { font-size: 10px; font-weight: 400; line-height: 14px; color: var(--ink-60); }
.msg--out .receipt { text-align: right; }
.chatbar { display: flex; align-items: center; gap: 9px; flex: none; }
.chatbar__field { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; padding: 12px; box-sizing: border-box; border-radius: 8px; background: #e5e7eb; }
.chatbar__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 24px; color: var(--color-ink); }
.chatbar__field input::placeholder { color: #b4b8b5; }
.chatbar__tools { display: flex; align-items: center; gap: 12px; }
.chatbar__tools .material-icons { font-size: 16px; color: #111827; }
.chatbar__send { width: 52px; height: 52px; border-radius: 8px; border: 0; background: var(--color-primary); color: #f9fafb; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.chatbar__send:disabled { opacity: 0.5; cursor: not-allowed; }
.blank { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-60); font-size: 12px; font-weight: 600; }

/* Contact detail panel: 261px, pad 16/8. */
.detail { width: 261px; flex: none; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 16px 8px; min-height: 0; overflow-y: auto; }
.detail__stack { display: flex; flex-direction: column; gap: 30px; }
.profile { display: flex; align-items: center; gap: 10px; }
.profile__name { margin: 0; font-size: 16px; font-weight: 700; line-height: 24px; color: #202220; }
.profile__phone { margin: 0; font-size: 12px; font-weight: 600; line-height: 16px; color: #202220; }
.props { display: flex; flex-direction: column; gap: 16px; }
.props__group { display: flex; flex-direction: column; gap: 8px; }
.prop { display: flex; align-items: center; gap: 16px; padding: 4px 0; min-height: 52px; box-sizing: border-box; background: #fafcfb; }
.icon-box { width: 24px; height: 24px; padding: 4px; box-sizing: border-box; border-radius: 4px; background: #efebff; color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-box .material-icons { font-size: 16px; }
.prop__label { font-size: 12px; font-weight: 700; line-height: 20px; color: #202220; flex: 1; }
.prop__value { font-size: 12px; font-weight: 400; line-height: 20px; color: #969a97; }
.prop__col { display: flex; flex-direction: column; justify-content: center; gap: 2px; flex: 1; min-width: 0; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 8px 12px; box-sizing: border-box; border-radius: 99px; background: #e5e7eb; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--ink-60); border: 0; cursor: pointer; font-family: var(--font-sans); }
.chip--blue { background: #eff6ff; color: #155dfc; }
.chip .material-icons { font-size: 16px; color: #111827; }
.chip select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.divider { border: 0; border-top: 1px solid var(--ink-15); margin: 0; }
.notes { display: flex; flex-direction: column; gap: 4px; }
.note { display: flex; align-items: center; gap: 9px; min-height: 52px; }
.note__label { flex: 1; font-size: 12px; font-weight: 700; line-height: 20px; color: #202220; }
.note__count { font-size: 12px; font-weight: 700; line-height: 20px; color: #969a97; }
.detail__foot { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; }

/* ---- Page chrome shared by Eventos / Criar evento ------------------------- */
.page { flex: 1 1 0; min-width: 0; overflow-y: auto; box-sizing: border-box; padding: 24px 20px 33px; display: flex; flex-direction: column; gap: 15px; }
.page--form { padding: 20px; gap: 16px; }
.page-head { display: flex; flex-direction: column; flex: none; }
.crumbs { display: flex; align-items: center; gap: 4px; padding: 8px 0; width: fit-content; font-size: 12px; line-height: 16px; }
.crumbs .material-icons { font-size: 16px; color: #111827; }
.crumbs a { color: var(--ink-60); text-decoration: none; }
.crumbs .cur { font-weight: 600; color: var(--color-primary); }
.page-title { margin: 0; font-size: 32px; font-weight: 700; line-height: 48px; color: var(--color-ink); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 24px; }
.tab { display: flex; align-items: center; gap: 8px; height: 64px; background: none; border: 0; border-bottom: 1px solid transparent; cursor: pointer; padding: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 16px; color: var(--ink-60); box-sizing: border-box; }
.tab--on { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tab__n { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 8px 12px; box-sizing: border-box; border-radius: 99px; background: var(--color-surface); }
.tab--on .tab__n { background: #f1ecfe; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.filters__right { display: flex; align-items: center; gap: 10px; }
.sel { display: flex; align-items: center; gap: 7px; height: 36px; padding: 8px; box-sizing: border-box; border-radius: 4px; border: 1px solid var(--ink-15); background: transparent; width: 180px; font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--color-ink); cursor: pointer; }
.sel .material-icons { font-size: 16px; color: #111827; }
.sel__label { flex: 1; text-align: left; }
.table { display: flex; flex-direction: column; flex: 1 1 auto; }
.cols, .ev { display: grid; grid-template-columns: minmax(0, 1fr) 128px 132px 104px 32px; gap: 16px; align-items: center; }
.cols { margin-bottom: 15px; padding: 8px 0; background: var(--color-surface); border-bottom: 1px solid var(--ink-15); height: 40px; box-sizing: border-box; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--ink-60); }
.ev { padding: 18px 0; border-bottom: 1px solid var(--ink-15); min-height: 104px; box-sizing: border-box; }
.ev__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mono { width: 40px; height: 40px; flex: none; border-radius: 8px; background: #f1ecfe; color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.ev__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev__kind { font-size: 12px; font-weight: 400; line-height: 16px; color: var(--ink-60); }
.ev__name { font-size: 16px; font-weight: 700; line-height: 24px; color: var(--color-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev__where { font-size: 12px; font-weight: 400; line-height: 16px; color: var(--ink-60); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev__when { display: flex; flex-direction: column; gap: 3px; }
.ev__count { font-size: 12px; font-weight: 600; line-height: 16px; color: var(--color-ink); }
.ev__count--soon { color: var(--color-primary); }
.ev__date { font-size: 12px; font-weight: 700; line-height: 20px; }
.ev__dow { font-size: 12px; font-weight: 400; line-height: 16px; color: var(--ink-60); }
.prog { display: flex; flex-direction: column; gap: 8px; }
.prog__row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; line-height: 20px; }
.prog__pct { font-size: 12px; line-height: 16px; color: var(--ink-60); }
.prog__bar { height: 5px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.prog__fill { height: 100%; border-radius: 999px; background: var(--color-primary); }
.rsvp { display: flex; flex-direction: column; gap: 4px; }
.rsvp__n { font-size: 12px; font-weight: 700; line-height: 20px; }
.rsvp__l { font-size: 12px; font-weight: 400; line-height: 16px; color: var(--ink-60); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; font-size: 12px; line-height: 20px; flex: none; }
.pager__nav { display: flex; align-items: center; gap: 12px; }
.pager__btn { display: inline-flex; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-sans); font-size: 12px; line-height: 20px; color: var(--color-ink); }
.pager__btn--accent { font-weight: 600; color: var(--color-primary); }
.pager__btn .material-icons { font-size: 20px; }
.pager__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager__page { width: 32px; height: 32px; border-radius: 4px; border: 0; background: transparent; cursor: pointer; font-family: var(--font-sans); font-size: 12px; line-height: 20px; color: var(--color-ink); }
.pager__page--on { background: #f1ecfe; color: var(--color-primary); font-weight: 700; }

/* ---- Criar evento --------------------------------------------------------- */
.card { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 31px 63px; box-sizing: border-box; background: #fff; border: 1px solid var(--ink-15); border-radius: 12px; }
.card__body { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.photo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.photo__ph { width: 88px; height: 88px; border-radius: 999px; background: #f1ebff; display: flex; align-items: center; justify-content: center; color: var(--color-primary); overflow: hidden; }
.photo__ph .material-icons { font-size: 36px; }
.photo__ph img { width: 100%; height: 100%; object-fit: cover; }
.frow { display: flex; gap: 24px; }
.frow > * { flex: 1 1 0; min-width: 0; }
.ef { display: flex; flex-direction: column; gap: 12px; }
.ef__label { font-size: 16px; font-weight: 700; line-height: 24px; color: var(--color-ink); }
.ef__input { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 50px; padding: 12px 16px; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--ink-15); background: #fff; }
.ef__input .material-icons { font-size: 24px; color: #111827; }
.ef__input input, .ef__input select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 24px; color: var(--color-ink); padding: 0; }
.ef__input select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.ef__input input::placeholder { color: var(--ink-30); }
.ef__input:focus-within { border-color: var(--color-primary); }
.check { display: flex; align-items: center; gap: 16px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-sans); font-size: 16px; line-height: 24px; text-align: left; color: var(--color-ink); }
.check .material-icons { font-size: 24px; color: #111827; }
.check__label { font-weight: 700; }
.stack8 { display: flex; flex-direction: column; gap: 8px; }
.hint12 { margin: 0; font-size: 12px; font-weight: 400; line-height: 20px; color: var(--ink-60); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 8px 12px; box-sizing: border-box; border-radius: 99px; border: 2px solid var(--color-primary); background: transparent; color: var(--color-primary); font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 16px; cursor: pointer; }
.tag--on { background: var(--color-primary); color: #f9fafb; }
/* Figma draws strokes inside the box, so CSS padding = Figma padding - border. */
.notify { display: flex; flex-direction: column; gap: 12px; padding-top: 23px; border-top: 1px solid var(--ink-15); }
.notify__row { display: flex; gap: 40px; flex-wrap: wrap; }
.recipient { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ink-60); }
.recipient .material-icons { font-size: 20px; color: var(--color-primary); }
.savebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; min-height: 52px; flex: none; }
.savebar .check { gap: 12px; color: var(--ink-60); }
.savebar .check .material-icons { color: var(--ink-30); }
.savebar .check--on .material-icons { color: var(--color-primary); }
.form-error { color: var(--color-error); font-size: 12px; line-height: 20px; }

/* ── Chat motion ─────────────────────────────────────────────────────────────
   A message pops in from the side it belongs to; an outgoing one is shown at once as "sending"
   and settles when the server confirms it. Receipt ticks swap with a small pop. */
.msg { transition: opacity .25s ease; }
.msg--enter { animation: msg-pop .34s cubic-bezier(.2, .9, .25, 1.15) both; }
.msg--in.msg--enter { transform-origin: 0 100%; }
.msg--out.msg--enter { transform-origin: 100% 100%; animation-name: msg-pop-out; }
@keyframes msg-pop { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes msg-pop-out { from { opacity: 0; transform: translate(10px, 14px) scale(.92); } to { opacity: 1; transform: none; } }
.bubble { transition: background-color .3s ease, opacity .25s ease, box-shadow .3s ease; }
.msg--sending .bubble { opacity: .6; }
.msg--failed .bubble { background: #fdecec; box-shadow: inset 0 0 0 1px #e5484d; }
.receipt--out { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
.tick { display: inline-flex; animation: tick-pop .28s cubic-bezier(.2, .9, .25, 1.4) both; color: var(--ink-60); }
.tick .material-icons { font-size: 14px; line-height: 14px; }
.tick--read { color: #2f8cf6; }
.tick--failed { color: #e5484d; }
.tick--sending .material-icons { animation: tick-spin 1.4s linear infinite; font-size: 12px; }
@keyframes tick-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes tick-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .msg--enter, .tick, .tick--sending .material-icons { animation: none; }
  .msg, .bubble { transition: none; }
}

/* Unread chats (per user): the badge pops in and the name/preview read heavier until the chat is opened. */
.conv__side .badge { animation: tick-pop .28s cubic-bezier(.2, .9, .25, 1.4) both; }
.conv:has(.badge) .conv__name { font-weight: 700; }
.conv:has(.badge) .conv__preview { color: var(--color-ink); }
