:root {
  --bg: #f5f3ee;
  --ink: #1f2432;
  --muted: #5f6575;
  --panel: #ffffff;
  --line: #d8dde7;
  --shadow: 0 12px 32px rgba(15, 20, 36, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", "Avenir Next", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, #f0e7d8 0, transparent 34%),
    radial-gradient(circle at 92% 96%, #ddecee 0, transparent 30%),
    var(--bg);
}

.homologation-badge {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  text-align: center;
  background: #7f1d1d;
  color: #fff;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.homologation-design-lab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 24px;
  border-bottom: 1px solid #d3dceb;
  background: linear-gradient(100deg, #f8fbff 0%, #eff5ff 100%);
}

.design-lab-title-wrap {
  display: grid;
  gap: 2px;
}

.design-lab-title-wrap strong {
  font-size: 0.9rem;
  color: #1c2f50;
}

.design-lab-title-wrap span {
  font-size: 0.8rem;
  color: #586580;
}

.design-lab-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.design-variant-btn {
  border: 1px solid #b9c7dc;
  background: #ffffff;
  color: #2b3d5f;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.design-variant-btn.active {
  color: #ffffff;
  background: #0f4f62;
  border-color: #0f4f62;
}

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 12px;
  padding: 28px 24px;
  align-items: center;
}

.hero-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
}

.hero-copy {
  display: grid;
  gap: 8px;
}

.eyebrow {
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #b45309;
  margin: 0;
}

.subtitle {
  margin: 0;
}

body[data-client-hero="v3"] {
  background:
    radial-gradient(circle at 95% 2%, rgba(16, 78, 124, 0.2) 0%, rgba(16, 78, 124, 0) 38%),
    linear-gradient(180deg, #eef3fb 0%, #e8eef8 100%);
}

body[data-client-hero="v3"] .hero {
  margin: 12px 24px 0;
  border-radius: 22px;
  padding: 30px 24px;
  background:
    radial-gradient(circle at 92% 18%, rgba(133, 179, 240, 0.32) 0, rgba(133, 179, 240, 0) 34%),
    linear-gradient(125deg, #0f2f57 0%, #154f73 62%, #1d6f86 100%);
  box-shadow: 0 20px 40px rgba(13, 28, 50, 0.24);
}

body[data-client-hero="v3"] .brand-logo {
  filter: brightness(0) invert(1);
}

body[data-client-hero="v3"] .eyebrow {
  color: #d3e8ff;
}

body[data-client-hero="v3"] .hero-copy h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  letter-spacing: -0.01em;
}

body[data-client-hero="v3"] .hero-copy .subtitle {
  color: #e7f1ff;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 950;
  padding: 10px 24px 12px;
  border-top: 1px solid #e0dacd;
  border-bottom: 1px solid #ddd6c8;
  backdrop-filter: blur(8px);
  background: #fffdf8eb;
}

.app-nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-nav a {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8d7d2;
  border-radius: 999px;
  padding: 6px 10px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  background: #ffffff;
  transition: 0.2s ease;
}

.app-nav a:hover {
  border-color: #0f4f62;
  color: #0f4f62;
  background: #eaf5f3;
}

.app-nav a.signup-nav-link {
  border-color: #0d9488;
  background: #0d9488;
  color: #ffffff;
  font-weight: 700;
}

.app-nav a.vitrine-nav-link {
  border-color: #0f4f62;
  background: #0f4f62;
  color: #ffffff;
  font-weight: 700;
}

.app-nav a.vitrine-nav-link:hover {
  border-color: #0b3d4b;
  background: #0b3d4b;
  color: #ffffff;
}

.app-nav a.signup-nav-link:hover {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.app-nav a.incompany-nav-link {
  border-color: #d9467f;
  background: #d9467f;
  color: #ffffff;
  font-weight: 700;
}

.app-nav a.incompany-nav-link:hover {
  border-color: #be185d;
  background: #be185d;
  color: #ffffff;
}

.app-nav a.trail-cta {
  color: #ffffff;
  font-weight: 700;
}

.app-nav a.trail-publica-link {
  border-color: #6d28d9;
  background: #6d28d9;
}

.app-nav a.trail-publica-link:hover {
  border-color: #5b21b6;
  background: #5b21b6;
  color: #ffffff;
}

.app-nav a.trail-rh-link {
  border-color: #1e3a8a;
  background: #1e3a8a;
}

.app-nav a.trail-rh-link:hover {
  border-color: #1e40af;
  background: #1e40af;
  color: #ffffff;
}

.app-nav a.trail-operacoes-link {
  border-color: #c99a06;
  background: #c99a06;
}

.app-nav a.trail-operacoes-link:hover {
  border-color: #a87f05;
  background: #a87f05;
  color: #ffffff;
}

.summary-grid {
  background: linear-gradient(145deg, #fff, #f4faf8);
  border: 1px solid #d8e6dd;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.section-head {
  display: grid;
  gap: 12px;
}

.section-head > h2 {
  margin: 0;
}

.filters-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.filters-group input,
.filters-group select {
  width: 100%;
}

.filters-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.results-count {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 700;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-grid .full-span {
  grid-column: 1 / -1;
}

.client-hero {
  padding: 22px 24px 18px;
  display: grid;
  gap: 14px;
}

.diagnostic-td-page {
  background:
    radial-gradient(circle at 90% 6%, rgba(16, 74, 121, 0.16) 0%, rgba(16, 74, 121, 0) 36%),
    linear-gradient(180deg, #eef4fb 0%, #e8eff8 100%);
}

.td-hero {
  margin: 12px 24px 4px;
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at 87% 16%, rgba(133, 188, 248, 0.28) 0%, rgba(133, 188, 248, 0) 38%),
    linear-gradient(132deg, #0c2d52 0%, #145986 58%, #15758a 100%);
  box-shadow: 0 18px 40px rgba(12, 29, 52, 0.24);
  color: #ffffff;
  display: grid;
  gap: 18px;
}

.td-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.td-hero .hero-logo {
  filter: brightness(0) invert(1);
}

.td-hero .secondary-btn {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  background: rgba(6, 17, 36, 0.28);
}

.td-hero .secondary-btn:hover {
  filter: brightness(1.06);
}

.td-hero .primary-btn {
  border-color: #12b981;
  background: #12b981;
  color: #06251b;
}

.td-hero-content {
  max-width: 980px;
}

.td-hero-kicker {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #d0e7ff;
}

.td-hero-subtitle {
  margin: 0;
  color: #e9f5ff;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.58;
}

.td-highlight-panel {
  background: linear-gradient(180deg, #f8fcff 0%, #f3f9ff 100%);
}

.td-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.td-highlight-grid article {
  border: 1px solid #d4deec;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 13px;
  display: grid;
  gap: 6px;
}

.td-highlight-grid h3 {
  margin: 0;
  font-size: 1.04rem;
}

.td-highlight-grid p {
  margin: 0;
  color: #55627a;
  line-height: 1.45;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.hero-logo {
  width: min(280px, 52vw);
  height: auto;
}

.admin-link {
  text-decoration: none;
  color: #0f4f62;
  font-weight: 600;
  border: 1px solid #bfd3dd;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef7fb;
}

.hero-content {
  max-width: 980px;
}

.hero-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #b45309;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 8px;
  line-height: 1.14;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
}

.hero-subtitle,
.panel-head p,
.modal-summary {
  margin: 0;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 980px;
}

.hero-stat {
  background: #ffffff;
  border: 1px solid #d6dde9;
  border-radius: 12px;
  padding: 10px 12px;
}

.hero-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-stat strong {
  font-size: 1.26rem;
}

main {
  padding: 0 24px 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid #e1e5ee;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}

.panel-compact {
  padding: 14px 18px;
}

.context-card {
  border: 1px solid #d8e1ed;
  border-radius: 12px;
  background: #f9fbff;
  padding: 12px 14px;
  display: grid;
  gap: 5px;
}

.context-card p {
  margin: 0;
  color: #334055;
}

.enrollment-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.client-documents-panel {
  display: grid;
  gap: 10px;
}

.client-documents-list {
  display: grid;
  gap: 10px;
}

.client-doc-item {
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.client-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.client-doc-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 700;
}

.doc-status-vigente,
.doc-status-ativo {
  color: #0f5132;
  background: #d7f5df;
}

.doc-status-proxima {
  color: #7a4b00;
  background: #fceac2;
}

.doc-status-vencida {
  color: #8f1d1d;
  background: #ffd8d8;
}

.doc-status-sem-validade {
  color: #4b5563;
  background: #e5e7eb;
}

.client-doc-meta {
  margin: 0;
  color: #4f5e77;
  font-size: 0.84rem;
}

.client-doc-download {
  justify-self: start;
}

.panel-block {
  margin-bottom: 0;
}

.panel-block h3 {
  margin-bottom: 10px;
}

.filter-panel {
  display: grid;
  gap: 14px;
}

.panel-head {
  display: grid;
  gap: 6px;
}

.macro-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.macro-chip {
  border: 1px solid #ccd5e2;
  background: #ffffff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.macro-chip.active {
  color: #ffffff;
  border-color: transparent;
}

.macro-chip:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 4px;
  font-size: 0.84rem;
  color: #3f4557;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd7e5;
  border-radius: 11px;
  padding: 10px 11px;
  background: #ffffff;
  color: #20293d;
  font-family: inherit;
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.results-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 14px;
}

.ida-first-block {
  margin-bottom: 16px;
}

.ida-hero-panel {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 244, 214, 0.28) 0%, rgba(255, 244, 214, 0) 36%),
    linear-gradient(132deg, #b45309 0%, #c96a11 56%, #dd8b1b 100%);
  border: 1px solid #a64c07;
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(90, 44, 8, 0.25);
  padding: 20px;
}

.ida-hero-panel #clientAssistantHeading,
.ida-hero-panel #clientAssistantSubtitle,
.ida-hero-panel .client-chat-input-label {
  color: #ffffff;
}

.ida-hero-panel .ida-human-status,
.ida-hero-panel .client-chat-hint {
  color: rgba(233, 245, 255, 0.92);
}

.ida-hero-panel .assistant-quick-actions .secondary-btn {
  border-color: rgba(255, 238, 214, 0.72);
  background: rgba(95, 44, 8, 0.34);
  color: #ffffff;
}

.ida-hero-panel .assistant-quick-actions .secondary-btn:hover {
  border-color: #ffefcf;
  background: rgba(98, 41, 4, 0.52);
}

.ida-hero-panel .assistant-intent-card {
  border-color: rgba(255, 240, 217, 0.52);
  background: rgba(90, 43, 8, 0.35);
}

.ida-hero-panel .assistant-intent-card:hover {
  background: rgba(86, 35, 4, 0.55);
  border-color: #ffe5c4;
}

.ida-hero-panel .assistant-intent-icon {
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(15, 79, 131, 0.36);
}

.ida-hero-panel .client-chat-messages {
  background: #fdfefe;
  border-color: #dbe5f1;
  box-shadow: inset 0 0 0 1px rgba(219, 229, 241, 0.4);
  margin-top: 0;
}

.ida-hero-panel .client-chat-form input {
  border-color: #9fc0df;
  background: #ffffff;
  color: #154f73;
}

.ida-hero-panel .client-chat-form input::placeholder {
  color: #52779a;
}

.ida-hero-panel .client-chat-message.bot {
  background: #eef5ff;
  border-color: #c8daef;
  color: #153e63;
}

.ida-hero-panel .client-chat-message.user {
  background: #e5f8ee;
  border-color: #b9e2ca;
  color: #134a3a;
}

.ida-hero-panel .client-chat-form button {
  background: #0f4f83;
  border-color: #0f4f83;
  color: #ffffff;
  font-weight: 800;
}

.ida-hero-panel .client-chat-form button:hover {
  background: #113f66;
  border-color: #113f66;
  color: #ffffff;
}

.ida-hero-panel .client-chat-shell {
  border-color: #f2d0a8;
  background: #ffffff;
}

.insights-assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.insights-left-stack {
  display: grid;
  gap: 16px;
}

.insight-panel {
  margin-bottom: 0;
}

.journey-panel {
  background:
    radial-gradient(circle at 88% -10%, rgba(15, 79, 98, 0.12) 0%, rgba(15, 79, 98, 0) 38%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.journey-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.journey-step {
  border: 1px solid #d4deec;
  border-radius: 14px;
  padding: 12px 13px;
  background: #ffffff;
  display: grid;
  gap: 7px;
}

.journey-step h3 {
  margin: 0;
  font-size: 1.04rem;
}

.journey-step p {
  margin: 0;
  color: #55627a;
  line-height: 1.45;
}

.journey-index {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #bfd0e6;
  color: #0f4f62;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: #eaf5fb;
}

.methodology-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.methodology-card {
  border: 1px solid #d4deec;
  border-radius: 14px;
  padding: 12px 13px;
  background: #ffffff;
  display: grid;
  gap: 8px;
}

.methodology-card h3 {
  margin: 0;
  font-size: 1rem;
}

.methodology-card p {
  margin: 0;
  color: #55627a;
  line-height: 1.44;
}

.compliance-note {
  margin: 12px 0 0;
  color: #2f4d6c;
  font-size: 0.86rem;
  font-weight: 600;
}

.diagnostic-benefits {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #4d5f79;
  line-height: 1.5;
  display: grid;
  gap: 4px;
}

.insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-card {
  --macro-color: #0f4f62;
  border: 1px solid #dde2ea;
  border-top: 6px solid var(--macro-color);
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 9px;
  position: relative;
}

.course-card-confirmed {
  border-color: #b4e6c8;
  box-shadow: 0 16px 28px rgba(22, 163, 74, 0.16);
}

.confirmed-splash {
  position: absolute;
  right: 12px;
  top: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #ffffff;
  border: 1px solid #13a24e;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.course-cover {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d9e1ee;
  background: #f5f9ff;
}

.course-cover-image {
  width: 100%;
  height: 132px;
  object-fit: cover;
  display: block;
}

.course-title {
  font-size: 1.33rem;
}

.course-meta {
  color: #4b5366;
  font-size: 0.9rem;
}

.idemp-client-footer {
  margin-top: 24px;
  background: #005f7f;
  color: #ffffff;
  border-top: 4px solid #00465d;
}

.idemp-client-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 16px 26px;
  display: grid;
  gap: 6px;
}

.idemp-client-footer h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.idemp-client-footer-slogan {
  margin: 0 0 4px;
  font-weight: 700;
}

.idemp-client-footer p {
  margin: 0;
  color: #ffffff;
}

.idemp-client-footer a {
  color: #ffffff;
  text-decoration: underline;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #25d366;
  display: grid;
  place-items: center;
  z-index: 1200;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

.whatsapp-float:hover {
  filter: brightness(0.92);
}

.ida-float {
  position: fixed;
  left: 20px;
  bottom: 24px;
  min-width: 90px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #0f5f77 0%, #0f4f62 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  z-index: 1200;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.ida-float-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  object-fit: cover;
  background: #eff6ff;
}

.ida-float:hover {
  filter: brightness(0.94);
}

.course-meta-macro {
  color: var(--macro-color);
  font-weight: 700;
}

.course-micro-areas {
  display: grid;
  gap: 6px;
}

.course-micro-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #5a6479;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-micro-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.course-micro-chip {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  border: 1px solid #c9d7e8;
  background: #eef4fb;
  color: #214060;
  font-weight: 700;
}

.course-micro-chip-more {
  border-style: dashed;
}

.course-teacher-list {
  display: grid;
  gap: 8px;
}

.course-teacher-list.featured .course-teacher-item {
  border: 1px solid #d5e4f3;
  border-radius: 10px;
  padding: 7px;
  background: #f8fbff;
}

.course-teacher-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.course-teacher-main {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: start;
}

.course-teacher-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cdd9e7;
  background: #e7eff8;
}

.course-teacher-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #27415f;
}

.course-teacher-info {
  display: grid;
  gap: 2px;
}

.course-teacher-name {
  font-size: 0.92rem;
  color: #273044;
}

.course-teacher-curriculum {
  margin: 0;
  color: #59627a;
  font-size: 0.81rem;
  line-height: 1.38;
}

.course-teacher-more {
  color: #5f687e;
  font-size: 0.78rem;
  font-weight: 600;
}

.teacher-plus-btn {
  border: 1px solid #bdd2e7;
  background: #e4f0fb;
  color: #0f4f62;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.teacher-plus-btn:hover {
  filter: brightness(0.95);
}

.bar-line {
  width: 98px;
  height: 5px;
  border-radius: 99px;
  background: var(--macro-color);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid var(--macro-color);
  background: var(--macro-color);
  color: #ffffff;
}

.price {
  color: var(--macro-color);
  font-size: 1.36rem;
  font-weight: 700;
}

.class-snippet {
  border-left: 4px solid var(--macro-color);
  background: #f9fbff;
  border-radius: 10px;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
}

.class-snippet-list {
  display: grid;
  gap: 8px;
}

.spotlight-list .class-snippet {
  border-width: 2px;
}

.class-snippet-confirmed {
  border-left-color: #16a34a;
  background: #f0fbf4;
}

.class-extra-note {
  font-size: 0.78rem;
  color: #4f647f;
  font-weight: 700;
}

.class-snippet .enroll-btn {
  margin-top: 6px;
  width: 100%;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.discover-btn {
  min-width: 170px;
}

.course-resource-links {
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px 10px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.course-resource-links a {
  color: var(--macro-color);
  font-weight: 700;
}

.course-resource-links span {
  color: #6c7488;
}

.incompany-highlight-btn {
  border: 1px solid #0f3f8f;
  background: #0f3f8f;
  color: #ffffff;
  border-radius: 11px;
  padding: 10px 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
}

.incompany-highlight-btn:hover {
  filter: brightness(0.9);
}

.recorded-highlight-btn {
  border: 1px solid #5b6472;
  background: #5b6472;
  color: #ffffff;
  border-radius: 11px;
  padding: 10px 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
}

.recorded-highlight-btn:hover {
  filter: brightness(0.92);
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  border-radius: 11px;
  padding: 10px 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  border: 1px solid #0f4f62;
  background: #0f4f62;
  color: #ffffff;
}

.primary-btn.enroll-btn {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.28);
}

.primary-btn.enroll-btn:hover {
  border-color: #15803d;
  background: #15803d;
}

.secondary-btn {
  border: 1px solid #0f4f62;
  background: #ffffff;
  color: #0f4f62;
}

.ghost-btn {
  border: 1px solid #ccd5e2;
  background: #ffffff;
  color: #2a3142;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.client-chat-messages {
  border: 1px solid #d8dfec;
  border-radius: 10px;
  background: #f8fbff;
  min-height: 200px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.client-chat-shell {
  margin-top: 10px;
  border: 1px solid #f2c898;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.client-chat-message {
  max-width: 92%;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.client-chat-message.user {
  margin-left: auto;
  background: #d8f3e4;
  border: 1px solid #9bd3b1;
}

.client-chat-message.bot {
  margin-right: auto;
  background: #edf3fc;
  border: 1px solid #c9d7ed;
}

.client-chat-message.rich {
  max-width: 100%;
}

.assistant-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.assistant-intent-cards {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.assistant-intent-card {
  width: 100%;
  border: 1px solid #e9be8e;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px 11px;
  text-align: left;
  cursor: pointer;
}

.assistant-intent-card:hover {
  border-color: #ffdcb4;
}

.assistant-intent-icon {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  font-size: 0.77rem;
  font-weight: 800;
  margin-top: 1px;
  background: rgba(15, 79, 131, 0.35);
}

.assistant-intent-copy {
  display: grid;
  gap: 3px;
}

.assistant-intent-copy strong {
  font-size: 0.93rem;
}

.assistant-intent-copy small {
  font-size: 0.79rem;
  color: rgba(241, 249, 255, 0.95);
  line-height: 1.35;
}

.assistant-course-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.assistant-course-item {
  border: 1px solid #cfdff0;
  border-radius: 10px;
  padding: 9px;
  background: #ffffff;
  display: grid;
  gap: 6px;
}

.assistant-course-item span {
  color: #4c5e79;
  font-size: 0.86rem;
}

.assistant-course-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ida-panel {
  display: grid;
  gap: 10px;
}

.ida-human-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ida-human-header h2 {
  margin: 0;
}

.ida-human-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(145deg, #0f4f62, #0c6a84);
  box-shadow: 0 8px 14px rgba(15, 79, 98, 0.2);
}

.ida-human-avatar-image {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #c7d8ea;
  object-fit: cover;
  background: #eef5fd;
}

.ida-human-status {
  margin: 0;
  color: #3f5964;
  font-size: 0.84rem;
}

.client-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.client-chat-input-label {
  grid-column: 1 / -1;
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #35506f;
}

.client-chat-form input {
  min-height: 44px;
}

.client-chat-form button {
  min-height: 44px;
}

.client-chat-hint {
  margin: 8px 0 0;
  color: #5b6f86;
  font-size: 0.82rem;
}

.client-chat-message-processing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #214f78;
}

.assistant-processing-dots {
  display: inline-flex;
  gap: 4px;
}

.assistant-processing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2f6391;
  opacity: 0.45;
  animation: assistant-dot 1s infinite ease-in-out;
}

.assistant-processing-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.assistant-processing-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes assistant-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

.client-teach-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #c7d5eb;
  background: #f6f9ff;
  display: grid;
  gap: 7px;
}

.client-teach-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.client-teach-panel p {
  margin: 0;
  color: #5c6f88;
  font-size: 0.9rem;
}

.client-teach-panel label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #384c6d;
}

.client-teach-panel select,
.client-teach-panel textarea {
  width: 100%;
  border: 1px solid #b8c8df;
  border-radius: 10px;
  padding: 9px 10px;
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
}

.teach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 35, 0.56);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 1000;
}

.modal-card {
  width: min(820px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #d5dde8;
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.modal-close {
  justify-self: end;
  border: 1px solid #ccd6e6;
  background: #ffffff;
  color: #2a3550;
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.class-list {
  display: grid;
  gap: 8px;
}

.course-modal-academic {
  display: grid;
  gap: 8px;
}

.course-modal-academic-item {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #f7fbff;
  padding: 8px 10px;
}

.course-modal-academic-item h4 {
  margin: 0 0 4px;
  font-size: 0.88rem;
}

.course-modal-academic-item p {
  margin: 0;
  color: #3b465c;
  white-space: pre-line;
}

.course-modal-teachers {
  display: grid;
  gap: 10px;
}

.course-teacher-modal-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 9px;
  align-items: start;
}

.course-teacher-modal-item .course-teacher-avatar {
  width: 52px;
  height: 52px;
}

.course-teacher-degree {
  margin: 0;
  color: #5b6480;
  font-size: 0.82rem;
}

.class-item {
  border-left: 4px solid #0f4f62;
  background: #f6fbff;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-grid h4,
.form-grid button,
.status {
  grid-column: 1 / -1;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.students-container {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.student-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #d9deea;
  border-radius: 12px;
  background: #f8fbff;
}

.student-row .remove-student-btn {
  align-self: center;
  justify-self: start;
}

.status {
  min-height: 1.5em;
  margin: 0;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.teacher-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teacher-modal-avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #ccdae6;
  background: #eef4fb;
  flex-shrink: 0;
}

.teacher-modal-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f4f62;
}

body.modal-open {
  overflow: hidden;
}

.macro-rh {
  --macro-color: #123a6f;
}

.macro-lideranca {
  --macro-color: #c46608;
}

.macro-estrategia {
  --macro-color: #b42318;
}

.macro-publica {
  --macro-color: #6e3aa8;
}

.macro-empresarial {
  --macro-color: #c99a06;
}

.macro-financeira {
  --macro-color: #1f7a43;
}

.macro-default {
  --macro-color: #0f4f62;
}

.chip-rh {
  border-color: #123a6f;
  background: #123a6f;
  color: #ffffff;
}

.chip-rh.active {
  background: #123a6f;
}

.chip-lideranca {
  border-color: #c46608;
  background: #c46608;
  color: #ffffff;
}

.chip-lideranca.active {
  background: #c46608;
}

.chip-estrategia {
  border-color: #b42318;
  background: #b42318;
  color: #ffffff;
}

.chip-estrategia.active {
  background: #b42318;
}

.chip-publica {
  border-color: #6e3aa8;
  background: #6e3aa8;
  color: #ffffff;
}

.chip-publica.active {
  background: #6e3aa8;
}

.chip-empresarial {
  border-color: #c99a06;
  background: #c99a06;
  color: #ffffff;
}

.chip-empresarial.active {
  background: #c99a06;
}

.chip-financeira {
  border-color: #1f7a43;
  background: #1f7a43;
  color: #ffffff;
}

.chip-financeira.active {
  background: #1f7a43;
}

.course-audience-footer {
  margin: 6px 0 0;
  padding-top: 8px;
  border-top: 1px dashed #d3deea;
  color: #3f4a63;
  font-size: 0.84rem;
}

/* --- Homologation visual variants --- */
body[data-hml-variant="v1"] {
  background:
    radial-gradient(circle at 7% 6%, #f4ead8 0, transparent 34%),
    radial-gradient(circle at 92% 88%, #dcecf2 0, transparent 34%),
    #f5f3ee;
}

body[data-hml-variant="v1"] .hero {
  margin: 12px 24px 0;
  border-radius: 24px;
  border: 1px solid #d9d7d1;
  background: linear-gradient(120deg, #fef8ee 0%, #eef4ff 100%);
  box-shadow: 0 16px 32px rgba(22, 34, 61, 0.08);
}

body[data-hml-variant="v1"] .hero-copy h1 {
  font-size: clamp(2rem, 4.7vw, 3.4rem);
}

body[data-hml-variant="v2"] {
  --bg: #f0eee9;
  --panel: #fffefb;
  --line: #dfd7ca;
  --ink: #192435;
  --muted: #5c6678;
  --shadow: 0 14px 28px rgba(33, 27, 16, 0.08);
  font-family: "Source Serif 4", Georgia, serif;
  background:
    linear-gradient(180deg, #f6f2ea 0%, #efece6 100%);
}

body[data-hml-variant="v2"] .hero,
body[data-hml-variant="v2"] .app-nav,
body[data-hml-variant="v2"] main,
body[data-hml-variant="v2"] .homologation-design-lab {
  font-family: "Sora", "Avenir Next", sans-serif;
}

body[data-hml-variant="v2"] .hero {
  margin: 0;
  padding: 34px 24px 28px;
  background:
    linear-gradient(145deg, rgba(25, 43, 74, 0.95) 0%, rgba(13, 61, 86, 0.92) 100%),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 38%);
  color: #ffffff;
}

body[data-hml-variant="v2"] .brand-logo {
  filter: brightness(0) invert(1);
}

body[data-hml-variant="v2"] .eyebrow {
  color: #dceeff;
}

body[data-hml-variant="v2"] .hero-copy h1,
body[data-hml-variant="v2"] .hero-copy .subtitle {
  color: #ffffff;
}

body[data-hml-variant="v2"] .app-nav {
  background: #fbf8f2f0;
  border-top-color: #d9d1c4;
  border-bottom-color: #d9d1c4;
}

body[data-hml-variant="v2"] .panel {
  border-radius: 22px;
  border-color: #d9d2c8;
}

body[data-hml-variant="v2"] .course-card {
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf9f4 100%);
}

body[data-hml-variant="v2"] h2,
body[data-hml-variant="v2"] h3 {
  font-family: "Sora", "Avenir Next", sans-serif;
}

body[data-hml-variant="v2"] .course-title {
  font-size: 1.4rem;
}

body[data-hml-variant="v3"] {
  --bg: #e9eef6;
  --panel: #ffffff;
  --line: #cfd8e9;
  --ink: #122138;
  --muted: #4f607a;
  --shadow: 0 16px 34px rgba(14, 27, 52, 0.1);
  background:
    radial-gradient(circle at 95% 2%, rgba(16, 78, 124, 0.2) 0%, rgba(16, 78, 124, 0) 38%),
    linear-gradient(180deg, #eef3fb 0%, #e8eef8 100%);
}

body[data-hml-variant="v3"] .hero {
  margin: 12px 24px 0;
  border-radius: 22px;
  padding: 30px 24px;
  background:
    radial-gradient(circle at 92% 18%, rgba(133, 179, 240, 0.32) 0, rgba(133, 179, 240, 0) 34%),
    linear-gradient(125deg, #0f2f57 0%, #154f73 62%, #1d6f86 100%);
  box-shadow: 0 20px 40px rgba(13, 28, 50, 0.24);
}

body[data-hml-variant="v3"] .brand-logo {
  filter: brightness(0) invert(1);
}

body[data-hml-variant="v3"] .eyebrow {
  color: #d3e8ff;
}

body[data-hml-variant="v3"] .hero-copy h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  letter-spacing: -0.01em;
}

body[data-hml-variant="v3"] .hero-copy .subtitle {
  color: #e7f1ff;
}

body[data-hml-variant="v3"] .app-nav {
  background: #f2f7ffef;
  border-top-color: #cfdbeb;
  border-bottom-color: #cfdbeb;
}

body[data-hml-variant="v3"] .app-nav a.vitrine-nav-link {
  background: #0f4f83;
  border-color: #0f4f83;
}

body[data-hml-variant="v3"] .app-nav a.incompany-nav-link {
  background: #d9467f;
  border-color: #d9467f;
}

body[data-hml-variant="v3"] .app-nav a.signup-nav-link {
  background: #0b847f;
  border-color: #0b847f;
}

body[data-hml-variant="v3"] .panel {
  border-radius: 20px;
}

body[data-hml-variant="v3"] .journey-grid,
body[data-hml-variant="v3"] .methodology-grid {
  grid-template-columns: 1fr;
}

body[data-hml-variant="v3"] .filter-panel {
  gap: 16px;
}

body[data-hml-variant="v3"] .course-card {
  border-width: 1px;
  border-color: #d5deef;
  border-top-width: 7px;
  border-radius: 18px;
  box-shadow: 0 12px 22px rgba(17, 33, 58, 0.08);
}

body[data-hml-variant="v3"] .primary-btn {
  background: #0f4f83;
  border-color: #0f4f83;
}

body[data-hml-variant="v3"] .secondary-btn {
  border-color: #0f4f83;
  color: #0f4f83;
}

@media (max-width: 1040px) {
  .homologation-design-lab {
    padding: 10px 12px;
  }

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

  .enrollment-layout {
    grid-template-columns: 1fr;
  }

  .insights-assistant-layout {
    grid-template-columns: 1fr;
  }

  .assistant-intent-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-grid {
    grid-template-columns: 1fr;
  }

  .methodology-grid {
    grid-template-columns: 1fr;
  }

  .td-highlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .client-hero,
  .td-hero,
  main {
    padding-left: 12px;
    padding-right: 12px;
  }

  body[data-hml-variant="v1"] .hero,
  body[data-hml-variant="v3"] .hero {
    margin-left: 12px;
    margin-right: 12px;
  }

  .td-hero {
    margin: 12px;
    padding: 18px 14px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .filter-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .assistant-intent-cards {
    grid-template-columns: 1fr;
  }

  .client-chat-form {
    grid-template-columns: 1fr;
  }

  .client-chat-form button {
    width: 100%;
  }

  .student-row {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }

  .ida-float {
    left: 14px;
    bottom: 18px;
    min-width: 84px;
    height: 56px;
    font-size: 0.9rem;
    padding: 0 12px;
  }
}
