/* SOMA page recovery: shared internal platform shell */
:root {
  --soma-navy: #061323;
  --soma-deep: #071b31;
  --soma-blue: #155779;
  --soma-teal: #02b8bf;
  --soma-teal-2: #27d0cc;
  --soma-bg: #eef7fa;
  --soma-card: #ffffff;
  --soma-border: #d8eaf1;
  --soma-text: #10243a;
  --soma-muted: #5c6f86;
  --soma-shadow: 0 22px 60px rgba(6, 19, 35, 0.12);
}

.platform-body {
  background:
    radial-gradient(circle at 82% 6%, rgba(2, 184, 191, 0.16), transparent 34%),
    linear-gradient(180deg, #eaf5f8 0%, #f6fbfd 45%, #edf7fa 100%);
  color: var(--soma-text);
  overflow-x: hidden;
}

.platform-body .platform-shell,
.platform-body .clinical-platform {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
  background: transparent;
}

.platform-body .platform-topbar,
.platform-body .clinical-topbar,
.platform-body .soma-unified-topbar {
  min-height: 64px;
  height: auto;
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 8px 22px;
  background: linear-gradient(90deg, #061323 0%, #071b31 100%);
  color: #fff;
  border-bottom: 1px solid rgba(127, 231, 235, 0.16);
  box-shadow: 0 10px 34px rgba(6, 19, 35, 0.12);
}

.platform-body .platform-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.platform-body .platform-logo {
  width: 150px;
  max-height: 50px;
  object-fit: contain;
  object-position: left center;
}

.platform-body .platform-search {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid rgba(127, 231, 235, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.platform-body .platform-search span {
  color: var(--soma-teal-2);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.platform-body .platform-search input,
.platform-body .platform-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.platform-body .platform-search input {
  background: transparent;
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  font: inherit;
}

.platform-body .platform-plan {
  text-align: right;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.platform-body .platform-plan span {
  display: block;
  color: #7fe7eb;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-body .platform-sidebar,
.platform-body .clinical-sidebar,
.platform-body .soma-unified-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #071b31 0%, #061323 100%);
  border-right: 1px solid rgba(127, 231, 235, 0.16);
  color: rgba(255, 255, 255, 0.82);
}

.platform-body .platform-sidebar-logo,
.platform-body .clinical-sidebar-logo {
  padding: 2px 8px 14px;
  border-bottom: 1px solid rgba(127, 231, 235, 0.14);
}

.platform-body .platform-sidebar-logo img,
.platform-body .clinical-sidebar-logo img {
  width: 168px;
  max-height: 46px;
  object-fit: contain;
}

.platform-body .platform-nav,
.platform-body .clinical-nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(2, 184, 191, 0.55) transparent;
}

.platform-body .platform-nav-section,
.platform-body .clinical-nav-section {
  margin: 12px 10px 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.platform-body .platform-nav a,
.platform-body .clinical-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 13px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.22;
}

.platform-body .platform-nav a:hover,
.platform-body .clinical-nav a:hover,
.platform-body .platform-nav a.is-active,
.platform-body .platform-nav a[aria-current="page"],
.platform-body .clinical-nav a.is-active,
.platform-body .clinical-nav a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(2, 184, 191, 0.26), rgba(2, 184, 191, 0.08));
  border: 1px solid rgba(2, 184, 191, 0.36);
  color: #9df7fa;
}

.platform-body .clinical-subnav,
.platform-body .platform-subnav {
  margin: 0 0 6px 22px;
  padding-left: 10px;
  border-left: 2px solid rgba(2, 184, 191, 0.35);
}

.platform-body .clinical-subnav a,
.platform-body .platform-subnav a {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.68);
}

.platform-body .platform-sidebar-status,
.platform-body .clinical-sidebar-status {
  margin-top: auto;
  border: 1px solid rgba(127, 231, 235, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.platform-body .platform-sidebar-status span,
.platform-body .clinical-sidebar-status span {
  color: #7fe7eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-body .platform-sidebar-status strong,
.platform-body .clinical-sidebar-status strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.platform-body .platform-sidebar-status p,
.platform-body .clinical-sidebar-status p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 12px;
  line-height: 1.35;
}

.platform-body .sidebar-premium-cta,
.platform-body .clinical-logout {
  min-height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #02b8bf, #27d0cc);
  color: #061323;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.platform-body .platform-main,
.platform-body .clinical-main {
  min-width: 0;
  padding: 28px;
  background: transparent;
  color: var(--soma-text);
}

.platform-body .platform-visual-board,
.platform-body .module-app-header,
.platform-body .clinical-hero,
.platform-body .dashboard-hero {
  border-radius: 28px;
}

.platform-body .module-app-header,
.platform-body .dashboard-hero {
  background: linear-gradient(135deg, #061323 0%, #071b31 58%, #0b314b 100%);
  color: #fff;
  border: 1px solid rgba(127, 231, 235, 0.22);
  box-shadow: var(--soma-shadow);
}

.platform-body .module-app-header h1,
.platform-body .dashboard-hero h1,
.platform-body .clinical-hero h1 {
  color: inherit;
  text-shadow: none;
}

.platform-body .module-app-subtitle,
.platform-body .dashboard-hero p,
.platform-body .clinical-hero p {
  color: rgba(232, 246, 250, 0.84);
}

.platform-body .overview-solution-grid,
.platform-body .overview-grid-hierarchical,
.platform-body .document-grid,
.platform-body .settings-grid {
  align-items: stretch;
}

.platform-body .solution-entry,
.platform-body .document-card,
.platform-body .settings-card,
.platform-body .overview-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff, #f8fbfd);
  border: 1px solid var(--soma-border);
  color: var(--soma-text);
  box-shadow: 0 18px 46px rgba(6, 19, 35, 0.08);
}

.platform-body .solution-entry > a:last-child,
.platform-body .solution-entry .button,
.platform-body .document-card footer,
.platform-body .settings-card footer {
  margin-top: auto;
}

.platform-body .solution-entry h3,
.platform-body .document-card h3,
.platform-body .settings-card h3 {
  color: var(--soma-text);
}

.platform-body .solution-entry p,
.platform-body .document-card p,
.platform-body .settings-card p {
  color: var(--soma-muted);
}

.platform-body .solution-entry-featured,
.platform-body .solution-entry-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 19, 35, 0.92), rgba(6, 19, 35, 0.55)),
    url("assets/jornadas-bg.png") center right / cover no-repeat;
  border-color: rgba(127, 231, 235, 0.38);
}

.platform-body .solution-entry-featured h3,
.platform-body .solution-entry-hero h3,
.platform-body .solution-entry-featured p,
.platform-body .solution-entry-hero p {
  color: #fff;
}

.platform-body .solution-entry-badge {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(127, 231, 235, 0.15);
  color: #7fe7eb;
  border: 1px solid rgba(127, 231, 235, 0.36);
}

@media (max-width: 980px) {
  .platform-body .platform-shell,
  .platform-body .clinical-platform {
    display: block;
  }
  .platform-body .platform-sidebar,
  .platform-body .clinical-sidebar,
  .platform-body .soma-unified-sidebar {
    position: relative;
    height: auto;
    max-height: none;
    width: 100%;
  }
  .platform-body .platform-topbar,
  .platform-body .clinical-topbar,
  .platform-body .soma-unified-topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .platform-body .platform-plan {
    text-align: left;
  }
  .platform-body .platform-main,
  .platform-body .clinical-main {
    padding: 18px 14px;
  }
}

/* ============================================================
   AUDIT RECOVERY LOCK — SOMA internal pages 2026-05-22
   Escopado por página para travar contraste/layout sem contaminar a landing.
   ============================================================ */

@media (min-width: 981px) {
  body.platform-body .platform-shell,
  body.platform-body .clinical-platform {
    align-items: start !important;
    min-height: auto !important;
  }

  body.platform-body .platform-main,
  body.platform-body .clinical-main {
    min-width: 0 !important;
  }
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"],
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"],
body.platform-body .platform-main.crm-app .module-app-panel,
body.platform-body .platform-main.course-shell .platform-section,
body.platform-body .platform-main.learning-app {
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-shell {
  align-items: stretch !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-actions-bar {
  background: #ffffff !important;
  border: 1px solid #d8eaf1 !important;
  box-shadow: 0 18px 44px rgba(6, 19, 35, 0.08) !important;
  color: #10243a !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card h3,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card strong,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card label {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card p,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card small,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card span:not(.eyebrow) {
  color: #52677f !important;
  -webkit-text-fill-color: #52677f !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-grid input,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-grid select,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-grid textarea,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .interview-chat-input input {
  background: #f7fbfd !important;
  border: 1px solid #bfdcea !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .chip-selector button {
  background: #ecfbfc !important;
  border: 1px solid #9ee4e8 !important;
  color: #006f77 !important;
  -webkit-text-fill-color: #006f77 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .chip-selector button.is-on {
  background: linear-gradient(135deg, #02b8bf, #16c9b7) !important;
  border-color: rgba(2, 184, 191, 0.78) !important;
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .interview-chat,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .interview-chat-stream,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .interview-progress-card {
  color: #10243a !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot {
  align-self: flex-start !important;
  background: #ffffff !important;
  border: 1px solid #d8eaf1 !important;
  border-radius: 22px 22px 22px 8px !important;
  box-shadow: 0 14px 34px rgba(6, 19, 35, 0.1) !important;
  color: #10243a !important;
  max-width: min(760px, 92%) !important;
  padding: 14px 16px !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot p,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot strong,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot .chat-bubble-meta {
  color: #10243a !important;
  -webkit-text-fill-color: #10243a !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot .chat-bubble-meta {
  color: #155779 !important;
  -webkit-text-fill-color: #155779 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.user {
  background: linear-gradient(135deg, #02b8bf, #02a69e) !important;
  color: #061323 !important;
  border: 1px solid rgba(2, 184, 191, 0.8) !important;
  border-radius: 22px 22px 8px 22px !important;
  box-shadow: 0 14px 32px rgba(2, 184, 191, 0.2) !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.user p,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.user .chat-bubble-meta {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list {
  background: #071b31 !important;
  color: #eaf7fb !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(127, 231, 235, 0.18) !important;
  color: #eaf7fb !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item.is-active {
  background: rgba(2, 184, 191, 0.16) !important;
  border-color: rgba(127, 231, 235, 0.48) !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item strong,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list h3 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item small,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list header span {
  color: #bdd6e6 !important;
  -webkit-text-fill-color: #bdd6e6 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-side-panel,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-fields-card,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comments-card {
  background: #ffffff !important;
  border: 1px solid #d8eaf1 !important;
  color: #10243a !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-side-panel h3,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-fields-card label,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comments-card strong {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comment,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-fields-card input {
  background: #f7fbfd !important;
  border: 1px solid #bfdcea !important;
  color: #10243a !important;
  -webkit-text-fill-color: #10243a !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper-meta {
  background: transparent !important;
  border: 0 !important;
  color: #52677f !important;
  display: block !important;
  font-size: clamp(12px, 0.78vw, 14px) !important;
  line-height: 1.55 !important;
  margin: 10px 0 22px !important;
  padding: 0 !important;
  -webkit-text-fill-color: #52677f !important;
}

body.platform-body .platform-main.crm-app .module-app-panel {
  background: transparent !important;
  color: #10243a !important;
}

body.platform-body .platform-main.crm-app .crm-wa-list,
body.platform-body .platform-main.crm-app .crm-wa-chat,
body.platform-body .platform-main.crm-app .crm-wa-chat-stream,
body.platform-body .platform-main.crm-app .crm-contacts-shell,
body.platform-body .platform-main.crm-app .crm-kanban-col,
body.platform-body .platform-main.crm-app .metric-card {
  background: #ffffff !important;
  border: 1px solid #d8eaf1 !important;
  color: #10243a !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.crm-app .crm-wa-list h4,
body.platform-body .platform-main.crm-app .crm-wa-conv strong,
body.platform-body .platform-main.crm-app .crm-wa-chat-head strong,
body.platform-body .platform-main.crm-app .crm-kanban-col h4,
body.platform-body .platform-main.crm-app .metric-card h4,
body.platform-body .platform-main.crm-app .metric-card strong {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.crm-app .crm-wa-conv small,
body.platform-body .platform-main.crm-app .crm-wa-time,
body.platform-body .platform-main.crm-app .crm-wa-chat-head span,
body.platform-body .platform-main.crm-app .metric-card p,
body.platform-body .platform-main.crm-app .metric-card span:not(.ch-dot) {
  color: #52677f !important;
  -webkit-text-fill-color: #52677f !important;
}

body.platform-body .platform-main.crm-app .wa-bubble.in {
  background: #f5f9fc !important;
  border: 1px solid #d8e3ee !important;
  color: #10243a !important;
}

body.platform-body .platform-main.crm-app .wa-bubble.out {
  background: linear-gradient(135deg, #02b8bf, #02a69e) !important;
  color: #061323 !important;
}

body.platform-body .platform-main.crm-app .wa-bubble p,
body.platform-body .platform-main.crm-app .wa-bubble span {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

body.platform-body .platform-main.learning-app .learning-back-link {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(127, 231, 235, 0.36) !important;
  color: #eaf7fb !important;
  -webkit-text-fill-color: #eaf7fb !important;
}

body.platform-body .course-shell .course-topic-grid {
  align-items: stretch !important;
}

body.platform-body .course-shell .course-topic-card {
  min-height: clamp(230px, 22vw, 286px) !important;
  display: grid !important;
  grid-template-rows: auto auto 1fr !important;
  align-content: stretch !important;
  padding: clamp(24px, 2.4vw, 34px) !important;
}

/* Critical scoped overrides against legacy important rules. */
.platform-body .module-app-tabs {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid #d8eaf1 !important;
  border-radius: 18px !important;
  padding: 6px !important;
}
.platform-body .module-app-tabs button {
  min-height: 44px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: #155779 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #155779 !important;
}
.platform-body .module-app-tabs button * {
  color: inherit !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}
.platform-body .module-app-tabs button.is-active,
.platform-body .module-app-tabs button[aria-selected="true"] {
  background: #dffbfb !important;
  border-color: rgba(2, 184, 191, 0.42) !important;
  color: #008e95 !important;
  -webkit-text-fill-color: #008e95 !important;
}
.platform-body .module-app-header .button,
.platform-body .module-app-header button {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
  text-shadow: none !important;
}
.platform-body .module-app-header .button.primary,
.platform-body .module-app-header button.primary {
  background: linear-gradient(135deg, #02b8bf, #27d0cc) !important;
  border-color: rgba(2, 184, 191, 0.48) !important;
}
.platform-body .module-app-header .button.secondary,
.platform-body .module-app-header button.secondary {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(127, 231, 235, 0.34) !important;
}

/* ============================================================
   PAGE-SCOPED FINISH -- platform modules
   ============================================================ */
body.platform-body .platform-main.estrutura-app .interview-progress-card,
body.platform-body .platform-main.estrutura-app .interview-stepper,
body.platform-body .platform-main.estrutura-app .chat-workspace,
body.platform-body .platform-main.estrutura-app .module-card,
body.platform-body .platform-main.estrutura-app .library-card {
  color: #10243a !important;
  -webkit-text-fill-color: currentColor !important;
}

body.platform-body .platform-main.estrutura-app .interview-progress-card p,
body.platform-body .platform-main.estrutura-app .interview-stepper li,
body.platform-body .platform-main.estrutura-app .interview-stepper strong,
body.platform-body .platform-main.estrutura-app .interview-stepper small,
body.platform-body .platform-main.estrutura-app .chat-workspace p,
body.platform-body .platform-main.estrutura-app .module-card p,
body.platform-body .platform-main.estrutura-app .library-card p {
  color: #334155 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #334155 !important;
}

body.platform-body .platform-main.estrutura-app .interview-stepper li.is-current strong,
body.platform-body .platform-main.estrutura-app .interview-stepper li.is-done strong,
body.platform-body .platform-main.estrutura-app .interview-progress-card h2,
body.platform-body .platform-main.estrutura-app .interview-progress-card h3 {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.estrutura-app .chat-bubble,
body.platform-body .platform-main.estrutura-app .answer-chip {
  color: #10243a !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #10243a !important;
}

body.platform-body .platform-main.estrutura-app .answer-chip {
  background: #dffbfb !important;
  border: 1px solid rgba(2, 184, 191, 0.32) !important;
}

body.platform-body .platform-main.estrutura-app .module-app-header,
body.platform-body .platform-main.crm-app .module-app-header {
  padding: clamp(30px, 3.6vw, 48px) !important;
  overflow: hidden !important;
}

body.platform-body .platform-main.estrutura-app .module-app-header p,
body.platform-body .platform-main.crm-app .module-app-header p {
  color: rgba(232, 246, 250, 0.86) !important;
  text-shadow: none !important;
}

/* ============================================================
   PAGE-SCOPED FINISH -- module header contrast
   ============================================================ */
body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-header,
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: clamp(18px, 3vw, 32px) !important;
  min-height: 168px !important;
  padding: clamp(22px, 3vw, 38px) clamp(32px, 4vw, 52px) !important;
  border-radius: 28px !important;
  background: linear-gradient(135deg, #061323 0%, #071b31 62%, #0b314b 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(127, 231, 235, 0.24) !important;
  box-shadow: 0 26px 70px rgba(6, 19, 35, 0.16) !important;
  overflow: hidden !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-header > div:first-child,
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header > div:first-child {
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-header .eyebrow,
body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-header .module-app-eyebrow,
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header .eyebrow,
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header .module-app-eyebrow {
  display: block !important;
  margin: 0 0 10px !important;
  color: #7fe7eb !important;
  letter-spacing: 0.14em !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-header h1,
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header h1 {
  margin: 0 0 10px !important;
  max-width: 860px !important;
  color: #ffffff !important;
  line-height: 1.04 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-header p,
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header p {
  max-width: 820px !important;
  margin: 0 !important;
  color: rgba(232, 246, 250, 0.88) !important;
  line-height: 1.55 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: rgba(232, 246, 250, 0.88) !important;
}

@media (max-width: 900px) {
  body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-header,
  body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
}

/* Keep CRM hero text from being squeezed by the action buttons. */
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header {
  grid-template-columns: 1fr !important;
}

body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header h1 {
  max-width: 980px !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header > div:last-child {
  justify-self: start !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

/* SOMA final scoped visual corrections requested 2026-05-20 */
body.platform-body .platform-main.is-overview .integration-stage {
  padding: clamp(22px, 3vw, 34px) !important;
}

body.platform-body .platform-main.is-overview .integration-flowline {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  gap: clamp(14px, 1.6vw, 20px) !important;
  align-items: stretch !important;
}

body.platform-body .platform-main.is-overview .integration-flowline article {
  position: relative !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 18px 18px 20px !important;
  border-radius: 22px !important;
  display: grid !important;
  grid-template-rows: auto auto 1fr !important;
  gap: 14px !important;
  overflow: visible !important;
}

body.platform-body .platform-main.is-overview .integration-flowline article > span:first-child {
  grid-row: 1 !important;
  grid-column: 1 !important;
  justify-self: start !important;
  align-self: start !important;
  width: 54px !important;
  height: 42px !important;
  min-width: 54px !important;
  margin: 0 !important;
  border-radius: 13px !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

body.platform-body .platform-main.is-overview .integration-flowline article::before {
  grid-row: 1 !important;
  grid-column: 1 !important;
  justify-self: end !important;
  align-self: start !important;
  width: 54px !important;
  height: 54px !important;
  margin: 0 !important;
  border-radius: 16px !important;
  background-size: 25px 25px !important;
}

body.platform-body .platform-main.is-overview .integration-flowline article:not(:last-child)::after {
  right: -16px !important;
  top: 45% !important;
}

body.platform-body .platform-main.is-overview .integration-flowline article strong {
  margin: 22px 0 0 !important;
  color: #061323 !important;
  font-size: clamp(18px, 1.45vw, 23px) !important;
  line-height: 1.08 !important;
}

body.platform-body .platform-main.is-overview .integration-flowline article p {
  margin: 0 !important;
  color: #52657c !important;
  font-size: clamp(15px, 1vw, 18px) !important;
  line-height: 1.44 !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-header,
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header,
body.platform-body .platform-main.is-overview .dashboard-hero {
  background:
    linear-gradient(135deg, rgba(6, 19, 35, 0.93), rgba(7, 27, 49, 0.76)),
    url("assets/qualificacao-bg.png") center / cover no-repeat !important;
}

body.platform-body .learning-app .learning-header {
  min-height: 260px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: clamp(20px, 4vw, 48px) !important;
  padding: clamp(34px, 4vw, 56px) !important;
  background:
    linear-gradient(135deg, rgba(6, 19, 35, 0.88), rgba(7, 27, 49, 0.58)),
    url("assets/blue-background-6.png") center / cover no-repeat !important;
  color: #ffffff !important;
  overflow: hidden !important;
}

body.platform-body .learning-app .learning-header h1,
body.platform-body .learning-app .learning-header p,
body.platform-body .learning-app .learning-header span {
  color: #ffffff !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

body.platform-body .learning-app .learning-header .eyebrow {
  color: #7fe7eb !important;
}

body.platform-body .learning-app .learning-header .module-app-toolbar {
  justify-self: end !important;
  align-self: end !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

body.platform-body .learning-app .learning-side-card,
body.platform-body .learning-app .learning-player-meta {
  background:
    linear-gradient(145deg, rgba(6, 19, 35, 0.94), rgba(7, 27, 49, 0.78)),
    url("assets/blue-background-6.png") center / cover no-repeat !important;
  border: 1px solid rgba(127, 231, 235, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 24px 60px rgba(6, 19, 35, 0.16) !important;
}

body.platform-body .learning-app .learning-side-card h2,
body.platform-body .learning-app .learning-player-meta span,
body.platform-body .learning-app .learning-player-meta strong,
body.platform-body .learning-app .learning-player-meta p {
  color: #ffffff !important;
  -webkit-text-fill-color: currentColor !important;
}

/* Sidebar "Trilha do curso" é estilizada pelo acordeão em page-learning.css
   (.lm-subtema / .lm-st-* / .lm-lesson). As regras antigas de lista PLANA
   (.learning-module-list li / li span) foram removidas: pintavam um "quadro"
   teal atrás do texto dos spans do acordeão (acabamento incorreto). */

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-tabs,
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-tabs {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid #d8eaf1 !important;
  box-shadow: 0 14px 34px rgba(6, 19, 35, 0.08) !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-tabs button,
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-tabs button {
  color: #155779 !important;
  -webkit-text-fill-color: #155779 !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-tabs button *,
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-tabs button * {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-tabs button.is-active,
body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-tabs button[aria-selected="true"],
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-tabs button.is-active,
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, #dffbfb, #ffffff) !important;
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
  border-color: rgba(2, 184, 191, 0.42) !important;
}

body.platform-body .platform-main.estrutura-app .module-app-panel,
body.platform-body .platform-main.crm-app .module-app-panel {
  color: #10243a !important;
  text-shadow: none !important;
}

body.platform-body .platform-main.estrutura-app .module-app-panel svg,
body.platform-body .platform-main.crm-app .module-app-panel svg {
  color: #02b8bf !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

body.platform-body .platform-main.estrutura-app .context-form-card,
body.platform-body .platform-main.estrutura-app .module-card,
body.platform-body .platform-main.estrutura-app .library-card,
body.platform-body .platform-main.crm-app .crm-card,
body.platform-body .platform-main.crm-app .crm-panel,
body.platform-body .platform-main.crm-app .journey-card {
  background: #ffffff !important;
  color: #10243a !important;
  border: 1px solid #d8eaf1 !important;
}

body.platform-body .platform-main.estrutura-app .context-form-card h3,
body.platform-body .platform-main.estrutura-app .module-card h3,
body.platform-body .platform-main.estrutura-app .library-card h4,
body.platform-body .platform-main.crm-app .crm-card h3,
body.platform-body .platform-main.crm-app .crm-panel h3,
body.platform-body .platform-main.crm-app .journey-card h3 {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.estrutura-app .context-form-card p,
body.platform-body .platform-main.estrutura-app .module-card p,
body.platform-body .platform-main.estrutura-app .library-card p,
body.platform-body .platform-main.crm-app .crm-card p,
body.platform-body .platform-main.crm-app .crm-panel p,
body.platform-body .platform-main.crm-app .journey-card p {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

@media (max-width: 1180px) {
  body.platform-body .platform-main.is-overview .integration-flowline {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.platform-body .platform-main.is-overview .integration-flowline {
    grid-template-columns: 1fr !important;
  }
  body.platform-body .learning-app .learning-header {
    grid-template-columns: 1fr !important;
  }
  body.platform-body .learning-app .learning-header .module-app-toolbar {
    justify-self: start !important;
  }
}

/* SOMA CRM scoped contrast correction requested 2026-05-20 */
body.platform-body .platform-main.crm-app {
  color: #10243a !important;
  text-shadow: none !important;
}

body.platform-body .platform-main.crm-app .module-app-header {
  background:
    linear-gradient(135deg, rgba(6, 19, 35, 0.94), rgba(7, 27, 49, 0.78)),
    url("assets/qualificacao-bg.png") center / cover no-repeat !important;
  color: #ffffff !important;
  border: 1px solid rgba(127, 231, 235, 0.2) !important;
}

body.platform-body .platform-main.crm-app .module-app-header h1,
body.platform-body .platform-main.crm-app .module-app-header p,
body.platform-body .platform-main.crm-app .module-app-header .module-app-eyebrow,
body.platform-body .platform-main.crm-app .module-app-header .eyebrow {
  color: #ffffff !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body.platform-body .platform-main.crm-app .module-app-header .module-app-eyebrow,
body.platform-body .platform-main.crm-app .module-app-header .eyebrow {
  color: #7fe7eb !important;
  -webkit-text-fill-color: #7fe7eb !important;
}

body.platform-body .platform-main.crm-app .module-app-panel,
body.platform-body .platform-main.crm-app .crm-kanban,
body.platform-body .platform-main.crm-app .crm-contacts-shell,
body.platform-body .platform-main.crm-app .crm-wa-panel,
body.platform-body .platform-main.crm-app .crm-metrics-grid {
  color: #10243a !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

body.platform-body .platform-main.crm-app .crm-kpi,
body.platform-body .platform-main.crm-app .crm-kanban-toolbar,
body.platform-body .platform-main.crm-app .crm-kanban-col,
body.platform-body .platform-main.crm-app .crm-card,
body.platform-body .platform-main.crm-app .crm-contacts-shell,
body.platform-body .platform-main.crm-app .crm-wa-list,
body.platform-body .platform-main.crm-app .crm-wa-chat,
body.platform-body .platform-main.crm-app .metric-card,
body.platform-body .platform-main.crm-app .journey-card,
body.platform-body .platform-main.crm-app .crm-panel {
  background: #ffffff !important;
  border: 1px solid #d8eaf1 !important;
  color: #10243a !important;
  -webkit-text-fill-color: currentColor !important;
  box-shadow: 0 16px 38px rgba(6, 19, 35, 0.08) !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body.platform-body .platform-main.crm-app .crm-kanban-col {
  background: #f8fbfd !important;
}

body.platform-body .platform-main.crm-app .crm-kpi strong,
body.platform-body .platform-main.crm-app .crm-kanban-col h4,
body.platform-body .platform-main.crm-app .crm-card-top strong,
body.platform-body .platform-main.crm-app .crm-card h3,
body.platform-body .platform-main.crm-app .crm-panel h3,
body.platform-body .platform-main.crm-app .journey-card h3,
body.platform-body .platform-main.crm-app .crm-wa-list h4,
body.platform-body .platform-main.crm-app .crm-wa-conv strong,
body.platform-body .platform-main.crm-app .crm-wa-chat-head strong,
body.platform-body .platform-main.crm-app .crm-contacts-table th,
body.platform-body .platform-main.crm-app .metric-card h4 {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body.platform-body .platform-main.crm-app .crm-kpi span,
body.platform-body .platform-main.crm-app .crm-kpi small,
body.platform-body .platform-main.crm-app .crm-kanban-col header span,
body.platform-body .platform-main.crm-app .crm-card p,
body.platform-body .platform-main.crm-app .crm-card .time-tag,
body.platform-body .platform-main.crm-app .crm-panel p,
body.platform-body .platform-main.crm-app .journey-card p,
body.platform-body .platform-main.crm-app .crm-wa-conv small,
body.platform-body .platform-main.crm-app .crm-wa-time,
body.platform-body .platform-main.crm-app .crm-contacts-table td,
body.platform-body .platform-main.crm-app .metric-bar-row span {
  color: #52657c !important;
  -webkit-text-fill-color: #52657c !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body.platform-body .platform-main.crm-app .crm-kpi small.up {
  color: #16a672 !important;
  -webkit-text-fill-color: #16a672 !important;
}

body.platform-body .platform-main.crm-app .crm-kpi small.down {
  color: #0f766e !important;
  -webkit-text-fill-color: #0f766e !important;
}

body.platform-body .platform-main.crm-app .crm-search,
body.platform-body .platform-main.crm-app .crm-wa-search input,
body.platform-body .platform-main.crm-app .crm-wa-input input {
  background: #ffffff !important;
  border: 1px solid #d8eaf1 !important;
  color: #10243a !important;
  -webkit-text-fill-color: #10243a !important;
  box-shadow: 0 10px 24px rgba(6, 19, 35, 0.05) !important;
}

body.platform-body .platform-main.crm-app .crm-search::placeholder,
body.platform-body .platform-main.crm-app .crm-wa-search input::placeholder,
body.platform-body .platform-main.crm-app .crm-wa-input input::placeholder {
  color: #6b7c90 !important;
  -webkit-text-fill-color: #6b7c90 !important;
}

body.platform-body .platform-main.crm-app .module-app-tabs,
body.platform-body .platform-main.crm-app .crm-filter-chips {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: #d8eaf1 !important;
}

body.platform-body .platform-main.crm-app .module-app-tabs button,
body.platform-body .platform-main.crm-app .crm-filter-chips button,
body.platform-body .platform-main.crm-app .crm-wa-templates button,
body.platform-body .platform-main.crm-app .crm-card-foot button {
  background: #f5f9fc !important;
  border: 1px solid #bfe8ec !important;
  color: #008e95 !important;
  -webkit-text-fill-color: #008e95 !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body.platform-body .platform-main.crm-app .module-app-tabs button.is-active,
body.platform-body .platform-main.crm-app .module-app-tabs button[aria-selected="true"],
body.platform-body .platform-main.crm-app .crm-filter-chips button.is-on,
body.platform-body .platform-main.crm-app .crm-card-foot button:hover,
body.platform-body .platform-main.crm-app .crm-wa-templates button:hover {
  background: #dffbfb !important;
  border-color: rgba(2, 184, 191, 0.42) !important;
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.crm-app .wa-badge,
body.platform-body .platform-main.crm-app .score-tag,
body.platform-body .platform-main.crm-app .stage-pill,
body.platform-body .platform-main.crm-app .crm-tag {
  background: #dffbfb !important;
  border-color: rgba(2, 184, 191, 0.35) !important;
  color: #008e95 !important;
  -webkit-text-fill-color: #008e95 !important;
}

/* SOMA CRM high contrast hardening requested 2026-05-20 */
body.platform-body .platform-main.crm-app {
  background: #eef7fa !important;
}

body.platform-body .platform-main.crm-app .module-app-header {
  position: relative !important;
  isolation: isolate !important;
  background:
    linear-gradient(135deg, rgba(6, 19, 35, 0.98), rgba(7, 27, 49, 0.94)),
    url("assets/qualificacao-bg.png") center / cover no-repeat !important;
  border: 1px solid rgba(127, 231, 235, 0.28) !important;
  box-shadow: 0 24px 60px rgba(6, 19, 35, 0.18) !important;
}

body.platform-body .platform-main.crm-app .module-app-header > * {
  position: relative !important;
  z-index: 1 !important;
}

body.platform-body .platform-main.crm-app .module-app-header h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 900 !important;
}

body.platform-body .platform-main.crm-app .module-app-header p {
  color: #dcebf5 !important;
  -webkit-text-fill-color: #dcebf5 !important;
  max-width: 760px !important;
}

body.platform-body .platform-main.crm-app .module-app-header .module-app-eyebrow,
body.platform-body .platform-main.crm-app .module-app-header .eyebrow {
  color: #7fe7eb !important;
  -webkit-text-fill-color: #7fe7eb !important;
}

body.platform-body .platform-main.crm-app .crm-kpi,
body.platform-body .platform-main.crm-app .module-app-tabs,
body.platform-body .platform-main.crm-app .crm-kanban-toolbar,
body.platform-body .platform-main.crm-app .crm-kanban-col,
body.platform-body .platform-main.crm-app .crm-card {
  background: #ffffff !important;
  border-color: #c9dfea !important;
  color: #061323 !important;
  -webkit-text-fill-color: currentColor !important;
}

body.platform-body .platform-main.crm-app .crm-kpi span,
body.platform-body .platform-main.crm-app .crm-kanban-col header span,
body.platform-body .platform-main.crm-app .crm-card p,
body.platform-body .platform-main.crm-app .crm-card .time-tag {
  color: #3f536b !important;
  -webkit-text-fill-color: #3f536b !important;
}

body.platform-body .platform-main.crm-app .crm-search {
  background: #ffffff !important;
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.crm-app .crm-filter-chips button,
body.platform-body .platform-main.crm-app .module-app-tabs button,
body.platform-body .platform-main.crm-app .crm-card-foot button {
  background: #f6fbfd !important;
  color: #075e69 !important;
  -webkit-text-fill-color: #075e69 !important;
}

/* SOMA CRM contrast accessibility closure requested 2026-05-20 */
body.platform-body .platform-main.crm-app .module-app-header {
  background-color: #061323 !important;
}

body.platform-body .platform-main.crm-app .module-status-pill {
  background: #dffbfb !important;
  border-color: rgba(127, 231, 235, 0.5) !important;
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
  font-weight: 800 !important;
}

body.platform-body .platform-main.crm-app .crm-kpi small.up,
body.platform-body .platform-main.crm-app .crm-kpi small.down {
  color: #087a59 !important;
  -webkit-text-fill-color: #087a59 !important;
  font-weight: 800 !important;
}

body.platform-body .platform-main.crm-app .clinical-menu-badge {
  background: #ef4444 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.platform-body .platform-main.crm-app .avatar-mini {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
  font-weight: 900 !important;
}

/* SOMA targeted final visual corrections 2026-05-20 */
body.platform-body.soma-platform-unified .platform-main.learning-app .learning-header {
  min-height: 250px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: clamp(18px, 3vw, 42px) !important;
  padding: clamp(34px, 4vw, 56px) !important;
  background:
    linear-gradient(135deg, rgba(6, 19, 35, 0.92), rgba(7, 27, 49, 0.66)),
    url("assets/blue-background-6.png") center / cover no-repeat !important;
  color: #ffffff !important;
  border: 1px solid rgba(127, 231, 235, 0.22) !important;
  box-shadow: 0 24px 60px rgba(6, 19, 35, 0.16) !important;
  overflow: hidden !important;
}

body.platform-body.soma-platform-unified .platform-main.learning-app .learning-header h1,
body.platform-body.soma-platform-unified .platform-main.learning-app .learning-header p {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}

body.platform-body.soma-platform-unified .platform-main.learning-app .learning-header .eyebrow {
  color: #7fe7eb !important;
  -webkit-text-fill-color: #7fe7eb !important;
}

body.platform-body.soma-platform-unified .platform-main.learning-app .learning-header .module-app-toolbar {
  align-self: end !important;
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

body.platform-body.soma-platform-unified .platform-main.learning-app .learning-side-card,
body.platform-body.soma-platform-unified .platform-main.learning-app .learning-player-meta {
  background:
    linear-gradient(145deg, rgba(6, 19, 35, 0.94), rgba(7, 27, 49, 0.78)),
    url("assets/blue-background-6.png") center / cover no-repeat !important;
  color: #ffffff !important;
  border: 1px solid rgba(127, 231, 235, 0.24) !important;
  box-shadow: 0 24px 60px rgba(6, 19, 35, 0.14) !important;
}

body.platform-body.soma-platform-unified .platform-main.learning-app .learning-side-card h2,
body.platform-body.soma-platform-unified .platform-main.learning-app .learning-player-meta span,
body.platform-body.soma-platform-unified .platform-main.learning-app .learning-player-meta strong,
body.platform-body.soma-platform-unified .platform-main.learning-app .learning-player-meta p {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.platform-body.soma-platform-unified .platform-main.learning-app .learning-module-list li {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(127, 231, 235, 0.25) !important;
}

body.platform-body.soma-platform-unified .platform-main.learning-app .learning-module-list li strong,
body.platform-body.soma-platform-unified .platform-main.learning-app .learning-module-list li small {
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-header {
  background:
    linear-gradient(135deg, rgba(6, 19, 35, 0.96), rgba(7, 27, 49, 0.82)),
    url("assets/qualificacao-bg.png") center / cover no-repeat !important;
  color: #ffffff !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-header h1,
body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-header p {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-header .eyebrow {
  color: #7fe7eb !important;
  -webkit-text-fill-color: #7fe7eb !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-app-tabs,
body.platform-body.soma-platform-unified .platform-main.estrutura-app .context-form-card,
body.platform-body.soma-platform-unified .platform-main.estrutura-app .module-card,
body.platform-body.soma-platform-unified .platform-main.estrutura-app .library-card,
body.platform-body.soma-platform-unified .platform-main.estrutura-app .interview-chat-input {
  background: #ffffff !important;
  border-color: #d8eaf1 !important;
  color: #10243a !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .interview-chat-input {
  border-radius: 22px !important;
  padding: 12px !important;
  box-shadow: 0 16px 34px rgba(6, 19, 35, 0.08) !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .interview-chat-input input {
  background: #f8fbfd !important;
  border: 1px solid #b8d8e5 !important;
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .interview-chat-input input::placeholder {
  color: #5c6f86 !important;
  -webkit-text-fill-color: #5c6f86 !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .library-card {
  min-height: 342px !important;
  gap: 12px !important;
  padding: 16px !important;
  overflow: hidden !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .library-card figure.library-icon {
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  border-radius: 18px !important;
  margin: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(127, 231, 235, 0.22) !important;
  box-shadow: 0 18px 34px rgba(6, 19, 35, 0.12) !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .library-card figure.library-icon span {
  display: none !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app .library-icon-pop { background-image: url("assets/icon-pop.png") !important; }
body.platform-body.soma-platform-unified .platform-main.estrutura-app .library-icon-tcle { background-image: url("assets/icon-tcle.png") !important; }
body.platform-body.soma-platform-unified .platform-main.estrutura-app .library-icon-flow { background-image: url("assets/icon-fluxo.png") !important; }
body.platform-body.soma-platform-unified .platform-main.estrutura-app .library-icon-check { background-image: url("assets/icon-checklist.png") !important; }
body.platform-body.soma-platform-unified .platform-main.estrutura-app .library-icon-pgrss { background-image: url("assets/icon-pgrss.png") !important; }
body.platform-body.soma-platform-unified .platform-main.estrutura-app .library-icon-croqui { background-image: url("assets/icon-croqui.png") !important; }
body.platform-body.soma-platform-unified .platform-main.estrutura-app .library-icon-manual { background-image: url("assets/icon-manual.png") !important; }

body.platform-body.soma-platform-unified .platform-main.estrutura-app .library-card .doc-status {
  position: static !important;
  align-self: flex-start !important;
  margin-top: auto !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}

body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header {
  background-color: #061323 !important;
  background-image: linear-gradient(135deg, rgba(6, 19, 35, 0.98), rgba(7, 27, 49, 0.94)) !important;
}

body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header .module-app-subtitle {
  color: #dcebf5 !important;
  -webkit-text-fill-color: #dcebf5 !important;
}

body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header .eyebrow {
  color: #7fe7eb !important;
  -webkit-text-fill-color: #7fe7eb !important;
}

body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-tabs .clinical-menu-badge,
body.platform-body.soma-platform-unified .platform-main.crm-app .clinical-menu-badge {
  background: #ef4444 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* SOMA targeted CRM header image background 2026-05-20 */
body.platform-body.soma-platform-unified .platform-main.crm-app .module-app-header {
  background:
    linear-gradient(135deg, rgba(6, 19, 35, 0.98), rgba(7, 27, 49, 0.88)),
    url("assets/qualificacao-bg.png") center / cover no-repeat !important;
}

/* SOMA targeted learning back button 2026-05-21 */
body.platform-body .platform-main.learning-app .learning-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(127, 231, 235, 0.36);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.platform-body .platform-main.learning-app .learning-back-link:hover,
body.platform-body .platform-main.learning-app .learning-back-link:focus-visible {
  background: rgba(127, 231, 235, 0.18);
  border-color: rgba(127, 231, 235, 0.62);
}

/* SOMA targeted learning back button contrast 2026-05-21 */
body.platform-body .platform-main.learning-app .module-app-toolbar a.learning-back-link.btn-secondary {
  background: rgba(6, 19, 35, 0.68) !important;
  border-color: rgba(127, 231, 235, 0.52) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.platform-body .platform-main.learning-app .module-app-toolbar a.learning-back-link.btn-secondary:hover,
body.platform-body .platform-main.learning-app .module-app-toolbar a.learning-back-link.btn-secondary:focus-visible {
  background: rgba(2, 184, 191, 0.22) !important;
  border-color: rgba(127, 231, 235, 0.78) !important;
}

/* SOMA targeted course topic cards 2026-05-21 */
body.platform-body .course-shell .course-topic-grid {
  align-items: stretch !important;
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Fundo data-driven: a CAPA de cada card vem do estilo inline gerado por
   SOMACourses.cardStyle (thumbnailImage do curso). Aqui definimos apenas o
   enquadramento (cover/center) e um fallback neutro — SEM !important em
   background-image — para que a imagem real do curso sempre prevaleça.
   (Antes havia capas fixas por nth-child com !important, que sobrescreviam a
   capa real do curso; ex.: o 4º card forçava blue-background-6.png.) */
body.platform-body .course-shell .course-topic-card {
  background-color: #071b31;
  background-image:
    linear-gradient(165deg, rgba(5, 11, 23, 0.82) 0%, rgba(7, 27, 49, 0.72) 100%),
    url("assets/training-room-1.jpeg");
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border: 1px solid rgba(127, 231, 235, 0.24) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 320px !important;
  padding: 24px !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

body.platform-body .course-shell .course-topic-card .course-chip {
  align-self: flex-start !important;
  background: transparent !important;
  border: 0 !important;
  /* Turquesa igual à eyebrow do slide ("Segurança"): o token --cyan-300 não
     existe e fazia o chip cair para o branco herdado do card. */
  color: #7FE7EB !important;
  display: inline-block !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  text-transform: uppercase !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35) !important;
}

body.platform-body .course-shell .course-topic-card h3 {
  color: #ffffff !important;
  font-size: 1.8rem !important;
  line-height: 1.06 !important;
  margin: 0 0 12px !important;
  max-width: 420px !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35) !important;
}

body.platform-body .course-shell .course-topic-card p {
  color: rgba(255, 255, 255, 0.8) !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  max-width: 420px !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28) !important;
}

body.platform-body .course-shell .course-topic-card::after {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #008e91;
  content: "→";
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-top: auto;
  width: 34px;
}

@media (max-width: 1120px) {
  body.platform-body .course-shell .course-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  body.platform-body .course-shell .course-topic-grid {
    grid-template-columns: 1fr !important;
  }

  body.platform-body .course-shell .course-topic-card {
    min-height: 260px !important;
  }
}

/* SOMA targeted course topic grid refinement 2026-05-21 */
body.platform-body .course-shell .course-topic-grid {
  grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
}

@media (max-width: 1120px) {
  body.platform-body .course-shell .course-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  body.platform-body .course-shell .course-topic-grid {
    grid-template-columns: 1fr !important;
  }
}

/* SOMA targeted structure studio contrast 2026-05-21 */
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] {
  color: #eaf7fb;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-pro-layout {
  background:
    linear-gradient(135deg, rgba(6, 19, 35, 0.96), rgba(7, 27, 49, 0.92)),
    url("assets/qualificacao-bg.png") center / cover no-repeat;
  border: 1px solid rgba(127, 231, 235, 0.24);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(6, 19, 35, 0.18);
  color: #eaf7fb;
  padding: clamp(16px, 2vw, 24px);
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-side-panel,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-fields-card,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comments-card {
  background: rgba(8, 31, 54, 0.84);
  border: 1px solid rgba(127, 231, 235, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list header h3,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas-header h3,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item strong,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comment strong {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list header span,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item small,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comment p {
  color: #c8d8e7;
  -webkit-text-fill-color: #c8d8e7;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item {
  background: rgba(6, 19, 35, 0.58);
  border: 1px solid rgba(127, 231, 235, 0.16);
  color: #ffffff;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item:hover,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item.is-active {
  background: rgba(2, 184, 191, 0.16);
  border-color: rgba(127, 231, 235, 0.54);
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-status {
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
  max-width: 100%;
  padding: 0.38rem 0.58rem;
  white-space: nowrap;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-status-edit {
  background: #fff2cc;
  color: #7a4e00;
  -webkit-text-fill-color: #7a4e00;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-status-review {
  background: #dbeafe;
  color: #1e3a8a;
  -webkit-text-fill-color: #1e3a8a;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-status-ready {
  background: #dcfce7;
  color: #166534;
  -webkit-text-fill-color: #166534;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas-header {
  background: rgba(6, 19, 35, 0.72);
  border-bottom: 1px solid rgba(127, 231, 235, 0.18);
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-version-pill,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas-toolbar .icon-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #eaf7fb;
  -webkit-text-fill-color: #eaf7fb;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas-toolbar .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(127, 231, 235, 0.34);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview {
  background: radial-gradient(circle at top, rgba(127, 231, 235, 0.12), rgba(6, 19, 35, 0.22) 42%, rgba(6, 19, 35, 0.08));
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper {
  background: #ffffff;
  color: #0b1628;
  -webkit-text-fill-color: initial;
  border: 1px solid rgba(216, 234, 241, 0.95);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper h1,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper h2,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper h3,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper p,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper li,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper strong {
  color: #0b1628;
  -webkit-text-fill-color: #0b1628;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper-header span {
  color: #52677f;
  -webkit-text-fill-color: #52677f;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper-ver {
  background: #dff8f5;
  color: #087f84;
  -webkit-text-fill-color: #087f84;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper-alert {
  background: #fff8e8;
  border-color: #f1c36d;
  color: #624200;
  -webkit-text-fill-color: #624200;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-fields-card label {
  color: #dcebf5;
  -webkit-text-fill-color: #dcebf5;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-fields-card input {
  background: #f7fbfd;
  border: 1px solid #b9d9e5;
  color: #061323;
  -webkit-text-fill-color: #061323;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comment {
  background: rgba(6, 19, 35, 0.54);
  border-left-color: #02b8bf;
}

@media (max-width: 1180px) {
  body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-pro-layout,
  body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas-body {
    grid-template-columns: 1fr;
  }
}

/* SOMA structure studio specificity guard 2026-05-21 */
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comment p,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list header span,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item small {
  color: #dcebf5 !important;
  -webkit-text-fill-color: #dcebf5 !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper p,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper li {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper h1,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper h2,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper h3,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper strong {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper-header span {
  color: #52677f !important;
  -webkit-text-fill-color: #52677f !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper-alert {
  background: #fff8e8 !important;
  border-color: #f1c36d !important;
  color: #624200 !important;
  -webkit-text-fill-color: #624200 !important;
}

/* SOMA structure studio responsive canvas 2026-05-21 */
@media (max-width: 1500px) {
  body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas-body {
    grid-template-columns: 1fr;
  }

  body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-side-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper {
    max-width: 820px;
  }
}

@media (max-width: 980px) {
  body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-pro-layout,
  body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-side-panel {
    grid-template-columns: 1fr;
  }
}

/* SOMA doc paper meta softening 2026-05-21 */
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper-meta {
  background: transparent !important;
  border-top: 1px solid #d8e3ee !important;
  border-bottom: 1px solid #e7eef5 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px 18px !important;
  margin: 0 0 18px !important;
  padding: 10px 0 12px !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper-meta span {
  align-items: baseline !important;
  color: #52677f !important;
  display: inline-flex !important;
  font-size: 0.76rem !important;
  gap: 4px !important;
  line-height: 1.35 !important;
  -webkit-text-fill-color: #52677f !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-paper-meta strong {
  color: #155779 !important;
  font-weight: 800 !important;
  -webkit-text-fill-color: #155779 !important;
}

/* SOMA doc paper meta span reset 2026-05-21 */
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper .doc-paper-meta span {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #52677f !important;
  display: inline-flex !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  -webkit-text-fill-color: #52677f !important;
}

/* SOMA doc paper meta inline refinement 2026-05-21 */
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper .doc-paper-meta {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
  font-size: 0.72rem !important;
  line-height: 1.55 !important;
  margin: -2px 0 14px !important;
  padding: 0 0 10px !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper .doc-paper-meta span {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #64748b !important;
  display: inline !important;
  font-size: inherit !important;
  line-height: inherit !important;
  padding: 0 !important;
  -webkit-text-fill-color: #64748b !important;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper .doc-paper-meta span + span::before {
  color: #b6c4d2 !important;
  content: " • ";
  margin: 0 4px;
}

body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper .doc-paper-meta strong {
  color: #52677f !important;
  display: inline !important;
  font-size: inherit !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  text-transform: none !important;
  -webkit-text-fill-color: #52677f !important;
}

/* SOMA doc paper meta single-line 2026-05-21 */
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper p.doc-paper-meta-compact {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #64748b !important;
  display: block !important;
  font-size: 0.68rem !important;
  font-weight: 520 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.45 !important;
  margin: -4px 0 16px !important;
  padding: 0 !important;
  -webkit-text-fill-color: #64748b !important;
}

/* SOMA annotation recovery lock 2026-05-21 */

/* Estrutura > Contexto da operação: locked light cards with dark readable controls. */
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card {
  background: #ffffff !important;
  border: 1px solid #d8eaf1 !important;
  box-shadow: 0 18px 42px rgba(6, 19, 35, 0.08) !important;
  color: #061323 !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card h3,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card strong,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card label,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card h3,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card strong,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card label {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
  text-shadow: none !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card p,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card span:not(.eyebrow),
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card p,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card span:not(.eyebrow) {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  opacity: 1 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card .eyebrow,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card .eyebrow {
  color: #02aeb5 !important;
  -webkit-text-fill-color: #02aeb5 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card input,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card select,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card textarea,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card input,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card select,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="contexto"] .context-form-card textarea {
  background: #f7fbfd !important;
  border: 1px solid #b8d8e5 !important;
  box-shadow: inset 0 1px 0 rgba(6, 19, 35, 0.04) !important;
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .chip-selector button,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="contexto"] .chip-selector button {
  background: #eaf8fb !important;
  border: 1px solid #9ee4e8 !important;
  color: #075f73 !important;
  -webkit-text-fill-color: #075f73 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="contexto"] .chip-selector button.is-on,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="contexto"] .chip-selector button.is-on {
  background: #d9f7f8 !important;
  border-color: #61d9df !important;
  color: #005f66 !important;
  -webkit-text-fill-color: #005f66 !important;
}

/* Estrutura > Entrevista IA: incoming messages receive a real readable bubble. */
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot {
  align-items: flex-start !important;
  background: #f6fbfd !important;
  border: 1px solid #cbe6ef !important;
  border-radius: 22px 22px 22px 8px !important;
  box-shadow: 0 14px 34px rgba(6, 19, 35, 0.08) !important;
  color: #061323 !important;
  padding: 16px 18px !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot .chat-bubble-meta,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot .chat-bubble-meta {
  color: #0b7d8a !important;
  -webkit-text-fill-color: #0b7d8a !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot p,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot strong,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot p,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="entrevista"] .chat-bubble.bot strong {
  background: transparent !important;
  border: 0 !important;
  color: #10243a !important;
  -webkit-text-fill-color: #10243a !important;
}

/* Estrutura > Estúdio: hard contrast lock for chrome while keeping the paper preview clean. */
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-pro-layout,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-pro-layout {
  background:
    linear-gradient(135deg, rgba(6, 19, 35, 0.97), rgba(7, 27, 49, 0.92)),
    url("assets/qualificacao-bg.png") center / cover no-repeat !important;
  color: #eaf7fb !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas-header,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-side-panel,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-fields-card,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comments-card,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas-header,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-side-panel,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-fields-card,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comments-card {
  background: rgba(7, 27, 49, 0.9) !important;
  border-color: rgba(127, 231, 235, 0.24) !important;
  color: #eaf7fb !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list h3,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item strong,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas-header h3,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-fields-card label,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comments-card strong,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list h3,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item strong,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-canvas-header h3,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-fields-card label,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comments-card strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list header span,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item small,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comment p,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-list header span,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-item small,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-comment p {
  color: #dcebf5 !important;
  -webkit-text-fill-color: #dcebf5 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper {
  background: #ffffff !important;
  color: #061323 !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper h1,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper h2,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper h3,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper strong,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper h1,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper h2,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper h3,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper strong {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper p,
body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper li,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper p,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper li {
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper p.doc-paper-meta-compact,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-doc-preview .doc-paper p.doc-paper-meta-compact {
  display: none !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-fields-card input,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .studio-fields-card input {
  background: #f7fbfd !important;
  border: 1px solid #b8d8e5 !important;
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-status,
body.platform-body.soma-platform-unified .platform-main.estrutura-app [data-estrutura-panel="estudio"] .doc-status {
  display: inline-flex !important;
  max-width: max-content !important;
  overflow: visible !important;
}

/* Jornada/CRM: WhatsApp incoming bubbles and indicator cards readable on light cards. */
body.platform-body .platform-main.crm-app .wa-bubble.in,
body.platform-body.soma-platform-unified .platform-main.crm-app .wa-bubble.in {
  align-self: flex-start !important;
  background: #f5f9fc !important;
  border: 1px solid #d8e3ee !important;
  border-radius: 20px 20px 20px 8px !important;
  box-shadow: 0 12px 28px rgba(6, 19, 35, 0.08) !important;
  color: #061323 !important;
  padding: 12px 14px !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.crm-app .wa-bubble.in p,
body.platform-body .platform-main.crm-app .wa-bubble.in span,
body.platform-body.soma-platform-unified .platform-main.crm-app .wa-bubble.in p,
body.platform-body.soma-platform-unified .platform-main.crm-app .wa-bubble.in span {
  background: transparent !important;
  border: 0 !important;
  color: #10243a !important;
  -webkit-text-fill-color: #10243a !important;
}

body.platform-body .platform-main.crm-app .crm-wa-chat-stream,
body.platform-body.soma-platform-unified .platform-main.crm-app .crm-wa-chat-stream {
  background: #ffffff !important;
  border: 1px solid #d8e3ee !important;
}

body.platform-body .platform-main.crm-app .metric-card,
body.platform-body.soma-platform-unified .platform-main.crm-app .metric-card {
  background: #ffffff !important;
  border: 1px solid #d8eaf1 !important;
  color: #10243a !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.crm-app .metric-card h4,
body.platform-body .platform-main.crm-app .metric-card strong,
body.platform-body .platform-main.crm-app .channel-list div,
body.platform-body .platform-main.crm-app .bottleneck-list li strong,
body.platform-body.soma-platform-unified .platform-main.crm-app .metric-card h4,
body.platform-body.soma-platform-unified .platform-main.crm-app .metric-card strong,
body.platform-body.soma-platform-unified .platform-main.crm-app .channel-list div,
body.platform-body.soma-platform-unified .platform-main.crm-app .bottleneck-list li strong {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.crm-app .metric-card p,
body.platform-body .platform-main.crm-app .metric-card span:not(.ch-dot),
body.platform-body .platform-main.crm-app .bottleneck-list li span,
body.platform-body.soma-platform-unified .platform-main.crm-app .metric-card p,
body.platform-body.soma-platform-unified .platform-main.crm-app .metric-card span:not(.ch-dot),
body.platform-body.soma-platform-unified .platform-main.crm-app .bottleneck-list li span {
  color: #52677f !important;
  -webkit-text-fill-color: #52677f !important;
}

/* Configurações: secondary actions visible on light integration cards. */
body.platform-body .platform-main.estrutura-app .integration-card .btn-secondary,
body.platform-body.soma-platform-unified .platform-main.estrutura-app .integration-card .btn-secondary {
  background: #e7f8fb !important;
  border: 1px solid #81dfe5 !important;
  box-shadow: none !important;
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.estrutura-app .integration-card .btn-secondary:hover,
body.platform-body.soma-platform-unified .platform-main.estrutura-app .integration-card .btn-secondary:hover {
  background: #d6f4f7 !important;
  border-color: #02b8bf !important;
}

/* SOMA CRM card readability finish 2026-05-21 */
body.platform-body .platform-main.crm-app .crm-card,
body.platform-body.soma-platform-unified .platform-main.crm-app .crm-card {
  background: #ffffff !important;
  border: 1px solid #d8eaf1 !important;
  box-shadow: 0 12px 28px rgba(6, 19, 35, 0.08) !important;
  color: #10243a !important;
  -webkit-text-fill-color: initial !important;
}

body.platform-body .platform-main.crm-app .crm-card strong,
body.platform-body .platform-main.crm-app .crm-card h4,
body.platform-body.soma-platform-unified .platform-main.crm-app .crm-card strong,
body.platform-body.soma-platform-unified .platform-main.crm-app .crm-card h4 {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.crm-app .crm-card p,
body.platform-body .platform-main.crm-app .crm-card .time-tag,
body.platform-body.soma-platform-unified .platform-main.crm-app .crm-card p,
body.platform-body.soma-platform-unified .platform-main.crm-app .crm-card .time-tag {
  color: #52677f !important;
  -webkit-text-fill-color: #52677f !important;
}

body.platform-body .platform-main.crm-app .crm-card button,
body.platform-body.soma-platform-unified .platform-main.crm-app .crm-card button {
  background: #ecfbfc !important;
  border: 1px solid #9ee4e8 !important;
  color: #00727a !important;
  -webkit-text-fill-color: #00727a !important;
}

body.platform-body .platform-main.crm-app .crm-kanban-col header h4,
body.platform-body.soma-platform-unified .platform-main.crm-app .crm-kanban-col header h4 {
  color: #061323 !important;
  -webkit-text-fill-color: #061323 !important;
}

body.platform-body .platform-main.crm-app .crm-kanban-col .kanban-count,
body.platform-body.soma-platform-unified .platform-main.crm-app .crm-kanban-col .kanban-count {
  color: #52677f !important;
  -webkit-text-fill-color: #52677f !important;
}



/* SOMA qualification experience action spacing 2026-05-21 */
body.platform-body .module-experience > article > .experience-metrics + .inline-actions {
  margin-top: clamp(22px, 2vw, 30px) !important;
  row-gap: 12px !important;
}

body.platform-body .module-experience > article > .inline-actions button {
  align-self: flex-start;
}


/* SOMA qualification section breathing room 2026-05-21 */
body.platform-body .platform-section + .module-experience {
  margin-top: clamp(18px, 2.4vw, 32px) !important;
}

/* SOMA platform sticky sidebar scroll guard 2026-05-21 */
@media (min-width: 981px) {
  body.platform-body .platform-shell > .platform-sidebar,
  body.platform-body.soma-platform-unified .platform-shell > .platform-sidebar,
  body.platform-body .clinical-platform > .clinical-sidebar,
  body.platform-body.soma-platform-unified .clinical-platform > .clinical-sidebar,
  body.platform-body .soma-unified-sidebar {
    position: sticky !important;
    top: 72px !important;
    align-self: flex-start !important;
    min-height: 0 !important;
    height: calc(100vh - 72px) !important;
    max-height: calc(100vh - 72px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
  }

  body.platform-body .platform-shell > .platform-sidebar .sidebar-nav,
  body.platform-body.soma-platform-unified .platform-shell > .platform-sidebar .sidebar-nav,
  body.platform-body .clinical-platform > .clinical-sidebar .sidebar-nav,
  body.platform-body.soma-platform-unified .clinical-platform > .clinical-sidebar .sidebar-nav {
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 2px;
  }
}

/* ── Compatibilidade pl- shell: conteúdo legado dentro de .pl-content ── */
.pl-content .platform-hero-panel,
.pl-content .platform-visual-board,
.pl-content .platform-section,
.pl-content .course-lock-panel,
.pl-content .module-app-header,
.pl-content .learning-layout,
.pl-content .learning-action-grid {
  display: block;
}

/* Ajuste: padding-bottom nas páginas de curso */
.pl-content .course-lock-panel { margin-bottom: 0; }
