.cv-community-overlay[hidden] { display: none !important; }
.cv-community-overlay {
  position: fixed;
  inset: 0;
  z-index: 160000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 25, 58, .68);
  backdrop-filter: blur(8px);
}
body.cv-community-open { overflow: hidden !important; }
.cv-community-dialog {
  width: min(1200px, 100%);
  min-height: min(610px, calc(100dvh - 56px));
  max-height: min(92dvh, 940px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
  background: #f7faff;
  border: 1px solid rgba(34, 76, 132, .26);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(4, 21, 55, .38), 0 2px 8px rgba(4, 21, 55, .16);
  color: #0d244a;
}
.cv-community-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px 20px;
  background: #fff;
  border-bottom: 1px solid #d9e4f2;
}
.cv-community-eyebrow {
  color: #155fc0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.cv-community-header h2,
.cv-community-section-heading h3,
.cv-community-roadmap-column h3,
.cv-community-roadmap-item h4,
.cv-community-idea h3,
.cv-community-form-heading h3,
.cv-community-admin-item h3,
.cv-community-empty h3 {
  margin: 0;
  letter-spacing: 0;
  color: #0b2550;
}
.cv-community-header h2 {
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.2;
  text-transform: none !important;
}
.cv-community-header p,
.cv-community-section-heading p,
.cv-community-roadmap-column header p,
.cv-community-form-heading p {
  margin: 5px 0 0;
  color: #526987;
  font-size: 13px;
  line-height: 1.45;
}
.cv-community-close,
.cv-community-icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid #b93645;
  border-radius: 50%;
  background: linear-gradient(180deg, #d84a59, #b92f3f);
  color: #fff;
  font: 400 25px/1 Arial, sans-serif;
  cursor: pointer;
}
.cv-community-close:hover { background: #a82434; border-color: #8f1e2b; }
.cv-community-icon-button:hover { background: #e9f2ff; border-color: #8eb7ec; color: #153761; }
.cv-community-tabs {
  display: flex;
  gap: 4px;
  padding: 9px 30px 0;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #d9e4f2;
  scrollbar-width: thin;
}
.cv-community-tabs button {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #556b87;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.cv-community-tabs button[aria-selected="true"] {
  color: #075fbd;
  border-bottom-color: #0874dc;
}
.cv-community-admin-tab { color: #5f3b8f !important; }
.cv-community-admin-tab[aria-selected="true"] { border-bottom-color: #7440a7 !important; }
.cv-community-live {
  margin: 10px 24px 0;
  padding: 9px 12px;
  border: 1px solid #b9d7f6;
  border-radius: 6px;
  background: #eaf5ff;
  color: #124e87;
  font-size: 13px;
  font-weight: 700;
}
.cv-community-live[data-type="success"] { border-color: #9bd9c7; background: #e7f8f2; color: #116047; }
.cv-community-live[data-type="error"] { border-color: #efb5b5; background: #fff0f0; color: #9b2b2b; }
.cv-community-dialog-body {
  min-height: 350px;
  overflow: auto;
  padding: 28px 30px 30px;
  scrollbar-gutter: stable;
}
.cv-community-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.cv-community-section-heading h3 { font-size: 18px; }
.cv-community-primary,
.cv-community-secondary {
  min-height: 44px;
  padding: 0 17px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.cv-community-primary { border: 1px solid #0868ca; background: #0874dc; color: #fff; }
.cv-community-primary:hover { background: #075fb6; }
.cv-community-secondary { border: 1px solid #a9bdd6; background: #fff; color: #183b68; }
.cv-community-secondary:hover { background: #edf5ff; }
.cv-community-primary:disabled,
.cv-community-secondary:disabled { opacity: .55; cursor: wait; }
.cv-community-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.cv-community-roadmap-column {
  min-width: 0;
  min-height: 230px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #cdd9e8;
  border-top: 4px solid #7588a5;
  border-radius: 8px;
  background: #edf3fa;
}
.cv-community-roadmap-column[data-status="planned"] { border-color: #c78a09; background: #fff8e7; }
.cv-community-roadmap-column[data-status="in_progress"] { border-color: #0874dc; background: #eaf4ff; }
.cv-community-roadmap-column[data-status="released"] { border-color: #15906c; background: #e8f8f2; }
.cv-community-roadmap-column > header {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(47, 74, 110, .14);
}
.cv-community-roadmap-column h3 { font-size: 13px; }
.cv-community-roadmap-column header p { font-size: 11px; }
.cv-community-roadmap-dot { width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; background: #7588a5; }
[data-status="planned"] .cv-community-roadmap-dot { background: #c78a09; }
[data-status="in_progress"] .cv-community-roadmap-dot { background: #0874dc; }
[data-status="released"] .cv-community-roadmap-dot { background: #15906c; }
.cv-community-count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .78);
  color: #385370;
  font-size: 11px;
  font-weight: 900;
}
.cv-community-roadmap-list { display: grid; align-content: start; gap: 8px; padding: 10px; }
.cv-community-roadmap-item {
  padding: 12px;
  border: 1px solid rgba(84, 112, 148, .2);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 51, 86, .05);
}
.cv-community-roadmap-item h4 { font-size: 13px; line-height: 1.35; }
.cv-community-roadmap-item p { margin: 7px 0 0; color: #536983; font-size: 12px; line-height: 1.45; }
.cv-community-version { display: inline-block; margin-top: 9px; color: #17633f; font-size: 10px; font-weight: 900; }
.cv-community-empty-inline { margin: 0; padding: 14px; color: #6b7f98; font-size: 12px; text-align: center; }
.cv-community-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}
.cv-community-filters label,
.cv-community-form-grid label,
.cv-community-comment,
.cv-community-faq-search,
.cv-community-admin-fields label {
  display: grid;
  gap: 6px;
  color: #294668;
  font-size: 11px;
  font-weight: 800;
}
.cv-community-filters input,
.cv-community-filters select,
.cv-community-form-grid input,
.cv-community-form-grid select,
.cv-community-form-grid textarea,
.cv-community-comment textarea,
.cv-community-faq-search input,
.cv-community-admin-fields input,
.cv-community-admin-fields select,
.cv-community-admin-fields textarea {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #b8c9dd;
  border-radius: 6px;
  background: #fff;
  color: #122e55;
  font: 500 13px/1.4 Arial, sans-serif;
}

/* Seletor HORUS padrao para filtros e formularios desta janela. A casca
   compartilhada continua sendo a autoridade de estado; aqui definimos apenas
   proporcao, alinhamento e area de toque da superficie. */
.cv-community-dialog label > .custom-select-shell {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: stretch !important;
}
.cv-community-dialog label > .custom-select-shell > .custom-select-trigger {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  justify-content: flex-start !important;
  padding: 0 42px 0 12px !important;
  border: 1px solid #b8c9dd !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #122e55 !important;
  box-shadow: 0 1px 2px rgba(13, 36, 74, .05) !important;
  font: 650 13px/1.35 Arial, sans-serif !important;
  text-align: left !important;
}
.cv-community-dialog label > .custom-select-shell > .custom-select-trigger::after {
  right: 15px !important;
  width: 8px !important;
  height: 8px !important;
}
.cv-community-dialog label > .custom-select-shell > .custom-select-trigger:hover,
.cv-community-dialog label > .custom-select-shell > .custom-select-trigger:focus-visible,
.cv-community-dialog label > .custom-select-shell.is-open > .custom-select-trigger {
  border-color: #4f8fd1 !important;
  box-shadow: 0 0 0 3px rgba(8, 116, 220, .14) !important;
  outline: none !important;
}
.cv-community-dialog label > .custom-select-shell > .custom-select-menu {
  width: 100% !important;
  min-width: 100% !important;
  max-width: min(360px, calc(100vw - 32px)) !important;
  max-height: 244px !important;
  padding: 6px !important;
  border: 1px solid #b8c9dd !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(13, 36, 74, .2) !important;
}
.cv-community-dialog label > .custom-select-shell > .custom-select-menu .custom-select-option {
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  padding: 9px 11px !important;
  border-radius: 7px !important;
  font: 650 13px/1.3 Arial, sans-serif !important;
}
.cv-community-dialog label > .custom-select-shell > .custom-select-menu .custom-select-option:hover,
.cv-community-dialog label > .custom-select-shell > .custom-select-menu .custom-select-option:focus-visible {
  background: #edf5ff !important;
  color: #0b4f91 !important;
  outline: 2px solid #2f7cc9 !important;
  outline-offset: -2px !important;
}
.cv-community-dialog label > .custom-select-shell > .custom-select-menu .custom-select-option.is-selected {
  background: #185a9d !important;
  color: #fff !important;
}
.cv-community-form-grid textarea,
.cv-community-comment textarea,
.cv-community-admin-fields textarea { min-height: 92px; resize: vertical; }
.cv-community-ideas { display: grid; gap: 10px; }
.cv-community-idea {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid #ccdaea;
  border-radius: 7px;
  background: #fff;
}
.cv-community-vote {
  width: 66px;
  min-height: 72px;
  align-self: start;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 7px;
  border: 1px solid #aac3df;
  border-radius: 6px;
  background: #f4f8fd;
  color: #315679;
  cursor: pointer;
}
.cv-community-vote strong { font-size: 17px; }
.cv-community-vote small { font-size: 9px; text-transform: uppercase; }
.cv-community-vote.is-voted { border-color: #0874dc; background: #e4f2ff; color: #075dae; }
.cv-community-vote:disabled { opacity: .62; cursor: default; }
.cv-community-idea-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 7px; }
.cv-community-category,
.cv-community-status,
.cv-community-mine {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.cv-community-category { background: #e8f1fd; color: #24598f; }
.cv-community-category[data-category="bug"] { background: #ffeded; color: #9c2929; }
.cv-community-category[data-category="feedback"] { background: #f1eafa; color: #68438f; }
.cv-community-status { background: #fff3d7; color: #855b05; }
.cv-community-status[data-status="done"] { background: #e3f7ee; color: #176247; }
.cv-community-mine { background: #edf0f5; color: #52657c; }
.cv-community-idea h3 { font-size: 15px; line-height: 1.3; }
.cv-community-idea-copy > p { margin: 7px 0 0; color: #526984; font-size: 13px; line-height: 1.48; }
.cv-community-response { margin-top: 11px; padding: 10px 12px; border-left: 3px solid #0874dc; background: #edf6ff; }
.cv-community-response strong { color: #154f85; font-size: 11px; }
.cv-community-response p { margin: 3px 0 0; color: #46617e; font-size: 12px; }
.cv-community-idea-form-shell { margin-bottom: 16px; }
.cv-community-idea-form {
  padding: 16px;
  border: 1px solid #a8c8e9;
  border-radius: 7px;
  background: #eef7ff;
}
.cv-community-form-heading { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.cv-community-form-heading h3 { font-size: 16px; }
.cv-community-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 12px; }
.cv-community-form-grid .is-wide { grid-column: 1 / -1; }
.cv-community-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.cv-community-satisfaction { max-width: 780px; margin: 0 auto; }
.cv-community-satisfaction fieldset { margin: 0; padding: 18px; border: 1px solid #c9d8e8; background: #fff; }
.cv-community-satisfaction legend { padding: 0 8px; color: #173a67; font-size: 14px; font-weight: 850; }
.cv-community-score { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; }
.cv-community-score button {
  min-width: 0;
  aspect-ratio: 1;
  border: 1px solid #b6c7db;
  border-radius: 6px;
  background: #f3f7fc;
  color: #284c74;
  font-weight: 900;
  cursor: pointer;
}
.cv-community-score button:hover { border-color: #5e99d6; background: #e9f4ff; }
.cv-community-score button.is-selected { border-color: #0874dc; background: #0874dc; color: #fff; box-shadow: 0 0 0 3px rgba(8, 116, 220, .14); }
.cv-community-score-legend { display: flex; justify-content: space-between; margin-top: 7px; color: #71839a; font-size: 10px; }
.cv-community-comment { margin-top: 16px; }
.cv-community-comment small { color: #71839a; font-weight: 500; }
.cv-community-privacy { margin-right: auto; color: #657a93; font-size: 11px; }
.cv-community-faq-search { max-width: 540px; margin-bottom: 14px; }
.cv-community-faqs { display: grid; gap: 8px; }
.cv-community-faqs details { border: 1px solid #ccd9e9; border-radius: 6px; background: #fff; }
.cv-community-faqs summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 14px;
  color: #17385f;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.cv-community-faqs summary small { color: #536982; font-size: 9px; text-transform: uppercase; }
.cv-community-faqs details p { margin: 0; padding: 0 14px 14px; color: #4e6682; font-size: 13px; line-height: 1.5; }
.cv-community-loading { min-height: 280px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.cv-community-loading span { width: 9px; height: 9px; border-radius: 50%; background: #0874dc; animation: cv-community-pulse 1s ease-in-out infinite; }
.cv-community-loading span:nth-child(2) { animation-delay: .13s; }
.cv-community-loading span:nth-child(3) { animation-delay: .26s; }
@keyframes cv-community-pulse { 50% { opacity: .3; transform: translateY(-4px); } }
.cv-community-empty { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 9px; text-align: center; }
.cv-community-empty h3 { font-size: 18px; }
.cv-community-empty p { max-width: 460px; margin: 0; color: #5e7189; font-size: 13px; }
.cv-community-empty-icon { font-size: 28px; }
.cv-community-admin-list { display: grid; gap: 12px; }
.cv-community-admin-item {
  display: grid;
  grid-template-columns: minmax(230px, .85fr) minmax(440px, 1.7fr) minmax(132px, auto);
  gap: 20px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid #d2c3e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(25, 49, 82, .06);
}
.cv-community-admin-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  padding: 3px 18px 3px 2px;
  border-right: 1px solid #e1e8f1;
}
.cv-community-admin-copy > span { color: #7440a7; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.cv-community-admin-copy h3 { margin-top: 4px; font-size: 14px; }
.cv-community-admin-copy p { margin: 7px 0 10px; color: #52677f; font-size: 12px; line-height: 1.5; }
.cv-community-admin-copy small { color: #536982; font-size: 10px; }
.cv-community-admin-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(150px, .9fr) minmax(140px, .8fr);
  gap: 12px;
  align-content: start;
}
.cv-community-admin-fields .is-wide { grid-column: 1 / -1; }
.cv-community-admin-actions {
  min-width: 132px;
  display: grid;
  align-content: end;
  gap: 10px;
}
.cv-community-admin-actions strong {
  justify-self: end;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f2ebf9;
  color: #5f3b8f;
  font-size: 11px;
}
.cv-community-admin-actions .cv-community-primary { width: 100%; }
.cv-community-entry-copy { min-width: 0; display: grid; gap: 2px; text-align: left; }
.cv-community-entry-copy strong { font-size: inherit; }
.cv-community-entry-copy small { overflow: hidden; color: #6c8098; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cv-community-entry .cvx-mi svg,
.cv-community-legacy-entry svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .cv-community-roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-community-admin-item { grid-template-columns: 1fr; align-items: stretch; }
  .cv-community-admin-copy { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid #e1e8f1; }
  .cv-community-admin-actions { display: flex; align-items: center; justify-content: space-between; }
  .cv-community-admin-actions .cv-community-primary { width: auto; }
  .cv-community-dialog { min-height: min(640px, calc(100dvh - 40px)); }
}

@media (max-width: 680px) {
  .cv-community-overlay { align-items: end; padding: 0; }
  .cv-community-dialog { width: 100%; min-height: 0; max-height: 94dvh; border-radius: 14px 14px 0 0; }
  .cv-community-header { padding: 17px 16px 13px; }
  .cv-community-header h2 { font-size: 20px; }
  .cv-community-header p { max-width: 280px; font-size: 12px; }
  .cv-community-tabs { gap: 1px; padding: 6px 6px 0; }
  .cv-community-tabs button { min-width: 0; padding: 0 8px; font-size: 12px; }
  .cv-community-dialog-body { min-height: 280px; padding: 17px 14px 22px; }
  .cv-community-live { margin-left: 14px; margin-right: 14px; }
  .cv-community-section-heading { align-items: stretch; flex-direction: column; gap: 12px; }
  .cv-community-roadmap { grid-template-columns: 1fr; }
  .cv-community-roadmap-column > header { min-height: auto; }
  .cv-community-filters { grid-template-columns: 1fr 1fr; }
  .cv-community-filters label:first-child { grid-column: 1 / -1; }
  .cv-community-idea { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 11px; }
  .cv-community-vote { width: 52px; min-height: 66px; }
  .cv-community-form-grid,
  .cv-community-admin-fields { grid-template-columns: 1fr; }
  .cv-community-form-grid .is-wide,
  .cv-community-admin-fields .is-wide { grid-column: auto; }
  .cv-community-form-actions { align-items: stretch; flex-direction: column-reverse; }
  .cv-community-form-actions button { width: 100%; }
  .cv-community-privacy { margin: 0; text-align: center; }
  .cv-community-score { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .cv-community-score button { min-height: 44px; aspect-ratio: auto; font-size: 11px; }
}

@media (max-width: 460px) {
  .cv-community-filters { grid-template-columns: 1fr; }
  .cv-community-filters label:first-child { grid-column: auto; }
  .cv-community-admin-item { gap: 14px; padding: 14px; }
  .cv-community-admin-actions { align-items: stretch; flex-direction: column; }
  .cv-community-admin-actions strong { align-self: flex-end; }
  .cv-community-admin-actions .cv-community-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cv-community-loading span { animation: none; }
}
