/* Watermelon UI palette adapted to the existing Celera HTML components. */
:root[data-theme='dark'],
:root[data-theme='dark'] :is(#inicio,#catalogo,#publico,#funciona,#prova,#organograma,#entregas,#custo,#fundador,#aplicacoes,#provas-sociais,#diagnostico,#perguntas,.rodape,.masthead,.card,.calc,.guia) {
  --paper: #101010;
  --paper-alt: #171717;
  --paper-hero: #101010;
  --ink: #fafafa;
  --body: #c6c6c6;
  --muted: #ababab;
  --faint: #929292;
  --card: #1b1b1b;
  --dark-panel: #171717;
  --accent: oklch(76.8% 0.233 130.85);
  --accent-deep: #72b800;
  --accent-ink: oklch(76.8% 0.233 130.85);
  --accent-contrast: #101010;
  --accent-10: rgb(133 207 0 / 10%);
  --accent-14: rgb(133 207 0 / 14%);
  --accent-22: rgb(133 207 0 / 22%);
  --accent-wash: #202914;
  --hairline: #353535;
  --hairline-soft: #262626;
  --banda: #101010;
  --banda-ink: #fafafa;
  --banda-body: #c6c6c6;
  --banda-muted: #ababab;
  --banda-faint: #929292;
  --banda-tone: oklch(76.8% 0.233 130.85);
  --banda-tone-deep: #72b800;
  --banda-hair: #353535;
  --banda-hair-soft: #262626;
  --banda-nested: #1b1b1b;
  --card-ink: #fafafa;
  --card-body: #c6c6c6;
  --card-muted: #ababab;
  --card-faint: #929292;
  --card-tone: oklch(76.8% 0.233 130.85);
  --card-tone-deep: #72b800;
  --card-nested: #202020;
  --card-panel: #171717;
  --glass-surface: #1b1b1b;
  --glass-border: #353535;
  --glass-edge: none;
  --glass-blur: none;
  --glass-shadow: none;
  --shadow-card: none;
  --shadow-lift: none;
  --shadow-accent: none;
  --header: #101010;
  --bg: #101010;
  --sidebar: #151515;
  --panel: #1b1b1b;
  --panel-hover: #242424;
  --line: #353535;
  --field: #171717;
  --green: oklch(76.8% 0.233 130.85);
  --neon: oklch(76.8% 0.233 130.85);
  --neon-deep: #72b800;
  --gold: #ec7668;
  --state-live: oklch(76.8% 0.233 130.85);
  --state-warn: #ffbf70;
  --state-off: #929292;
  --accent-soft: rgb(133 207 0 / 10%);
}

:root[data-theme='light'],
:root[data-theme='light'] :is(#inicio,#catalogo,#publico,#funciona,#prova,#organograma,#entregas,#custo,#fundador,#aplicacoes,#provas-sociais,#diagnostico,#perguntas,.rodape,.masthead,.card,.calc,.guia) {
  --paper: #ffffff;
  --paper-alt: #f6f6f6;
  --paper-hero: #ffffff;
  --ink: #101010;
  --body: #444444;
  --muted: #585858;
  --faint: #666666;
  --card: #ffffff;
  --dark-panel: #f6f6f6;
  --accent: oklch(76.8% 0.233 130.85);
  --accent-deep: #72b800;
  --accent-ink: #3b7000;
  --accent-contrast: #101010;
  --accent-10: rgb(133 207 0 / 10%);
  --accent-14: rgb(133 207 0 / 14%);
  --accent-22: rgb(133 207 0 / 22%);
  --accent-wash: #edf8dc;
  --hairline: #d8d8d8;
  --hairline-soft: #eeeeee;
  --banda: #ffffff;
  --banda-ink: #101010;
  --banda-body: #444444;
  --banda-muted: #585858;
  --banda-faint: #666666;
  --banda-tone: oklch(76.8% 0.233 130.85);
  --banda-tone-deep: #72b800;
  --banda-hair: #d8d8d8;
  --banda-hair-soft: #eeeeee;
  --banda-nested: #ffffff;
  --card-ink: #101010;
  --card-body: #444444;
  --card-muted: #585858;
  --card-faint: #666666;
  --card-tone: oklch(76.8% 0.233 130.85);
  --card-tone-deep: #72b800;
  --card-nested: #f6f6f6;
  --card-panel: #f6f6f6;
  --glass-surface: #ffffff;
  --glass-border: #d8d8d8;
  --glass-edge: none;
  --glass-blur: none;
  --glass-shadow: none;
  --shadow-card: none;
  --shadow-lift: none;
  --shadow-accent: none;
  --header: #ffffff;
  --bg: #ffffff;
  --sidebar: #f6f6f6;
  --panel: #ffffff;
  --panel-hover: #f6f6f6;
  --line: #d8d8d8;
  --field: #ffffff;
  --green: #3b7000;
  --neon: #3b7000;
  --neon-deep: #2d5600;
  --gold: #bd4237;
  --state-live: #3b7000;
  --state-warn: #955a00;
  --state-off: #666666;
  --accent-soft: rgb(133 207 0 / 10%);
}

:root[data-theme] body { background: var(--paper); color: var(--body); }
:root[data-theme] :is(#inicio,#catalogo,#publico,#funciona,#prova,#organograma,#entregas,#custo,#fundador,#aplicacoes,#provas-sociais,#diagnostico,#perguntas,.rodape) {
  background: var(--paper);
  color: var(--body);
}
:root[data-theme] :is(.brand,.t-section,.t-card,.legal h1,.legal h2) { color: var(--ink) !important; }
:root[data-theme] .brand svg { stroke: var(--accent-ink); }
:root[data-theme] :is(.eyebrow,.accent,.legal-eyebrow,.provas-social-titulo em) { color: var(--accent-ink) !important; }
:root[data-theme] .t-section { font-family: var(--font-serif); font-size: clamp(31px, 4.4vw, 56px); font-weight: 400; line-height: 1.16; }
:root[data-theme] .eyebrow { font-family: ui-monospace,Consolas,monospace; font-size: 11px; text-transform: uppercase; }
:root[data-theme] .lede { color: var(--muted); }
:root[data-theme] :is(.section,.rodape) { border-top: 1px solid var(--hairline); }
:root[data-theme] :is(.section,.rodape)::before,
:root[data-theme] :is(.section,.rodape)::after { display: none; }

:root[data-theme] #hero-title {
  max-width: 100%;
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.7vw, 63px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink) !important;
  background: none !important;
  -webkit-text-fill-color: var(--ink) !important;
}
:root[data-theme] #hero-title .accent {
  color: var(--accent-ink) !important;
  background: none !important;
  -webkit-text-fill-color: var(--accent-ink) !important;
}
.hero-statement {
  max-width: 830px;
  margin: 22px auto 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}
.hero-statement span { color: var(--accent-ink); }
.hero-lede { max-width: 630px; }

:root[data-theme] #inicio .hero-room {
  --room-ceiling-near: var(--paper-alt);
  --room-ceiling-far: var(--paper);
  --room-wall-near: var(--paper-alt);
  --room-wall-far: var(--paper);
  --room-back-top: var(--paper-alt);
  --room-back-bottom: var(--paper);
  --room-floor-far: var(--paper-alt);
  --room-floor-near: var(--paper);
  --room-light: var(--accent-ink);
  --room-grid: var(--accent-ink);
  --room-light-opacity: .08;
  background: var(--paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:root[data-theme] #inicio :is(.hero-room-grid,.hero-room-edges) { stroke-opacity: .16; }
:root[data-theme] #catalogo .nucleo-orbe {
  --nucleo-halo: var(--accent-ink);
  --nucleo-fio: var(--accent-ink);
  --nucleo-p1: var(--accent-ink);
  --nucleo-p2: #a8d96b;
  --nucleo-p3: #75b800;
  --nucleo-p4: #ec7668;
  --nucleo-p5: #d3b369;
  --nucleo-p6: var(--muted);
  --nucleo-quente: #ec7668;
  --nucleo-claro: var(--ink);
}
:root[data-theme] #catalogo {
  --queda-cerebro: 10px;
  --queda-orbe: 10px;
  padding-block: 32px 48px;
}
:root[data-theme] #catalogo .nucleo { margin-top: 0; }
:root[data-theme] #catalogo .nucleo-legenda { color: var(--ink); }

:root[data-theme] #organograma .org-fios path,
:root[data-theme] #organograma .org-col::before {
  animation-duration: .55s;
}

:root[data-theme] .rodape-contacto-titulo,
:root[data-theme] .rodape-contacto-sub {
  font-size: 13px;
  line-height: 1.55;
}

:root[data-theme] #inicio .t-display {
  letter-spacing: 0 !important;
  line-height: 1.14 !important;
}

:root[data-theme] #provas-sociais .provas-social-titulo {
  font-size: clamp(31px, 4.4vw, 56px) !important;
  letter-spacing: 0 !important;
  line-height: 1.16 !important;
}

:root[data-theme] .masthead .masthead-pill {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:root[data-theme] .masthead[data-stuck='true'] .masthead-pill {
  background: var(--paper);
  border-color: var(--hairline);
  box-shadow: none;
}
:root[data-theme='dark'] .masthead[data-stuck='true'] .masthead-pill {
  background: rgb(16 16 16 / 72%);
  border-color: rgb(255 255 255 / 16%);
  box-shadow: 0 12px 32px rgb(0 0 0 / 34%);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
}
:root[data-theme='light'] .masthead[data-stuck='true'] .masthead-pill {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:root[data-theme] :is(.product-rail,.menu-drawer,.menu-product-rail) { background: var(--paper); border-color: var(--hairline); color: var(--ink); }
:root[data-theme] :is(.masthead-nav a,.masthead-product-trigger) { color: var(--muted); }
:root[data-theme] :is(.btn--accent,.btn--dark:not(.masthead-cta),.btn--contact,.calc-cta,.guia-avancar) {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #101010 !important;
  box-shadow: none !important;
}
:root[data-theme] :is(.btn--accent,.btn--dark:not(.masthead-cta),.btn--contact,.calc-cta,.guia-avancar):is(:hover,:focus-visible) {
  background: var(--accent-deep) !important;
  border-color: var(--accent-deep) !important;
  color: #101010 !important;
}
:root[data-theme] .masthead .masthead-cta { background: var(--accent); color: #101010 !important; border-color: var(--accent); }
:root[data-theme='light'] :is(
  .btn--accent,
  .btn--dark:not(.masthead-cta),
  .btn--contact,
  .calc-cta,
  .guia-avancar,
  .masthead-cta
) {
  color: #101010 !important;
}
:root[data-theme='light'] :is(
  .btn--accent,
  .btn--dark:not(.masthead-cta),
  .btn--contact,
  .calc-cta,
  .guia-avancar,
  .masthead-cta
) :is(span, svg, .ph-icon) {
  color: #101010 !important;
}
:root[data-theme='light'] #custo .calc a.calc-cta {
  color: #101010 !important;
}
:root[data-theme='light'] #custo .calc a.calc-cta :is(span, .ph-icon) {
  color: #101010 !important;
}
:root[data-theme] .masthead .icon-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
}
:root[data-theme] :is(.btn--quiet,.icon-btn,.menu-btn,.prova-arrow) { background: var(--paper); color: var(--ink); border: 1px solid var(--hairline); box-shadow: none; }
:root[data-theme] #provas-sociais :is(.prova-arrow,.prova-arrow--prev,.prova-arrow--next) {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-color: var(--hairline) !important;
}
:root[data-theme='light'] .masthead .icon-btn {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}
:root[data-theme='light'] .masthead .icon-btn :is(.ph-icon, .ico-moon, .ico-sun) {
  color: var(--accent-ink) !important;
}
:root[data-theme] .masthead .icon-btn {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
:root[data-theme] :is(.btn--quiet,.icon-btn,.menu-btn,.prova-arrow):is(:hover,:focus-visible) { color: var(--accent-ink); border-color: var(--accent-ink); }
:root[data-theme] .masthead .icon-btn:is(:hover, :focus-visible) {
  border-color: transparent !important;
  background: transparent !important;
}
:root[data-theme] :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

:root[data-theme] :is(.card,.roster-card,.roster-agente,.org-dep,.org-agente,.prova-social-card,.calc,.diag-form,#perguntas .faq-item) {
  background: var(--card) !important;
  border-color: var(--hairline) !important;
  box-shadow: none !important;
  border-radius: 0;
}
:root[data-theme='light'] :is(#desafios-cards .card,#metodo-cards .card,#prova .prod.card,#custo .calc) {
  --accent-ink: #3b7000;
  --accent-contrast: #101010;
  --glass-border: var(--hairline);
}
:root[data-theme] :is(.card,.org-dep,.org-agente,.prova-social-card,#perguntas .faq-item):hover { border-color: var(--accent-ink) !important; }
:root[data-theme] :is(.card h3,.roster-card-name,.org-dep-texto b,.org-agente-nome,#perguntas summary) { color: var(--ink); }
:root[data-theme] #perguntas .faq-item summary::after { background: var(--accent-ink) !important; }
:root[data-theme] :is(.tile,.mini-tile,.org-agente-icone,.roster-card-tile) { background: var(--accent-10); color: var(--accent-ink); }
:root[data-theme] :is(#publico,#funciona) .card-scene { --scene-blue: var(--accent-ink); --scene-text: var(--body); --scene-line: var(--hairline); --scene-wash: var(--accent-10); --scene-paper: var(--card); --scene-dim: var(--muted); background-color: var(--card); background-image: none; }
:root[data-theme] .prova-figura img { border: 1px solid var(--hairline); }
:root[data-theme] .stack-item { background: var(--card); border-color: var(--hairline); color: var(--body); }
:root[data-theme] #custo .calc-saida { background: var(--paper-alt) !important; border-color: var(--hairline) !important; }
:root[data-theme] #custo .calc-saida-num { color: var(--accent-ink) !important; }
:root[data-theme] :is(input,select,textarea) { background-color: var(--field); border-color: var(--hairline); color: var(--ink); }
:root[data-theme] :is(input,select,textarea):focus-visible { border-color: var(--accent-ink); }
:root[data-theme] .guia-painel { background: var(--card); border-color: var(--hairline); }
:root[data-theme] .guia-opcao[aria-checked='true'] { background: var(--accent-10); border-color: var(--accent-ink); }
:root[data-theme] :is(.prova-social-card blockquote,.prova-social-pessoa) { color: var(--ink); }
:root[data-theme] :is(.prova-social-empresa,.prova-social-marca) { color: var(--muted); }
:root[data-theme] .legal { background: var(--paper); }

/* A secção de exemplos usa a mesma paleta Watermelon do resto da landing. */
:root[data-theme] #provas-sociais {
  background: var(--paper);
  color: var(--body);
}
:root[data-theme] #provas-sociais .prova-social-card {
  background: var(--card);
  border-color: var(--hairline);
}
:root[data-theme] #provas-sociais .prova-social-foto {
  background: transparent !important;
}
:root[data-theme='dark'] #provas-sociais :is(.prova-social-card,.prova-social-foto) {
  border-color: rgb(255 255 255 / 16%) !important;
}
:root[data-theme='light'] #provas-sociais :is(.prova-social-card,.prova-social-foto) {
  border-color: #d8d8d8 !important;
}

/* O vidro pertence apenas ao tema escuro; o claro conserva superfícies sólidas. */
:root[data-theme='dark'] :is(
  .card,
  .roster-card,
  .roster-agente,
  #organograma .org-chefe-pill,
  #organograma .org-dep,
  #organograma .org-agente,
  #provas-sociais .prova-social-card,
  .calc,
  .diag-form,
  #perguntas .faq-item,
  .guia-painel,
  .stack-painel,
  .stack-item,
  .application-card
) {
  background-color: rgb(27 27 27 / 64%) !important;
  background-image: linear-gradient(135deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 1.5%)) !important;
  border-color: rgb(255 255 255 / 16%) !important;
  box-shadow: 0 12px 36px rgb(0 0 0 / 30%), inset 0 1px 0 rgb(255 255 255 / 9%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
}

:root[data-theme] #organograma .org-chefe-pill {
  background: var(--card);
  border-color: var(--hairline);
  box-shadow: none;
}
:root[data-theme='light'] #organograma .org-chefe-pill {
  border: 1px solid #a7a7a7;
}
:root[data-theme] #organograma .org-chefe-tile {
  background: var(--accent-10);
  border-color: var(--hairline);
  color: var(--accent-ink);
}
:root[data-theme] #organograma .org-chefe-texto b { color: var(--ink); }
:root[data-theme] #organograma .org-chefe-texto i { color: var(--muted); }
:root[data-theme] #organograma .org-chefe-texto .dot--pilot { background: var(--accent-ink); }

:root[data-theme] #aplicacoes .application-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
:root[data-theme] #aplicacoes .application-head .lede { margin: 20px auto 0; }
:root[data-theme] #aplicacoes .application-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
:root[data-theme] #aplicacoes .application-card {
  min-width: 0;
  min-height: 310px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--body);
}
:root[data-theme] #aplicacoes .application-card:hover { border-color: var(--accent-ink); }
:root[data-theme] #aplicacoes .application-index { margin: 0 0 40px; color: var(--accent-ink); font: 600 11px/1.4 ui-monospace,Consolas,monospace; }
:root[data-theme] #aplicacoes .application-card h3 { margin: 0 0 20px; color: var(--ink); font-size: 22px; line-height: 1.2; }
:root[data-theme] #aplicacoes .application-card ol { margin: 0; padding-left: 19px; font-size: 14px; line-height: 1.55; }
:root[data-theme] #aplicacoes .application-card li + li { margin-top: 9px; }
:root[data-theme] #aplicacoes .application-card li::marker { color: var(--accent-ink); }

/* The course catalogue uses its own layout but the same colour system. */
:root[data-theme] :is(.sidebar,.topbar,.skill-card,.catalogue-tools,.search-field,.select-field) { border-color: var(--line); }
:root[data-theme] .liquid-form { background: var(--accent); border-color: var(--accent-ink); }
:root[data-theme] .floating-card { background: var(--panel); border-color: var(--line); color: var(--ink); }
:root[data-theme] .hero-copy h1 span { background: none; color: var(--accent-ink); -webkit-text-fill-color: var(--accent-ink); }
:root[data-theme] #inicio.hero {
  padding-bottom: clamp(180px, 20vh, 210px);
}

/* Keep the hero marker and the organogram connectors in the Watermelon system. */
:root[data-theme] #inicio .hero-badge {
  background: transparent !important;
  border-color: var(--hairline) !important;
  box-shadow: none;
  border-radius: 0;
}
:root[data-theme] #inicio .hero-actions .btn--quiet {
  background: transparent !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 0;
  box-shadow: none !important;
}
:root[data-theme='light'] :is(#inicio .hero-badge, #inicio .hero-actions .btn--quiet) {
  border-color: #b8b8b8 !important;
}

:root[data-theme] #custo .chip-ferramenta--outros {
  gap: 7px;
  padding-right: 10px;
}

:root[data-theme] #custo .chip-ferramenta-logos {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

:root[data-theme] #custo .chip-ferramenta--outros .chip-ferramenta-logos svg {
  width: 14px;
  height: 14px;
  flex: none;
}
:root[data-theme] #inicio .hero-badge .dot--pilot { background: var(--accent-ink); }
:root[data-theme] #organograma .org-chefe-texto .dot--pilot {
  background: var(--accent-ink);
}
:root[data-theme] #organograma .org-chefe-texto .dot--pilot::after {
  border-color: var(--accent-ink);
}
:root[data-theme] #organograma .org-fios path { stroke: var(--accent-22) !important; }
:root[data-theme] #organograma .org-col::before {
  background: repeating-linear-gradient(to bottom, var(--accent-22) 0 4px, transparent 4px 8px);
}
:root[data-theme='light'] #organograma .org-fios path {
  stroke: rgb(133 207 0 / 48%) !important;
}
:root[data-theme='light'] #organograma .org-col::before {
  background: repeating-linear-gradient(to bottom, rgb(133 207 0 / 48%) 0 4px, transparent 4px 8px);
}
:root[data-theme='light'] #organograma :is(.org-dep, .org-agente) {
  border-color: #c2c2c2 !important;
}

@media (max-width: 900px) {
  :root[data-theme] #aplicacoes .application-grid { grid-template-columns: 1fr; }
  :root[data-theme] #aplicacoes .application-card { min-height: 0; }
  :root[data-theme] #aplicacoes .application-index { margin-bottom: 22px; }
  :root[data-theme] .masthead-side { display: flex; margin-left: auto; }
  :root[data-theme] .masthead-cta { display: none; }
  :root[data-theme] .menu-btn { display: grid; margin-left: 0; }
}
@media (max-width: 640px) {
  :root[data-theme] .masthead .masthead-pill { padding: 7px 10px 7px 14px; }
  :root[data-theme] #hero-title { font-size: 42px; }
  .hero-statement { font-size: 25px; margin-top: 18px; }
  .hero-statement br { display: none; }
  .hero-statement span { display: block; margin-top: 8px; }
}

/* Testemunhos em texto integral, sem compartimento de foto. */
#provas-sociais .prova-social-card {
  grid-template-columns: minmax(0, 1fr) !important;
  flex-basis: min(392px, calc(100% - 56px));
  min-height: 252px;
}
@media (min-width: 721px) {
  #provas-sociais .prova-social-card { flex-basis: min(392px, calc(100% - 56px)); }
}
@media (max-width: 720px) {
  #provas-sociais .prova-social-card {
    flex-basis: calc(100% - 28px);
  }
}

#provas-sociais .prova-social-corpo {
  justify-content: flex-start;
  min-height: 252px;
}
#provas-sociais .prova-social-card blockquote {
  margin: 22px 0 14px;
}
#provas-sociais .prova-social-card blockquote::before {
  content: "“";
  display: block;
  margin: -8px 0 2px;
  color: currentColor;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  line-height: .7;
}
#provas-sociais .prova-social-pessoa {
  margin: 0;
}

/* Dashboard realista do CELERA CRM, inspirado em interfaces CRM modernas. */
:root[data-theme] #prova .crm-showcase {
  margin: clamp(40px, 5vw, 64px) auto 0;
  border: 1px solid color-mix(in srgb, var(--hairline) 84%, transparent);
  border-radius: 10px;
  background: #eef3f8;
  box-shadow: 0 24px 80px -48px rgb(10 35 68 / 45%);
  overflow: hidden;
  color: #07112d;
}

:root[data-theme] #prova .crm-browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 8px 16px;
  border-bottom: 1px solid #dbe3ee;
  background: linear-gradient(180deg, #f8fbff, #edf3fa);
}

:root[data-theme] #prova .crm-browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

:root[data-theme] #prova .crm-browser-bar span:nth-child(1) { background: #ff6b64; }
:root[data-theme] #prova .crm-browser-bar span:nth-child(2) { background: #f6bc45; }
:root[data-theme] #prova .crm-browser-bar span:nth-child(3) { background: #2ec56f; }

:root[data-theme] #prova .crm-browser-bar b {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  min-width: min(420px, 48%);
  padding: 5px 18px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  color: #556174;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

:root[data-theme] #prova .crm-dashboard {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 720px;
  background:
    radial-gradient(540px 260px at 46% -10%, rgb(11 104 255 / 10%), transparent 70%),
    #f5f8fc;
}

:root[data-theme] #prova .crm-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 18px;
  border-right: 1px solid #dce5ef;
  background: #fff;
}

:root[data-theme] #prova .crm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

:root[data-theme] #prova .crm-logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0b68ff, #083dca);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

:root[data-theme] #prova .crm-logo b,
:root[data-theme] #prova .crm-logo small {
  display: block;
}

:root[data-theme] #prova .crm-logo b {
  color: #06102b;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
}

:root[data-theme] #prova .crm-logo small {
  color: #77849a;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

:root[data-theme] #prova .crm-nav {
  display: grid;
  gap: 7px;
}

:root[data-theme] #prova .crm-nav span {
  padding: 10px 12px;
  border-radius: 8px;
  color: #46536a;
  font-size: 13px;
  font-weight: 700;
}

:root[data-theme] #prova .crm-nav .is-active {
  background: #e9f2ff;
  color: #0957df;
}

:root[data-theme] #prova .crm-help {
  margin-top: auto;
  padding: 14px;
  border: 1px solid #dfe8f4;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff, #f3f7fc);
}

:root[data-theme] #prova .crm-help b,
:root[data-theme] #prova .crm-help small,
:root[data-theme] #prova .crm-help span {
  display: block;
}

:root[data-theme] #prova .crm-help b { color: #081432; font-size: 13px; }
:root[data-theme] #prova .crm-help small { margin-top: 5px; color: #68758b; font-size: 11px; line-height: 1.45; }
:root[data-theme] #prova .crm-help span {
  margin-top: 14px;
  padding: 8px 10px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  color: #081432;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

:root[data-theme] #prova .crm-main {
  min-width: 0;
  padding: clamp(18px, 2vw, 28px);
}

:root[data-theme] #prova .crm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

:root[data-theme] #prova .crm-kicker {
  margin: 0 0 5px;
  color: #697892;
  font-size: 12px;
  font-weight: 700;
}

:root[data-theme] #prova .crm-topbar h3 {
  margin: 0;
  color: #06102b;
  font-size: clamp(22px, 2vw, 31px);
  letter-spacing: -.04em;
  line-height: 1.05;
}

:root[data-theme] #prova .crm-search {
  flex: 0 1 360px;
  padding: 12px 15px;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
  background: #fff;
  color: #9aa5b7;
  font-size: 12px;
}

:root[data-theme] #prova .crm-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

:root[data-theme] #prova .crm-kpis article,
:root[data-theme] #prova .crm-panel {
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 36px -28px rgb(15 41 77 / 42%);
}

:root[data-theme] #prova .crm-kpis article {
  min-height: 122px;
  padding: 18px 18px 16px;
  animation: crm-rise .8s cubic-bezier(.22,.8,.2,1) both;
}

:root[data-theme] #prova .crm-kpis article:nth-child(2) { animation-delay: 80ms; }
:root[data-theme] #prova .crm-kpis article:nth-child(3) { animation-delay: 160ms; }
:root[data-theme] #prova .crm-kpis article:nth-child(4) { animation-delay: 240ms; }

:root[data-theme] #prova .crm-kpis small,
:root[data-theme] #prova .crm-panel-head small {
  display: block;
  color: #63718a;
  font-size: 12px;
  font-weight: 700;
}

:root[data-theme] #prova .crm-kpis b {
  display: block;
  margin-top: 10px;
  color: #07112d;
  font-size: clamp(27px, 2.4vw, 35px);
  font-weight: 900;
  letter-spacing: -.04em;
}

:root[data-theme] #prova .crm-kpis em {
  display: block;
  margin-top: 9px;
  color: #00a45a;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

:root[data-theme] #prova .crm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, .8fr);
  gap: 14px;
  margin-top: 14px;
}

:root[data-theme] #prova .crm-panel {
  padding: 18px;
}

:root[data-theme] #prova .crm-revenue,
:root[data-theme] #prova .crm-pipeline {
  grid-column: 1;
}

:root[data-theme] #prova .crm-calendar,
:root[data-theme] #prova .crm-activity {
  grid-column: 2;
}

:root[data-theme] #prova .crm-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

:root[data-theme] #prova .crm-panel-head strong {
  display: block;
  color: #07112d;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.035em;
}

:root[data-theme] #prova .crm-revenue .crm-panel-head strong {
  margin-top: 6px;
  font-size: clamp(27px, 2.4vw, 36px);
}

:root[data-theme] #prova .crm-panel-head span {
  color: #0b68ff;
  font-size: 12px;
  font-weight: 800;
}

:root[data-theme] #prova .crm-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
}

:root[data-theme] #prova .crm-grid-lines path {
  fill: none;
  stroke: #e3ebf5;
  stroke-width: 1;
}

:root[data-theme] #prova .crm-chart-area { fill: url(#crm-area); opacity: 0; animation: crm-fade .9s .35s both; }
:root[data-theme] #prova .crm-chart-line {
  fill: none;
  stroke: #0b68ff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: crm-draw 1.6s .2s cubic-bezier(.22,.8,.2,1) forwards;
}

:root[data-theme] #prova .crm-chart-point line {
  stroke: #7fb5ff;
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  animation: crm-fade .8s 1s both;
}

:root[data-theme] #prova .crm-chart-point circle {
  fill: #0b68ff;
  stroke: #fff;
  stroke-width: 4;
  animation: crm-pulse 2.4s 1.1s infinite;
}

:root[data-theme] #prova .crm-tooltip {
  box-sizing: border-box;
  width: 132px;
  padding: 9px 11px;
  border: 1px solid #d9e5f2;
  border-radius: 8px;
  background: #fff;
  color: #607089;
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 0 14px 30px -22px rgb(9 28 55 / 45%);
}

:root[data-theme] #prova .crm-tooltip b { color: #07112d; font-size: 12px; }

:root[data-theme] #prova .crm-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 16px;
}

:root[data-theme] #prova .crm-days b {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 7px;
  color: #65738a;
  font-size: 11px;
}

:root[data-theme] #prova .crm-days .is-today {
  background: #0b68ff;
  color: #fff;
}

:root[data-theme] #prova .crm-events,
:root[data-theme] #prova .crm-activity ul {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

:root[data-theme] #prova .crm-events li,
:root[data-theme] #prova .crm-activity li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

:root[data-theme] #prova .crm-events i,
:root[data-theme] #prova .crm-activity i {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #0b68ff;
  box-shadow: 0 0 0 5px rgb(11 104 255 / 10%);
}

:root[data-theme] #prova .crm-events li:nth-child(2) i,
:root[data-theme] #prova .crm-activity li:nth-child(3) i { background: #18b365; box-shadow: 0 0 0 5px rgb(24 179 101 / 10%); }
:root[data-theme] #prova .crm-events li:nth-child(3) i,
:root[data-theme] #prova .crm-activity li:nth-child(2) i { background: #7c3aed; box-shadow: 0 0 0 5px rgb(124 58 237 / 10%); }
:root[data-theme] #prova .crm-activity li:nth-child(4) i { background: #f59e0b; box-shadow: 0 0 0 5px rgb(245 158 11 / 12%); }

:root[data-theme] #prova .crm-events b,
:root[data-theme] #prova .crm-activity b {
  display: block;
  color: #111a34;
  font-size: 12px;
  line-height: 1.3;
}

:root[data-theme] #prova .crm-events small,
:root[data-theme] #prova .crm-activity small {
  display: block;
  margin-top: 2px;
  color: #6f7b91;
  font-size: 11px;
  line-height: 1.35;
}

:root[data-theme] #prova .crm-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

:root[data-theme] #prova .crm-columns > div {
  min-width: 0;
  padding: 12px;
  border-radius: 9px;
  background: linear-gradient(180deg, #f7faff, #fff);
  box-shadow: inset 3px 0 #0b68ff;
}

:root[data-theme] #prova .crm-columns > div:nth-child(2) { box-shadow: inset 3px 0 #2563eb; }
:root[data-theme] #prova .crm-columns > div:nth-child(3) { box-shadow: inset 3px 0 #f59e0b; }
:root[data-theme] #prova .crm-columns > div:nth-child(4) { box-shadow: inset 3px 0 #18b365; }

:root[data-theme] #prova .crm-columns b,
:root[data-theme] #prova .crm-columns small {
  display: block;
}

:root[data-theme] #prova .crm-columns b { color: #07112d; font-size: 12px; }
:root[data-theme] #prova .crm-columns small { margin-top: 3px; color: #6d7c92; font-size: 11px; font-weight: 700; }

:root[data-theme] #prova .crm-columns p {
  margin: 10px 0 0;
  padding: 9px;
  border: 1px solid #e1e9f3;
  border-radius: 8px;
  background: #fff;
  color: #111a34;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

:root[data-theme] #prova .crm-columns em {
  display: block;
  margin-top: 4px;
  color: #66758c;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

@keyframes crm-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes crm-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes crm-fade {
  to { opacity: 1; }
}

@keyframes crm-pulse {
  0%, 100% { transform: scale(1); transform-origin: 535px 74px; }
  50% { transform: scale(1.18); transform-origin: 535px 74px; }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-theme] #prova :is(.crm-kpis article,.crm-chart-area,.crm-chart-line,.crm-chart-point line,.crm-chart-point circle) {
    animation: none !important;
  }
  :root[data-theme] #prova .crm-chart-line { stroke-dashoffset: 0; }
  :root[data-theme] #prova .crm-chart-area,
  :root[data-theme] #prova .crm-chart-point line { opacity: 1; }
}

/* CELERA CRM v2: viewport desktop, navegação real e demonstração interactiva. */
:root[data-theme] #prova .crm-showcase {
  --crm-ink: #151814;
  --crm-muted: #687066;
  --crm-subtle: #92998f;
  --crm-line: #e4e8e1;
  --crm-line-soft: #eef1ec;
  --crm-surface: #ffffff;
  --crm-canvas: #f5f7f3;
  --crm-accent: #85cf00;
  --crm-accent-dark: #4f7f00;
  --crm-ease-out: cubic-bezier(.23, 1, .32, 1);
  --crm-ease-move: cubic-bezier(.77, 0, .175, 1);
  position: relative;
  width: min(1140px, calc(100vw - 80px));
  aspect-ratio: 2 / 1;
  min-height: clamp(530px, 50vw, 570px);
  margin: clamp(42px, 5vw, 68px) 0 0 50%;
  border: 1px solid color-mix(in srgb, var(--hairline) 76%, transparent);
  border-radius: 8px;
  background: var(--crm-canvas);
  box-shadow: 0 28px 70px -48px rgb(0 0 0 / 45%);
  color: var(--crm-ink);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  transform: translateX(-50%);
  overflow: hidden;
}

:root[data-theme] #prova .crm-showcase :is(button, input, select) {
  font-family: inherit;
}

:root[data-theme] #prova .crm-browser-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 32px;
  min-height: 32px;
  padding: 4px 12px;
  border-bottom: 1px solid #dfe4dc;
  background: #fafbf9;
}

:root[data-theme] #prova .crm-browser-dots {
  display: flex;
  gap: 6px;
}

:root[data-theme] #prova .crm-browser-bar .crm-browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

:root[data-theme] #prova .crm-browser-bar b {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 230px;
  padding: 3px 18px;
  border: 1px solid #e1e5de;
  border-radius: 6px;
  background: #fff;
  color: #687066;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  transform: none;
}

:root[data-theme] #prova .crm-browser-bar b img {
  width: 13px;
  height: 13px;
}

:root[data-theme] #prova .crm-browser-secure {
  justify-self: end;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #7a8278;
  font-size: 9px;
  font-weight: 700;
}

:root[data-theme] #prova .crm-browser-secure::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--crm-accent);
}

:root[data-theme] #prova .crm-dashboard {
  position: relative;
  display: grid;
  grid-template-columns: clamp(188px, 16vw, 218px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: calc(100% - 32px);
  min-height: 0;
  background: var(--crm-canvas);
}

:root[data-theme] #prova .crm-sidebar {
  display: flex;
  min-width: 0;
  padding: clamp(14px, 1.35vw, 20px) 12px 12px;
  gap: 12px;
  border-right: 1px solid var(--crm-line);
  background: #fbfcfa;
}

:root[data-theme] #prova .crm-logo {
  gap: 9px;
  padding: 0 8px 5px;
}

:root[data-theme] #prova .crm-logo-mark {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: none;
}

:root[data-theme] #prova .crm-logo b {
  color: var(--crm-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

:root[data-theme] #prova .crm-logo small {
  margin-top: 1px;
  color: var(--crm-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

:root[data-theme] #prova .crm-workspace {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid var(--crm-line);
  border-radius: 6px;
  background: var(--crm-surface);
  color: var(--crm-ink);
  text-align: left;
}

:root[data-theme] #prova .crm-workspace-avatar,
:root[data-theme] #prova .crm-user-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #151814;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

:root[data-theme] #prova .crm-user-avatar { border-radius: 50%; }

:root[data-theme] #prova .crm-workspace b,
:root[data-theme] #prova .crm-workspace small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-theme] #prova .crm-workspace b { font-size: 10px; }
:root[data-theme] #prova .crm-workspace small { color: var(--crm-muted); font-size: 8px; }

:root[data-theme] #prova .crm-nav {
  display: grid;
  gap: 2px;
}

:root[data-theme] #prova .crm-nav p {
  margin: 10px 8px 4px;
  color: var(--crm-subtle);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

:root[data-theme] #prova .crm-nav button {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #5a6358;
  font-size: 10px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: color 160ms var(--crm-ease-out), background-color 160ms var(--crm-ease-out), transform 120ms var(--crm-ease-out);
}

:root[data-theme] #prova .crm-nav button > span {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

:root[data-theme] #prova .crm-nav button .ph-icon {
  width: 15px;
  height: 15px;
}

:root[data-theme] #prova .crm-nav button em {
  min-width: 21px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #edf0eb;
  color: #7b8379;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

:root[data-theme] #prova .crm-nav button.is-active {
  background: #eaf6d4;
  color: #335600;
  box-shadow: inset 2px 0 var(--crm-accent);
}

:root[data-theme] #prova .crm-nav button.is-active em {
  background: #d9edb6;
  color: #335600;
}

:root[data-theme] #prova .crm-nav button.is-demo-click {
  transform: scale(.975);
}

:root[data-theme] #prova .crm-sidebar-foot {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 7px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 8px 0;
  border-top: 1px solid var(--crm-line-soft);
}

:root[data-theme] #prova .crm-sidebar-foot b,
:root[data-theme] #prova .crm-sidebar-foot small { display: block; }
:root[data-theme] #prova .crm-sidebar-foot b { color: var(--crm-ink); font-size: 9px; }
:root[data-theme] #prova .crm-sidebar-foot small { color: var(--crm-muted); font-size: 8px; }
:root[data-theme] #prova .crm-sidebar-foot i { width: 6px; height: 6px; border-radius: 50%; background: var(--crm-accent); }

:root[data-theme] #prova .crm-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

:root[data-theme] #prova .crm-topbar {
  min-height: clamp(58px, 5.5vw, 70px);
  padding: 10px clamp(16px, 1.7vw, 24px);
  border-bottom: 1px solid var(--crm-line);
  background: rgb(255 255 255 / 88%);
}

:root[data-theme] #prova .crm-kicker {
  margin: 0 0 2px;
  color: var(--crm-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .035em;
}

:root[data-theme] #prova .crm-kicker span { color: var(--crm-accent-dark); }

:root[data-theme] #prova .crm-topbar h3 {
  color: var(--crm-ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.08;
}

:root[data-theme] #prova .crm-top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

:root[data-theme] #prova .crm-top-actions button,
:root[data-theme] #prova .crm-view-toolbar button,
:root[data-theme] #prova .crm-panel-head button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--crm-line);
  border-radius: 5px;
  background: #fff;
  color: #596157;
  font-size: 9px;
  font-weight: 700;
}

:root[data-theme] #prova .crm-top-actions .crm-search {
  display: flex;
  align-items: center;
  min-width: clamp(150px, 17vw, 230px);
  gap: 7px;
  color: #81887f;
  text-align: left;
}

:root[data-theme] #prova .crm-search .ph-icon { width: 12px; height: 12px; }
:root[data-theme] #prova .crm-search kbd { margin-left: auto; padding: 1px 5px; border: 1px solid var(--crm-line); border-radius: 4px; background: #f8faf6; font: inherit; }

:root[data-theme] #prova .crm-top-actions .crm-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  padding: 0;
}

:root[data-theme] #prova .crm-icon-button .ph-icon { width: 14px; height: 14px; }
:root[data-theme] #prova .crm-icon-button i { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border: 1px solid #fff; border-radius: 50%; background: #e45858; }

:root[data-theme] #prova .crm-top-actions .crm-create,
:root[data-theme] #prova .crm-view-toolbar .is-primary {
  border-color: #151814;
  background: #151814;
  color: #fff;
}

:root[data-theme] #prova .crm-stage {
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 1.35vw, 18px) clamp(14px, 1.7vw, 24px) clamp(14px, 1.55vw, 20px);
  overflow: hidden;
}

:root[data-theme] #prova .crm-view {
  height: 100%;
  min-height: 0;
}

:root[data-theme] #prova .crm-view[hidden] { display: none !important; }

:root[data-theme] #prova .crm-view.is-entering {
  animation: crm-view-enter 280ms var(--crm-ease-out) both;
}

:root[data-theme] #prova .crm-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, .8vw, 11px);
  margin: 0 0 clamp(8px, .9vw, 12px);
}

:root[data-theme] #prova .crm-kpis article {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 0;
  min-height: clamp(67px, 6.3vw, 84px);
  padding: clamp(10px, 1vw, 14px);
  border: 1px solid var(--crm-line);
  border-radius: 6px;
  background: var(--crm-surface);
  box-shadow: none;
  animation: crm-rise 620ms var(--crm-ease-out) both;
}

:root[data-theme] #prova .crm-kpis article span { min-width: 0; }
:root[data-theme] #prova .crm-kpis small { color: var(--crm-muted); font-size: 8px; font-weight: 700; }
:root[data-theme] #prova .crm-kpis b { margin-top: 5px; color: var(--crm-ink); font-size: clamp(15px, 1.5vw, 21px); font-weight: 780; letter-spacing: 0; white-space: nowrap; }
:root[data-theme] #prova .crm-kpis em { margin: 0; color: #4d7b05; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }

:root[data-theme] #prova .crm-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(230px, .78fr);
  gap: clamp(8px, .9vw, 12px);
  height: calc(100% - clamp(75px, 7.2vw, 96px));
  min-height: 0;
}

:root[data-theme] #prova .crm-panel {
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 1.2vw, 17px);
  border: 1px solid var(--crm-line);
  border-radius: 6px;
  background: var(--crm-surface);
  box-shadow: none;
}

:root[data-theme] #prova .crm-panel-head { align-items: flex-start; }
:root[data-theme] #prova .crm-panel-head small { color: var(--crm-muted); font-size: 8px; font-weight: 700; }
:root[data-theme] #prova .crm-panel-head strong { margin-top: 3px; color: var(--crm-ink); font-size: clamp(15px, 1.45vw, 20px); font-weight: 780; letter-spacing: 0; }
:root[data-theme] #prova .crm-panel-head > span { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 5px; background: #eaf6d4; color: #3f6800; font-size: 9px; font-weight: 800; }

:root[data-theme] #prova .crm-revenue { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-column: auto; }
:root[data-theme] #prova .crm-revenue .crm-panel-head strong { margin-top: 3px; font-size: clamp(17px, 1.75vw, 24px); }
:root[data-theme] #prova .crm-chart { align-self: center; width: 100%; max-height: 100%; margin: 0; }
:root[data-theme] #prova .crm-grid-lines path { stroke: #e8ece6; }
:root[data-theme] #prova .crm-chart-area { fill: url(#crm-area-v2); }
:root[data-theme] #prova .crm-chart-line { stroke: var(--crm-accent); stroke-width: 3; }
:root[data-theme] #prova .crm-chart-point line { stroke: #a8ce67; }
:root[data-theme] #prova .crm-chart-point circle { fill: var(--crm-accent); }
:root[data-theme] #prova .crm-tooltip { width: 120px; padding: 6px 8px; border-color: var(--crm-line); border-radius: 5px; color: var(--crm-muted); font-size: 8px; }
:root[data-theme] #prova .crm-tooltip b { color: var(--crm-ink); font-size: 9px; }
:root[data-theme] #prova .crm-chart-labels { display: flex; justify-content: space-between; padding: 0 4%; color: var(--crm-subtle); font-size: 8px; }

:root[data-theme] #prova .crm-focus-list { display: flex; flex-direction: column; }
:root[data-theme] #prova .crm-focus-list ul { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; }
:root[data-theme] #prova .crm-focus-list li { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: clamp(8px, .8vw, 11px) 0; border-top: 1px solid var(--crm-line-soft); }
:root[data-theme] #prova .crm-focus-list li > i { width: 6px; height: 6px; border-radius: 50%; background: #cbd0c9; }
:root[data-theme] #prova .crm-focus-list li > i.is-hot { background: var(--crm-accent); box-shadow: 0 0 0 4px rgb(133 207 0 / 14%); }
:root[data-theme] #prova .crm-focus-list li b,
:root[data-theme] #prova .crm-focus-list li small { display: block; }
:root[data-theme] #prova .crm-focus-list li b { color: var(--crm-ink); font-size: 9px; line-height: 1.25; }
:root[data-theme] #prova .crm-focus-list li small { margin-top: 2px; color: var(--crm-muted); font-size: 8px; line-height: 1.25; }
:root[data-theme] #prova .crm-focus-list li em { color: var(--crm-subtle); font-size: 8px; font-style: normal; font-weight: 700; }

:root[data-theme] #prova .crm-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  margin-bottom: 10px;
}

:root[data-theme] #prova .crm-view-toolbar > div { display: flex; align-items: center; gap: 7px; }
:root[data-theme] #prova .crm-view-toolbar > div:first-child { display: block; }
:root[data-theme] #prova .crm-view-toolbar b,
:root[data-theme] #prova .crm-view-toolbar span { display: block; }
:root[data-theme] #prova .crm-view-toolbar b { color: var(--crm-ink); font-size: 15px; }
:root[data-theme] #prova .crm-view-toolbar span { margin-top: 1px; color: var(--crm-muted); font-size: 8px; }

:root[data-theme] #prova .crm-client-table {
  height: calc(100% - 52px);
  padding: 0;
  overflow: hidden;
}

:root[data-theme] #prova .crm-table-head,
:root[data-theme] #prova .crm-client-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.55fr) .7fr 1.15fr 1.05fr 1fr;
  align-items: center;
  gap: 12px;
  min-width: 760px;
  padding: 0 16px;
}

:root[data-theme] #prova .crm-table-head {
  min-height: 35px;
  border-bottom: 1px solid var(--crm-line);
  background: #f8faf7;
  color: var(--crm-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

:root[data-theme] #prova .crm-client-row {
  min-height: calc((100% - 35px) / 5);
  border-bottom: 1px solid var(--crm-line-soft);
  color: var(--crm-ink);
}

:root[data-theme] #prova .crm-client-row:last-child { border-bottom: 0; }
:root[data-theme] #prova .crm-client-row > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
:root[data-theme] #prova .crm-client-row b,
:root[data-theme] #prova .crm-client-row small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-theme] #prova .crm-client-row b { font-size: 9px; }
:root[data-theme] #prova .crm-client-row small { margin-top: 2px; color: var(--crm-muted); font-size: 7.5px; font-weight: 500; }
:root[data-theme] #prova .crm-client-row i { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 5px; background: #eef1ec; color: #4f584d; font-size: 8px; font-style: normal; font-weight: 800; }
:root[data-theme] #prova .crm-client-row i.is-person { border-radius: 50%; background: #151814; color: #fff; }
:root[data-theme] #prova .crm-client-row em { padding: 3px 7px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; }
:root[data-theme] #prova .crm-client-row em.is-customer { background: #eaf6d4; color: #3c6500; }
:root[data-theme] #prova .crm-client-row em.is-proposal { background: #fff1ce; color: #8a5b00; }
:root[data-theme] #prova .crm-client-row em.is-followup { background: #e9efff; color: #3457a8; }
:root[data-theme] #prova .crm-client-row em.is-lead { background: #f0eaff; color: #6545a5; }

:root[data-theme] #prova .crm-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  height: calc(100% - 52px);
  min-width: 0;
}

:root[data-theme] #prova .crm-kanban > section {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--crm-line);
  border-radius: 6px;
  background: #f0f3ee;
  overflow: hidden;
}

:root[data-theme] #prova .crm-kanban header > span { display: flex; align-items: center; gap: 6px; }
:root[data-theme] #prova .crm-kanban header i { width: 6px; height: 6px; border-radius: 50%; background: #9ca49a; }
:root[data-theme] #prova .crm-kanban > section:nth-child(2) header i { background: #70a4e8; }
:root[data-theme] #prova .crm-kanban > section:nth-child(3) header i { background: #e6ad42; }
:root[data-theme] #prova .crm-kanban > section:nth-child(4) header i { background: var(--crm-accent); }
:root[data-theme] #prova .crm-kanban header b { color: var(--crm-ink); font-size: 9px; }
:root[data-theme] #prova .crm-kanban header em { margin-left: auto; color: var(--crm-muted); font-size: 8px; font-style: normal; }
:root[data-theme] #prova .crm-kanban header small { display: block; margin: 4px 0 10px 12px; color: var(--crm-muted); font-size: 8px; }

:root[data-theme] #prova .crm-kanban article {
  margin-top: 7px;
  padding: clamp(9px, .8vw, 12px);
  border: 1px solid #e1e5de;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 20px -20px rgb(0 0 0 / 35%);
}

:root[data-theme] #prova .crm-kanban article.is-won { box-shadow: inset 2px 0 var(--crm-accent); }
:root[data-theme] #prova .crm-kanban article > b { color: var(--crm-ink); font-size: 9px; }
:root[data-theme] #prova .crm-kanban article p { margin: 4px 0 8px; color: var(--crm-muted); font-size: 8px; line-height: 1.3; }
:root[data-theme] #prova .crm-kanban article strong { color: var(--crm-ink); font-size: 10px; }
:root[data-theme] #prova .crm-kanban footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
:root[data-theme] #prova .crm-kanban footer span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #151814; color: #fff; font-size: 7px; font-weight: 800; }
:root[data-theme] #prova .crm-kanban footer small { color: var(--crm-subtle); font-size: 7.5px; }

:root[data-theme] #prova .crm-demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 12;
  width: 24px;
  height: 29px;
  color: #101210;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgb(255 255 255 / 90%)) drop-shadow(0 4px 5px rgb(0 0 0 / 24%));
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: opacity 180ms var(--crm-ease-out);
}

:root[data-theme] #prova .crm-demo-cursor svg { width: 100%; height: 100%; overflow: visible; }
:root[data-theme] #prova .crm-demo-cursor path { fill: currentColor; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
:root[data-theme] #prova .crm-showcase.is-demo-running .crm-demo-cursor { opacity: 1; }

:root[data-theme] #prova .crm-demo-cursor::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 7px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--crm-accent);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.55);
}

:root[data-theme] #prova .crm-demo-cursor.is-clicking::after {
  animation: crm-click-ring 460ms var(--crm-ease-out) both;
}

@keyframes crm-view-enter {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes crm-click-ring {
  0% { opacity: .9; transform: scale(.55); }
  100% { opacity: 0; transform: scale(1.55); }
}

@media (hover: hover) and (pointer: fine) {
  :root[data-theme] #prova .crm-nav button:hover { background: #f0f3ee; color: var(--crm-ink); }
  :root[data-theme] #prova .crm-nav button:active { transform: scale(.975); }
  :root[data-theme] #prova .crm-top-actions button:hover,
  :root[data-theme] #prova .crm-view-toolbar button:hover { border-color: #cbd2c7; background: #f8faf6; }
}

@media (max-width: 900px) {
  :root[data-theme] .rodape-nav { grid-column: 1; }
  :root[data-theme] .rodape-contacto { display: block; grid-column: 2; }
}

@media (max-width: 680px) {
  :root[data-theme] .rodape-contacto { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-theme] #prova .crm-demo-cursor { display: none !important; }
  :root[data-theme] #prova .crm-view.is-entering { animation: crm-fade 180ms var(--crm-ease-out) both; }
  :root[data-theme] #prova .crm-nav button { transition: color 120ms ease, background-color 120ms ease; }
}

/* ------------------------------------------------------------------ mobile
   Alvos de toque de 44 px (Apple HIG / WCAG 2.5.5) e o carrossel de
   testemunhos a sangrar até à borda do ecrã. Fica aqui no fim porque este
   ficheiro carrega por último e não é minificado: os `.min.css` não se
   tocam à mão. O prefixo `:root[data-theme]` serve só para ganhar em
   especificidade às regras base. */
@media (max-width: 720px), (pointer: coarse) {
  :root[data-theme] .btn,
  :root[data-theme] .icon-btn,
  :root[data-theme] .menu-btn,
  :root[data-theme] .scene-toggle,
  :root[data-theme] .prova-arrow,
  :root[data-theme] .rede,
  :root[data-theme] .chip-ferramenta {
    min-height: 44px;
  }
  :root[data-theme] .icon-btn,
  :root[data-theme] .menu-btn,
  :root[data-theme] .prova-arrow { min-width: 44px; }
  /* sections.min.css compacta os botões com `min-height:0 !important`;
     só outro !important chega lá. O padding de 8px 14px mantém-se — o
     botão cresce na altura, não no texto. */
  :root[data-theme] .btn { min-height: 44px !important; }
  :root[data-theme] .masthead .icon-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  :root[data-theme] .btn,
  :root[data-theme] .rede,
  :root[data-theme] .chip-ferramenta { justify-content: center; }

  :root[data-theme] .brand,
  :root[data-theme] .rodape-nav a,
  :root[data-theme] .rodape-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  :root[data-theme] .rodape-legal p:last-child { display: flex; flex-wrap: wrap; column-gap: 20px; }
  /* Com 44 px de altura, o gap de 11 px separava as ligações de mais. */
  :root[data-theme] .rodape-nav { gap: 0; }
  :root[data-theme] .rodape-nav .rodape-rot { margin-bottom: 4px; }

  /* A base alinha por baseline, o que cola o número ao topo de uma caixa
     mais alta. Centrado, e o campo esticado: toca-se em qualquer ponto. */
  :root[data-theme] .calc-entrada { min-height: 44px; align-items: center; }
  :root[data-theme] .calc-num { align-self: stretch; }
  :root[data-theme] .calc-conta { text-wrap: balance; }
}

@media (max-width: 720px) {
  /* O cartão cortava a 20 px do ecrã, no limite do .shell. A pista passa a
     ocupar a largura toda e o preenchimento repõe o alinhamento inicial. */
  :root[data-theme] #provas-sociais .provas-social-track {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
}

/* Os três cartões do CRM (Pipeline · Decisão humana · Painéis) ficavam em
   2+1 entre 621 e 940 px — o terceiro órfão numa linha sozinho. Ficam os
   três lado a lado até empilharem no telemóvel (≤620 px). */
@media (min-width: 621px) and (max-width: 940px) {
  :root[data-theme] .prod-grelha { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* CELERA CRM no telemóvel: miniatura da vista de desktop, não uma versão
   reorganizada em coluna. O dashboard é desenhado sempre a 960 px — a
   largura de desktop mais estreita que ainda lê bem — e o app.js aplica
   `zoom` = largura disponível / 960. `zoom` e não `transform: scale`: o
   zoom encolhe também a caixa no layout, por isso a secção não fica com um
   buraco do tamanho do original por baixo da miniatura. O 0.36 é só a
   rede para quando o JS não corre (≈ 350/960). */
@media (max-width: 900px) {
  :root[data-theme] #prova .crm-showcase {
    width: 960px;
    min-height: 530px;
    aspect-ratio: 2 / 1;
    margin: clamp(42px, 5vw, 68px) auto 0;
    transform: none;
    zoom: .36;
  }
  :root[data-theme] #prova .crm-dashboard { grid-template-columns: 200px minmax(0, 1fr); }
  :root[data-theme] #prova .crm-demo-cursor { display: none; }
}

/* Testemunhos quadrados (pedido do Dally): a altura fica a que já era
   (252 px) e é a LARGURA que encolhe até ela — o cartão não cresce. Igual
   em todas as larguras de ecrã. `align-self: flex-start` porque o stretch
   por omissão da pista flex esticaria todos à altura do mais alto. */
#provas-sociais .prova-social-card {
  flex-basis: 252px;
  aspect-ratio: 1 / 1;
  min-height: 0;
  align-self: flex-start;
}
/* Dentro do quadrado de 252: o corpo deixava de poder ter 252 de altura
   mínima (passava a borda), e a citação perde 10 px de ar em cima e 4 em
   baixo para o nome do autor mais longo (Saraiva) caber em duas linhas. */
#provas-sociais .prova-social-corpo { min-height: 0; }
#provas-sociais .prova-social-card blockquote { margin: 12px 0 10px; }

/* O contentor do calendário tinha `background: #fff` fixo (sections.css).
   Enquanto o iframe do Cal.com arranca escondido, era esse branco que se
   via — um rectângulo esbranquiçado no tema escuro. O Cal pinta o próprio
   fundo quando fica pronto; até lá, o contentor fica com o fundo do cartão. */
:root[data-theme] .cal-embed { background: transparent; }

/* ------------------------------------------------------- páginas legais
   Índice numerado e tabelas (fornecedores, conservação, fundamentos). As
   tabelas rolam na horizontal dentro do seu próprio invólucro no telemóvel,
   em vez de empurrarem a página para os lados. */
.legal-versao { margin-top: -6px; font-size: 13px; color: var(--muted); }
.legal-indice {
  margin: clamp(26px, 3vw, 36px) 0 0;
  padding: 18px 22px;
  border: 1px solid var(--hairline);
  background: var(--card);
}
.legal-indice > p { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal-indice ol {
  margin: 0; padding: 0; list-style: none;
  columns: 2 220px; column-gap: 28px;
  counter-reset: indice;
}
/* Grelha número | texto: um item que quebra linha alinha com o próprio
   texto, não volta para debaixo do número. */
.legal-indice li {
  counter-increment: indice; break-inside: avoid;
  display: grid; grid-template-columns: 2em minmax(0, 1fr);
  padding: 3px 0; font-size: 14px;
}
.legal-indice li::before { content: counter(indice) "."; color: var(--muted); }
.legal-shell .legal-indice a { text-decoration: none; color: var(--body); }
.legal-shell .legal-indice a:hover { color: var(--accent-ink); text-decoration: underline; }
.legal-shell h2[id], .legal-shell h3[id] { scroll-margin-top: 96px; }
.legal-shell h3 { margin: 22px 0 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.legal-tabela-wrap { margin: 14px 0 18px; overflow-x: auto; border: 1px solid var(--hairline); }
.legal-tabela { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; line-height: 1.45; }
.legal-tabela th, .legal-tabela td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.legal-tabela th { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--card); }
.legal-tabela td { color: var(--body); }
.legal-tabela tr:last-child td { border-bottom: 0; }
.legal-tabela td strong { color: var(--ink); }

/* Testemunhos parados quando cabem todos (o app.js põe `data-estatico` na
   pista quando 4 × 252 + gaps cabem na largura dela — no desktop). Sem
   rolagem e sem setas: não há nada para onde andar. */
#provas-sociais .provas-social-track[data-estatico] {
  justify-content: center;
  overflow: visible;
}
#provas-sociais:has(.provas-social-track[data-estatico]) .provas-social-controls { display: none; }
