/* UI/UX baseline: one responsive rhythm for the whole product. */
:root {
  --ui-space-1: 4px;
  --ui-space-2: 8px;
  --ui-space-3: 12px;
  --ui-space-4: 16px;
  --ui-space-5: 24px;
  --ui-space-6: 32px;
  --ui-content-max: 1560px;
  --ui-control-height: 44px;
  --ui-section-gap: clamp(20px, 3vw, 32px);
}

html { font-size: 16px; scroll-behavior: smooth; }
body,
.pro-app,
.pro-app input,
.pro-app select,
.pro-app textarea,
.pro-app button {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.pro-app h1,
.pro-app h2,
.pro-app h3,
.pro-app h4,
.pro-app h5,
.pro-app h6,
.pro-app p { font-family: inherit; }
.pro-app h1,
.pro-app h2,
.pro-app h3,
.pro-app h4 { letter-spacing: -0.025em; }
.pro-app h2 { font-size: clamp(1.75rem, 2.5vw, 2.35rem); font-weight: 700; line-height: 1.12; }
.pro-app h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 700; line-height: 1.2; }
.pro-main { margin-inline: auto; max-width: var(--ui-content-max); padding-inline: clamp(16px, 3vw, 48px); }
.pro-view { min-width: 0; }
.pro-heading,
.pro-app-heading { align-items: flex-end; gap: var(--ui-space-5); margin-bottom: var(--ui-section-gap); }
.pro-heading p,
.pro-app-heading p { line-height: 1.5; }
.pro-card,
.pro-stat-grid article,
.pro-finance article,
.pro-kanban section,
.pro-event-card,
.pro-guest-card,
.pro-seat-card,
.pro-media-grid figure { border-radius: var(--ui-radius-lg); }
.pro-button,
.pro-icon-button,
.pro-row-actions button,
.pro-event-actions button { min-height: var(--ui-control-height); touch-action: manipulation; }
.pro-button { box-sizing: border-box; max-width: 100%; }
.pro-profile-card select,
#accountSettingsForm select { background-color: var(--ui-surface) !important; border: 1px solid var(--ui-border-strong) !important; border-radius: var(--ui-radius-sm) !important; box-sizing: border-box; max-width: 100%; width: 100%; }
.pro-profile-card .pro-settings-actions,
#accountSettingsForm .pro-settings-actions { min-width: 0; overflow: hidden; }
.pro-profile-card .pro-settings-actions .pro-button,
#accountSettingsForm .pro-button { box-sizing: border-box; max-width: 100%; }
#accountSettingsForm > label:has(> select) { background: var(--ui-surface) !important; border: 1px solid var(--ui-border-strong) !important; border-radius: var(--ui-radius-sm); padding: 10px 12px 8px; }
#accountSettingsForm > label:has(> select) select { border: 0 !important; min-height: 34px; padding-left: 0; padding-right: 30px; }
.pro-settings-select { background: #fffaf8 !important; border: 1px solid var(--ui-border-strong) !important; border-radius: var(--ui-radius-sm) !important; padding: 10px 12px 8px !important; transition: background-color .16s, border-color .16s; }
.pro-settings-select:hover,.pro-settings-select:focus-within { background: #fff !important; border-color: var(--ui-primary) !important; }
.pro-settings-select select { border: 0 !important; min-height: 34px !important; padding-left: 0 !important; }
.pro-button,
.pro-icon-button,
.pro-row-actions button,
.pro-event-actions button,
.pro-heading-actions button,
.pro-task-row-actions button,
.pro-form-actions button,
.pro-supplier-form-actions button,
.pro-access-actions button,
.pro-budget-actions button,
.pro-incident-actions button,
.pro-calendar-controls button,
.pro-list-action {
  background-clip: padding-box;
  border: 1px solid color-mix(in srgb, var(--ui-border-strong) 88%, #ffffff) !important;
  box-shadow: 0 1px 2px rgba(62, 39, 34, .08);
  transition: background-color .16s, border-color .16s, box-shadow .16s, color .16s, transform .16s;
}
.pro-button.primary {
  border-color: color-mix(in srgb, #ffffff 22%, var(--ui-primary)) !important;
}
.pro-button.secondary,
.pro-icon-button,
.pro-row-actions button,
.pro-event-actions button,
.pro-heading-actions button,
.pro-task-row-actions button,
.pro-form-actions button,
.pro-supplier-form-actions button,
.pro-access-actions button,
.pro-budget-actions button,
.pro-incident-actions button,
.pro-calendar-controls button,
.pro-list-action { background-color: var(--ui-surface); }
.pro-icon-button { align-items: center; display: inline-flex; justify-content: center; min-width: var(--ui-control-height); padding: var(--ui-space-2); }
.pro-icon-button,
.pro-card-menu,
.pro-event-row-actions button {
  color: #352724 !important;
  font-size: 18px !important;
  height: var(--ui-control-height);
  line-height: 1 !important;
  min-height: var(--ui-control-height);
  min-width: var(--ui-control-height);
  width: var(--ui-control-height);
}
.pro-icon-button.danger,
.pro-event-row-actions .danger,
.pro-delete-icon { color: #b33a32 !important; }
.pro-icon-button img,
.pro-nav img,
.pro-mobile-nav img { display: block; filter: grayscale(1) saturate(0) contrast(1.08); height: 24px; object-fit: contain; width: 24px; }
.pro-icon-button.danger { color: var(--ui-primary); }
.pro-mobile-shortcuts-settings { grid-column: 1 / -1; }
.pro-mobile-shortcut-grid { display: grid; gap: var(--ui-space-3); grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 var(--ui-space-5); }
.pro-mobile-shortcut-grid label { color: var(--ui-text); display: grid; font-size: 12px; font-weight: 700; gap: 7px; min-width: 0; }
.pro-mobile-shortcut-grid select { min-width: 0; }
@media (max-width: 720px) {
  .pro-mobile-shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 var(--ui-space-4); }
}
.pro-delete-icon::before {
  background: currentColor !important;
  -webkit-mask: url("assets/ui-icons/trash.svg") center / contain no-repeat !important;
  mask: url("assets/ui-icons/trash.svg") center / contain no-repeat !important;
  opacity: 1;
}
.pro-task-row-actions .pro-delete-icon {
  align-items: center;
  background-color: var(--ui-surface) !important;
  border-color: color-mix(in srgb, var(--ui-primary) 25%, var(--ui-border-strong)) !important;
  color: var(--ui-primary) !important;
  display: inline-flex;
  justify-content: center;
}
.pro-form,
.pro-form-row,
.pro-form-grid { gap: var(--ui-space-4); }
.pro-list,
.pro-table,
.pro-event-list,
.pro-guest-list,
.pro-supplier-list,
.pro-music-list { border-radius: var(--ui-radius-lg); }
.pro-event-list article,
.pro-table article,
.pro-guest-list article,
.pro-supplier-list article,
.pro-music-list article { min-height: 72px; }
.pro-modal-backdrop { padding: clamp(16px, 4vw, 48px); }
.pro-modal { max-width: 760px; width: min(100%, 760px); }
.pro-modal-header { align-items: flex-start; display: flex; gap: var(--ui-space-4); min-width: 0; }
.pro-modal-header > div { flex: 1 1 auto; min-width: 0; padding-right: var(--ui-space-2); }
.pro-modal-header h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal !important;
  word-break: normal;
}
.pro-modal-close { flex: 0 0 var(--ui-control-height); margin-left: auto; }
.pro-event-context {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border-strong);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(62, 39, 34, .08);
  padding: 3px 8px 3px 12px;
  transition: background-color .16s, border-color .16s, box-shadow .16s;
}
.pro-event-context:hover { background: var(--ui-surface-subtle); border-color: #cbb8b0; }
.pro-event-context:focus-within {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ui-primary) 18%, transparent);
}
.pro-event-context select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23352724' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-color: transparent !important;
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px;
  border: 0 !important;
  border-radius: 8px;
  box-shadow: none !important;
  cursor: pointer;
  min-height: 38px !important;
  padding: 0 42px 0 0 !important;
}
.pro-event-context select:focus,
.pro-event-context select:focus-visible { outline: 0 !important; }
.pro-app select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--ui-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23352724' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 18px center;
  background-repeat: no-repeat;
  background-size: 18px;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text);
  min-height: var(--ui-control-height);
  padding: 0 52px 0 14px;
  transition: border-color .16s, box-shadow .16s, background-color .16s;
}
.pro-app select:hover { background-color: var(--ui-surface-subtle); border-color: #cbb8b0; }
.pro-app select:focus,
.pro-app select:focus-visible {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ui-primary) 18%, transparent);
  outline: 0 !important;
}
.pro-app select option { background: var(--ui-surface); color: var(--ui-text); padding: 8px; }
.pro-app select option:checked { background: #f3e5df; color: var(--ui-primary); font-weight: 600; }
/* Fallback global para selects em modais renderizados fora do app. */
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--ui-surface) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23352724' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 18px;
  border: 1px solid var(--ui-border-strong) !important;
  border-radius: var(--ui-radius-sm) !important;
  box-sizing: border-box;
  min-height: var(--ui-control-height);
  padding-right: 34px;
}
/* Filtros de lista: controles claramente clicáveis, sem se misturar ao fundo. */
.pro-header-filter {
  align-items: center;
  background: var(--ui-surface-subtle);
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  display: flex;
  gap: var(--ui-space-2);
  min-height: 48px;
  padding: 6px 10px 6px 12px;
  position: relative;
}
.pro-header-filter > span { color: var(--ui-text-muted); font-size: 11px; font-weight: 600; }
.pro-header-filter-trigger {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ui-text);
  cursor: pointer;
  display: inline-flex;
  flex: 1;
  font: inherit;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 4px;
  text-align: left;
}
.pro-header-filter-trigger::after { color: var(--ui-primary); content: '⌄'; font-size: 16px; margin-left: 12px; }
.pro-header-filter:focus-within,
.pro-header-filter:hover { background: #fffaf8; border-color: var(--ui-primary); }
.pro-column-filter,
.pro-list-action {
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface-subtle);
}
.pro-column-filter { padding: 6px 10px; }
.pro-column-filter select,
.pro-list-action select { background-color: transparent !important; border: 0 !important; box-shadow: none !important; min-height: 34px; padding-left: 4px; }
.pro-column-filter:focus-within,
.pro-list-action:focus-within { background: #fffaf8; border-color: var(--ui-primary); }
.pro-task-filters { align-items: end; display: grid; gap: var(--ui-space-3); grid-template-columns: repeat(2, minmax(0, 1fr)) auto; margin: 0 0 var(--ui-space-5); }
.pro-task-filters > label { color: var(--ui-text-muted); display: grid; font-size: 11px; font-weight: 600; gap: 6px; min-width: 0; }
.pro-task-filters > label select { width: 100%; }
@media (max-width: 720px) { .pro-task-filters { grid-template-columns: 1fr 1fr; } .pro-task-filters > span { grid-column: 1 / -1; } }
.pro-calendar-jump {
  align-items: center;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  display: inline-flex;
  gap: var(--ui-space-2);
  min-height: 44px;
  padding: 5px 10px 5px 12px;
}
.pro-calendar-jump > span { color: var(--ui-text-muted); font-size: 11px; font-weight: 600; }
.pro-calendar-jump input { background: transparent; border: 0; color: var(--ui-text); font: inherit; min-height: 32px; min-width: 145px; padding: 0 2px; }
.pro-calendar-jump:focus-within,
.pro-calendar-jump:hover { background: #fffaf8; border-color: var(--ui-primary); }
.pro-calendar-controls > div:first-child button:first-child,
.pro-calendar-controls > div:first-child button:last-child { color: transparent; font-size: 0; position: relative; }
.pro-calendar-controls > div:first-child button:first-child::before,
.pro-calendar-controls > div:first-child button:last-child::before { color: var(--ui-primary); display: block; font-size: 22px; font-weight: 500; line-height: 1; }
.pro-calendar-controls > div:first-child button:first-child::before { content: '‹'; }
.pro-calendar-controls > div:first-child button:last-child::before { content: '›'; }
/* Selects seguem o mesmo contorno do seletor de evento em todo o sistema. */
.pro-app select,
.pro-modal select,
.pro-supplier-form select {
  background-color: var(--ui-surface) !important;
  border: 1px solid var(--ui-border-strong) !important;
  border-radius: var(--ui-radius-sm) !important;
  min-height: var(--ui-control-height);
}
.pro-supplier-form select { background-position: right 16px center !important; padding-right: 46px !important; }
.pro-form select,
.pro-supplier-form select,
.pro-event-context select,
.pro-column-filter select,
.pro-list-action select { box-sizing: border-box; max-width: 100%; width: 100%; }
.pro-app select:hover,
.pro-modal select:hover { border-color: #cbb8b0 !important; }
.pro-mobile-menu-search { border: 1px solid transparent; box-shadow: none; transition: background-color .16s, border-color .16s, box-shadow .16s; }
.pro-mobile-menu-search:focus-within { border-color: var(--ui-border-strong); box-shadow: 0 0 0 3px var(--ui-focus); }
.pro-mobile-menu-search input,
.pro-mobile-menu-search input:focus { border: 0 !important; box-shadow: none !important; outline: 0 !important; }
.pro-search {
  transition: border-color .16s, box-shadow .16s, background-color .16s;
}
.pro-search input,
.pro-search input:focus,
.pro-search input:focus-visible {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.pro-search:focus-within {
  border-color: var(--ui-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-primary) 16%, transparent) !important;
}
.pro-mobile-menu-search > span {
  align-items: center;
  color: var(--ui-primary);
  display: inline-flex;
  flex: 0 0 24px;
  height: 24px;
  justify-content: center;
  line-height: 1;
  text-align: center;
  width: 24px;
}
.pro-mobile-menu-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--ui-primary);
  height: 18px;
  margin-left: 8px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 4l10 10M14 4L4 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 18px;
}

/* Close/remove controls: one predictable touch target and centered glyph. */
.pro-modal-close,
.pro-seat-card > header > button,
.pro-media-grid figure > button[aria-label^="Remover"],
.pro-attachment-remove,
[data-remove-checklist-item],
[data-remove-group] {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  text-align: center !important;
}
.pro-modal-close {
  flex: 0 0 48px !important;
  font-size: 30px !important;
  height: 48px !important;
  width: 48px !important;
}

/* Cabeçalhos de modal sempre reservam respiro abaixo do fechar. */
.pro-modal-header {
  align-items: start !important;
  display: grid !important;
  gap: var(--ui-space-3) !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  padding: 24px 28px 32px !important;
  position: relative;
}
.pro-modal-header > div { min-width: 0; }
.pro-modal-header h2 { margin: 0 !important; overflow-wrap: anywhere; padding: 8px 0 0 !important; }
.pro-modal-header .pro-modal-close {
  align-self: start;
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 12px !important;
  color: var(--ui-primary) !important;
  display: grid !important;
  font-size: 24px !important;
  grid-column: 2;
  grid-row: 1;
  height: 44px !important;
  justify-self: end;
  margin: 0 0 12px !important;
  min-height: 44px !important;
  min-width: 44px !important;
  place-items: center;
  width: 44px !important;
}
.pro-modal-header .pro-modal-close { position: absolute; right: 24px; top: 20px; }
.pro-template-library > header > .pro-button { background: #fffaf8 !important; border: 1px solid var(--ui-primary) !important; color: var(--ui-primary) !important; font-weight: 700; }
.pro-modal-header .pro-modal-close:hover { background: var(--ui-surface-subtle) !important; border-color: var(--ui-primary) !important; }
.pro-seat-card > header > button,
.pro-media-grid figure > button[aria-label^="Remover"],
.pro-attachment-remove,
[data-remove-checklist-item],
[data-remove-group] { font-size: 24px !important; }
.pro-mobile-menu-close { align-items: center !important; }
.pro-mobile-menu-close span {
  align-items: center;
  display: inline-flex;
  font-size: 30px !important;
  height: 44px;
  justify-content: center;
  line-height: 1 !important;
  width: 44px;
}

/* Briefing builder: clear progression from model to steps and questions. */
.pro-briefing-builder { gap: var(--ui-space-5); }
.pro-briefing-builder-intro {
  background: #faf5f2;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  display: grid;
  gap: var(--ui-space-2);
  padding: var(--ui-space-4);
}
.pro-briefing-builder-intro h3 { color: var(--ui-text); font-size: 18px; margin: 0; }
.pro-briefing-builder-intro p:not(.eyebrow) { color: var(--ui-text-muted); font-size: 13px; line-height: 1.5; margin: 0; }
.pro-faq-builder {
  background: #fffaf8;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-lg);
  display: grid;
  gap: var(--ui-space-4);
  padding: var(--ui-space-4);
}
.pro-faq-builder > header { align-items: center; display: flex; gap: var(--ui-space-3); justify-content: space-between; }
.pro-faq-builder > header > div { display: grid; gap: 3px; min-width: 0; }
.pro-faq-builder > header b { color: var(--ui-text); font-size: 14px; }
.pro-faq-builder > header small { color: var(--ui-text-muted); font-size: 12px; }
.pro-faq-builder > header .pro-button { background: #fff !important; border: 1px solid var(--ui-border-strong) !important; color: var(--ui-primary) !important; flex: 0 0 auto; margin: 0; min-height: 40px; }
[data-faq-steps] { display: grid; gap: var(--ui-space-3); }
.pro-faq-step {
  background: #fff;
  border: 1px solid var(--ui-border-strong);
  border-left: 3px solid var(--ui-primary);
  border-radius: var(--ui-radius-md);
  display: grid;
  gap: var(--ui-space-3);
  padding: var(--ui-space-4);
}
.pro-faq-step > header { align-items: end; display: grid; gap: var(--ui-space-3); grid-template-columns: minmax(0, 1fr) 44px; }
.pro-faq-step-title-wrap { display: grid; gap: 6px; min-width: 0; }
.pro-faq-step-title-wrap small { color: var(--ui-text-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pro-faq-step-title,
.pro-faq-question {
  background: #fffaf8 !important;
  border: 1px solid var(--ui-border-strong) !important;
  border-radius: var(--ui-radius-sm) !important;
  color: var(--ui-text) !important;
  min-height: 44px;
  padding: 0 13px !important;
  width: 100%;
}
.pro-faq-step-title { font-size: 15px; font-weight: 650; }
.pro-faq-questions {
  border-top: 1px solid var(--ui-border);
  display: grid;
  gap: var(--ui-space-2);
  padding-top: var(--ui-space-3);
}
.pro-faq-question-row { align-items: center; background: #fff7f4; border: 1px solid var(--ui-border-strong); border-radius: var(--ui-radius-sm); display: grid; gap: var(--ui-space-2); grid-template-columns: 24px minmax(0, 1fr) 40px; padding: 7px; }
.pro-faq-question-row.is-dragging { opacity: .45; }
.pro-faq-question-drag { background: transparent; border: 0; color: var(--ui-text-muted); cursor: grab; font-size: 19px; letter-spacing: -5px; line-height: 1; min-height: 40px; overflow: hidden; padding: 0 0 2px; text-align: center; touch-action: none; user-select: none; width: 20px; }
.pro-faq-question-drag:active { cursor: grabbing; }
.pro-faq-icon {
  align-items: center;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-primary);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}
.pro-faq-icon:hover { background: #fbefeb; border-color: #d8b6aa; }
.pro-faq-trash {
  background: var(--ui-primary);
  display: block;
  height: 18px;
  mask: url("assets/ui-icons/iconomous/Iconomous/SVGPerfect/84-Trash.svg") center / contain no-repeat;
  width: 18px;
}
.pro-faq-step > header > .pro-faq-icon ~ .pro-faq-icon,
.pro-faq-question-row > .pro-faq-icon ~ .pro-faq-icon { display: none !important; }
.pro-faq-add-question {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ui-primary);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  justify-self: start;
  min-height: 36px;
  padding: 0 4px;
}
.pro-faq-add-question:hover { text-decoration: underline; }

/* Persistent activity feed in the app bar. */
.pro-topbar-actions { align-items: center; display: flex; gap: 8px; margin-left: auto; position: relative; }
.pro-topbar-actions #proMenu { margin-left: 0 !important; }
@media (min-width: 721px) {
  .pro-topbar-actions { margin-left: auto; order: 3; }
  .pro-event-context { margin-left: 0 !important; order: 4; }
}
.pro-notification-button { align-items: center; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm); color: var(--ui-primary); cursor: pointer; display: inline-flex; height: 42px; justify-content: center; padding: 0; position: relative; width: 42px; }
.pro-notification-button > span { background: currentColor; display: block; height: 20px; mask: url("assets/interface-icons/Files/snooze, notification, alarm, bell.svg") center / contain no-repeat; width: 20px; }
.pro-notification-button:hover,.pro-notification-button[aria-expanded="true"] { background: var(--ui-surface-subtle); border-color: var(--ui-primary); }
.pro-notification-button b { align-items: center; background: var(--ui-primary); border: 2px solid var(--ui-surface); border-radius: 99px; color: #fff; display: flex; font-size: 9px; height: 18px; justify-content: center; line-height: 1; min-width: 18px; padding: 0 4px; position: absolute; right: -5px; top: -6px; }
.pro-notification-panel { background: #fff !important; background-color: #fff !important; backdrop-filter: none; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-md); box-shadow: 0 18px 42px rgba(44,28,24,.18); max-height: min(480px,calc(100dvh - 104px)); opacity: 1; overflow: auto; position: absolute; right: 0; top: calc(100% + 10px); width: min(380px,calc(100vw - 28px)); z-index: 130; }
.pro-notification-panel[hidden] { display: none; }
.pro-notification-panel > header { align-items: center; border-bottom: 1px solid var(--ui-border); display: flex; justify-content: space-between; padding: var(--ui-space-3) var(--ui-space-4); }
.pro-notification-panel > header > div { display: grid; gap: 3px; }
.pro-notification-panel > header strong { color: var(--ui-text); font-size: 15px; }
.pro-notification-panel > header small,.pro-notification-panel article small { color: var(--ui-text-muted); font-size: 11px; }
.pro-notification-panel > header button { align-items: center; background: transparent; border: 0; color: var(--ui-primary); cursor: pointer; display: inline-flex; font-size: 24px; height: 36px; justify-content: center; padding: 0; width: 36px; }
.pro-notification-panel article { border-bottom: 1px solid var(--ui-border); display: grid; gap: 10px; grid-template-columns: 8px minmax(0,1fr); padding: var(--ui-space-3) var(--ui-space-4); }
.pro-notification-panel article:last-child { border-bottom: 0; }
.pro-notification-panel article > div { min-width: 0; }
.pro-notification-panel article b { color: var(--ui-text); display: block; font-size: 13px; }
.pro-notification-panel article p { color: var(--ui-text-muted); font-size: 12px; line-height: 1.4; margin: 3px 0 5px; overflow-wrap: anywhere; }
.pro-notification-dot { background: var(--ui-primary); border-radius: 50%; height: 7px; margin-top: 5px; width: 7px; }
.pro-notification-empty { color: var(--ui-text-muted); font-size: 12px; line-height: 1.5; margin: 0; padding: var(--ui-space-4); }

.pro-activity-report-settings { grid-column: 1 / -1; }
.pro-activity-report-content { align-items: end; display: grid; gap: var(--ui-space-3); grid-template-columns: minmax(210px, .55fr) minmax(0, 1fr) auto; }
.pro-activity-report-content > label { min-width: 0; }
.pro-activity-report-content .pro-help { margin: 0; }
.pro-activity-report-content .pro-button { min-height: 44px; }

@media (max-width: 480px) {
  .pro-faq-builder { padding: var(--ui-space-3); }
  .pro-faq-step { padding: var(--ui-space-3); }
  .pro-faq-question-row { gap: 7px; grid-template-columns: 20px minmax(0, 1fr) 40px; padding: 7px; }
  .pro-faq-question-drag { font-size: 17px; width: 17px; }
  .pro-notification-panel { inset: 0; max-height: none; right: auto; width: 100%; }
  .pro-activity-report-content { align-items: stretch; grid-template-columns: 1fr; }
  .pro-activity-report-content .pro-button { width: 100%; }
  .pro-activity-report-settings { margin-inline: 0; min-width: 0; overflow: hidden; }
  .pro-activity-report-settings > header { align-items: flex-start; gap: var(--ui-space-3); padding: var(--ui-space-4); }
  .pro-activity-report-settings > header h3 { font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
  .pro-activity-report-settings > header p { overflow-wrap: anywhere; }
  .pro-activity-report-content { padding: var(--ui-space-4); }
  .pro-activity-report-content > label,
  .pro-activity-report-content > label select,
  .pro-activity-report-content .pro-button { min-width: 0; width: 100%; }
  .pro-modal-header { padding: 22px 24px 30px !important; }
  .pro-modal-header h2 { padding-top: 7px !important; }
}

/* Briefing library keeps primary actions and empty states easy to scan. */
.pro-pages-layout { border-radius: var(--ui-radius-lg); }
.pro-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-2);
  grid-template-columns: none !important;
  padding: var(--ui-space-4);
}
.pro-page-sidebar > .eyebrow { margin: 0 0 var(--ui-space-2); }
.pro-page-sidebar > .pro-page-add {
  align-items: center;
  background: var(--ui-primary) !important;
  border: 1px solid var(--ui-primary) !important;
  border-radius: var(--ui-radius-sm);
  color: #fff !important;
  display: flex !important;
  font-size: 12px;
  flex: 0 0 44px;
  justify-content: center;
  margin: 0 0 var(--ui-space-3);
  min-height: 44px;
  opacity: 1 !important;
  padding: 0 var(--ui-space-3);
  position: relative;
  text-align: center;
  visibility: visible !important;
  width: 100%;
  z-index: 1;
}
.pro-page-sidebar > .pro-page-add:hover { background: var(--ui-primary-hover) !important; border-color: var(--ui-primary-hover) !important; }
.pro-page-sidebar > .pro-briefing-create-button {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  margin: 0 0 var(--ui-space-3) !important;
  min-height: 44px !important;
  visibility: visible !important;
  width: 100% !important;
}
.pro-briefing-create-button > span { font-size: 17px; line-height: 1; margin-right: 4px; }
.pro-page-sidebar > .muted {
  background: #fbf7f5;
  border: 1px dashed var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 var(--ui-space-3);
  padding: var(--ui-space-3);
}
.pro-briefing-sidebar-title { border-top: 1px solid var(--ui-border); margin-top: var(--ui-space-2) !important; padding-top: var(--ui-space-4); }
.pro-page-link { min-height: 52px; padding: 10px; }
.pro-page-link:hover { background: #f7eeea; }
.pro-pages-content > .pro-empty {
  border: 1px dashed var(--ui-border-strong);
  border-radius: var(--ui-radius-lg);
  margin: var(--ui-space-2);
  padding: var(--ui-space-6) var(--ui-space-5);
}
.pro-empty-actions {
  display: flex;
  gap: var(--ui-space-3);
  margin-inline: var(--ui-space-2);
  margin-top: var(--ui-space-5);
  padding-top: var(--ui-space-2);
}
.pro-empty-actions .pro-button { flex: 1 1 0; min-width: 0; }

/* Respiro consistente para estados vazios e relatórios em qualquer viewport. */
.pro-pages-content > .pro-empty { margin-block: var(--ui-space-5); padding-block: var(--ui-space-6); }
.pro-pages-content > .pro-empty .pro-empty-actions { margin-top: var(--ui-space-5); }
.pro-activity-report-settings { margin-block: var(--ui-space-5); }
.pro-activity-report-settings > header { padding-bottom: var(--ui-space-5); }
.pro-activity-report-content { padding-top: var(--ui-space-4); padding-bottom: var(--ui-space-4); }

/* Access management is intentionally clear about what is local versus server-side. */
.pro-access-notice {
  align-items: flex-start;
  background: #fff8ee;
  border: 1px solid #ead8b8;
  border-radius: var(--ui-radius-md);
  display: flex;
  gap: var(--ui-space-3);
  margin-bottom: var(--ui-space-5);
  padding: var(--ui-space-4);
}
.pro-access-notice > span { color: #8a6230; font-size: 22px; line-height: 1; }
.pro-access-notice b { color: var(--ui-text); display: block; font-size: 13px; margin-bottom: 3px; }
.pro-access-notice p { color: var(--ui-text-muted); font-size: 12px; line-height: 1.5; margin: 0; }
.pro-access-summary { display: grid; gap: var(--ui-space-3); grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--ui-space-5); }
.pro-access-summary article { background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius-md); display: grid; gap: 5px; padding: var(--ui-space-4); }
.pro-access-summary small { color: var(--ui-text-muted); font-size: 11px; }
.pro-access-summary b { color: var(--ui-primary); font-size: 28px; letter-spacing: -.04em; line-height: 1; }
.pro-access-summary span { color: var(--ui-text-muted); font-size: 11px; }
.pro-access-layout { align-items: start; display: grid; gap: var(--ui-space-4); grid-template-columns: minmax(0, 1.5fr) minmax(260px, .75fr); margin-bottom: var(--ui-space-4); }
.pro-access-members { padding: 0; }
.pro-access-members > header,
.pro-access-roles > header { align-items: center; border-bottom: 1px solid var(--ui-border); display: flex; gap: var(--ui-space-3); justify-content: space-between; padding: var(--ui-space-4); }
.pro-access-members h3,
.pro-access-audit h3,
.pro-access-roles h3 { color: var(--ui-text); font-size: 17px; margin: 0; }
.pro-access-member { align-items: center; border-bottom: 1px solid var(--ui-border); display: grid; gap: var(--ui-space-3); grid-template-columns: 38px minmax(150px, 1fr) minmax(160px, 1.2fr) auto auto; padding: var(--ui-space-3) var(--ui-space-4); }
.pro-access-member:last-child { border-bottom: 0; }
.pro-access-avatar { align-items: center; background: #f3e6e1; border-radius: 50%; color: var(--ui-primary); display: inline-flex; font-size: 13px; font-weight: 700; height: 38px; justify-content: center; width: 38px; }
.pro-access-member-main { display: grid; gap: 3px; min-width: 0; }
.pro-access-member-main b { color: var(--ui-text); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-access-member-main small { color: var(--ui-text-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-access-role { color: var(--ui-primary); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pro-access-member > p { color: var(--ui-text-muted); font-size: 11px; line-height: 1.45; margin: 0; }
.pro-access-status { border-radius: 999px; font-size: 10px; font-weight: 700; padding: 6px 8px; white-space: nowrap; }
.pro-access-status.is-ativo { background: #edf5ef; color: #396448; }
.pro-access-status.is-convite-pendente { background: #fff1df; color: #86552a; }
.pro-access-status.is-suspenso { background: #f8e9e7; color: #934440; }
.pro-access-actions { align-items: center; display: flex; gap: 5px; justify-content: flex-end; }
.pro-access-actions .pro-icon-button { height: 36px; min-height: 36px; min-width: 36px; width: 36px; }
.pro-access-owner-note { color: var(--ui-text-muted); font-size: 10px; white-space: nowrap; }
.pro-access-audit { padding: var(--ui-space-4); }
.pro-access-audit ul { display: grid; gap: var(--ui-space-3); list-style: none; margin: var(--ui-space-4) 0 0; padding: 0; }
.pro-access-audit li { border-bottom: 1px solid var(--ui-border); display: grid; gap: 4px; padding-bottom: var(--ui-space-3); }
.pro-access-audit li:last-child { border-bottom: 0; padding-bottom: 0; }
.pro-access-audit li:not(:last-child),
.pro-card .pro-list article:not(:last-child) { border-bottom: 1px solid var(--ui-border) !important; }
.pro-access-audit li { padding: 0 0 var(--ui-space-3); }
.pro-access-audit li + li { padding-top: var(--ui-space-3); }
.pro-access-audit li b { color: var(--ui-text); font-size: 12px; }
.pro-access-audit li span { color: var(--ui-text-muted); font-size: 11px; line-height: 1.45; }
.pro-access-roles { padding: 0; }
.pro-access-roles > header > span { color: var(--ui-text-muted); font-size: 11px; text-align: right; }
.pro-access-roles > div { display: grid; gap: var(--ui-space-3); grid-template-columns: repeat(5, minmax(0, 1fr)); padding: var(--ui-space-4); }
.pro-access-roles article { background: var(--ui-surface-subtle); border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm); display: grid; gap: var(--ui-space-2); padding: var(--ui-space-3); }
.pro-access-roles article header { align-items: center; display: flex; justify-content: space-between; }
.pro-access-roles article header b { color: var(--ui-primary); font-size: 13px; }
.pro-access-roles article header span { background: #f2e6e1; border-radius: 999px; color: var(--ui-primary); font-size: 10px; padding: 4px 7px; }
.pro-access-roles article p { color: var(--ui-text-muted); font-size: 11px; line-height: 1.45; margin: 0; }
.pro-access-roles article > div { display: flex; flex-wrap: wrap; gap: 5px; }
.pro-access-roles article small { background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 999px; color: var(--ui-text-muted); font-size: 9px; padding: 4px 6px; }
.pro-access-roles > div { gap: var(--ui-space-3); }
.pro-access-roles article { border-left: 4px solid #a46b62; }
.pro-access-roles article:nth-child(2) { border-left-color: #b18448; }
.pro-access-roles article:nth-child(3) { border-left-color: #667557; }
.pro-access-roles article:nth-child(4) { border-left-color: #6c7988; }
.pro-access-roles article:nth-child(5) { border-left-color: #8b6b87; }
.pro-access-form-note { background: #faf5f2; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm); color: var(--ui-text-muted); font-size: 12px; line-height: 1.5; margin: 0; padding: var(--ui-space-3); }

@media (max-width: 980px) {
  .pro-pages-layout { display: block; }
  .pro-page-sidebar { border-bottom: 1px solid var(--ui-border); border-right: 0; max-height: none; }
  .pro-access-layout { grid-template-columns: 1fr; }
  .pro-access-roles > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body.pro-notifications-open { overflow: hidden; }
  body.pro-notifications-open .pro-app { visibility: hidden; }
  .pro-notification-panel {
    background: #fff !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100dvh;
    inset: 0;
    min-height: 100dvh;
    max-height: none;
    overscroll-behavior: contain;
    position: fixed;
    left: 0 !important;
    top: 0 !important;
    isolation: isolate;
    width: 100%;
    z-index: 1000;
  }
  .pro-notification-panel > header { padding: calc(18px + env(safe-area-inset-top)) 20px 18px; }
  .pro-notification-panel > header strong { font-size: 20px; }
  .pro-notification-panel article { padding: 16px 20px; }
  .pro-notification-panel > #proNotificationList { max-height: calc(100dvh - 88px - env(safe-area-inset-top)); overflow-y: auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .pro-main { padding-inline: 16px; }
  .pro-calendar-shell { gap: 18px; }
  .pro-calendar-shell .pro-agenda-list { margin-top: 16px !important; }
  .pro-calendar-week,
  .pro-calendar-grid { min-width: 0 !important; width: 100%; }
  .pro-calendar-grid button,
  .pro-calendar-grid > span { min-height: 64px; padding: 6px 4px; }
  .pro-event-context { align-items: stretch; display: grid; gap: var(--ui-space-2); grid-template-columns: 1fr; width: 100%; }
  .pro-event-context label { font-size: 11px; line-height: 1.2; }
  .pro-event-context select { width: 100%; }
  .pro-profile-card .pro-button,
  .pro-settings-actions .pro-button,
  .pro-form-actions .pro-button { max-width: 100% !important; width: 100%; }
  .pro-profile-card.pro-form > .pro-settings-actions { box-sizing: border-box; width: auto !important; }
  .pro-event-context select { background-position: right 12px center !important; padding-right: 42px !important; }
  .pro-modal-header .pro-modal-close { font-size: 28px !important; height: 48px !important; margin-bottom: 14px !important; min-height: 48px !important; min-width: 48px !important; right: 18px; top: 18px; transform: none; width: 48px !important; }
  .pro-heading,
  .pro-app-heading { align-items: stretch; gap: var(--ui-space-4); margin-bottom: var(--ui-space-5); }
  .pro-heading .pro-button,
  .pro-app-heading .pro-button { width: 100%; }
  .pro-event-list article,
  .pro-table article,
  .pro-guest-list article,
  .pro-supplier-list article,
  .pro-music-list article { min-height: 88px; }
  .pro-modal-backdrop { padding: 0; }
  .pro-faq-builder > header { align-items: stretch; flex-direction: column; }
  .pro-faq-builder > header .pro-button { width: 100%; }
  .pro-faq-step { padding: var(--ui-space-3); }
  .pro-pages-content > .pro-empty { margin-block: var(--ui-space-4); padding: var(--ui-space-6) var(--ui-space-4); }
  .pro-empty-actions { flex-direction: column; }
  .pro-empty-actions .pro-button { width: 100%; }
  .pro-access-summary { grid-template-columns: 1fr; }
  .pro-access-member { align-items: start; grid-template-columns: 38px minmax(0, 1fr) auto; }
  .pro-access-member > p { grid-column: 2 / -1; }
  .pro-access-status { grid-column: 2; justify-self: start; }
  .pro-access-actions { grid-column: 3; grid-row: 1 / span 2; }
  .pro-access-roles > header { align-items: flex-start; flex-direction: column; }
  .pro-access-roles > header > span { text-align: left; }
  .pro-access-roles > div { grid-template-columns: 1fr; }
  .pro-event-list-row {
    grid-template-areas: "name" "status" "type" "people" "progress" "actions";
    grid-template-columns: minmax(0, 1fr);
    padding: var(--ui-space-4);
  }
  .pro-event-name { width: 100%; }
  .pro-event-name b { overflow: visible; text-overflow: clip; white-space: normal; }
  .pro-event-row-actions { justify-content: flex-start; padding-top: var(--ui-space-2); width: 100%; }
}

/* O painel lateral é fixo: a área útil precisa iniciar depois dele. */
@media (min-width: 1181px) {
  .pro-main {
    margin-left: 272px;
    margin-right: 0;
    max-width: none;
    width: calc(100% - 272px);
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .pro-main {
    margin-left: 82px;
    margin-right: 0;
    max-width: none;
    width: calc(100% - 82px);
  }
}

/* Padrão único dos controles acionáveis no app instalado. Esta camada fica
   por último para impedir que formulários antigos restaurem a seta nativa. */
@media (max-width: 720px) {
  .pro-modal-header .pro-modal-close {
    align-items: center !important;
    background: #fffaf8 !important;
    border: 1px solid var(--ui-border-strong) !important;
    border-radius: 12px !important;
    color: var(--ui-primary) !important;
    display: inline-flex !important;
    font-size: 27px !important;
    height: 44px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    right: 16px !important;
    top: 8px !important;
    width: 44px !important;
  }

  .pro-app select:not([multiple]),
  .pro-modal select:not([multiple]) {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #fffaf8 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23762623' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-position: right 14px center !important;
    background-repeat: no-repeat !important;
    background-size: 18px !important;
    border: 1px solid var(--ui-border-strong) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: var(--ui-text) !important;
    cursor: pointer;
    padding-right: 44px !important;
  }

  .pro-app .pro-form select:not([multiple]),
  .pro-modal .pro-form select:not([multiple]),
  .pro-app .pro-supplier-form select:not([multiple]),
  .pro-app .pro-list-action select:not([multiple]) {
    min-height: 50px !important;
    padding-bottom: 12px !important;
    padding-left: 14px !important;
    padding-top: 12px !important;
  }
}

/* Formulários em modal também usam o select do sistema no desktop e tablet. */
.pro-modal .pro-form select:not([multiple]),
.pro-app .pro-form select:not([multiple]) {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #fffaf8 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23762623' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-position: right 14px center !important;
  background-repeat: no-repeat !important;
  background-size: 18px !important;
  border: 1px solid var(--ui-border-strong) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: var(--ui-text) !important;
  cursor: pointer;
  min-height: 46px !important;
  padding: 10px 44px 10px 14px !important;
}

/* Configuração de tipos de evento: lista legível e ação de inclusão clara. */
.pro-event-types-content { display: grid; gap: var(--ui-space-3); }
.pro-event-types-add { display: grid; gap: var(--ui-space-2); grid-template-columns: minmax(0, 1fr) auto; }
.pro-event-types-add input { box-sizing: border-box; min-width: 0; width: 100%; }
.pro-event-types-add .pro-button { min-height: 44px; white-space: nowrap; }
.pro-event-types-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.pro-event-types-list li { align-items: center; border-bottom: 1px solid var(--ui-border); display: flex; gap: var(--ui-space-3); justify-content: space-between; min-height: 48px; padding: var(--ui-space-2) 0; }
.pro-event-types-list li:first-child { border-top: 1px solid var(--ui-border); }
.pro-event-types-list li span { color: var(--ui-text); font-size: 13px; font-weight: 650; }
.pro-event-types-list button { align-items: center; background: #fffaf8; border: 1px solid var(--ui-border); border-radius: 8px; color: var(--ui-primary); cursor: pointer; display: inline-flex; font-size: 20px; height: 34px; justify-content: center; line-height: 1; width: 34px; }
.pro-event-types-list button:hover { background: #f8ece8; border-color: var(--ui-primary); }

@media (max-width: 720px) {
  .pro-event-types-add { grid-template-columns: minmax(0, 1fr); }
  .pro-event-types-add .pro-button { width: 100%; }
}

/* Ações secundárias precisam ser reconhecidas sem depender do hover. */
.pro-button.secondary,
.pro-button.light {
  background: #fff8f5 !important;
  border: 1px solid #caa99d !important;
  color: var(--ui-primary) !important;
  font-weight: 700 !important;
  min-height: 42px;
}
.pro-button.secondary:hover,
.pro-button.light:hover {
  background: #f8ebe5 !important;
  border-color: var(--ui-primary) !important;
}
.pro-button.secondary:active,
.pro-button.light:active { background: #f1ded7 !important; }
.pro-button.secondary:focus-visible,
.pro-button.light:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-primary) 22%, transparent) !important;
  outline: 0 !important;
}
.pro-hero .pro-button.light {
  background: #fff8f5 !important;
  border: 1px solid rgba(255,255,255,.76) !important;
  color: var(--ui-primary) !important;
  font-weight: 750 !important;
  min-height: 44px;
  text-shadow: none !important;
}
.pro-hero .pro-button.light:hover,
.pro-hero .pro-button.light:focus-visible {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--ui-primary-hover) !important;
}
/* CTAs dentro de cartões, como “Ver planejamento”, mantêm contraste mesmo
   quando o cartão usa fundo branco. */
.pro-card > .pro-button.secondary,
.pro-card > .pro-button.light,
.pro-empty > .pro-button.secondary,
.pro-empty > .pro-button.light {
  box-shadow: 0 1px 2px rgba(53,39,36,.08) !important;
}

/* Navegação da agenda: setas sempre visíveis, também no app instalado. */
.pro-calendar-controls > div:first-child button:first-child,
.pro-calendar-controls > div:first-child button:last-child {
  align-items: center;
  background: #fff8f5 !important;
  border: 1px solid #caa99d !important;
  color: var(--ui-primary) !important;
  display: inline-flex;
  font-size: 22px !important;
  justify-content: center;
  line-height: 1;
  min-width: 44px;
  padding: 0 !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.pro-calendar-controls > div:first-child button:first-child::before,
.pro-calendar-controls > div:first-child button:last-child::before { content: none !important; display: none !important; }
.pro-calendar-controls > div:first-child button:first-child:hover,
.pro-calendar-controls > div:first-child button:last-child:hover,
.pro-calendar-controls > div:first-child button:first-child:focus-visible,
.pro-calendar-controls > div:first-child button:last-child:focus-visible {
  background: #f3e2dc !important;
  border-color: var(--ui-primary) !important;
  color: var(--ui-primary-hover) !important;
  transform: translateY(-1px);
}
.pro-calendar-controls > div:first-child button:first-child:active,
.pro-calendar-controls > div:first-child button:last-child:active { background: #ebd4cc !important; transform: translateY(0); }

/* Ícones de ação: superfície suave e sem blocos brancos soltos. */
.pro-icon-button,
.pro-event-row-actions .pro-icon-button,
.pro-row-actions .pro-icon-button {
  background: #f7f3f1 !important;
  border: 1px solid #d8c8c1 !important;
  color: #403735 !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease !important;
}
.pro-icon-button:hover,
.pro-icon-button:focus-visible,
.pro-event-row-actions .pro-icon-button:hover,
.pro-row-actions .pro-icon-button:hover {
  background: #eee5e1 !important;
  border-color: #a58c83 !important;
  color: #2f2927 !important;
  transform: translateY(-1px);
}
.pro-icon-button.danger,
.pro-event-row-actions .pro-icon-button.danger,
.pro-row-actions .pro-icon-button.danger {
  background: #fff0ed !important;
  border-color: #e2b9b2 !important;
  color: #b33a32 !important;
}
.pro-icon-button.danger:hover,
.pro-icon-button.danger:focus-visible,
.pro-event-row-actions .pro-icon-button.danger:hover,
.pro-row-actions .pro-icon-button.danger:hover {
  background: #f9dfda !important;
  border-color: #b33a32 !important;
  color: #982e28 !important;
}

/* Ícone de envio consistente com os demais controles de ação. */
.pro-upload-trigger { align-items: center; display: inline-flex; gap: 7px; }
.pro-upload-trigger::before {
  background: currentColor;
  content: "";
  display: inline-block;
  height: 15px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 16V3m0 0L7 8m5-5 5 5M5 15v4a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 15px;
}

@media (max-width: 720px) {
  .pro-profile-card.pro-form > .pro-settings-actions {
    margin: 16px 20px 2px !important;
    padding-top: 16px !important;
    width: auto !important;
  }
}

/* Preferências: cada escolha precisa parecer um controle independente. */
#accountSettingsForm > label.pro-settings-select {
  background: #fffaf8 !important;
  border: 1px solid var(--ui-border-strong) !important;
  border-radius: 12px !important;
  display: grid !important;
  gap: 5px !important;
  padding: 10px 12px !important;
}
#accountSettingsForm > label.pro-settings-select select {
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 34px !important;
  padding: 0 30px 0 0 !important;
}
#accountSettingsForm > .pro-settings-actions {
  box-sizing: border-box !important;
  margin: 16px 28px 2px !important;
  width: auto !important;
}
@media (max-width: 720px) {
  #accountSettingsForm > .pro-settings-actions { margin-left: 20px !important; margin-right: 20px !important; }
}

/* Tipos de evento: campo e lista isolados do contorno externo do card. */
.pro-event-types-content { margin: 0 28px 22px !important; }
.pro-event-types-add input {
  background: #fffaf8 !important;
  border: 1px solid var(--ui-border-strong) !important;
  border-radius: 10px !important;
  color: var(--ui-text) !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
}
.pro-event-types-add .pro-button { border-radius: 10px !important; }
.pro-event-types-list { background: #fffdfc; border: 1px solid var(--ui-border) !important; border-radius: 12px; overflow: hidden; }
.pro-event-types-list li { padding: 8px 12px !important; }
.pro-event-types-list li:first-child { border-top: 0; }
.pro-event-types-list li:last-child { border-bottom: 0; }
.pro-event-types-list .pro-event-type-remove {
  background: #fff0ed !important;
  border: 1px solid #e2b9b2 !important;
  border-radius: 8px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  width: 34px !important;
}
.pro-event-types-list .pro-event-type-remove::before { content: none !important; display: none !important; }
.pro-event-types-list .pro-event-type-remove > span {
  background: #b33a32;
  display: block;
  height: 16px;
  mask: url("assets/ui-icons/iconomous/Iconomous/SVGPerfect/84-Trash.svg") center / contain no-repeat;
  width: 16px;
}
.pro-event-types-list .pro-event-type-remove:hover { background: #f9dfda !important; border-color: #b33a32 !important; }
@media (max-width: 720px) {
  .pro-event-types-content { margin: 0 20px 20px !important; }
}

/* Fechar: distância fixa da divisória em todos os cabeçalhos de modal. */
.pro-modal-header { padding-bottom: 32px !important; }
.pro-modal-header .pro-modal-close { top: 8px !important; }
@media (max-width: 720px) {
  .pro-modal-header { padding-bottom: 34px !important; }
  .pro-modal-header .pro-modal-close { top: 2px !important; }
}

/* Alguns celulares usam viewport acima de 720px: mantenha o título do menu
   compacto também nesses aparelhos. */
@media (max-width: 900px) {
  .pro-mobile-menu-head { gap: 8px !important; }
  .pro-mobile-menu-head > div { flex: 1 1 auto !important; min-width: 0 !important; }
  .pro-mobile-menu-head h2 {
    font-size: 18px !important;
    letter-spacing: -.02em !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
  .pro-mobile-menu-back { flex: 0 0 36px !important; font-size: 28px !important; height: 40px !important; }
}

/* CTA principal do painel: contraste fixo, inclusive com paletas personalizadas. */
.pro-app .pro-hero > .pro-button.light[data-go="events"],
.pro-hero > button.pro-button.light[data-go="events"] {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: #762623 !important;
  display: inline-flex !important;
  font-weight: 800 !important;
  justify-content: center !important;
  min-height: 44px !important;
  text-shadow: none !important;
}
.pro-app .pro-hero > .pro-button.light[data-go="events"]:hover,
.pro-app .pro-hero > .pro-button.light[data-go="events"]:focus-visible,
.pro-hero > button.pro-button.light[data-go="events"]:hover,
.pro-hero > button.pro-button.light[data-go="events"]:focus-visible {
  background: #f6e5df !important;
  border-color: #f6e5df !important;
  color: #5e1c1a !important;
}

/* Fornecedores: a consulta é separada da edição e os dados ficam legíveis. */
.pro-supplier-detail {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pro-supplier-detail > div {
  background: #fffaf8;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}
.pro-supplier-detail small { color: var(--ui-text-muted); font-size: 11px; }
.pro-supplier-detail b { color: var(--ui-text); font-size: 14px; overflow-wrap: anywhere; }
.pro-supplier-detail-notes { grid-column: 1 / -1; }
.pro-supplier-detail p { color: var(--ui-text); line-height: 1.5; margin: 0; overflow-wrap: anywhere; }

@media (max-width: 720px) {
  /* Mantém informações e ações no mesmo topo do card, removendo o espaço vazio. */
  .pro-supplier-list .pro-supplier-row {
    align-items: start !important;
    gap: 10px 12px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 16px !important;
  }
  .pro-supplier-list .pro-supplier-row > div:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  .pro-supplier-list .pro-supplier-row > .pro-supplier-actions {
    align-self: start;
    display: flex !important;
    gap: 6px !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-content: flex-end;
    width: auto !important;
  }
  .pro-supplier-list .pro-supplier-row > .pro-supplier-actions .pro-icon-button {
    flex: 0 0 42px;
    height: 42px;
    min-height: 42px;
    min-width: 42px;
    width: 42px;
  }
  .pro-supplier-list .pro-supplier-row > .pro-supplier-category,
  .pro-supplier-list .pro-supplier-row > div:nth-child(3),
  .pro-supplier-list .pro-supplier-row > strong,
  .pro-supplier-list .pro-supplier-row > .pro-supplier-payment-cell {
    grid-column: 1 / -1 !important;
  }
  .pro-supplier-detail { grid-template-columns: 1fr; }
  .pro-supplier-detail-notes { grid-column: 1; }
}

/* Foto do evento na listagem e no editor. */
.pro-event-name-cell { align-items: center; display: flex !important; gap: 11px !important; min-width: 0; }
.pro-event-list-row > .pro-event-name-cell,.pro-event-list-row > .pro-event-type,.pro-event-list-row > .pro-event-people-cell,.pro-event-list-row > .pro-event-progress { justify-self: stretch; text-align: left; }
.pro-event-name-cell .pro-event-name { flex: 1; }
.pro-event-photo { align-items: center; background: #fff8f5; border: 1px solid #dec9c1; border-radius: 50%; color: var(--ui-primary); cursor: pointer; display: inline-flex; flex: 0 0 42px; font: 750 15px/1 Inter,Arial,sans-serif; height: 42px; justify-content: center; overflow: hidden; padding: 0; transition: border-color .16s ease,box-shadow .16s ease,transform .16s ease; width: 42px; }
.pro-event-photo img { height: 100%; object-fit: cover; width: 100%; }
.pro-event-photo:hover,.pro-event-photo:focus-visible { border-color: var(--ui-primary); box-shadow: 0 0 0 3px var(--ui-focus); outline: 0; transform: translateY(-1px); }
.pro-event-form-photo { align-items: center; display: grid; gap: 8px; grid-template-columns: 50px minmax(0,1fr); }
.pro-event-form-photo > .pro-event-photo { border-radius: 12px; grid-row: 1 / span 2; height: 50px; width: 50px; }
.pro-event-form-photo > .pro-event-photo .pro-event-photo-label { color: var(--ui-text); font: 650 12px/1.2 Inter,Arial,sans-serif; left: 62px; position: absolute; text-align: left; top: 7px; width: 190px; }
.pro-event-form-photo > small { color: var(--ui-muted); font-size: 11px; }
.pro-event-photo-form { justify-items: center; text-align: center; }
.pro-event-photo-form .pro-event-photo-preview { align-items: center; background: #fff8f5; border: 1px dashed #cda99d; border-radius: 16px; color: var(--ui-primary); cursor: pointer; display: grid; font: 650 13px/1.3 Inter,Arial,sans-serif; gap: 10px; justify-items: center; min-height: 164px; overflow: hidden; padding: 18px; width: min(100%,260px); }
.pro-event-photo-form .pro-event-photo-preview img { border-radius: 12px; height: 108px; object-fit: cover; width: 108px; }
.pro-event-photo-form .pro-form-actions { justify-content: center; width: 100%; }
@media (max-width:720px) { .pro-event-list-row .pro-event-name-cell { grid-area: name; width: 100%; } }

/* Grade única para os formulários desktop: campos, uploads e ações começam e terminam no mesmo eixo. */
@media (min-width:721px) {
  .pro-modal-body > .pro-form {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  .pro-modal-body .pro-form > *,
  .pro-modal-body .pro-form label,
  .pro-modal-body .pro-form input,
  .pro-modal-body .pro-form select,
  .pro-modal-body .pro-form textarea,
  .pro-modal-body .pro-contact-fields > label { min-width: 0; }
  .pro-modal-body .pro-form > label,
  .pro-modal-body .pro-client-photo-section,
  .pro-modal-body .pro-contact-fields,
  .pro-modal-body .pro-form-row,
  .pro-modal-body .pro-form-actions { justify-self: stretch; width: 100%; }
  .pro-modal-body .pro-form-row,
  .pro-modal-body .pro-contact-fields {
    align-items: start;
    column-gap: var(--ui-space-4);
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    row-gap: var(--ui-space-4);
  }
  .pro-modal-body .pro-client-photo-field {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    width: 100%;
  }
  .pro-modal-body .pro-client-photo-actions { justify-self: end; }
  .pro-modal-body .pro-form-actions {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-top: var(--ui-space-2);
  }
  .pro-modal-body .pro-form-actions .pro-button { flex: 0 1 auto; margin-top: 0; min-width: 156px; }
}

/* Relatório: mesmas margens do card em telas grandes e quebra previsível nas menores. */
.pro-activity-report-settings { margin: var(--ui-space-5) 0; min-width: 0; overflow: hidden; }
.pro-activity-report-settings > header { align-items: flex-start; gap: var(--ui-space-4); padding: var(--ui-space-5) var(--ui-space-5) var(--ui-space-4); }
.pro-activity-report-settings > header > div { min-width: 0; }
.pro-activity-report-settings > header p { margin-bottom: 0; max-width: 62ch; }
.pro-activity-report-content { align-items: end; border-top: 1px solid var(--ui-border); column-gap: var(--ui-space-5); grid-template-columns: minmax(220px,.48fr) minmax(0,1fr) auto; padding: var(--ui-space-4) var(--ui-space-5) var(--ui-space-5); }
.pro-activity-report-content > label { align-self: stretch; display: grid; gap: var(--ui-space-2); }
.pro-activity-report-content > label select { min-width: 0; width: 100%; }
.pro-activity-report-content .pro-help { align-self: center; max-width: 60ch; }
.pro-activity-report-content .pro-button { justify-self: end; min-width: 218px; white-space: nowrap; }
@media (max-width: 1050px) {
  .pro-activity-report-content { align-items: end; grid-template-columns: minmax(220px,1fr) auto; row-gap: var(--ui-space-4); }
  .pro-activity-report-content .pro-help { grid-column: 1 / -1; grid-row: 2; max-width: none; }
}
@media (max-width: 720px) {
  .pro-activity-report-settings { margin: var(--ui-space-4) 0; }
  .pro-activity-report-settings > header { padding: var(--ui-space-4); }
  .pro-activity-report-settings > header h3 { font-size: 22px; line-height: 1.15; }
  .pro-activity-report-content { align-items: stretch; grid-template-columns: minmax(0,1fr); padding: var(--ui-space-4); }
  .pro-activity-report-content .pro-help { grid-column: auto; grid-row: auto; line-height: 1.45; }
  .pro-activity-report-content .pro-button { justify-self: stretch; min-width: 0; width: 100%; }
}

/* Seletores: contraste permanente para comunicar que o campo abre opções. */
.pro-app select:not([multiple]),
.pro-modal select:not([multiple]),
.pro-supplier-form select:not([multiple]) {
  background-color: #fffaf8 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23762623' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-position: right 16px center !important;
  background-repeat: no-repeat !important;
  background-size: 20px !important;
  border: 1px solid #cdb8af !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 0 1px #fff, 0 1px 2px #35120f0a !important;
  cursor: pointer;
  min-height: 48px !important;
  padding-right: 50px !important;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pro-app select:not([multiple]):hover,
.pro-modal select:not([multiple]):hover,
.pro-supplier-form select:not([multiple]):hover {
  background-color: #fff !important;
  border-color: #a96d5b !important;
  box-shadow: inset 0 0 0 1px #fff, 0 3px 10px #35120f12 !important;
}
.pro-app select:not([multiple]):focus,
.pro-app select:not([multiple]):focus-visible,
.pro-modal select:not([multiple]):focus,
.pro-modal select:not([multiple]):focus-visible,
.pro-supplier-form select:not([multiple]):focus,
.pro-supplier-form select:not([multiple]):focus-visible {
  background-color: #fff !important;
  border-color: var(--ui-primary) !important;
  box-shadow: 0 0 0 3px var(--ui-focus), inset 0 0 0 1px #fff !important;
  outline: 0 !important;
}
/* Alguns filtros usam select transparente: o contorno fica no recipiente. */
.pro-column-filter,
.pro-list-action,
.pro-settings-select,
.pro-event-context {
  box-shadow: inset 0 0 0 1px #fff, 0 1px 2px #35120f08;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.pro-column-filter:hover,
.pro-list-action:hover,
.pro-settings-select:hover,
.pro-event-context:hover {
  border-color: #a96d5b !important;
  box-shadow: inset 0 0 0 1px #fff, 0 3px 10px #35120f12;
}
/* Os filtros compactos usam o recipiente como botão, sem criar um segundo contorno interno. */
.pro-event-context select:not([multiple]),
.pro-column-filter select:not([multiple]),
.pro-list-action select:not([multiple]) {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 38px !important;
}
@media (max-width: 720px) {
  .pro-app select:not([multiple]),
  .pro-modal select:not([multiple]),
  .pro-supplier-form select:not([multiple]) {
    background-position: right 14px center !important;
    min-height: 52px !important;
    padding-left: 14px !important;
    padding-right: 48px !important;
  }
}

/* Backup: ações explícitas e aviso de restauração sem competir com o restante das configurações. */
.pro-backup-settings { min-width: 0; }
.pro-backup-content { display: grid; gap: var(--ui-space-4); padding: 0 var(--ui-space-5) var(--ui-space-5); }
.pro-backup-content .pro-help { margin: 0; max-width: 62ch; }
.pro-backup-actions { display: flex; flex-wrap: wrap; gap: var(--ui-space-3); }
.pro-backup-actions .pro-button { min-height: 46px; }
.pro-backup-content > small { color: var(--ui-text-muted); font-size: 11px; line-height: 1.45; }
@media (max-width: 720px) {
  .pro-backup-content { padding: 0 var(--ui-space-4) var(--ui-space-4); }
  .pro-backup-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .pro-backup-actions .pro-button { justify-content: center; width: 100%; }
}
