/* Keep the established Email identity; restore separation lost to module-page gap. */
.home #home-main-content[data-module-layout] .email-center.module-page {
  gap: 24px !important;
}
.home #home-main-content[data-module-layout] .email-center > .module-tabs {
  margin-block: 0 !important;
}
.email-center > .em-metrics { margin-top: 4px; }
.email-center .em-metric { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.email-center .em-metric > span { align-items: flex-start; min-height: 3em; }
.email-center .em-metric > span > svg { flex-shrink: 0; margin-top: 3px; }
.email-center .em-metric strong { margin-top: 0; }
.email-center :is(.em-section-head, .em-message__main, .em-automation__copy, .em-template) { min-width: 0; }
.email-center .em-section-head { flex-wrap: wrap; align-items: flex-start; }
.email-center .em-section-head > div { flex: 1 1 260px; }
.email-center :is(.em-section-head h2, .em-section-head p, .em-message__main strong, .em-message__main p, .em-template h3) { overflow-wrap: anywhere; }
.email-center .em-filters { gap: 14px; padding: 18px; border: 1px solid var(--em-line); border-radius: 12px; background: var(--em-surface); }
.email-center .em-filters > label:not(.em-search) { flex: 1 1 160px; min-width: 0; }
.email-center .em-search { flex: 2 1 260px; }
.email-center :is(.em-filters select, .em-filters input) { width: 100%; min-width: 0; }
.email-center :is(.em-message, .em-automation) { gap: 18px; }
.email-center .em-pagination { padding-block: 8px; }
.email-center .em-button { min-height: 44px; white-space: normal; }

/* One voice conversation control in the chat header. Feedback stays available. */
.aichat__header-actions .aichat__voice-control { position: relative; display: flex; flex: 0 0 auto; }
.aichat__voice-toggle[aria-pressed="true"] { color: #fff; background: #b93808; border-color: #ffab85; }
.aichat__voice-feedback { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; width: min(340px, calc(100vw - 48px)); max-height: 320px; overflow-y: auto; padding: 16px; border: 1px solid var(--chat-border, #454550); border-radius: 12px; background: var(--chat-bg, #131317); color: var(--chat-text, #f4f4f7); box-shadow: 0 12px 36px #0005; }
.aichat__voice-feedback > :is(p, details) { margin-top: 12px; }
.aichat__voice-feedback summary { cursor: pointer; }
.aichat__header-actions { flex-shrink: 0; gap: 4px; }
.aichat__header-info { min-width: 0; }
.aichat__header-status { overflow-wrap: anywhere; }

/* Explicit reading sizes requested for the navigation and Inicio. */
:is(#root, body) .home :is(.home-sidebar__nav-item, .home-sidebar__group-label, .home-sidebar__nav-label, .home__inicio-tab) { font-size: 16px !important; }
.home .home-sidebar__nav-item { min-height: 42px; line-height: 1.35; }
.home .home-sidebar__group-label { line-height: 1.4; letter-spacing: .05em; }
:is(#root, body) .home .hero-ed__eyebrow { font-size: 15px !important; }
:is(#root, body) .home .hero-ed__sub { font-size: 18px !important; line-height: 1.6; }
@media (min-width: 1025px) {
  :is(#root, body) .home .hero-ed__title { font-size: clamp(45px, 4.1vw + 3px, 67px) !important; }
}
@media (max-width: 760px) {
  .home #home-main-content[data-module-layout] .email-center.module-page { gap: 20px !important; }
  .email-center .em-metrics { gap: 10px; }
  .email-center .em-metric { padding: 16px 12px; }
  .email-center .em-filters { padding: 14px; }
  .email-center .em-filters > .em-search { flex-basis: 100%; }
  .email-center .em-message { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; }
  .email-center .em-message > :is(.em-badge, button) { grid-column: 2; margin-left: 0; justify-self: start; }
  .email-center .em-automation__controls { width: 100%; max-width: 100%; }
  .aichat__header { gap: 6px; }
  .aichat__header-actions .aichat__header-btn { width: 32px; min-width: 32px; height: 36px; }
  :is(#root, body) .home .hero-ed__title { font-size: clamp(37px, 4vw + 3px, 59px) !important; }
}
