/* Camada de produto Cleo — tokens vêm do DSF. Não editar vendor. */

/* Botões DSF — reforço contra resets do Tailwind CDN */
.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body, inherit);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s var(--easing-smooth, ease);
  border: 1px solid transparent;
  line-height: 1.2;
  box-sizing: border-box;
}

.btn.btn-primary {
  background: var(--text-main, #fafafa);
  color: var(--bg-base, #030304);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn.btn-primary:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn.btn-primary:disabled,
.btn.btn-highlight:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main, #fafafa);
  border-color: var(--border-light, rgba(255, 255, 255, 0.18));
  backdrop-filter: blur(10px);
}

.btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* Destrutivo — token DSF --v-highlight (#B52626) */
.btn.btn-highlight {
  background: var(--v-highlight, #B52626);
  color: #fff;
  box-shadow: 0 0 20px color-mix(in srgb, var(--v-highlight, #B52626) 28%, transparent);
}

.btn.btn-highlight:hover:not(:disabled) {
  background: color-mix(in srgb, var(--v-highlight, #B52626) 86%, #fff);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--v-highlight, #B52626) 40%, transparent);
}

html[data-theme="light"] .btn.btn-primary {
  background: var(--text-main, #0a0a0e);
  color: var(--bg-base, #f4f6f8);
  box-shadow: none;
}

html[data-theme="light"] .btn.btn-secondary {
  background: rgba(10, 10, 14, 0.03);
  color: var(--text-main, #0a0a0e);
  border-color: var(--border-light, rgba(10, 10, 14, 0.18));
}

html[data-theme="light"] .btn.btn-highlight {
  background: var(--v-highlight, #B52626);
  color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--v-highlight, #B52626) 28%, transparent);
}

.cleo-main {
  min-height: 70vh;
  padding-top: var(--cleo-header-h, 90px);
}

body.cleo-has-sidebar {
  --cleo-sidebar-w: 240px;
  /* Alinhado a veritvs-ds.css (header#header height !important). */
  --cleo-header-h: 78px;
}

body.cleo-has-sidebar:has(#header.scrolled) {
  --cleo-header-h: 68px;
}

body.cleo-has-sidebar.cleo-sidebar-collapsed {
  --cleo-sidebar-w: 72px;
}

.cleo-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1001;
  width: var(--cleo-sidebar-w, 240px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
  background: color-mix(in srgb, var(--bg-base, #030304) 88%, #0a1218);
  transition: width 0.2s ease, transform 0.2s ease;
}

html[data-theme="light"] .cleo-sidebar {
  background: color-mix(in srgb, var(--bg-base, #f4f6f8) 92%, #fff);
}

.cleo-sidebar__toolbar {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  margin-bottom: 0.5rem;
}

.cleo-sidebar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.12));
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-dim, #94a3b8);
  cursor: pointer;
}

.cleo-sidebar__toggle:hover {
  color: var(--text, #fafafa);
  border-color: color-mix(in srgb, var(--accent-cyan, #33d2ff) 45%, transparent);
}

.cleo-sidebar__nav {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.25rem;
  overflow-y: auto;
  flex: 1 1 auto;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.cleo-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--text-dim, #94a3b8);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cleo-sidebar__link:hover,
.cleo-sidebar__link.is-active {
  color: var(--heading, var(--text, #fafafa));
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 14%, transparent);
}

.cleo-sidebar__icon {
  flex: 0 0 auto;
}

.cleo-sidebar__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cleo-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cleo-sidebar__group-toggle {
  width: 100%;
  border: none;
  cursor: pointer;
  /* Só a família — `font: inherit` anulava size/weight do .cleo-sidebar__link */
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: inherit;
  text-align: left;
  background: transparent;
  color: inherit;
}

.cleo-sidebar__chevron {
  margin-left: auto;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.cleo-sidebar__group.is-open .cleo-sidebar__chevron {
  transform: rotate(180deg);
}

.cleo-sidebar__subnav {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.15rem 0 0.35rem 0.55rem;
  margin: 0 0 0.15rem 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.cleo-sidebar__group.is-open .cleo-sidebar__subnav {
  display: flex;
}

.cleo-sidebar__sublink {
  display: block;
  padding: 0.4rem 0.65rem;
  border-radius: 0.4rem;
  color: var(--text-dim, #94a3b8);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cleo-sidebar__sublink:hover,
.cleo-sidebar__sublink.is-active {
  color: var(--heading, #fafafa);
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 12%, transparent);
}

body.cleo-sidebar-collapsed .cleo-sidebar__subnav,
body.cleo-sidebar-collapsed .cleo-sidebar__chevron,
body.cleo-sidebar-collapsed .cleo-sidebar__label {
  display: none;
}

body.cleo-sidebar-collapsed .cleo-sidebar__group-toggle {
  justify-content: center;
  padding-inline: 0.5rem;
}

html[data-theme="light"] .cleo-sidebar__subnav {
  border-left-color: rgba(10, 10, 14, 0.1);
}

.cleo-sidebar__footer {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cleo-sidebar__social {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.35rem 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.cleo-sidebar__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  color: var(--text-dim, #94a3b8);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.cleo-sidebar__social-link:hover {
  color: var(--heading, #fafafa);
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 14%, transparent);
}

body.cleo-sidebar-collapsed .cleo-sidebar__social {
  justify-content: center;
  padding-inline: 0;
}

.cleo-sidebar__footer-sep {
  border: 0;
  margin: 0 0.35rem 0.55rem;
  border-top: 1px solid var(--stroke, rgba(255, 255, 255, 0.12));
}

html[data-theme="light"] .cleo-sidebar__footer-sep {
  border-top-color: rgba(10, 10, 14, 0.12);
}

.cleo-sidebar__link--logout {
  color: color-mix(in srgb, var(--text-dim, #94a3b8) 85%, #f87171);
}

.cleo-logout-form {
  margin: 0;
  width: 100%;
}

button.cleo-sidebar__link,
button.cleo-user-menu__item {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
}

body.cleo-sidebar-collapsed .cleo-sidebar__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

body.cleo-sidebar-collapsed .cleo-sidebar__link {
  justify-content: center;
  padding-inline: 0.5rem;
}

/* Header autenticado acima do Cadence nav/noise; chip e ações por cima do blur */
header#header.cleo-app-header,
body.cleo-has-sidebar header#header.cleo-app-header {
  z-index: 1200 !important;
  overflow: visible !important;
}

body.cleo-has-sidebar #header {
  left: var(--cleo-sidebar-w, 240px);
  width: auto;
  transition: left 0.2s ease;
}

body.cleo-has-sidebar .cleo-main,
body.cleo-has-sidebar .ds-footer {
  margin-left: var(--cleo-sidebar-w, 240px);
}

body.cleo-has-sidebar .cleo-main {
  padding-top: var(--cleo-header-h, 78px);
  transition: margin-left 0.2s ease, padding-top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.cleo-has-sidebar .ds-footer {
  transition: margin-left 0.2s ease;
}

.cleo-sidebar-backdrop {
  display: none;
}

header#header #header-bg {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  z-index: 0 !important;
}

/* Portal: chrome do header como o DSF (blur), sem hairline/borda inferior. */
body.cleo-has-sidebar header#header,
body.cleo-has-sidebar header#header.scrolled {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.cleo-has-sidebar header#header #header-bg {
  background: var(--header-bg, rgba(5, 5, 7, 0.55)) !important;
  backdrop-filter: blur(16px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body.cleo-has-sidebar header#header.scrolled #header-bg {
  background: var(--header-bg-scrolled, rgba(5, 5, 7, 0.82)) !important;
  backdrop-filter: blur(22px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.3) !important;
  border-bottom: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.cleo-has-sidebar header#header #header-bg > div {
  display: none !important;
}

header#header .cleo-header-bar {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding-inline: 1.25rem !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.cleo-header-start {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  z-index: 1;
}

header#header .cleo-header-start .logo,
header#header .cleo-header-start .ds-logo-display {
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--logo-color, var(--text-main, #fafafa)) !important;
}

.cleo-welcome-chip {
  display: none !important;
}

.cleo-login-success,
.cleo-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 13000;
  min-width: 270px;
  max-width: calc(100vw - 24px);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Bem-vindo: verde sólido */
.cleo-login-success {
  border: 1px solid rgba(34, 197, 94, 0.48);
  background: linear-gradient(135deg, rgba(5, 92, 45, 0.96) 0%, rgba(16, 123, 61, 0.96) 100%);
  color: #effff4;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Flash de sucesso (ex. Preferências): cor do badge DSF anterior */
.cleo-toast,
.cleo-toast--success {
  border: 1px solid color-mix(in srgb, var(--badge-success, #4ade80) 35%, transparent);
  background: color-mix(in srgb, var(--badge-success, #4ade80) 14%, var(--bg-elevated, #0c0d12));
  color: var(--badge-success, #4ade80);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.cleo-login-success.is-show,
.cleo-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

html[data-theme="light"] .cleo-login-success {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .cleo-toast,
html[data-theme="light"] .cleo-toast--success {
  background: color-mix(in srgb, var(--badge-success, #15803d) 12%, #fff);
  border-color: color-mix(in srgb, var(--badge-success, #15803d) 30%, transparent);
  color: var(--badge-success, #15803d);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.cleo-page-stars {
  position: fixed;
  inset: 0;
  /* Acima do ambient/grid/noise (0–1); abaixo do chrome e do conteúdo. */
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.cleo-page-stars .hero-star {
  z-index: 2;
}

.cleo-main,
.ds-footer {
  position: relative;
  z-index: 3;
  background: transparent;
}

/* Footer partilhado (landing + portal): full-bleed, colunas espalhadas */
.landing-footer.ds-footer {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.landing-footer__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
  box-sizing: border-box;
  text-align: left;
}

.landing-footer__grid.ds-footer-grid,
.landing-footer .footer-content.ds-footer-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1.6fr) auto auto;
  justify-content: space-between;
  align-items: start;
  column-gap: clamp(3rem, 10vw, 8rem);
  row-gap: 2.5rem;
  margin-bottom: 3rem;
  width: 100%;
}

.landing-footer__col--end {
  text-align: right;
}

.landing-footer__col--end ul {
  display: inline-block;
  text-align: right;
}

.landing-footer__bottom.footer-copyright,
.landing-footer .footer-copyright.ds-footer-bottom {
  text-align: left;
  justify-content: flex-start;
  width: 100%;
}

.landing-footer__bottom p {
  max-width: none;
}

@media (max-width: 900px) {
  .landing-footer__grid.ds-footer-grid,
  .landing-footer .footer-content.ds-footer-grid {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    column-gap: 2rem;
  }

  .landing-footer .ds-footer-brand {
    grid-column: 1 / -1;
  }

  .landing-footer__col--end {
    text-align: left;
  }

  .landing-footer__col--end ul {
    display: block;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .landing-footer__grid.ds-footer-grid,
  .landing-footer .footer-content.ds-footer-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="light"] .landing-footer.ds-footer {
  border-top-color: rgba(10, 10, 14, 0.08);
}

html[data-theme="light"] .landing-footer__divider,
html[data-theme="light"] .landing-footer .ds-footer-bottom {
  border-top-color: rgba(10, 10, 14, 0.08);
}

.cleo-main--django-admin {
  padding-top: var(--cleo-header-h, 90px);
  padding-bottom: 2.5rem;
}

body.popup .cleo-main.cleo-main--django-admin,
.cleo-main--admin-popup {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

header#header .ds-header-actions {
  position: relative;
  z-index: 3;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.65rem;
  min-width: 0;
  visibility: visible !important;
  opacity: 1 !important;
}

.cleo-header-select.ds-input {
  min-width: 9rem;
  max-width: 14rem;
  height: 2.35rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
}

.cleo-header-search {
  position: relative;
  display: flex !important;
  align-items: center;
  min-width: 11rem;
  max-width: 16rem;
  flex: 0 1 16rem;
}

.cleo-header-search__icon {
  position: absolute;
  left: 0.7rem;
  color: var(--text-dim, #94a3b8);
  pointer-events: none;
}

.cleo-header-search__input.ds-input {
  width: 100%;
  max-width: none !important;
  height: 2.35rem;
  padding: 0.35rem 0.75rem 0.35rem 2.15rem;
  font-size: 0.85rem;
}

.cleo-header-account {
  gap: 0.4rem;
}

/* Cadence `nav { position:fixed }` não pode roubar chrome do header */
header#header .cleo-header-nav,
header#header [role="navigation"].cleo-header-nav {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.5rem;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.cleo-header-account__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .cleo-header-search {
    display: none !important;
  }

  .cleo-staff-entity-filter {
    display: none;
  }
}

.cleo-sidebar-open {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.12));
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-dim, #94a3b8);
  cursor: pointer;
}

@media (max-width: 900px) {
  body.cleo-has-sidebar {
    --cleo-sidebar-w: 0px;
  }

  body.cleo-has-sidebar #header,
  body.cleo-has-sidebar .cleo-main,
  body.cleo-has-sidebar .ds-footer {
    left: 0;
    margin-left: 0;
  }

  .cleo-sidebar-open {
    display: inline-flex;
  }

  .cleo-sidebar {
    width: min(280px, 86vw);
    transform: translateX(-105%);
    box-shadow: none;
  }

  .cleo-sidebar.cleo-sidebar--mobile-open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
  }

  body.cleo-sidebar-mobile-open .cleo-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.45);
  }

  body.cleo-has-sidebar .cleo-sidebar {
    padding-top: 1rem;
  }
}

.cleo-smoke,
.cleo-error {
  padding: 4rem 0 6rem;
}

.cleo-smoke__lead,
.cleo-error .cleo-smoke__lead {
  max-width: 40rem;
  margin: 1rem 0 2rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cleo-smoke__panel {
  max-width: 40rem;
  padding: 1.5rem;
}

.cleo-smoke__panel code {
  color: var(--accent-cyan);
}

.cleo-messages:empty {
  display: none;
}

.cleo-messages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0 0;
}

html[data-theme="light"] .cleo-smoke__lead,
html[data-theme="light"] .cleo-error .cleo-smoke__lead {
  color: var(--text-dim);
}

.hp-field-wrap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cleo-space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.cleo-space-card {
  display: block;
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cleo-space-card h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.15rem;
}

.cleo-space-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.cleo-section-title {
  margin: 2.5rem 0 0;
  font-size: 1.25rem;
}

.cleo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cleo-hp-wrap,
.cleo-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cleo-header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.cleo-header-link {
  color: var(--text-dim, #94a3b8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.cleo-header-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.12));
  border-radius: 0.5rem;
  color: var(--text, #fafafa);
}

html[data-theme="light"] .cleo-header-account {
  color: var(--text, #0a0a0e);
  border-color: rgba(10, 10, 14, 0.14);
}

html[data-theme="light"] .cleo-header-account:hover {
  color: var(--text, #0a0a0e);
  background: rgba(10, 10, 14, 0.04);
}

.cleo-header-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.15));
}

.cleo-account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.15));
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 12%, transparent);
  flex-shrink: 0;
}

.cleo-account-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cleo-account-avatar__placeholder {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text, #fafafa);
}

/* —— Páginas portal com hero (Conta + hubs + admin DSF, incl. login sem sidebar) —— */
.cleo-main.cleo-account-main,
.cleo-main.cleo-page-main,
.cleo-main.cleo-main--django-admin:not(.cleo-main--admin-popup) {
  /* Hero inclui o offset do header; evita vão duplo (main + hero). */
  padding-top: 0;
  padding-bottom: 0;
}

.cleo-account-page,
.cleo-page {
  width: 100%;
  padding-bottom: 3.5rem;
}

.cleo-account-hero,
.cleo-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Compensa o header fixo sem criar vão visual acima do hero. */
  padding: calc(var(--cleo-header-h, 78px) + 1.75rem) 1.25rem 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(51, 210, 255, 0.12) 0%, transparent 58%),
    radial-gradient(ellipse 50% 60% at 85% 70%, rgba(74, 140, 255, 0.08) 0%, transparent 50%),
    var(--bg-alt, #08080a);
  border-bottom: 1px solid var(--border-dim, rgba(255, 255, 255, 0.06));
}

/* Login admin: menos ar entre header e eyebrow (sem sidebar). */
.cleo-admin-dsf--login .cleo-page-hero {
  padding-top: calc(var(--cleo-header-h, 78px) + 0.85rem);
  padding-bottom: 2.75rem;
}

.cleo-account-hero__glow,
.cleo-page-hero__glow {
  position: absolute;
  inset: auto 50% -40% auto;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 210, 255, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.cleo-account-hero__inner,
.cleo-page-hero__inner {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cleo-account-hero__eyebrow {
  margin: 0 0 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan, #33d2ff);
}

.cleo-page-hero__eyebrow {
  margin: 0 0 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan, #33d2ff);
}

.cleo-account-hero__title {
  margin: 0;
  text-align: center;
}

.cleo-page-hero__title {
  margin: 0;
  text-align: center;
}

.cleo-page-hero__icon {
  width: 5.25rem;
  height: 5.25rem;
  margin-top: 1.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(51, 210, 255, 0.35);
  box-shadow:
    0 0 0 6px rgba(51, 210, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.35);
  background: color-mix(in srgb, var(--bg-elevated, #111116) 70%, #0b1a28);
  color: var(--accent-cyan, #33d2ff);
}

.cleo-page-hero__lead {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-dim, #94a3b8);
}

.cleo-account-hero__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.cleo-account-hero__avatar {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(51, 210, 255, 0.35);
  box-shadow:
    0 0 0 6px rgba(51, 210, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.35);
  background: color-mix(in srgb, var(--bg-elevated, #111116) 70%, #0b1a28);
  color: var(--heading, #fafafa);
  font-size: 1.65rem;
  font-weight: 700;
}

.cleo-account-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cleo-account-hero__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.cleo-account-hero__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--heading, #fafafa);
}

.cleo-account-hero__email {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-dim, #94a3b8);
}

.cleo-account-body {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  padding: 0 1.25rem;
  display: flex;
  justify-content: center;
}

.cleo-page-body {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  padding: 0 1.25rem;
  display: flex;
  justify-content: center;
}

.cleo-account-card.neural-panel {
  width: min(640px, 100%);
  margin: 0;
  padding: 1.75rem 1.75rem 1.5rem !important;
  border-radius: 24px !important;
  border: 1px solid rgba(51, 210, 255, 0.2) !important;
  background: var(--modal-bg, var(--surface-solid, #111116)) !important;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(51, 210, 255, 0.08) !important;
  backdrop-filter: none !important;
  gap: 0 !important;
}

.cleo-page-card.neural-panel {
  width: min(1080px, 100%);
  margin: 0;
  padding: 1.75rem 1.75rem 1.5rem !important;
  border-radius: 24px !important;
  border: 1px solid rgba(51, 210, 255, 0.2) !important;
  background: var(--modal-bg, var(--surface-solid, #111116)) !important;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(51, 210, 255, 0.08) !important;
  backdrop-filter: none !important;
  gap: 0 !important;
}

.cleo-page-card__head {
  position: static !important;
  inset: auto !important;
  height: auto !important;
  z-index: auto !important;
  display: block !important;
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none !important;
  background: transparent !important;
}

.cleo-page-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading, #fafafa);
}

.cleo-page-card__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dim, #94a3b8);
}

.cleo-page-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.cleo-page-card__actions .btn {
  width: auto;
}

.cleo-pick-page--sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cleo-pick-page--sections .cleo-pick-page__back {
  margin-top: 0.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cleo-pick-page--sections .cleo-pick-page__intro {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.cleo-toolbar-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: flex-end;
  margin: 0 0 1.5rem;
}

.cleo-toolbar-form .cleo-field {
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.cleo-toolbar-form .ds-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
}

.cleo-toolbar-form .ds-input {
  width: 100%;
}

.cleo-saved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cleo-saved-list__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.cleo-inbox {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cleo-inbox__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.cleo-inbox__item:hover {
  border-color: rgba(51, 210, 255, 0.38);
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 9%, transparent);
}

.cleo-inbox__item--unread {
  border-color: rgba(51, 210, 255, 0.32);
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 11%, transparent);
}

.cleo-inbox__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  color: var(--accent-cyan, #33d2ff);
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-cyan, #33d2ff) 22%, transparent);
}

.cleo-inbox__copy {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.cleo-inbox__meta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan, #33d2ff);
}

.cleo-inbox__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading, #fafafa);
}

.cleo-inbox__msg {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-dim, #94a3b8);
}

.cleo-inbox__time {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim, #64748b);
}

.cleo-inbox__cta {
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
  color: var(--accent-cyan, #33d2ff);
}

.cleo-access-table {
  margin-top: 1.75rem;
}

.cleo-access-table .cleo-page-card__title {
  text-align: center;
}

.cleo-page-card .cleo-data-table-pager,
.cleo-access-table .cleo-data-table-pager {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .cleo-inbox__item {
    grid-template-columns: auto 1fr;
  }

  .cleo-inbox__cta {
    grid-column: 2;
    justify-self: start;
  }
}

/* Fluxo Dashboards: Cliente → Setor → Painéis (paridade legado, DSF). */
.cleo-dashboards-flow .cleo-page-body {
  display: flex;
  justify-content: center;
}

.cleo-pick-page {
  width: min(36rem, 100%);
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.cleo-pick-page__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-dim, #94a3b8);
}

.cleo-pick-page__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--heading, #fafafa);
}

.cleo-pick-page__headline {
  margin: 0 0 1.15rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--heading, #fafafa);
}

.cleo-pick-page__intro {
  margin: -0.5rem 0 1.35rem;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
  color: var(--text-dim, #94a3b8);
}

.cleo-pick-page__back {
  margin: 1.35rem 0 0;
  text-align: center;
}

.cleo-pick-stack.neural-panel {
  margin: 0;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28) !important;
}

.cleo-pick-stack__pill {
  margin: 0;
  padding: 0.9rem 1.15rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-blue, #4a8cff) 55%, #0a1628) 0%,
    color-mix(in srgb, var(--accent-cyan, #33d2ff) 28%, #0d2138) 100%
  );
}

.cleo-pick-stack__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cleo-pick-stack__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.cleo-pick-stack__list li:last-child .cleo-pick-stack__item {
  border-bottom: none;
}

.cleo-pick-stack__item:hover {
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 12%, transparent);
}

.cleo-pick-stack__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--accent-cyan, #33d2ff);
}

.cleo-pick-stack__icon img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.cleo-pick-stack__label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--heading, #fafafa);
}

.cleo-pick-stack__item:hover .cleo-pick-stack__label {
  color: var(--accent-cyan, #33d2ff);
}

.cleo-pick-stack__empty {
  padding: 1.35rem 1.15rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dim, #94a3b8);
}

html[data-theme="light"] .cleo-pick-page__title,
html[data-theme="light"] .cleo-pick-page__headline,
html[data-theme="light"] .cleo-pick-stack__label {
  color: var(--heading, #0a0a0e);
}

html[data-theme="light"] .cleo-pick-stack.neural-panel {
  border-color: rgba(10, 10, 14, 0.1) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .cleo-pick-stack__pill {
  border-bottom-color: rgba(10, 10, 14, 0.08);
  background: linear-gradient(
    135deg,
    var(--accent-blue, #1a489f) 0%,
    color-mix(in srgb, var(--accent-cyan, #0b8cb8) 70%, #0f2844) 100%
  );
}

html[data-theme="light"] .cleo-pick-stack__item {
  border-bottom-color: rgba(10, 10, 14, 0.08);
}

html[data-theme="light"] .cleo-pick-stack__item:hover {
  background: color-mix(in srgb, var(--accent-cyan, #0b8cb8) 10%, #fff);
}

html[data-theme="light"] .cleo-pick-stack__icon {
  color: var(--accent-blue, #1a489f);
}

html[data-theme="light"] .cleo-pick-stack__item:hover .cleo-pick-stack__label {
  color: var(--accent-cyan, #0b8cb8);
}

.cleo-page-card .cleo-space-grid {
  margin-top: 0;
}

.cleo-client-pick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  justify-content: start;
  align-items: stretch;
}

.cleo-client-pick-card.neural-panel,
.cleo-client-pick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem !important;
  width: auto;
  min-width: 0;
  min-height: 7.75rem;
  padding: 0.85rem 0.5rem 0.7rem !important;
  text-decoration: none;
  color: inherit;
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cleo-client-pick-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-cyan, #33d2ff) 45%, transparent) !important;
}

.cleo-client-pick-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--accent-cyan, #33d2ff);
}

.cleo-client-pick-card__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.cleo-client-pick-card__name {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--heading, #fafafa);
}

.cleo-client-pick-card:hover .cleo-client-pick-card__name {
  color: var(--accent-cyan, #33d2ff);
}

html[data-theme="light"] .cleo-client-pick-card {
  border-color: rgba(10, 10, 14, 0.1) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .cleo-client-pick-card__name {
  color: var(--heading, #0a0a0e);
}

html[data-theme="light"] .cleo-client-pick-card:hover .cleo-client-pick-card__name {
  color: var(--accent-cyan, #0b8cb8);
}

@media (max-width: 1100px) {
  .cleo-client-pick-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .cleo-client-pick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .cleo-client-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .cleo-client-pick-card.neural-panel,
  .cleo-client-pick-card {
    min-height: 7.25rem;
    padding: 0.8rem 0.45rem 0.65rem !important;
  }

  .cleo-client-pick-card__icon {
    width: 40px;
    height: 40px;
  }
}

.cleo-data-table-back {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan, #33d2ff);
  text-decoration: none;
}

.cleo-data-table-back:hover {
  text-decoration: underline;
}

.cleo-data-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.cleo-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cleo-data-table th,
.cleo-data-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cleo-data-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
  background: rgba(255, 255, 255, 0.04);
}

.cleo-data-table td {
  color: var(--text, #fafafa);
}

.cleo-data-table tbody tr:last-child td {
  border-bottom: none;
}

.cleo-data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.cleo-data-table__action {
  text-align: right;
  white-space: nowrap;
}

.cleo-data-table__link {
  font-weight: 600;
  color: var(--accent-cyan, #33d2ff);
  text-decoration: none;
}

.cleo-data-table__link:hover {
  text-decoration: underline;
}

.cleo-data-table__empty {
  text-align: center;
  color: var(--text-dim, #94a3b8) !important;
  padding: 1.5rem 1rem !important;
}

.cleo-data-table-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.cleo-data-table-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text, #fafafa);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

a.cleo-data-table-pager__btn:hover {
  color: var(--accent-cyan, #33d2ff);
  border-color: color-mix(in srgb, var(--accent-cyan, #33d2ff) 50%, transparent);
}

.cleo-data-table-pager__btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.cleo-data-table-pager__info {
  font-size: 0.8rem;
  color: var(--text-dim, #94a3b8);
}

html[data-theme="light"] .cleo-data-table-back {
  color: var(--accent-cyan, #0b8cb8);
}

html[data-theme="light"] .cleo-data-table-wrap {
  border-color: rgba(10, 10, 14, 0.1);
  background: #fff;
}

html[data-theme="light"] .cleo-data-table th {
  color: var(--text-dim, #64748b);
  background: rgba(15, 23, 42, 0.04);
  border-bottom-color: rgba(10, 10, 14, 0.1);
}

html[data-theme="light"] .cleo-data-table td {
  color: var(--heading, #0a0a0e);
  border-bottom-color: rgba(10, 10, 14, 0.08);
}

html[data-theme="light"] .cleo-data-table tbody tr:hover td {
  background: rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .cleo-data-table__link {
  color: var(--accent-cyan, #0b8cb8);
}

html[data-theme="light"] .cleo-data-table__empty {
  color: var(--text-dim, #64748b) !important;
}

html[data-theme="light"] .cleo-data-table-pager {
  border-top-color: rgba(10, 10, 14, 0.08);
  background: rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .cleo-data-table-pager__btn {
  color: var(--heading, #0a0a0e);
  border-color: rgba(10, 10, 14, 0.12);
  background: #fff;
}

html[data-theme="light"] a.cleo-data-table-pager__btn:hover {
  color: var(--accent-cyan, #0b8cb8);
  border-color: color-mix(in srgb, var(--accent-cyan, #0b8cb8) 50%, transparent);
}

html[data-theme="light"] .cleo-data-table-pager__info {
  color: var(--text-dim, #64748b);
}

@media (max-width: 720px) {
  .cleo-data-table thead {
    display: none;
  }

  .cleo-data-table tbody tr {
    display: block;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cleo-data-table tbody tr:last-child {
    border-bottom: none;
  }

  .cleo-data-table td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: none;
  }

  .cleo-data-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dim, #94a3b8);
  }

  .cleo-data-table__action {
    text-align: left;
  }

  .cleo-data-table__empty {
    display: block;
    text-align: center;
  }

  .cleo-data-table__empty::before {
    content: none;
  }

  html[data-theme="light"] .cleo-data-table tbody tr {
    border-bottom-color: rgba(10, 10, 14, 0.08);
  }
}


.cleo-page-card .cleo-section-title {
  margin-top: 1.75rem;
}

/* —— Analytics (layout legado evolutivo) —— */
.cleo-page-card.cleo-analytics-card {
  width: min(1180px, 100%);
}

.cleo-analytics-filters {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.cleo-analytics-filters__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: flex-end;
}

.cleo-analytics-filters__fields .cleo-field {
  margin: 0;
  min-width: min(200px, 100%);
  flex: 1 1 180px;
}

.cleo-analytics-filters__hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--text-dim, #94a3b8);
}

.cleo-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.cleo-analytics-kpi {
  margin: 0;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.cleo-analytics-kpi__label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
}

.cleo-analytics-kpi__label small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim, #64748b);
}

.cleo-analytics-kpi__value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--accent-cyan, #33d2ff);
}

.cleo-analytics-charts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cleo-analytics-chart {
  padding: 1.15rem 1.2rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  min-height: 260px;
}

.cleo-analytics-chart--tall {
  min-height: 320px;
}

.cleo-analytics-chart .tagline {
  margin: 0 0 0.85rem;
}

.cleo-analytics-recent .cleo-section-title {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.cleo-analytics-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cleo-analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cleo-analytics-table th,
.cleo-analytics-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.cleo-analytics-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
  background: rgba(255, 255, 255, 0.03);
}

.cleo-analytics-table td {
  color: var(--text, #fafafa);
}

.cleo-analytics-table__empty {
  text-align: center;
  color: var(--text-dim, #94a3b8) !important;
  padding: 1.5rem 1rem !important;
}

.cleo-analytics-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  margin: 1rem 0 0;
}

html[data-theme="light"] .cleo-analytics-filters,
html[data-theme="light"] .cleo-analytics-kpi,
html[data-theme="light"] .cleo-analytics-chart,
html[data-theme="light"] .cleo-analytics-table-wrap {
  border-color: rgba(10, 10, 14, 0.08);
  background: rgba(15, 23, 42, 0.02);
}

html[data-theme="light"] .cleo-analytics-table th {
  background: rgba(15, 23, 42, 0.03);
  border-bottom-color: rgba(10, 10, 14, 0.08);
}

html[data-theme="light"] .cleo-analytics-table td {
  color: var(--heading, #0a0a0e);
  border-bottom-color: rgba(10, 10, 14, 0.06);
}

/* —— Dashboard Admin —— */
.cleo-page-card.cleo-admin-dash-card {
  width: min(1280px, 100%);
}

.cleo-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .cleo-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cleo-admin-metrics {
    grid-template-columns: 1fr;
  }
}

.cleo-admin-metric {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.cleo-admin-metric:nth-child(1) {
  border-left: 3px solid #6366f1;
}
.cleo-admin-metric:nth-child(2) {
  border-left: 3px solid #f97316;
}
.cleo-admin-metric:nth-child(3) {
  border-left: 3px solid #0ea5e9;
}
.cleo-admin-metric:nth-child(4) {
  border-left: 3px solid #22c55e;
}

.cleo-admin-metric__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
}

.cleo-admin-metric__value {
  font-size: 1.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--heading, #fafafa);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cleo-admin-nav {
  margin-bottom: 1.15rem;
  padding: 0.75rem 0.85rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.018);
}

.cleo-admin-nav__label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
}

.cleo-admin-pills {
  /* Não herdar o `nav { position:fixed }` do Cadence (se voltar a ser <nav>). */
  position: static !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  height: auto !important;
  z-index: auto !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  align-items: center;
  justify-content: flex-start;
}

.cleo-admin-pills__a {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text, #e2e8f0);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cleo-admin-pills__a:hover {
  color: var(--accent-cyan, #33d2ff);
  border-color: color-mix(in srgb, var(--accent-cyan, #33d2ff) 50%, transparent);
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 8%, transparent);
}

.cleo-admin-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cleo-admin-grid--charts {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.85fr);
}

.cleo-admin-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cleo-admin-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .cleo-admin-grid--charts,
  .cleo-admin-grid--2,
  .cleo-admin-grid--3 {
    grid-template-columns: 1fr;
  }
}

.cleo-admin-panel {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}

.cleo-admin-panel--table {
  margin-top: 0.25rem;
}

.cleo-admin-panel__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading, #fafafa);
}

.cleo-admin-panel__subtitle {
  margin: 1.15rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading, #fafafa);
}

.cleo-admin-panel__hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-dim, #94a3b8);
}

.cleo-admin-panel__intro .cleo-admin-panel__hint {
  margin-top: 0.2rem;
}

.cleo-admin-panel__empty {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  color: var(--text-dim, #94a3b8);
  font-size: 0.82rem;
}

.cleo-admin-panel__head {
  /* Não herdar o `header { position:fixed }` do ai-design-system (se voltar a ser <header>). */
  position: static !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  height: auto !important;
  z-index: auto !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.cleo-admin-panel__head--chart {
  align-items: flex-end;
}

.cleo-admin-panel__intro {
  min-width: 0;
  flex: 1 1 12rem;
}

.cleo-admin-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
}

.cleo-admin-chart-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
}

/* Select de ano — herda DSF (select.ds-input); só compactamos o tamanho */
select.ds-input.cleo-admin-chart-select,
.cleo-admin-chart-select.ds-input {
  width: auto;
  max-width: none;
  min-width: 4.75rem;
  height: 1.85rem;
  padding: 0.15rem 1.55rem 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  background-position: right 0.4rem center;
  background-size: 12px;
}

/* Fallback se ds-input não estiver presente */
.cleo-admin-chart-select:not(.ds-input) {
  appearance: none;
  color-scheme: dark;
  min-width: 4.75rem;
  height: 1.85rem;
  padding: 0.15rem 1.75rem 0.15rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: var(--surface-solid, #111116);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2333D2FF' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  background-size: 12px;
  color: var(--accent-cyan, #33d2ff);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.cleo-admin-chart-select:not(.ds-input) option {
  background-color: var(--surface-solid, #111116);
  color: var(--accent-cyan, #33d2ff);
}

.cleo-admin-chart-select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent-cyan, #33d2ff) 55%, transparent);
}

.cleo-admin-chart-modes {
  display: inline-flex;
  align-items: stretch;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  gap: 2px;
}

.cleo-admin-chip {
  appearance: none;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--text-dim, #94a3b8);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.32rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cleo-admin-chip:hover {
  color: var(--heading, #fafafa);
}

.cleo-admin-chip.is-active {
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 22%, transparent);
  color: var(--heading, #fafafa);
}

.cleo-admin-chart-wrap {
  position: relative;
  width: 100%;
  height: min(340px, 52vw);
  min-height: 220px;
}

.cleo-admin-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.cleo-admin-hbar {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cleo-admin-hbar__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text, #fafafa);
}

.cleo-admin-hbar__track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cleo-admin-hbar__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent-cyan, #33d2ff);
}

.cleo-admin-list,
.cleo-admin-users {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cleo-admin-list__item,
.cleo-admin-users__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cleo-admin-list__name,
.cleo-admin-users__name {
  display: block;
  font-size: 0.84rem;
  color: var(--heading, #fafafa);
}

.cleo-admin-list__sub,
.cleo-admin-users__email {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim, #94a3b8);
}

.cleo-admin-list__metric,
.cleo-admin-users__count {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--accent-cyan, #33d2ff);
}

.cleo-admin-users__avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 18%, transparent);
  color: var(--heading, #fafafa);
}

.cleo-admin-users__avatar--alt {
  background: color-mix(in srgb, #8b7cf8 22%, transparent);
}

.cleo-admin-users__body {
  flex: 1 1 auto;
  min-width: 0;
}

html[data-theme="light"] .cleo-admin-metric,
html[data-theme="light"] .cleo-admin-panel,
html[data-theme="light"] .cleo-admin-nav,
html[data-theme="light"] .cleo-admin-pills__a {
  border-color: rgba(10, 10, 14, 0.1);
  background: rgba(15, 23, 42, 0.02);
}

html[data-theme="light"] .cleo-admin-chart-modes {
  border-color: rgba(10, 10, 14, 0.1);
  background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .cleo-admin-panel__title,
html[data-theme="light"] .cleo-admin-list__name,
html[data-theme="light"] .cleo-admin-users__name,
html[data-theme="light"] .cleo-admin-hbar__row,
html[data-theme="light"] .cleo-admin-metric__value,
html[data-theme="light"] .cleo-admin-chip.is-active {
  color: var(--heading, #0a0a0e);
}

html[data-theme="light"] select.ds-input.cleo-admin-chart-select,
html[data-theme="light"] .cleo-admin-chart-select.ds-input {
  background-position: right 0.4rem center;
  background-size: 12px;
}

html[data-theme="light"] .cleo-admin-chart-select:not(.ds-input) {
  color-scheme: light;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 12px;
  border-color: rgba(10, 10, 14, 0.12);
  color: #0b1220;
}

html[data-theme="light"] .cleo-admin-chart-select:not(.ds-input) option {
  background-color: #ffffff;
  color: #0b1220;
}

.cleo-account-card__head {
  /* Não herdar o `header { position:fixed }` do ai-design-system. */
  position: static !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  height: auto !important;
  z-index: auto !important;
  display: block !important;
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.cleo-account-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading, #fafafa);
}

.cleo-account-card__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dim, #94a3b8);
}

.cleo-account-form__section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Evita dois separadores seguidos (borda da secção + borda das ações). */
.cleo-account-form__section:has(+ .cleo-account-form__actions) {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.cleo-account-form__section-title {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan, #33d2ff);
}

.cleo-account-avatar-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.cleo-account-avatar-row__fields {
  flex: 1;
  min-width: 0;
}

.cleo-account-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.cleo-account-form .cleo-field {
  margin: 0 0 1rem;
}

.cleo-account-form .cleo-field:last-child {
  margin-bottom: 0;
}

.cleo-account-form .cleo-field label,
.cleo-account-form .cleo-field .ds-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.cleo-account-form .cleo-field--check {
  margin-top: 0.35rem;
}

.cleo-account-form .cleo-field--check label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 400;
  color: var(--text-dim, #94a3b8);
}

.cleo-account-form .ds-input {
  width: 100%;
  max-width: none;
}

.cleo-account-form__actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: center;
}

html[data-theme="light"] .cleo-account-hero {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(26, 72, 159, 0.1) 0%, transparent 58%),
    var(--bg-alt, #e8eef7);
  border-bottom-color: rgba(10, 10, 14, 0.08);
}

html[data-theme="light"] .cleo-page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(26, 72, 159, 0.1) 0%, transparent 58%),
    var(--bg-alt, #e8eef7);
  border-bottom-color: rgba(10, 10, 14, 0.08);
}

html[data-theme="light"] .cleo-account-hero__name,
html[data-theme="light"] .cleo-account-card__title {
  color: var(--heading, #0a0a0e);
}

html[data-theme="light"] .cleo-page-card__title {
  color: var(--heading, #0a0a0e);
}

html[data-theme="light"] .cleo-inbox__item {
  border-color: rgba(10, 10, 14, 0.1);
  background: rgba(10, 10, 14, 0.02);
}

html[data-theme="light"] .cleo-inbox__item:hover,
html[data-theme="light"] .cleo-inbox__item--unread {
  border-color: rgba(11, 140, 184, 0.32);
  background: color-mix(in srgb, var(--accent-cyan, #0b8cb8) 8%, #fff);
}

html[data-theme="light"] .cleo-inbox__title {
  color: var(--heading, #0a0a0e);
}

html[data-theme="light"] .cleo-inbox__msg,
html[data-theme="light"] .cleo-inbox__time {
  color: var(--text-dim, #5b6472);
}

html[data-theme="light"] .cleo-page-hero__icon {
  background: color-mix(in srgb, #fff 70%, #dbeafe);
  border-color: rgba(11, 140, 184, 0.35);
  color: var(--accent-cyan, #0b8cb8);
}

html[data-theme="light"] .cleo-account-card.neural-panel {
  background: #fff !important;
  border-color: rgba(11, 140, 184, 0.22) !important;
  box-shadow:
    0 24px 56px rgba(26, 72, 159, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .cleo-page-card.neural-panel {
  background: #fff !important;
  border-color: rgba(11, 140, 184, 0.22) !important;
  box-shadow:
    0 24px 56px rgba(26, 72, 159, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .cleo-account-card__head,
html[data-theme="light"] .cleo-account-form__section,
html[data-theme="light"] .cleo-account-form__actions,
html[data-theme="light"] .cleo-page-card__head {
  border-bottom-color: rgba(10, 10, 14, 0.08);
  border-top-color: rgba(10, 10, 14, 0.08);
  border-color: rgba(10, 10, 14, 0.08);
}

@media (max-width: 640px) {
  .cleo-account-hero,
  .cleo-page-hero {
    padding: calc(var(--cleo-header-h, 78px) + 1.25rem) 1rem 3.75rem;
  }

  .cleo-account-card.neural-panel,
  .cleo-page-card.neural-panel {
    padding: 1.35rem 1.15rem 1.25rem !important;
    border-radius: 18px !important;
  }

  .cleo-account-form__grid {
    grid-template-columns: 1fr;
  }

  .cleo-account-avatar-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cleo-account-form__actions {
    flex-direction: column;
  }

  .cleo-account-form__actions .btn {
    width: 100%;
  }
}

.cleo-setor-card__cover {
  display: block;
  width: 100%;
  max-height: 10rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cleo-setor-card__icon {
  display: block;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 0.35rem;
}

.cleo-setor-hero__cover {
  display: block;
  width: 100%;
  max-width: 42rem;
  max-height: 14rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.cleo-header-link:hover {
  color: var(--text, #fafafa);
}

html[data-theme="light"] .cleo-header-link:hover {
  color: var(--text, #0a0a0e);
}

.ds-header-actions {
  display: flex;
  align-items: center;
}

.cleo-field-error,
.cleo-form-errors {
  color: var(--danger, #f87171);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

@media (max-width: 720px) {
  .cleo-header-nav {
    gap: 0.5rem 0.75rem;
    margin-right: 0.5rem;
  }

  .cleo-header-link {
    font-size: 0.8rem;
  }
}

.cleo-embed-shell {
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
  background: var(--bg-elevated, transparent);
  /* Piso por omissão; o admin sobrescreve via style inline (min-height / height). */
  min-height: 500px;
}

.cleo-embed-shell .report-power-bi,
.cleo-embed-shell iframe,
.cleo-embed-shell .mode-embed {
  display: block;
  width: 100%;
  /* Preenche o shell; a altura efectiva vem do style inline do admin. */
  height: 100%;
  min-height: inherit;
  border: 0;
}

.cleo-report-html {
  margin: 1.25rem 0;
  color: var(--text-dim, #94a3b8);
  font-size: 0.98rem;
  line-height: 1.6;
}

.cleo-report-html a {
  color: var(--accent-cyan, #33d2ff);
}

.cleo-report-html img {
  max-width: 100%;
  height: auto;
}

.report-embed--narrow {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* Sininho de notificações (header) */
.cleo-notify {
  position: relative;
  margin-right: 0.35rem;
}

.cleo-notify__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.12));
  border-radius: 0.6rem;
  background: transparent;
  color: var(--text, #fafafa);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cleo-notify__btn:hover {
  border-color: color-mix(in srgb, var(--accent-cyan, #33d2ff) 45%, transparent);
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 10%, transparent);
}

.cleo-notify__btn--unread {
  border-color: color-mix(in srgb, var(--accent-cyan, #33d2ff) 55%, transparent);
}

.cleo-notify__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--accent-cyan, #33d2ff);
  color: #041018;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg-base, #030304);
}

.cleo-notify__panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 1250;
  width: min(24rem, calc(100vw - 1.5rem));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 28%),
    var(--bg-elevated, #0c0d12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

html[data-theme="light"] .cleo-notify__panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-color: rgba(10, 10, 14, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.cleo-notify__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .cleo-notify__head {
  border-bottom-color: rgba(10, 10, 14, 0.08);
}

.cleo-notify__title-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.cleo-notify__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--heading, #fafafa);
}

.cleo-notify__count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan, #33d2ff);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cleo-notify__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.cleo-notify__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim, #94a3b8);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cleo-notify__chip:hover {
  color: var(--heading, #fafafa);
  border-color: color-mix(in srgb, var(--accent-cyan, #33d2ff) 40%, transparent);
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 10%, transparent);
}

html[data-theme="light"] .cleo-notify__chip {
  border-color: rgba(10, 10, 14, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: #5b6472;
}

.cleo-notify__body {
  max-height: min(22rem, 55vh);
  overflow: auto;
}

.cleo-notify__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cleo-notify__item {
  border-radius: 0.75rem;
}

.cleo-notify__item--unread .cleo-notify__link {
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 8%, transparent);
}

.cleo-notify__item--unread .cleo-notify__item-title::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--accent-cyan, #33d2ff);
  vertical-align: middle;
}

.cleo-notify__link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.8rem 0.75rem;
  text-decoration: none;
  color: inherit;
  border-radius: 0.75rem;
  transition: background 0.15s ease;
}

.cleo-notify__link:hover {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .cleo-notify__link:hover {
  background: rgba(15, 23, 42, 0.04);
}

.cleo-notify__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  color: var(--accent-cyan, #33d2ff);
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-cyan, #33d2ff) 22%, transparent);
}

.cleo-notify__copy {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.cleo-notify__item-title {
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--heading, #fafafa);
}

.cleo-notify__item-msg {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-dim, #94a3b8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cleo-notify__item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.cleo-notify__item-time {
  font-size: 0.7rem;
  color: var(--text-dim, #a7b0c0);
}

.cleo-notify__item-cta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan, #33d2ff);
  letter-spacing: 0.02em;
}

.cleo-notify__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-dim, #a7b0c0);
}

.cleo-notify__empty p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Menu da conta (header) */
.cleo-user-menu {
  position: relative;
}

.cleo-user-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  background: transparent;
  color: var(--text, #fafafa);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cleo-user-menu__trigger:hover,
.cleo-user-menu__trigger[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--accent-cyan, #33d2ff) 45%, transparent);
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 10%, transparent);
}

.cleo-user-menu__trigger .cleo-header-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cleo-user-menu__dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 1250;
  min-width: 13.5rem;
  padding: 0.4rem 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: var(--bg-elevated, #0c0d12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

html[data-theme="light"] .cleo-user-menu__dropdown {
  background: #fff;
  border-color: rgba(10, 10, 14, 0.1);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.cleo-user-menu__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.95rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .cleo-user-menu__meta {
  border-bottom-color: rgba(10, 10, 14, 0.08);
}

.cleo-user-menu__meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan, #33d2ff);
}

.cleo-user-menu__meta-email {
  font-size: 0.78rem;
  color: var(--text-dim, #94a3b8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cleo-user-menu__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--heading, #fafafa);
  text-decoration: none;
  transition: background 0.15s ease;
}

.cleo-user-menu__item:hover,
.cleo-user-menu__item:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

html[data-theme="light"] .cleo-user-menu__item {
  color: #0a0a0e;
}

html[data-theme="light"] .cleo-user-menu__item:hover,
html[data-theme="light"] .cleo-user-menu__item:focus-visible {
  background: rgba(15, 23, 42, 0.05);
}

.cleo-user-menu__item--danger {
  color: #f87171;
}

.cleo-user-menu__item--danger:hover,
.cleo-user-menu__item--danger:focus-visible {
  background: rgba(248, 113, 113, 0.1);
}

.cleo-user-menu__sep {
  border: 0;
  margin: 0.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .cleo-user-menu__sep {
  border-top-color: rgba(10, 10, 14, 0.08);
}

/* Loader do portal: só cobre o conteúdo (mantém header + sidebar). */
body.cleo-has-sidebar #ds-route-veil.ds-route-veil--portal {
  /* Colado à base do header (sem vão). */
  inset: var(--cleo-header-h, 78px) 0 0 var(--cleo-sidebar-w, 240px) !important;
  width: auto !important;
  height: auto !important;
  z-index: 900 !important;
  display: grid !important;
  place-items: center !important;
  transform: none;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

body.cleo-has-sidebar.cleo-sidebar-collapsed #ds-route-veil.ds-route-veil--portal {
  inset: var(--cleo-header-h, 78px) 0 0 var(--cleo-sidebar-w, 72px) !important;
}

body.cleo-has-sidebar #ds-route-veil.ds-route-veil--portal.is-exit {
  /* Mantém a área do portal; só anima opacidade (sem scale que desloca o centro). */
  transform: none;
}

body.cleo-has-sidebar #ds-route-veil.ds-route-veil--portal .ds-route-veil__stage {
  /* Centro geométrico da área main (à direita do sidebar, abaixo do header). */
  margin: 0 auto;
  justify-self: center;
  align-self: center;
}

@media (max-width: 900px) {
  body.cleo-has-sidebar #ds-route-veil.ds-route-veil--portal {
    inset: var(--cleo-header-h, 78px) 0 0 0 !important;
    border-left: 0;
  }
}

html.is-route-boot:has(body.cleo-has-sidebar) {
  background: transparent;
}

html.is-route-boot:has(body.cleo-has-sidebar) body {
  overflow: auto;
}

html.cleo-skip-route-veil #ds-route-veil,
html.cleo-skip-route-veil body.cleo-has-sidebar #ds-route-veil,
html.cleo-skip-route-veil body.cleo-has-sidebar #ds-route-veil.ds-route-veil--portal {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Carrossel de novidades (home /portal/) — alinhado ao legado */
.cleo-novidades-wrap {
  position: relative;
  width: 100%;
  margin: 0;
}

.cleo-novidades-wrap--hero {
  margin-top: -1.5rem;
}

.cleo-novidades {
  --cleo-novidades-auto-ms: 7000ms;
  position: relative;
  margin-top: 1.5rem;
}

.cleo-novidades--hero {
  margin: 0;
  overflow: hidden;
  background: #0b1320;
  border-radius: 0;
}

.cleo-portal-home__inner {
  width: 100%;
  position: relative;
  z-index: 1;
}

.cleo-portal-home__body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  /* Quase full-width, com folga lateral sob o hero full-bleed (sem .container ~1180px). */
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  padding: 1.75rem clamp(1.25rem, 2.8vw, 2.75rem) 2.75rem;
  position: relative;
  z-index: 6;
}

.cleo-portal-home__inner:has(.cleo-novidades--hero) .cleo-portal-home__body {
  margin-top: -2.75rem;
  padding-top: 0;
}

@media (max-width: 900px) {
  .cleo-portal-home__inner:has(.cleo-novidades--hero) .cleo-portal-home__body {
    margin-top: -1.5rem;
  }
}

/* Painéis da home: padrão das secções landing sem cometas (ds-section--alt). */
.cleo-home-panel.neural-panel {
  margin: 0;
  padding: 1.35rem 1.45rem 1.6rem !important;
  border-radius: 14px;
  border: 1px solid var(--border-dim, rgba(255, 255, 255, 0.06)) !important;
  background: var(--bg-alt, #08080a) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
  gap: 0 !important;
  min-height: 360px;
  height: auto;
  display: flex !important;
  flex-direction: column !important;
}

@media (max-width: 900px) {
  .cleo-home-panel.neural-panel {
    min-height: 260px;
  }
}

.cleo-home-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cleo-home-panel__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading, #fafafa);
}

.cleo-home-panel__nav {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cleo-home-panel__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text, #fafafa);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.cleo-home-panel__nav-btn:hover {
  background: color-mix(in srgb, var(--accent-cyan, #33d2ff) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent-cyan, #33d2ff) 45%, transparent);
  color: var(--accent-cyan, #33d2ff);
}

.cleo-home-panel__hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-dim, #94a3b8);
}

.cleo-home-panel__empty {
  margin: auto;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 36rem;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-dim, #94a3b8);
}

.cleo-home-panel > .cleo-home-panel__scroller,
.cleo-home-panel > .cleo-dq-home,
.cleo-home-panel > .cleo-home-panel__grid--bases {
  flex: 1 1 auto;
  min-height: 0;
}

.cleo-home-panel__scroller:has(.cleo-home-panel__empty) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cleo-home-panel__grid:has(> .cleo-home-panel__empty) {
  width: 100%;
  min-width: 100%;
  min-height: 12rem;
  align-items: center;
  justify-content: center;
}

/* Faixa horizontal fixa (Clientes / Setor): cards portrait, sem crescer com a imagem. */
.cleo-home-panel__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  margin: 0 -0.25rem;
  padding: 0.25rem 0.25rem 0.35rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cleo-home-panel__scroller::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cleo-home-panel__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  width: max-content;
  min-width: 100%;
}

.cleo-home-panel__grid > .cleo-home-panel__empty {
  flex: 1 1 100%;
  width: min(36rem, 100%);
}

.cleo-home-panel__grid > .cleo-home-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.cleo-home-card.neural-panel {
  --cleo-home-card-w: 10.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.35rem;
  width: var(--cleo-home-card-w);
  aspect-ratio: 9 / 16;
  min-height: 0;
  max-height: 18.75rem;
  padding: 0.85rem 0.75rem 0.9rem !important;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: color-mix(in srgb, var(--bg-elevated, #12141c) 88%, #0a1622) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28) !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

.cleo-home-card.neural-panel:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-cyan, #33d2ff) 40%, transparent) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}

.cleo-home-card__cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.cleo-home-card::before {
  content: none;
}

.cleo-home-card:has(.cleo-home-card__cover)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 18, 0.2) 0%,
    rgba(6, 10, 18, 0.55) 45%,
    rgba(6, 10, 18, 0.92) 100%
  );
}

.cleo-home-card__icon {
  position: relative;
  z-index: 2;
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0.35rem auto auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.cleo-home-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  min-width: 0;
  text-align: center;
}

.cleo-home-card__eyebrow {
  margin: 0;
  width: 100%;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--accent-cyan, #33d2ff);
}

.cleo-home-card__title {
  margin: 0;
  width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  color: var(--heading, #fafafa);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cleo-home-card__desc {
  margin: 0;
  width: 100%;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
  color: var(--text-secondary, #a1a1aa);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cleo-home-card__actions {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
}

.cleo-home-card__actions .btn {
  width: 100%;
  justify-content: center;
  padding: 0.4rem 0.55rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

.cleo-home-panel__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan, #33d2ff);
  text-decoration: none;
  white-space: nowrap;
}

.cleo-home-panel__cta:hover {
  text-decoration: underline;
}

.cleo-dq-home {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cleo-dq-home__group-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--heading, #fafafa);
}

.cleo-dq-home__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cleo-dq-home__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.cleo-dq-home__name {
  color: var(--text, #fafafa);
  text-decoration: none;
  font-weight: 500;
}

.cleo-dq-home__name:hover {
  color: var(--accent-cyan, #33d2ff);
}

.cleo-dq-home__meta {
  font-size: 0.78rem;
  color: var(--text-dim, #94a3b8);
}

.cleo-home-panel__grid--bases {
  /* Até 8 por linha × 2 linhas (16) na home; excedente → «Ver bases». */
  --cleo-bases-gap: 0.75rem;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: var(--cleo-bases-gap);
  align-content: flex-start;
  width: 100%;
  min-width: 0;
}

@media (max-width: 1200px) {
  .cleo-home-panel__grid--bases {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cleo-home-panel__grid--bases {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cleo-home-panel__grid--bases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cleo-home-panel__grid--bases > .cleo-bases-card {
  min-width: 0;
  width: 100%;
}

.cleo-bases-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  min-height: 9.75rem;
  padding: 0 !important;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28) !important;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cleo-bases-card:hover {
  transform: translateY(-2px);
}

.cleo-bases-card__top {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem 0.75rem;
  background: transparent;
}

.cleo-bases-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan, #33d2ff);
  line-height: 0;
}

.cleo-bases-card__icon iconify-icon {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2.75rem;
}

/* Listra azul da paleta DSF — só a faixa inferior; nome centrado. */
.cleo-bases-card__title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 2.75rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.4rem;
  box-sizing: border-box;
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--accent-cyan, #33d2ff) 0%,
    var(--accent-blue, #4a8cff) 55%,
    color-mix(in srgb, var(--accent-blue, #4a8cff) 70%, #1a489f) 100%
  );
}

html[data-theme="light"] .cleo-bases-card {
  border-color: rgba(10, 10, 14, 0.1) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .cleo-bases-card__top {
  background: transparent;
}

html[data-theme="light"] .cleo-bases-card__icon {
  color: var(--accent-cyan, #0b8cb8);
}

html[data-theme="light"] .cleo-bases-card__title {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--accent-cyan, #0b8cb8) 0%,
    var(--accent-blue, #1a489f) 58%,
    color-mix(in srgb, var(--accent-blue, #1a489f) 75%, #0a2f6e) 100%
  );
}

html[data-theme="light"] .cleo-dq-home__item {
  border-color: rgba(10, 10, 14, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .cleo-dq-home__group-title,
html[data-theme="light"] .cleo-dq-home__name {
  color: var(--heading, #0a0a0e);
}

html[data-theme="light"] .cleo-home-panel.neural-panel {
  border-color: rgba(10, 10, 14, 0.08) !important;
  background: var(--bg-alt, #e8eef7) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .cleo-home-panel__title,
html[data-theme="light"] .cleo-home-card__title {
  color: var(--heading, #0a0a0e);
}

html[data-theme="light"] .cleo-home-panel__nav-btn {
  border-color: rgba(10, 10, 14, 0.12);
  background: #fff;
  color: var(--heading, #0a0a0e);
}

html[data-theme="light"] .cleo-home-panel__nav-btn:hover {
  background: color-mix(in srgb, var(--accent-cyan, #0ea5e9) 14%, #fff);
  border-color: color-mix(in srgb, var(--accent-cyan, #0ea5e9) 40%, transparent);
  color: var(--accent-cyan, #0284c7);
}

html[data-theme="light"] .cleo-home-card.neural-panel {
  border-color: rgba(10, 10, 14, 0.1) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08) !important;
}

/* Cartões com capa: manter chrome/overlay do dark (a cover fica ilegível com véu claro). */
html[data-theme="light"] .cleo-home-card.neural-panel:has(.cleo-home-card__cover) {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: color-mix(in srgb, var(--bg-elevated, #12141c) 88%, #0a1622) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28) !important;
  color: inherit !important;
}

html[data-theme="light"] .cleo-home-card__cover {
  opacity: 1;
  filter: none;
}

html[data-theme="light"] .cleo-home-card:has(.cleo-home-card__cover)::before {
  background: linear-gradient(
    180deg,
    rgba(6, 10, 18, 0.2) 0%,
    rgba(6, 10, 18, 0.55) 45%,
    rgba(6, 10, 18, 0.92) 100%
  );
}

html[data-theme="light"] .cleo-home-card:has(.cleo-home-card__cover) .cleo-home-card__title {
  color: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .cleo-sidebar__footer {
  border-top: none;
}

.cleo-novidades__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));
  background: #0b1320;
  container-type: inline-size;
  container-name: cleo-novidades;
}

.cleo-novidades--hero .cleo-novidades__viewport {
  border: 0;
  border-radius: 0;
  aspect-ratio: 21 / 8;
  min-height: 190px;
  max-height: 360px;
}

.cleo-novidades__track {
  display: flex;
  height: 100%;
  width: max-content;
  min-width: 100%;
  transition: transform 0.45s ease-out;
  will-change: transform;
}

.cleo-novidades__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  min-height: 14rem;
  margin: 0;
  align-self: stretch;
  box-sizing: border-box;
  overflow: hidden;
}

.cleo-novidades--hero .cleo-novidades__slide {
  flex: 0 0 100cqi;
  width: 100cqi;
  min-width: 100cqi;
  max-width: 100cqi;
  height: 100%;
  min-height: 100%;
}

@supports not (width: 1cqi) {
  .cleo-novidades--hero .cleo-novidades__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
}

.cleo-novidades__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.cleo-novidades:not(.cleo-novidades--hero) .cleo-novidades__media {
  position: static;
  min-height: 14rem;
  max-height: 22rem;
}

.cleo-novidades__slide--plain {
  background: linear-gradient(145deg, #0b1320 0%, #122036 100%);
}

.cleo-novidades__slide--plain .cleo-novidades__media {
  display: none;
}

.cleo-novidades__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    110deg,
    rgba(2, 8, 18, 0.84) 0%,
    rgba(4, 12, 24, 0.72) 46%,
    rgba(2, 8, 18, 0.84) 100%
  );
  pointer-events: none;
}

.cleo-novidades__content {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: min(560px, 90%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.cleo-novidades__content--left {
  left: calc(clamp(20px, 4.5vw, 56px) + 100px);
  right: auto;
  text-align: left;
  align-items: flex-start;
}

.cleo-novidades__content--center {
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  text-align: center;
  align-items: center;
}

.cleo-novidades__content--right {
  left: auto;
  right: calc(clamp(20px, 4.5vw, 56px) + 100px);
  text-align: right;
  align-items: flex-end;
}

.cleo-novidades__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.98);
}

/* DSF força h3 escuro em light; no carrossel o título fica sobre a media (igual ao resumo). */
html[data-theme="light"] .cleo-novidades__title {
  color: rgba(255, 255, 255, 0.98);
}

.cleo-novidades__resumo {
  margin: 0;
  font-size: clamp(0.86rem, 1.3vw, 1rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0.95;
}

.cleo-novidades__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  min-height: 38px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0f7f4c 0%, #13a25f 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cleo-novidades__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.cleo-novidades__cta--azul {
  background: #1b4ca7;
  color: #fff;
}

.cleo-novidades__cta--vermelho {
  background: #ff0034;
  color: #fff;
}

.cleo-novidades__cta--verde {
  background: linear-gradient(135deg, #0f7f4c 0%, #13a25f 100%);
  color: #fff;
}

.cleo-novidades__arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(9, 18, 28, 0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cleo-novidades__arrow:hover {
  background: rgba(26, 72, 159, 0.72);
}

.cleo-novidades__arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.cleo-novidades__arrow--prev {
  left: 12px;
}

.cleo-novidades__arrow--next {
  right: 12px;
}

.cleo-novidades__tabs {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0.85rem 0 0;
  padding: 0;
}

.cleo-novidades--hero .cleo-novidades__tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(36px, 5.8vw, 64px);
  z-index: 5;
  margin: 0;
  padding: 0 48px 8px;
  pointer-events: none;
}

.cleo-novidades--hero .cleo-novidades__tab {
  pointer-events: auto;
}

.cleo-novidades__tab {
  appearance: none;
  flex: 0 0 auto;
  min-width: 56px;
  height: auto;
  max-width: none;
  padding: 10px 6px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s ease;
  overflow: visible;
}

.cleo-novidades__tab:hover,
.cleo-novidades__tab:focus-visible,
.cleo-novidades__tab.is-active {
  opacity: 1;
}

.cleo-novidades__tab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 4px;
}

.cleo-novidades__tab-underline {
  display: block;
  position: relative;
  height: 4px;
  width: 100%;
  min-width: 48px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.cleo-novidades__tab-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.95);
}

.cleo-novidades__tab.is-active .cleo-novidades__tab-fill {
  animation: cleo-novidades-progress var(--cleo-novidades-auto-ms, 7000ms) linear forwards;
}

@keyframes cleo-novidades-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  .cleo-novidades--hero .cleo-novidades__viewport {
    aspect-ratio: 16 / 9;
    max-height: 260px;
  }

  .cleo-novidades--hero .cleo-novidades__tabs {
    bottom: clamp(26px, 8.5vw, 48px);
    padding-left: 40px;
    padding-right: 40px;
    gap: 14px;
  }

  .cleo-novidades__content--left {
    left: clamp(16px, 4vw, 28px);
  }

  .cleo-novidades__content--right {
    right: clamp(16px, 4vw, 28px);
  }
}

@media (max-width: 720px) {
  .cleo-novidades:not(.cleo-novidades--hero) .cleo-novidades__slide,
  .cleo-novidades:not(.cleo-novidades--hero) .cleo-novidades__media {
    min-height: 12rem;
  }

  .cleo-novidades:not(.cleo-novidades--hero) .cleo-novidades__media {
    max-height: 16rem;
  }

  .cleo-novidades__arrow {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cleo-novidades__track {
    transition: none;
  }

  .cleo-novidades__tab.is-active .cleo-novidades__tab-fill {
    animation: none;
    transform: scaleX(1);
  }
}

/* —— Light mode: reforços do chrome autenticado —— */
html[data-theme="light"] .cleo-sidebar {
  border-right-color: rgba(10, 10, 14, 0.1);
}

html[data-theme="light"] .cleo-sidebar-open,
html[data-theme="light"] .cleo-sidebar__toggle,
html[data-theme="light"] .cleo-notify__btn,
html[data-theme="light"] .cleo-user-menu__trigger {
  border-color: rgba(10, 10, 14, 0.14);
  color: var(--text-dim, #5b6472);
}

html[data-theme="light"] .cleo-notify__panel {
  border-color: rgba(10, 10, 14, 0.1);
}

html[data-theme="light"] .cleo-notify__head {
  border-bottom-color: rgba(10, 10, 14, 0.08);
}

html[data-theme="light"] .neural-panel {
  border-color: rgba(10, 10, 14, 0.1);
}
