/* First-use clinical demonstration. Scoped to the onboarding container. */
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .first-use-demo,
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-teaser {
  --fd-ink: #163846;
  --fd-muted: #526b76;
  --fd-accent: #0d6274;
  --fd-soft: #eef7f8;
  --fd-border: #d6e4e9;
  color: var(--fd-ink);
  font-family: inherit;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .first-use-demo {
  overflow: hidden;
  border: 1px solid var(--fd-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(22, 56, 70, .065);
  margin-bottom: 12px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(17px, 2.1vw, 25px);
  background: linear-gradient(110deg, #fcfefe 45%, #e6f5f6);
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-heading { min-width: 0; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-eyebrow,
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-label {
  display: block;
  color: #0c6b7b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .085em;
  line-height: 1.4;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-heading h2 {
  color: var(--fd-ink);
  margin: 5px 0 5px;
  font-family: var(--font-brand, Georgia, serif);
  font-size: clamp(24px, 2.7vw, 33px);
  font-weight: 400;
  line-height: 1.14;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-heading p,
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-case-copy p,
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-panel p,
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-teaser p {
  color: var(--fd-muted);
  margin: 0;
  line-height: 1.48;
  font-size: 13px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-dismiss {
  min-height: 44px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--fd-accent);
  cursor: pointer;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-case {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin: 0 clamp(17px, 2.1vw, 25px);
  padding: 19px 0;
  border-bottom: 1px solid var(--fd-border);
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-avatar {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  flex: 0 0 51px;
  border-radius: 15px;
  color: #fff;
  background: #145366;
  box-shadow: 0 5px 15px rgba(14, 60, 77, .12);
  font-weight: 800;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-case-copy {
  flex: 1 1 220px;
  min-width: 0;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-case-copy > span {
  font-size: 10px;
  color: #0d6c7c;
  font-weight: 800;
  letter-spacing: .035em;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-case-copy h3 {
  color: var(--fd-ink);
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 2px 0 4px;
  line-height: 1.2;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) :is(.fd-primary, .fd-secondary, .fd-link) {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 750;
  text-align: center;
  white-space: normal;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-primary {
  background: #0b596d;
  color: #fff;
  border-color: #0b596d;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-primary:hover { background: #0a4556; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-secondary {
  color: var(--fd-ink);
  border-color: var(--fd-border);
  background: #fff;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-link {
  border-color: var(--fd-border);
  color: var(--fd-accent);
  background: #fff;
  margin-top: 10px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-notice {
  margin: 12px clamp(17px, 2.1vw, 25px) 0;
  padding: 10px 12px;
  background: #f4f8fa;
  border: 1px solid #e1eaf0;
  border-radius: 10px;
  font-size: 11px;
  color: #536a73;
  line-height: 1.5;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-body {
  margin: 14px clamp(17px, 2.1vw, 25px) 19px;
  border: 1px solid var(--fd-border);
  border-radius: 17px;
  padding: 17px;
  background: #fff;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-body-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-body-heading h3 {
  margin: 3px 0 0;
  font-size: 17px;
  color: var(--fd-ink);
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-body-heading > span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e7f6f8;
  border: 1px solid #c7e3e9;
  font-size: 10px;
  color: #155c6b;
  font-weight: 700;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 15px 0 12px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-tabs button {
  min-height: 42px;
  border: 1px solid var(--fd-border);
  background: #fff;
  color: var(--fd-muted);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-tabs button.active {
  border-color: #0b596d;
  color: #fff;
  background: #0b596d;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-panel { min-height: 158px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-stats,
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-overview,
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-stats > div,
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-overview article,
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-mini,
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-entry {
  border: 1px solid var(--fd-border);
  border-radius: 12px;
  background: #f9fcfc;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-stats > div {
  padding: 13px 14px;
  display: grid;
  gap: 2px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-stats strong {
  font-size: 23px;
  color: #0d596e;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-stats span { color: var(--fd-muted); font-size: 11px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-overview { margin-top: 10px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-overview article { padding: 14px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-overview h3,
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-panel h3 {
  font-size: 14px;
  line-height: 1.3;
  color: var(--fd-ink);
  margin: 5px 0 7px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-entries { display: grid; gap: 9px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-entry { padding: 13px 14px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-entry-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-entry-head strong { font-size: 13px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-entry-head span { font-size: 11px; color: var(--fd-muted); }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chips span {
  border: 1px solid #cde2e7;
  background: #edf7f9;
  color: #225e6e;
  font-size: 10px;
  border-radius: 999px;
  padding: 4px 8px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chart-section,
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-scale { display: grid; gap: 13px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chart {
  position: relative;
  height: 198px;
  padding: 12px 10px 30px 31px;
  border-radius: 13px;
  border: 1px solid var(--fd-border);
  background: #f9fcfc;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chart-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  left: 9px;
  top: 26px;
  height: 105px;
  font-size: 10px;
  color: var(--fd-muted);
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chart svg { width: 100%; height: 135px; display: block; overflow: visible; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chart svg line { stroke: #d6e4e9; stroke-width: 1; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chart svg polyline { fill: none; stroke: #08768e; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chart svg circle { fill: #08768e; stroke: #fff; stroke-width: 2; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chart-labels { display: flex; justify-content: space-between; margin-top: 0; gap: 6px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chart-labels span { display: grid; gap: 2px; text-align: center; font-size: 10px; color: var(--fd-muted); }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chart-labels strong { color: var(--fd-ink); }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-chart-footnote { font-size: 11px !important; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-scale-row {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) 39px;
  gap: 9px;
  align-items: center;
  font-size: 12px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-scale-track { height: 11px; background: #e1edf0; border-radius: 99px; overflow: hidden; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-scale-track i { display: block; background: #15778b; height: 100%; border-radius: 99px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-mini { padding: 14px; display: flex; align-items: flex-start; gap: 10px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-test-icon {
  background: #dff1f4;
  color: #0b6575;
  padding: 8px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-mini strong { font-size: 13px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-mini p { margin-top: 4px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-footer { border-top: 1px solid var(--fd-border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; padding-top: 13px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-footer p { font-size: 12px; font-weight: 700; color: var(--fd-ink); }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-footer > div { display: flex; flex-wrap: wrap; gap: 7px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid var(--fd-border);
  background: #f6fbfb;
  padding: 13px 16px;
  margin-bottom: 10px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-teaser strong { font-size: 13px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-teaser .button { min-height: 44px; }
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) :is(button):focus-visible { outline: 3px solid #51b5c5; outline-offset: 2px; }
@media (max-width: 760px) {
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-stats,
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-overview,
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-test-grid { grid-template-columns: 1fr; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-case > .fd-primary { width: 100%; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-head { flex-direction: column; gap: 7px; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-dismiss { padding-left: 0; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-tabs button { white-space: nowrap; flex: 0 0 auto; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-stats > div { padding: 10px; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-stats span { font-size: 10px; }
}
@media (max-width: 480px) {
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .first-use-demo { border-radius: 17px; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-head { padding: 16px 13px 12px; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-case { margin: 0 13px; padding: 14px 0; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-avatar { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-case-copy { flex: 1 1 calc(100% - 60px); }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-notice { margin: 10px 13px 0; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-body { margin: 12px 13px 15px; padding: 12px; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-body-heading h3 { font-size: 15px; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-stats { gap: 5px; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-stats strong { font-size: 18px; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-stats > div { padding: 7px; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-footer > div { width: 100%; }
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .fd-footer button { flex: 1 1 120px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoEscalas, #firstUseDemoTestes) .first-use-demo * { scroll-behavior: auto !important; }
}


/* The same demo follows an empty account across Patients and History.
   It is deliberately isolated from live cards, filters and database state. */
#secao-pacientes #listaPacientesAtivos > .fd-page,
#secao-historico #listaHistorico > .fd-page,
#secao-pacientes #listaPacientesAtivos > .fd-page-teaser,
#secao-historico #listaHistorico > .fd-page-teaser {
  width: 100%;
  max-width: none;
  min-width: 0;
  grid-column: 1 / -1;
}
:is(#listaPacientesAtivos, #listaHistorico) .fd-history-items { display: grid; gap: 9px; margin-top: 14px; }
:is(#listaPacientesAtivos, #listaHistorico) .fd-history-item {
  border: 1px solid var(--fd-border);
  border-radius: 11px;
  overflow: hidden;
  background: #f9fcfc;
}
:is(#listaPacientesAtivos, #listaHistorico) .fd-history-toggle {
  width: 100%;
  min-height: 57px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  color: var(--fd-ink);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border: 0;
}
:is(#listaPacientesAtivos, #listaHistorico) .fd-history-toggle:focus-visible {
  outline: 3px solid #51b5c5;
  outline-offset: -3px;
}
:is(#listaPacientesAtivos, #listaHistorico) .fd-history-chevron {
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  color: var(--fd-accent);
  font-size: 13px;
}
:is(#listaPacientesAtivos, #listaHistorico) .fd-history-title {
  min-width: 0;
  display: grid;
  gap: 4px;
  flex: 1;
}
:is(#listaPacientesAtivos, #listaHistorico) .fd-history-title strong { font-size: 13px; }
:is(#listaPacientesAtivos, #listaHistorico) .fd-history-title small {
  color: var(--fd-muted);
  font-size: 11px;
  line-height: 1.4;
}
:is(#listaPacientesAtivos, #listaHistorico) .fd-history-date {
  flex: 0 0 auto;
  color: var(--fd-muted);
  font-size: 11px;
}
:is(#listaPacientesAtivos, #listaHistorico) .fd-history-detail {
  border-top: 1px solid var(--fd-border);
  padding: 12px 16px 14px 41px;
  background: #fff;
}
:is(#listaPacientesAtivos, #listaHistorico) .fd-history-detail p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fd-muted);
}
@media (max-width: 620px) {
  :is(#listaPacientesAtivos, #listaHistorico) .fd-history-toggle { align-items: flex-start; }
  :is(#listaPacientesAtivos, #listaHistorico) .fd-history-date { font-size: 10px; }
  :is(#listaPacientesAtivos, #listaHistorico) .fd-history-detail { padding-left: 13px; }
}


/* First-use demonstrations in the catalog screens use the same design
   language without changing live tests or functional-scale forms. */
.fd-demo-slot[hidden] { display: none !important; }
#firstUseDemoTestes,
#firstUseDemoEscalas { min-width: 0; width: 100%; margin: 0 0 16px; }
#firstUseDemoTestes .first-use-demo,
#firstUseDemoEscalas .first-use-demo { margin-bottom: 0; }
#firstUseDemoTestes .fd-test-examples,
#firstUseDemoEscalas .fd-test-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}
#firstUseDemoTestes .fd-test-example {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--fd-border, #d6e4e9);
  border-radius: 13px;
  background: #f9fcfc;
}
#firstUseDemoTestes .fd-test-example > div { min-width: 0; }
#firstUseDemoTestes .fd-test-example strong {
  color: var(--fd-ink, #163846);
  font-size: 14px;
}
#firstUseDemoTestes .fd-test-example p {
  color: var(--fd-muted, #526b76);
  font-size: 12px;
  line-height: 1.5;
  margin: 7px 0;
}
#firstUseDemoTestes .fd-test-caption {
  display: inline-block;
  font-size: 10px;
  color: var(--fd-accent, #0d6274);
  font-weight: 700;
}
#firstUseDemoTestes .fd-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}
#firstUseDemoTestes .fd-steps span {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--fd-border, #d6e4e9);
  background: #eff7f9;
  color: var(--fd-ink, #163846);
  font-size: 11px;
  text-align: center;
  font-weight: 700;
}
@media (max-width: 720px) {
  #firstUseDemoTestes .fd-test-examples { grid-template-columns: 1fr; }
  #firstUseDemoTestes .fd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* First-time professional: one clear scales experience, not a long demo
   followed by an empty patient selector. Restore the untouched real catalog
   when the demo is dismissed, or when a real patient/session exists. */
#secao-escalas.fs-demo-only > .fs-catalog-lead,
#secao-escalas.fs-demo-only > .fs-catalog-heading,
#secao-escalas.fs-demo-only > .fs-catalog-layout {
  display: none !important;
}
#secao-escalas.fs-demo-only > #firstUseDemoEscalas {
  margin-bottom: 0;
}


/* Compact secondary entry to the existing clinical demonstration. */
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoTestes, #firstUseDemoEscalas) .fd-teaser.fd-teaser-compact {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 64px;
  padding: 11px 14px;
  gap: 12px;
  margin-bottom: 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--fd-ink);
  background: #f6fbfb;
  border: 1px solid var(--fd-border);
  border-radius: 16px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoTestes, #firstUseDemoEscalas) .fd-teaser-compact .fd-teaser-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #e1f2f4;
  color: #0d6274;
  font-size: 15px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoTestes, #firstUseDemoEscalas) .fd-teaser-compact .fd-teaser-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoTestes, #firstUseDemoEscalas) .fd-teaser-compact .fd-teaser-copy strong {
  font-size: 14px;
  line-height: 1.3;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoTestes, #firstUseDemoEscalas) .fd-teaser-compact .fd-teaser-copy > span {
  color: var(--fd-muted);
  font-size: 12px;
  line-height: 1.35;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoTestes, #firstUseDemoEscalas) .fd-teaser-compact .fd-teaser-arrow {
  flex: 0 0 auto;
  color: var(--fd-accent);
  font-size: 28px;
  line-height: 1;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoTestes, #firstUseDemoEscalas) .fd-teaser-compact:hover {
  border-color: #a9d4dc;
  background: #eef8f9;
}
:is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoTestes, #firstUseDemoEscalas) .fd-teaser-compact:focus-visible {
  outline: 3px solid #51b5c5;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  :is(#professionalOnboarding, #listaPacientesAtivos, #listaHistorico, #firstUseDemoTestes, #firstUseDemoEscalas) .fd-teaser.fd-teaser-compact {
    min-height: 60px;
    padding: 10px 12px;
    gap: 10px;
  }
}


/* Patients-only demonstration refinement. Other clinical demos are unchanged. */
@media (max-width: 760px) {
  #listaPacientesAtivos .fd-patients .fd-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0;
    padding: 0;
    overflow: visible;
  }
  #listaPacientesAtivos .fd-patients .fd-tabs button {
    box-sizing: border-box;
    grid-column: span 2;
    min-width: 0;
    min-height: 44px;
    padding: 8px 5px;
    white-space: normal;
    line-height: 1.25;
    font-size: 11px;
  }
  #listaPacientesAtivos .fd-patients .fd-tabs button:nth-child(n+4) {
    grid-column: span 3;
  }
}
@media (max-width: 480px) {
  #listaPacientesAtivos .fd-patients .fd-head {
    padding: 14px 14px 10px;
    gap: 4px;
  }
  #listaPacientesAtivos .fd-patients .fd-heading h2 {
    margin: 5px 0 4px;
    color: var(--fd-ink);
    font-family: 'Manrope', var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -.025em;
  }
  #listaPacientesAtivos .fd-patients .fd-heading p {
    font-size: 12px;
    line-height: 1.45;
  }
  #listaPacientesAtivos .fd-patients .fd-dismiss {
    align-self: flex-start;
    min-height: 44px;
    margin: 0;
    padding: 6px 0;
    text-align: left;
  }
  #listaPacientesAtivos .fd-patients .fd-case {
    padding: 12px 0;
  }
  #listaPacientesAtivos .fd-patients .fd-notice {
    margin: 9px 13px 0;
    padding: 9px 11px;
    font-size: 11px;
    line-height: 1.45;
  }
  #listaPacientesAtivos .fd-patients .fd-body {
    margin: 10px 13px 14px;
    padding: 12px;
  }
  #listaPacientesAtivos .fd-patients .fd-body-heading h3 {
    margin-top: 2px;
    font-size: 15px;
  }
  #listaPacientesAtivos .fd-patients .fd-stats > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    min-height: 90px;
    padding: 9px;
  }
  #listaPacientesAtivos .fd-patients .fd-stats strong {
    line-height: 1.2;
  }
  #listaPacientesAtivos .fd-patients .fd-stats span {
    font-size: 10px;
    line-height: 1.35;
  }
  #listaPacientesAtivos .fd-patients .fd-overview {
    gap: 8px;
    margin-top: 9px;
  }
  #listaPacientesAtivos .fd-patients .fd-overview article {
    padding: 12px;
  }
  #listaPacientesAtivos .fd-patients .fd-overview article p:last-child {
    font-size: 12px;
    line-height: 1.5;
  }
  #listaPacientesAtivos .fd-patients .fd-footer {
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
  }
  #listaPacientesAtivos .fd-patients .fd-footer p {
    margin: 0;
    font-size: 12px;
  }
  #listaPacientesAtivos .fd-patients .fd-footer > div,
  #listaPacientesAtivos .fd-patients .fd-footer .fd-secondary {
    width: 100%;
  }
}


/* Patient demo: concise, clinically useful overview without large empty cards. */
:is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-clinical-summary {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--fd-border);
  border-radius: 13px;
  background: #f7fbfb;
}
:is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-clinical-summary .fd-label {
  margin: 0 0 5px;
}
:is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-clinical-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
}
:is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-clinical-summary-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 750;
}
:is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-clinical-summary-head > span {
  color: var(--fd-muted);
  font-size: 11px;
}
:is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-clinical-scores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 13px 0 10px;
  padding: 10px 0;
  border-top: 1px solid var(--fd-border);
  border-bottom: 1px solid var(--fd-border);
}
:is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-clinical-scores > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}
:is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-clinical-scores > div + div {
  border-left: 1px solid var(--fd-border);
}
:is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-clinical-scores span {
  color: var(--fd-muted);
  font-size: 11px;
}
:is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-clinical-scores strong {
  color: #0d6274;
  font-size: 18px;
  line-height: 1.2;
}
:is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-clinical-summary-note {
  margin: 0;
  color: var(--fd-muted);
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 480px) {
  :is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-stats > div {
    min-height: 64px;
    padding: 8px;
    gap: 2px;
  }
  :is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-stats span {
    font-size: 10px;
    line-height: 1.3;
  }
  :is(#listaPacientesAtivos .fd-patients, #professionalOnboarding .fd-home) .fd-clinical-summary {
    padding: 12px;
  }
}


/* Home demo aligns with the approved Patient demo while retaining the Home hero
   illustration, nav and quick-action cards. No global layout is changed. */
@media (max-width: 760px) {
  #professionalOnboarding .fd-home .fd-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin: 11px 0 10px;
    padding: 0;
    overflow: visible;
  }
  #professionalOnboarding .fd-home .fd-tabs button {
    box-sizing: border-box;
    grid-column: span 2;
    min-width: 0;
    min-height: 44px;
    padding: 8px 5px;
    white-space: normal;
    font-size: 11px;
    line-height: 1.25;
    flex: none;
  }
  #professionalOnboarding .fd-home .fd-tabs button:nth-child(n+4) {
    grid-column: span 3;
  }
  #professionalOnboarding .fd-home .fd-panel { min-height: 0; }
  #professionalOnboarding .fd-home .fd-stats { gap: 6px; }
  #professionalOnboarding .fd-home .fd-stats > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 3px;
    min-height: 70px;
    padding: 9px;
  }
  #professionalOnboarding .fd-home .fd-stats strong { line-height: 1.2; }
  #professionalOnboarding .fd-home .fd-stats span { font-size: 10px; line-height: 1.35; }
}
@media (max-width: 480px) {
  #professionalOnboarding .fd-home .fd-head {
    padding: 13px 14px 8px;
    gap: 3px;
  }
  #professionalOnboarding .fd-home .fd-heading h2 {
    margin: 5px 0 4px;
    color: var(--fd-ink);
    font-family: 'Manrope', var(--font-sans);
    font-size: 20px;
    font-weight: 650;
    line-height: 1.24;
    letter-spacing: -.025em;
  }
  #professionalOnboarding .fd-home .fd-heading p {
    font-size: 12px;
    line-height: 1.45;
  }
  #professionalOnboarding .fd-home .fd-dismiss {
    align-self: flex-start;
    min-height: 44px;
    padding: 6px 0;
    text-align: left;
  }
  #professionalOnboarding .fd-home .fd-case {
    gap: 9px;
    padding: 8px 0 9px;
  }
  #professionalOnboarding .fd-home .fd-case-copy h3 { font-size: 17px; }
  #professionalOnboarding .fd-home .fd-case > .fd-primary {
    min-height: 44px;
    font-size: 12px;
  }
  #professionalOnboarding .fd-home .fd-notice {
    margin: 7px 13px 0;
    padding: 7px 11px;
    font-size: 11px;
    line-height: 1.42;
  }
  #professionalOnboarding .fd-home .fd-body {
    margin: 8px 13px 10px;
    padding: 11px;
  }
  #professionalOnboarding .fd-home .fd-body-heading h3 { font-size: 15px; }
  #professionalOnboarding .fd-home .fd-clinical-summary {
    margin-top: 7px;
    padding: 10px;
  }
  #professionalOnboarding .fd-home .fd-clinical-scores {
    margin: 9px 0 7px;
    padding: 7px 0;
  }
  #professionalOnboarding .fd-home .fd-tabs { margin: 8px 0; }
}


/* Approved Home mobile compact demo - 2026-11-01.
   Only the fictional Home demonstration changes. Desktop, live Home content,
   Patients, Tests, Scales, History and Account keep their approved styling. */
#professionalOnboarding .fd-home-compact-banner,
#professionalOnboarding .fd-home-case-label,
#professionalOnboarding .fd-home-register-mobile,
#professionalOnboarding .fd-home-notice-mobile,
#professionalOnboarding .fd-home-mobile-metrics,
#professionalOnboarding .fd-home-details-toggle {
  display: none;
}
#professionalOnboarding .fd-home-case-card,
#professionalOnboarding .fd-home-details-body {
  display: contents;
}
@media (max-width: 620px) {
  #professionalOnboarding .fd-home {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
    margin-bottom: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  #professionalOnboarding .fd-home .fd-head {
    display: none;
  }
  #professionalOnboarding .fd-home .fd-home-compact-banner {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    text-align: left;
    font: inherit;
    color: var(--fd-ink);
    border: 1px solid var(--fd-border);
    border-radius: 17px;
    background: #f7fcfd;
    cursor: pointer;
    box-sizing: border-box;
  }
  #professionalOnboarding .fd-home .fd-home-banner-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #e1f2f4;
    color: var(--fd-accent);
    flex: 0 0 36px;
    font-size: 14px;
  }
  #professionalOnboarding .fd-home .fd-home-banner-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 2px;
  }
  #professionalOnboarding .fd-home .fd-home-banner-copy strong {
    font-size: 13px;
    font-weight: 750;
    line-height: 1.28;
  }
  #professionalOnboarding .fd-home .fd-home-banner-copy > span {
    font-size: 11px;
    line-height: 1.25;
    color: var(--fd-muted);
  }
  #professionalOnboarding .fd-home .fd-home-banner-chevron {
    font-size: 24px;
    line-height: 1;
    color: var(--fd-accent);
  }
  #professionalOnboarding .fd-home .fd-home-case-card,
  #professionalOnboarding .fd-home .fd-body {
    display: block;
    width: 100%;
    margin: 0;
    border: 1px solid var(--fd-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: none;
    box-sizing: border-box;
  }
  #professionalOnboarding .fd-home .fd-home-case-card {
    padding: 12px 12px 11px;
  }
  #professionalOnboarding .fd-home .fd-case {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) minmax(95px, 118px);
    grid-auto-flow: row;
    align-items: center;
    gap: 4px 9px;
    margin: 0;
    padding: 0 0 10px;
    border-bottom: 1px solid #e3edf1;
    min-width: 0;
  }
  #professionalOnboarding .fd-home .fd-home-case-label {
    display: block;
    grid-column: 1 / -1;
    margin-bottom: 3px;
    color: #0b6371;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: .035em;
  }
  #professionalOnboarding .fd-home .fd-avatar {
    width: 42px;
    height: 42px;
    min-width: 0;
    min-height: 0;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: none;
  }
  #professionalOnboarding .fd-home .fd-case-copy {
    min-width: 0;
    flex: none;
  }
  #professionalOnboarding .fd-home .fd-case-copy > span {
    display: none;
  }
  #professionalOnboarding .fd-home .fd-case-copy h3 {
    margin: 0 0 3px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 720;
    overflow-wrap: anywhere;
  }
  #professionalOnboarding .fd-home .fd-case-copy p {
    font-size: 10px;
    line-height: 1.35;
  }
  #professionalOnboarding .fd-home .fd-case > .fd-primary {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 7px;
    border-radius: 10px;
    background: linear-gradient(105deg, #0b5c6b, #0c7987);
    border-color: #0b6877;
    color: white;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(9,69,77,.08);
    font-size: 11px;
    font-weight: 750;
  }
  #professionalOnboarding .fd-home .fd-home-register-desktop,
  #professionalOnboarding .fd-home .fd-home-notice-desktop {
    display: none;
  }
  #professionalOnboarding .fd-home .fd-home-register-mobile {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  #professionalOnboarding .fd-home .fd-home-register-mobile span {
    font-size: 20px;
    font-weight: 400;
    line-height: .8;
  }
  #professionalOnboarding .fd-home .fd-notice {
    display: block;
    margin: 10px 0 0;
    padding: 9px 11px;
    background: #f3f8fa;
    border: 1px solid #e1eaf0;
    border-radius: 11px;
    color: var(--fd-muted);
    font-size: 10.5px;
    line-height: 1.42;
  }
  #professionalOnboarding .fd-home .fd-home-notice-mobile {
    display: inline;
  }
  #professionalOnboarding .fd-home .fd-body {
    padding: 13px 12px 12px;
  }
  #professionalOnboarding .fd-home .fd-body-heading .fd-label {
    margin-bottom: 2px;
    font-size: 10px;
    line-height: 1.25;
  }
  #professionalOnboarding .fd-home .fd-body-heading h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.28;
  }
  #professionalOnboarding .fd-home .fd-home-mobile-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 11px 0 10px;
    padding: 8px 0;
    background: #f2f9fa;
    border-radius: 11px;
  }
  #professionalOnboarding .fd-home .fd-home-mobile-metrics > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 1px 9px;
  }
  #professionalOnboarding .fd-home .fd-home-mobile-metrics > div + div {
    border-left: 1px solid #d6e4e9;
  }
  #professionalOnboarding .fd-home .fd-home-mobile-metrics strong {
    color: var(--fd-accent);
    font-size: 19px;
    line-height: 1.1;
  }
  #professionalOnboarding .fd-home .fd-home-mobile-metrics span {
    color: var(--fd-muted);
    font-size: 10px;
    line-height: 1.3;
  }
  #professionalOnboarding .fd-home .fd-home-details-toggle {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #c9e4e8;
    border-radius: 11px;
    background: #fafdfe;
    color: var(--fd-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }
  #professionalOnboarding .fd-home .fd-home-details-toggle span:last-child {
    font-size: 20px;
    color: var(--fd-accent);
    font-weight: 500;
    line-height: 1;
  }
  #professionalOnboarding .fd-home .fd-home-details-body {
    display: none;
  }
  #professionalOnboarding .fd-home.fd-mobile-details-open .fd-home-details-body {
    display: block;
  }
  #professionalOnboarding .fd-home.fd-mobile-details-open .fd-home-mobile-metrics {
    display: none;
  }
  #professionalOnboarding .fd-home .fd-tabs {
    margin: 11px 0 8px;
  }
  #professionalOnboarding .fd-home .fd-panel {
    min-height: 0;
  }
  #professionalOnboarding .fd-home .fd-panel .fd-stats {
    gap: 6px;
  }
  #professionalOnboarding .fd-home .fd-panel .fd-stats > div {
    min-height: 62px;
    padding: 8px;
  }
  #professionalOnboarding .fd-home .fd-clinical-summary {
    margin-top: 9px;
    padding: 10px;
  }
  #professionalOnboarding .fd-home .fd-home-compact-banner:focus-visible,
  #professionalOnboarding .fd-home .fd-home-details-toggle:focus-visible,
  #professionalOnboarding .fd-home .fd-case > .fd-primary:focus-visible {
    outline: 3px solid #49a9b7;
    outline-offset: 2px;
  }
}
@media (max-width: 359px) {
  #professionalOnboarding .fd-home .fd-case {
    grid-template-columns: 39px minmax(0, 1fr) 91px;
    gap: 4px 6px;
  }
  #professionalOnboarding .fd-home .fd-avatar {
    width: 39px;
    height: 39px;
  }
  #professionalOnboarding .fd-home .fd-case-copy h3 { font-size: 13px; }
  #professionalOnboarding .fd-home .fd-case > .fd-primary { padding-inline: 4px; font-size: 10.5px; }
  #professionalOnboarding .fd-home .fd-home-banner-copy strong { font-size: 12px; }
}


/* Tests demonstration premium mobile refinement 2026-11-01.
   The original desktop demo remains intact; only #firstUseDemoTestes is styled. */
#firstUseDemoTestes .fd-tests-desktop-only { display: contents; }
#firstUseDemoTestes .fd-tests-mobile-only { display: none; }

@media (max-width: 620px) {
  #firstUseDemoTestes .fd-tests-desktop-only { display: none; }
  #firstUseDemoTestes .fd-tests-mobile-only { display: block; }
  #firstUseDemoTestes .fd-tests-demo {
    border-radius: 17px;
    box-shadow: 0 7px 22px rgba(22, 56, 70, .035);
  }
  #firstUseDemoTestes .fd-tests-mobile-header {
    padding: 12px 15px 11px;
    background: linear-gradient(115deg, #fcfefe 28%, #e8f7f7);
    border-bottom: 1px solid var(--fd-border);
  }
  #firstUseDemoTestes .fd-tests-mobile-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 9px;
  }
  #firstUseDemoTestes .fd-tests-mobile-eyebrow {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .065em;
    color: #0c6b7b;
  }
  #firstUseDemoTestes .fd-tests-mobile-dismiss {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 6px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    color: #0d6274;
    cursor: pointer;
  }
  #firstUseDemoTestes .fd-tests-mobile-header h2 {
    margin: 0;
    color: var(--fd-ink);
    font: inherit;
    font-size: 19px;
    line-height: 1.24;
    font-weight: 700;
    letter-spacing: -.018em;
  }
  #firstUseDemoTestes .fd-tests-mobile-content {
    padding: 12px 14px 13px;
  }
  #firstUseDemoTestes .fd-tests-mobile-patient {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fd-border);
    min-width: 0;
  }
  #firstUseDemoTestes .fd-tests-mobile-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: #fff;
    background: #145366;
    font-size: 13px;
    font-weight: 800;
  }
  #firstUseDemoTestes .fd-tests-mobile-patient-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  #firstUseDemoTestes .fd-tests-mobile-patient-copy strong {
    color: var(--fd-ink);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 750;
  }
  #firstUseDemoTestes .fd-tests-mobile-patient-copy > span {
    color: var(--fd-muted);
    font-size: 12px;
    line-height: 1.35;
  }
  #firstUseDemoTestes .fd-tests-mobile-examples {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }
  #firstUseDemoTestes .fd-tests-mobile-examples > h3 {
    margin: 0 0 1px;
    color: var(--fd-muted);
    font-size: 11px;
    letter-spacing: .055em;
    font-weight: 800;
    text-transform: uppercase;
  }
  #firstUseDemoTestes .fd-tests-mobile-test {
    min-width: 0;
    border: 1px solid var(--fd-border);
    border-radius: 12px;
    overflow: hidden;
    background: #f9fcfc;
  }
  #firstUseDemoTestes .fd-tests-mobile-test summary {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 9px 12px;
    list-style: none;
    cursor: pointer;
  }
  #firstUseDemoTestes .fd-tests-mobile-test summary::-webkit-details-marker,
  #firstUseDemoTestes .fd-tests-mobile-explore summary::-webkit-details-marker {
    display: none;
  }
  #firstUseDemoTestes .fd-tests-mobile-number {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #e2f1f3;
    color: #0d6274;
    font-size: 11px;
    font-weight: 800;
  }
  #firstUseDemoTestes .fd-tests-mobile-test-name {
    display: grid;
    gap: 3px;
    flex: 1;
    min-width: 0;
  }
  #firstUseDemoTestes .fd-tests-mobile-test-name strong {
    color: var(--fd-ink);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 750;
  }
  #firstUseDemoTestes .fd-tests-mobile-test-name > span {
    color: var(--fd-muted);
    font-size: 12px;
    line-height: 1.28;
  }
  #firstUseDemoTestes .fd-tests-mobile-chevron {
    display: inline-grid;
    place-items: center;
    flex: 0 0 20px;
    color: #0d6274;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: transform .16s ease;
  }
  #firstUseDemoTestes .fd-tests-mobile-test[open] > summary .fd-tests-mobile-chevron,
  #firstUseDemoTestes .fd-tests-mobile-explore[open] > summary .fd-tests-mobile-chevron {
    transform: rotate(90deg);
  }
  #firstUseDemoTestes .fd-tests-mobile-detail {
    padding: 10px 13px 12px 57px;
    border-top: 1px solid var(--fd-border);
    color: var(--fd-muted);
    background: #fff;
  }
  #firstUseDemoTestes .fd-tests-mobile-detail p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
  }
  #firstUseDemoTestes .fd-tests-mobile-detail small {
    display: block;
    margin-top: 8px;
    color: #0d6274;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
  }
  #firstUseDemoTestes .fd-tests-mobile-explore {
    margin-top: 12px;
    border: 1px solid #c6e2e7;
    border-radius: 12px;
    overflow: hidden;
    background: #edf7f8;
  }
  #firstUseDemoTestes .fd-tests-mobile-explore > summary {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 10px 13px;
    color: var(--fd-ink);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 750;
    list-style: none;
    cursor: pointer;
  }
  #firstUseDemoTestes .fd-tests-mobile-explore-body {
    border-top: 1px solid #c6e2e7;
    padding: 12px;
    background: #f9fcfc;
  }
  #firstUseDemoTestes .fd-tests-mobile-explore-body > p {
    color: var(--fd-muted);
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.45;
  }
  #firstUseDemoTestes .fd-tests-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #firstUseDemoTestes .fd-tests-mobile-actions button {
    width: 100%;
    padding-inline: 8px;
    font-size: 11px;
    min-height: 44px;
  }
  #firstUseDemoTestes .fd-tests-mobile-note {
    margin: 12px 2px 0;
    color: var(--fd-muted);
    font-size: 11px;
    line-height: 1.4;
  }
  #firstUseDemoTestes .fd-tests-mobile-test summary:focus-visible,
  #firstUseDemoTestes .fd-tests-mobile-explore summary:focus-visible,
  #firstUseDemoTestes .fd-tests-mobile-dismiss:focus-visible {
    outline: 3px solid #51b5c5;
    outline-offset: -3px;
  }
}
@media (max-width: 359px) {
  #firstUseDemoTestes .fd-tests-mobile-header h2 { font-size: 18px; }
  #firstUseDemoTestes .fd-tests-mobile-content { padding-inline: 11px; }
  #firstUseDemoTestes .fd-tests-mobile-detail { padding-left: 13px; }
  #firstUseDemoTestes .fd-tests-mobile-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #firstUseDemoTestes .fd-tests-mobile-chevron { transition: none; }
}


/* Approved compact functional scales demo on mobile, 2026-11-01.
   Only the fictional PSFS sample changes, not the real scales or desktop. */
#firstUseDemoEscalas .fd-scales-desktop-only { display: contents; }
#firstUseDemoEscalas .fd-scales-mobile-only { display: none; }

@media (max-width: 620px) {
  #firstUseDemoEscalas .fd-scales-desktop-only { display: none; }
  #firstUseDemoEscalas .fd-scales-mobile-only { display: block; }
  #firstUseDemoEscalas .fd-scales-demo {
    border-radius: 17px;
    box-shadow: 0 7px 22px rgba(22, 56, 70, .035);
  }
  #firstUseDemoEscalas .fd-scales-mobile-head {
    padding: 12px 15px 11px;
    background: linear-gradient(115deg, #fcfefe 28%, #e8f7f7);
    border-bottom: 1px solid var(--fd-border);
  }
  #firstUseDemoEscalas .fd-scales-mobile-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 9px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .065em;
    line-height: 1.3;
    color: #0c6b7b;
  }
  #firstUseDemoEscalas .fd-scales-mobile-dismiss {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 6px;
    border: 0;
    background: transparent;
    color: #0d6274;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
  }
  #firstUseDemoEscalas .fd-scales-mobile-head h2 {
    margin: 0;
    color: var(--fd-ink);
    font: inherit;
    font-size: 19px;
    line-height: 1.24;
    font-weight: 700;
    letter-spacing: -.018em;
  }
  #firstUseDemoEscalas .fd-scales-mobile-body {
    padding: 12px 14px 13px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-patient {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fd-border);
    min-width: 0;
  }
  #firstUseDemoEscalas .fd-scales-mobile-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: #fff;
    background: #145366;
    font-size: 13px;
    font-weight: 800;
  }
  #firstUseDemoEscalas .fd-scales-mobile-patient > div {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  #firstUseDemoEscalas .fd-scales-mobile-patient strong {
    color: var(--fd-ink);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 750;
  }
  #firstUseDemoEscalas .fd-scales-mobile-patient > div > span {
    color: var(--fd-muted);
    font-size: 12px;
    line-height: 1.35;
  }
  #firstUseDemoEscalas .fd-scales-mobile-title {
    margin: 12px 0 9px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-title > span {
    display: block;
    margin-bottom: 2px;
    color: #0c6b7b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .055em;
  }
  #firstUseDemoEscalas .fd-scales-mobile-title h3 {
    margin: 0;
    color: var(--fd-ink);
    font-size: 16px;
    line-height: 1.28;
    font-weight: 750;
  }
  #firstUseDemoEscalas .fd-scales-mobile-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 5vw, 25px);
    min-height: 75px;
    padding: 10px 9px;
    border: 1px solid var(--fd-border);
    border-radius: 13px;
    background: #f8fbfc;
  }
  #firstUseDemoEscalas .fd-scales-mobile-score > div {
    display: grid;
    gap: 3px;
    min-width: 65px;
    text-align: center;
  }
  #firstUseDemoEscalas .fd-scales-mobile-score small {
    color: var(--fd-muted);
    font-size: 11px;
    line-height: 1.2;
  }
  #firstUseDemoEscalas .fd-scales-mobile-score strong {
    color: #0d6274;
    font-size: 23px;
    line-height: 1.1;
    font-weight: 750;
  }
  #firstUseDemoEscalas .fd-scales-mobile-score-arrow {
    color: #4e91a0;
    font-size: 22px;
    line-height: 1;
  }
  #firstUseDemoEscalas .fd-scales-mobile-change {
    margin: 7px 0 0;
    color: var(--fd-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
  }
  #firstUseDemoEscalas .fd-scales-mobile-switch {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 9px 12px;
    border: 1px solid #c6e2e7;
    border-radius: 11px;
    background: #edf7f8;
    color: var(--fd-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
  }
  #firstUseDemoEscalas .fd-scales-mobile-switch > span:last-child {
    color: #0d6274;
    font-size: 23px;
    line-height: 1;
  }
  #firstUseDemoEscalas .fd-scales-mobile-chart {
    display: grid;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid var(--fd-border);
    border-radius: 12px;
    background: #f8fbfc;
  }
  #firstUseDemoEscalas .fd-scales-mobile-chart-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    min-height: 29px;
    color: var(--fd-ink);
  }
  #firstUseDemoEscalas .fd-scales-mobile-chart-row > span {
    color: var(--fd-muted);
    font-size: 11px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-chart-row > strong {
    font-size: 12px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    text-align: right;
  }
  #firstUseDemoEscalas .fd-scales-mobile-chart-track {
    height: 9px;
    background: #e1edf0;
    border-radius: 99px;
    overflow: hidden;
  }
  #firstUseDemoEscalas .fd-scales-mobile-chart-track i {
    display: block;
    height: 100%;
    background: #15778b;
    border-radius: 99px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-definition {
    margin: 9px 2px 0;
    color: var(--fd-muted);
    font-size: 11px;
    line-height: 1.42;
  }
  #firstUseDemoEscalas .fd-scales-mobile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--fd-border);
  }
  #firstUseDemoEscalas .fd-scales-mobile-footer p {
    flex: 1 1 126px;
    margin: 0;
    color: var(--fd-muted);
    font-size: 11px;
    line-height: 1.4;
  }
  #firstUseDemoEscalas .fd-scales-mobile-create {
    flex: 0 0 auto;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 13px;
    border: 1px solid #0b596d;
    border-radius: 11px;
    background: #0b596d;
    color: #fff;
    font: inherit;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 750;
    cursor: pointer;
  }
  #firstUseDemoEscalas .fd-scales-mobile-create:hover {
    background: #0a4556;
  }
  #firstUseDemoEscalas :is(.fd-scales-mobile-dismiss, .fd-scales-mobile-switch, .fd-scales-mobile-create):focus-visible {
    outline: 3px solid #51b5c5;
    outline-offset: 2px;
  }
}
@media (max-width: 359px) {
  #firstUseDemoEscalas .fd-scales-mobile-head h2 { font-size: 18px; }
  #firstUseDemoEscalas .fd-scales-mobile-body { padding-inline: 11px; }
  #firstUseDemoEscalas .fd-scales-mobile-footer { gap: 6px; }
}


/* Second-pass functional Scales mobile refinement, 2026-11-01.
   Only the empty-account demo gets a preview of the existing real PSFS catalog.
   Patient picker, real applications and desktop/tablet layouts stay unchanged. */
#secao-escalas .fs-catalog-demo-note { display: none; }

@media (max-width: 620px) {
  #firstUseDemoEscalas .fd-scales-mobile-head {
    padding: 8px 13px 9px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-head h2 {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
  }
  #firstUseDemoEscalas .fd-scales-mobile-eyebrow {
    font-size: 10px;
    letter-spacing: .055em;
  }
  #firstUseDemoEscalas .fd-scales-mobile-body {
    padding: 10px 12px 12px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-patient {
    gap: 9px;
    padding-bottom: 9px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 12px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-title {
    margin: 9px 0 7px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-title h3 { font-size: 15px; }
  #firstUseDemoEscalas .fd-scales-mobile-score {
    min-height: 65px;
    padding: 8px 9px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-score strong { font-size: 21px; }
  #firstUseDemoEscalas .fd-scales-mobile-change { margin-top: 5px; }
  #firstUseDemoEscalas .fd-scales-mobile-switch {
    margin-top: 8px;
    padding: 8px 11px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 8px;
    margin-top: 10px;
    padding-top: 9px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-footer p {
    width: 100%;
    flex: none;
    font-size: 11px;
    line-height: 1.4;
  }
  #firstUseDemoEscalas .fd-scales-mobile-create {
    justify-self: start;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 11.5px;
  }

  /* The catalog is not empty: PSFS exists. Show its authentic description,
     but not the disabled patient selector during fictional exploration. */
  #secao-escalas.fs-demo-only > .fs-catalog-heading {
    display: block !important;
    margin: 12px 1px 7px;
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .06em;
  }
  #secao-escalas.fs-demo-only > .fs-catalog-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  #secao-escalas.fs-demo-only > .fs-catalog-layout > .fs-catalog-apply,
  #secao-escalas.fs-demo-only > .fs-catalog-layout > .fs-catalog-guidance {
    display: none !important;
  }
  #secao-escalas.fs-demo-only .fs-catalog-instrument {
    padding: 12px 13px;
    border-radius: 14px;
    box-shadow: none;
  }
  #secao-escalas.fs-demo-only .fs-catalog-overview {
    align-items: center;
    gap: 10px;
  }
  #secao-escalas.fs-demo-only .fs-catalog-symbol {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  #secao-escalas.fs-demo-only .fs-catalog-instrument h3 {
    font-size: 13px;
    line-height: 1.3;
  }
  #secao-escalas.fs-demo-only .fs-catalog-description {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
  }
  #secao-escalas.fs-demo-only .fs-catalog-facts {
    gap: 5px;
    margin-top: 9px;
  }
  #secao-escalas.fs-demo-only .fs-catalog-facts span {
    padding: 5px 7px;
    font-size: 10px;
  }
  #secao-escalas.fs-demo-only .fs-catalog-demo-note {
    display: block;
    margin: 9px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
  }
}

/* Keep the desktop hero untouched; compact only the Escalas phone header. */
@media (max-width: 480px) {
  body:has(#secao-escalas:not(.hidden)) .header.home-start-header {
    padding: 11px 14px 12px;
    margin-bottom: 10px;
    border-radius: 17px;
  }
  body:has(#secao-escalas:not(.hidden)) .header.home-start-header .eyebrow {
    margin-bottom: 5px;
    padding: 4px 9px;
    font-size: 9px;
  }
  body:has(#secao-escalas:not(.hidden)) .header.home-start-header .header-main-title {
    font-size: clamp(22px, 5.65vw, 24px);
    line-height: 1.16;
  }
  body:has(#secao-escalas:not(.hidden)) .header.home-start-header .header-subtitle {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.35;
  }
}


/* Mobile parity for actual PSFS catalog and demo, 2026-11-01.
   Scope: Functional Scales only. The real patient form and desktop are unchanged. */
#secao-escalas .fs-catalog-empty { display: none; }

@media (max-width: 620px) {
  /* Match the real PSFS card to the exact spacing and type of its demo preview. */
  #secao-escalas:not(.fs-demo-only) > .fs-catalog-heading {
    margin: 12px 1px 7px;
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .06em;
  }
  #secao-escalas:not(.fs-demo-only) > .fs-catalog-layout {
    gap: 10px;
  }
  #secao-escalas:not(.fs-demo-only) .fs-catalog-instrument {
    padding: 12px 13px;
    border-radius: 14px;
    box-shadow: none;
  }
  #secao-escalas:not(.fs-demo-only) .fs-catalog-overview {
    align-items: center;
    gap: 10px;
  }
  #secao-escalas:not(.fs-demo-only) .fs-catalog-symbol {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  #secao-escalas:not(.fs-demo-only) .fs-catalog-instrument h3 {
    font-size: 13px;
    line-height: 1.3;
  }
  #secao-escalas:not(.fs-demo-only) .fs-catalog-description {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
  }
  #secao-escalas:not(.fs-demo-only) .fs-catalog-facts {
    gap: 5px;
    margin-top: 9px;
  }
  #secao-escalas:not(.fs-demo-only) .fs-catalog-facts span {
    padding: 5px 7px;
    font-size: 10px;
  }

  /* Active accounts keep all inputs; only the zero-patient state is compact. */
  #secao-escalas .fs-catalog-apply {
    padding: 13px;
    border-radius: 14px;
    gap: 7px;
    box-shadow: none;
  }
  #secao-escalas .fs-catalog-apply .form-section-label {
    font-size: 10px;
    letter-spacing: .06em;
  }
  #secao-escalas .fs-catalog-apply h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.28;
  }
  #secao-escalas .fs-catalog-apply label {
    margin-top: 4px;
    font-size: 12px;
  }
  #secao-escalas .fs-catalog-apply .input {
    min-height: 44px;
    border-radius: 11px;
    font-size: 13px;
  }
  #secao-escalas .fs-catalog-actions {
    gap: 7px;
    margin-top: 5px;
  }
  #secao-escalas .fs-catalog-actions .button {
    min-height: 44px;
    padding: 9px 11px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.3;
  }
  #secao-escalas .fs-catalog-apply.fs-empty-active > label,
  #secao-escalas .fs-catalog-apply.fs-empty-active > #fsCatalogPatient,
  #secao-escalas .fs-catalog-apply.fs-empty-active > .fs-catalog-feedback,
  #secao-escalas .fs-catalog-apply.fs-empty-active > .fs-catalog-actions {
    display: none;
  }
  #secao-escalas .fs-catalog-apply.fs-empty-active > .fs-catalog-empty {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-top: 2px;
  }
  #secao-escalas .fs-catalog-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }
  #secao-escalas .fs-catalog-register {
    box-sizing: border-box;
    width: auto;
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid #0b596d;
    border-radius: 10px;
    background: #0b596d;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    cursor: pointer;
  }
  #secao-escalas .fs-catalog-register:hover {
    background: #0a4556;
  }
  #secao-escalas .fs-catalog-register:focus-visible {
    outline: 3px solid #51b5c5;
    outline-offset: 2px;
  }

  #secao-escalas .fs-catalog-guidance {
    border-radius: 14px;
  }
  #secao-escalas .fs-catalog-guidance summary {
    min-height: 48px;
    padding: 9px 12px;
    gap: 10px;
    font-size: 14px;
  }
  #secao-escalas .fs-catalog-guide-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  /* The collapsed demo is only an invitation, not the focus of the real page. */
  #firstUseDemoEscalas .fd-teaser.fd-teaser-compact {
    min-height: 54px;
    padding: 8px 11px;
    gap: 9px;
    margin-bottom: 8px;
  }
  #firstUseDemoEscalas .fd-teaser-compact .fd-teaser-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 13px;
  }
  #firstUseDemoEscalas .fd-teaser-compact .fd-teaser-copy strong {
    font-size: 13px;
  }
  #firstUseDemoEscalas .fd-teaser-compact .fd-teaser-copy > span {
    font-size: 11px;
  }
}

/* Patient demo premium mobile, approved visual — 2026-11-01.
   Isolated to first-use Patients. All clinical Home, tests, scales, and real records stay untouched.
   Phone adaptation retains the five tabs in an accessible three/two grid. */
#listaPacientesAtivos .fd-patients .fd-patient-ui-icon {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  overflow: visible;
}
#listaPacientesAtivos .fd-patients .fd-patient-case .fd-case-copy > span {
  display: none;
}
#listaPacientesAtivos .fd-patients .fd-patient-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(105deg, rgba(229, 248, 248, .93), rgba(242, 250, 251, .9));
  border-color: #d2e8eb;
}
#listaPacientesAtivos .fd-patients .fd-patient-notice p {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: var(--fd-muted);
  font-size: 11px;
  line-height: 1.45;
}
#listaPacientesAtivos .fd-patients .fd-patient-notice strong {
  color: var(--fd-ink);
  font-weight: 750;
}
#listaPacientesAtivos .fd-patients .fd-patient-info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border: 1.5px solid #177f8d;
  border-radius: 50%;
  color: #0b6e7e;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}
#listaPacientesAtivos .fd-patients .fd-patient-stats .fd-patient-stat-glyph {
  display: grid;
  place-items: center;
  background: rgba(224, 245, 245, .95);
  color: #0e7582;
  border-radius: 9px;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
}
#listaPacientesAtivos .fd-patients .fd-patient-summary-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(128, 219, 219, .18), transparent 52%),
    linear-gradient(115deg, #f2fbfb, #f9fcfc 65%);
  border-color: #c9e3e8;
}
#listaPacientesAtivos .fd-patients .fd-patient-summary-card .fd-clinical-summary-head {
  align-items: center;
}
#listaPacientesAtivos .fd-patients .fd-patient-summary-card .fd-patient-activity-pill {
  display: inline-flex;
  padding: 4px 9px;
  background: rgba(207, 237, 239, .72);
  color: #0a6273;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
}
#listaPacientesAtivos .fd-patients .fd-patient-score-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  isolation: isolate;
  border-top: 0;
  border-bottom: 1px solid var(--fd-border);
  margin: 9px 0 8px;
  padding: 7px 0 11px;
}
#listaPacientesAtivos .fd-patients .fd-patient-score-timeline::before {
  content: "";
  position: absolute;
  left: 16.666%;
  right: 16.666%;
  top: 32px;
  height: 2px;
  background: linear-gradient(90deg, #bce4e7, #38abb5);
  z-index: 0;
  pointer-events: none;
}
#listaPacientesAtivos .fd-patients .fd-patient-score-timeline > div {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}
#listaPacientesAtivos .fd-patients .fd-patient-score-timeline > div + div {
  border-left: 0;
}
#listaPacientesAtivos .fd-patients .fd-patient-score-timeline > div > span {
  color: var(--fd-muted);
  line-height: 1.3;
  font-size: 11px;
}
#listaPacientesAtivos .fd-patients .fd-patient-score-timeline .fd-patient-timeline-dot {
  display: block;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border: 2px solid #107f8b;
  border-radius: 50%;
  background: #fff;
}
#listaPacientesAtivos .fd-patients .fd-patient-score-timeline strong {
  margin-top: 0;
  padding: 4px 7px;
  border-radius: 9px;
  background: rgba(206, 240, 240, .58);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
#listaPacientesAtivos .fd-patients .fd-patient-summary-card .fd-clinical-summary-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
}
#listaPacientesAtivos .fd-patients .fd-patient-note-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(221, 244, 245, .78);
  color: #0c6979;
}
#listaPacientesAtivos .fd-patients .fd-patient-note-symbol svg {
  width: 13px;
  height: 13px;
}
#listaPacientesAtivos .fd-patients .fd-patient-history-arrow {
  display: inline;
  font-size: 17px;
  margin-left: 6px;
  line-height: 1;
}

@media (max-width: 760px) {
  /* Compact real first-patient CTA: same product language without dominating the viewport. */
  #secao-pacientes .patients-first-use-card {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 8px;
    padding: 12px 13px;
    border-radius: 17px;
    align-items: center;
  }
  #secao-pacientes .patients-first-use-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  #secao-pacientes .patients-first-use-icon svg { width: 23px; height: 23px; }
  #secao-pacientes .patients-first-use-copy .form-section-label { display: none; }
  #secao-pacientes .patients-first-use-copy h2 {
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
  }
  #secao-pacientes .patients-first-use-copy p:last-child {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
  }
  #secao-pacientes .patients-first-use-action {
    grid-column: 2;
    justify-self: start;
    width: auto;
    min-height: 44px;
    margin: 2px 0 0;
    padding: 9px 13px;
    border-radius: 11px;
    font-size: 12px;
    gap: 8px;
  }
  #secao-pacientes .patients-first-use-action span[aria-hidden="true"] {
    font-size: 18px;
  }

  #listaPacientesAtivos .fd-patients {
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(22, 56, 70, .035);
  }
  #listaPacientesAtivos .fd-patients .fd-head.fd-patient-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 13px 9px;
    background:
      radial-gradient(ellipse at 100% 0%, rgba(153, 227, 226, .23), transparent 48%),
      linear-gradient(112deg, #fcfefe 35%, #eaf8f8);
  }
  #listaPacientesAtivos .fd-patients .fd-patient-hero .fd-heading h2 {
    font-size: 18px;
    line-height: 1.23;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 5px 0 4px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-hero .fd-heading p {
    font-size: 11px;
    line-height: 1.4;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-hero .fd-eyebrow {
    font-size: 9px;
    letter-spacing: .045em;
    line-height: 1.3;
    padding-right: 68px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-hero .fd-dismiss {
    position: absolute;
    right: 10px;
    top: 4px;
    min-height: 44px;
    min-width: 65px;
    padding: 8px 3px;
    font-size: 10px;
    text-align: center;
    color: #0d6274;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-case {
    gap: 9px;
    flex-wrap: nowrap;
    margin: 0 13px;
    padding: 10px 0;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-case .fd-avatar {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border-radius: 11px;
    font-size: 13px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-case .fd-case-copy {
    flex: 1 1 0;
    min-width: 0;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-case .fd-case-copy h3 {
    font-size: 16px;
    font-weight: 750;
    margin: 0 0 2px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-case .fd-case-copy p {
    font-size: 11px;
    line-height: 1.35;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-notice {
    margin: 8px 12px 0;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 11px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-info-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    font-size: 11px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-notice p {
    font-size: 10px;
    line-height: 1.4;
  }
  #listaPacientesAtivos .fd-patients .fd-body.fd-patient-overview {
    margin: 10px 12px 12px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-body-heading h3 {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 750;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    margin: 9px 0 10px;
    padding: 0;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: span 2;
    gap: 5px;
    min-width: 0;
    min-height: 44px;
    padding: 7px 5px;
    font-size: 10px;
    line-height: 1.2;
    border-radius: 11px;
    white-space: normal;
    flex: none;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-tabs button:nth-child(n+4) {
    grid-column: span 3;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-panel {
    min-height: 0;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-patient-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-patient-stats > div {
    min-height: 86px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-rows: min-content auto;
    gap: 2px 5px;
    align-content: start;
    align-items: start;
    padding: 9px 7px;
    border-radius: 12px;
    background: linear-gradient(120deg, #fcfefe, #f3fafb);
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-patient-stats .fd-patient-stat-glyph {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 24px;
    height: 24px;
    border-radius: 8px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-patient-stats .fd-patient-stat-glyph svg {
    width: 13px;
    height: 13px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-patient-stats strong {
    grid-column: 2;
    grid-row: 1;
    font-size: 18px;
    line-height: 1.25;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-patient-stats > div > span:last-child {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    font-size: 10px;
    line-height: 1.27;
    overflow-wrap: break-word;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-summary-card {
    margin-top: 9px;
    padding: 12px;
    border-radius: 13px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-summary-card .fd-label {
    margin-bottom: 4px;
    font-size: 10px;
    letter-spacing: .045em;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-summary-card .fd-clinical-summary-head h3 {
    font-size: 17px;
    line-height: 1.25;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-score-timeline {
    padding: 7px 0 10px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-score-timeline strong {
    font-size: 17px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-summary-card .fd-clinical-summary-note {
    font-size: 10px;
    line-height: 1.42;
  }
  #listaPacientesAtivos .fd-patients .fd-footer {
    margin-top: 10px;
    padding-top: 11px;
    gap: 8px;
  }
  #listaPacientesAtivos .fd-patients .fd-footer p {
    font-size: 11px;
    line-height: 1.42;
  }
  #listaPacientesAtivos .fd-patients .fd-footer > div,
  #listaPacientesAtivos .fd-patients .fd-footer .fd-secondary {
    width: 100%;
  }
  #listaPacientesAtivos .fd-patients .fd-footer .fd-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    border-radius: 12px;
  }
}

/* Keep the same modern proportions without the 3-column squeeze on narrow phones. */
@media (max-width: 359px) {
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-tabs button {
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-patient-stats > div {
    grid-template-columns: 1fr;
    grid-template-rows: 21px 22px auto;
    row-gap: 2px;
    min-height: 98px;
    padding: 7px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-patient-stats .fd-patient-stat-glyph {
    grid-column: 1;
    grid-row: 1;
    width: 21px;
    height: 21px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-patient-stats strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 17px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-patient-stats > div > span:last-child {
    grid-column: 1;
    grid-row: 3;
    font-size: 9.5px;
  }
}


/* History demonstration mobile premium, 2026-11-01.
   Only the fictional archive on an empty account changes; real records stay intact. */
#listaHistorico .fd-history-premium .fd-history-hero {
  display: block;
}
#listaHistorico .fd-history-premium .fd-history-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
#listaHistorico .fd-history-premium .fd-history-head-top .fd-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  margin: 0;
}
#listaHistorico .fd-history-premium .fd-history-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(105deg, rgba(229, 248, 248, .93), rgba(242, 250, 251, .9));
  border-color: #d2e8eb;
}
#listaHistorico .fd-history-premium .fd-history-notice p {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: var(--fd-muted);
  font-size: 11px;
  line-height: 1.45;
}
#listaHistorico .fd-history-premium .fd-history-notice strong {
  color: var(--fd-ink);
}
#listaHistorico .fd-history-premium .fd-history-info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1.5px solid #177f8d;
  border-radius: 50%;
  color: #0b6e7e;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
#listaHistorico .fd-history-premium .fd-history-overview .fd-history-items {
  display: grid;
  gap: 8px;
}
#listaHistorico .fd-history-premium .fd-history-item {
  border-radius: 13px;
  background: linear-gradient(115deg, #fbfefe, #f3fafb);
  border-color: #d4e7eb;
}
#listaHistorico .fd-history-premium .fd-history-toggle {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 10px 12px;
}
#listaHistorico .fd-history-premium .fd-history-step {
  display: grid;
  place-items: center;
  align-self: start;
  flex: none;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: #e2f4f5;
  border: 1px solid #c9e7eb;
  color: #0d7180;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#listaHistorico .fd-history-premium .fd-history-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}
#listaHistorico .fd-history-premium .fd-history-title .fd-history-date {
  display: block;
  color: #0d7180;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}
#listaHistorico .fd-history-premium .fd-history-title strong {
  color: var(--fd-ink);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 750;
}
#listaHistorico .fd-history-premium .fd-history-title small {
  color: var(--fd-muted);
  font-size: 11px;
  line-height: 1.38;
}
#listaHistorico .fd-history-premium .fd-history-chevron {
  display: block;
  align-self: center;
  justify-self: center;
  width: 8px;
  height: 8px;
  border: none;
  border-right: 2px solid #176f80;
  border-bottom: 2px solid #176f80;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
#listaHistorico .fd-history-premium .fd-history-expanded .fd-history-chevron {
  transform: rotate(225deg);
}
#listaHistorico .fd-history-premium .fd-history-expanded {
  border-color: #afd8df;
  box-shadow: 0 3px 12px rgba(22, 56, 70, .035);
}
#listaHistorico .fd-history-premium .fd-history-detail {
  padding: 11px 13px 12px;
  border-top: 1px solid var(--fd-border);
  background: rgba(255, 255, 255, .78);
}
#listaHistorico .fd-history-premium .fd-history-detail[hidden] {
  display: none !important;
}
#listaHistorico .fd-history-premium .fd-history-detail p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}
#listaHistorico .fd-history-premium .fd-history-footer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
#listaHistorico .fd-history-premium .fd-history-footer-actions button {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 9px;
  font-size: 11.5px;
  line-height: 1.25;
  border-radius: 11px;
}

@media (max-width: 620px) {
  /* Same density as the recently approved Patients demo. */
  #secao-historico .history-start-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px 10px;
    align-items: center;
    padding: 12px 13px;
    border-radius: 17px;
  }
  #secao-historico .history-start-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  #secao-historico .history-start-icon svg {
    width: 23px;
    height: 23px;
  }
  #secao-historico .history-start-copy .form-section-label {
    display: none;
  }
  #secao-historico .history-start-copy h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 750;
  }
  #secao-historico .history-start-copy p:last-child {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
  }
  #secao-historico .history-start-action {
    grid-column: 2;
    justify-self: start;
    width: auto;
    min-height: 44px;
    margin: 2px 0 0;
    padding: 9px 13px;
    border-radius: 11px;
    gap: 7px;
    font-size: 12px;
  }
  #secao-historico .history-start-action span {
    font-size: 17px;
  }
  #listaHistorico .fd-history-premium {
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(22, 56, 70, .035);
  }
  #listaHistorico .fd-history-premium .fd-history-hero {
    display: block;
    padding: 12px 13px 10px;
    background:
      radial-gradient(ellipse at 100% 0%, rgba(153, 227, 226, .22), transparent 55%),
      linear-gradient(112deg, #fcfefe 35%, #eaf8f8);
  }
  #listaHistorico .fd-history-premium .fd-history-head-top .fd-eyebrow {
    font-size: 9px;
    letter-spacing: .045em;
    line-height: 1.3;
  }
  #listaHistorico .fd-history-premium .fd-history-head-top .fd-dismiss {
    min-height: 44px;
    min-width: 48px;
    padding: 8px 2px;
    font-size: 11px;
  }
  #listaHistorico .fd-history-premium .fd-heading h2 {
    margin: 3px 0 3px;
    font-family: 'Manrope', var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -.025em;
  }
  #listaHistorico .fd-history-premium .fd-heading p {
    font-size: 11px;
    line-height: 1.4;
  }
  #listaHistorico .fd-history-premium .fd-history-case {
    flex-wrap: nowrap;
    gap: 9px;
    margin: 0 13px;
    padding: 10px 0;
  }
  #listaHistorico .fd-history-premium .fd-history-case .fd-avatar {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border-radius: 11px;
    font-size: 13px;
  }
  #listaHistorico .fd-history-premium .fd-history-case .fd-case-copy {
    flex: 1 1 0;
    min-width: 0;
  }
  #listaHistorico .fd-history-premium .fd-history-case .fd-case-copy h3 {
    margin: 0 0 2px;
    font-size: 16px;
    line-height: 1.3;
  }
  #listaHistorico .fd-history-premium .fd-history-case .fd-case-copy p {
    font-size: 11px;
    line-height: 1.35;
  }
  #listaHistorico .fd-history-premium .fd-history-notice {
    margin: 8px 12px 0;
    padding: 8px 10px;
    border-radius: 11px;
    gap: 8px;
  }
  #listaHistorico .fd-history-premium .fd-history-notice p {
    font-size: 10px;
    line-height: 1.4;
  }
  #listaHistorico .fd-history-premium .fd-history-info-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    font-size: 11px;
  }
  #listaHistorico .fd-history-premium .fd-history-overview {
    margin: 10px 12px 12px;
    padding: 0;
    border: none;
    background: transparent;
    min-width: 0;
  }
  #listaHistorico .fd-history-premium .fd-history-overview .fd-body-heading h3 {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 750;
  }
  #listaHistorico .fd-history-premium .fd-history-overview .fd-body-heading > span {
    padding: 5px 8px;
    font-size: 10px;
  }
  #listaHistorico .fd-history-premium .fd-history-items {
    gap: 7px;
    margin-top: 9px;
  }
  #listaHistorico .fd-history-premium .fd-history-toggle {
    padding: 10px;
    gap: 9px;
    grid-template-columns: 28px minmax(0, 1fr) 12px;
    min-height: 67px;
  }
  #listaHistorico .fd-history-premium .fd-history-step {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 10px;
  }
  #listaHistorico .fd-history-premium .fd-history-title strong {
    font-size: 13px;
  }
  #listaHistorico .fd-history-premium .fd-history-title small {
    font-size: 10.5px;
  }
  #listaHistorico .fd-history-premium .fd-history-detail {
    padding: 10px 12px;
  }
  #listaHistorico .fd-history-premium .fd-footer {
    display: grid;
    gap: 10px;
    margin-top: 11px;
    padding-top: 10px;
  }
  #listaHistorico .fd-history-premium .fd-footer p {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
  }
  #listaHistorico .fd-history-premium .fd-footer .fd-history-footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #listaHistorico .fd-history-premium .fd-history-footer-actions button {
    font-size: 11px;
    padding: 9px 7px;
  }
}
@media (max-width: 359px) {
  #listaHistorico .fd-history-premium .fd-history-footer-actions,
  #listaHistorico .fd-history-premium .fd-footer .fd-history-footer-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  #listaHistorico .fd-history-premium .fd-history-toggle {
    gap: 7px;
  }
}

/* On real mobile screens, reduce only the Histórico hero; keep other sections unchanged. */
@media (max-width: 480px) {
  body:has(#secao-historico:not(.hidden)) .header.home-start-header {
    padding: 11px 14px 12px;
    margin-bottom: 10px;
    border-radius: 17px;
  }
  body:has(#secao-historico:not(.hidden)) .header.home-start-header .eyebrow {
    margin-bottom: 5px;
    padding: 4px 9px;
    font-size: 9px;
  }
  body:has(#secao-historico:not(.hidden)) .header.home-start-header .header-main-title {
    font-size: clamp(22px, 5.65vw, 24px);
    line-height: 1.16;
  }
  body:has(#secao-historico:not(.hidden)) .header.home-start-header .header-subtitle {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  #listaHistorico .fd-history-premium .fd-history-chevron { transition: none; }
}


/* Shared first-use demo design contract 2026-11-01.
   Shared UI anatomy: header eyebrow -> Sair, compact title, fictional patient,
   fictional-data notice. Modules and live clinical records stay independent. */
:is(#listaPacientesAtivos .fd-patients,
    #listaHistorico .fd-history-premium,
    #firstUseDemoTestes .fd-tests-demo,
    #firstUseDemoEscalas .fd-scales-demo) {
  --fd-demo-header-ink: #163846;
  --fd-demo-header-aqua: #eaf8f8;
  --fd-demo-info-fill: #eef8f9;
  --fd-demo-info-border: #cfe5e9;
}
:is(#listaPacientesAtivos .fd-patients,
    #listaHistorico .fd-history-premium,
    #firstUseDemoTestes .fd-tests-demo,
    #firstUseDemoEscalas .fd-scales-demo) .fd-demo-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-width: 0;
}
:is(#listaPacientesAtivos .fd-patients,
    #listaHistorico .fd-history-premium,
    #firstUseDemoTestes .fd-tests-demo,
    #firstUseDemoEscalas .fd-scales-demo) .fd-demo-eyebrow {
  display: block;
  min-width: 0;
  color: #0c6b7b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.3;
}
:is(#listaPacientesAtivos .fd-patients,
    #listaHistorico .fd-history-premium,
    #firstUseDemoTestes .fd-tests-demo,
    #firstUseDemoEscalas .fd-scales-demo) .fd-demo-exit {
  position: static;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 44px;
  margin: 0;
  padding: 8px 5px;
  border: 0;
  background: transparent;
  color: #0d6274;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
:is(#listaPacientesAtivos .fd-patients,
    #listaHistorico .fd-history-premium) .fd-head.fd-demo-standard-head {
  display: block;
}
:is(#listaPacientesAtivos .fd-patients,
    #listaHistorico .fd-history-premium) .fd-demo-standard-head .fd-heading {
  min-width: 0;
  margin: 2px 0 0;
}
:is(#listaPacientesAtivos .fd-patients,
    #listaHistorico .fd-history-premium) .fd-demo-standard-head .fd-heading h2 {
  font-family: 'Manrope', var(--font-sans);
  font-weight: 700;
}
:is(#professionalOnboarding .fd-home,
    #listaPacientesAtivos .fd-patients,
    #listaHistorico .fd-history-premium,
    #firstUseDemoTestes .fd-tests-demo,
    #firstUseDemoEscalas .fd-scales-demo) .fd-demo-note {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #cfe5e9;
  border-radius: 11px;
  background: linear-gradient(105deg, #ecf8f9, #f6fbfc);
  color: var(--fd-muted);
  box-sizing: border-box;
}
:is(#professionalOnboarding .fd-home,
    #listaPacientesAtivos .fd-patients,
    #listaHistorico .fd-history-premium,
    #firstUseDemoTestes .fd-tests-demo,
    #firstUseDemoEscalas .fd-scales-demo) .fd-demo-info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1.5px solid #137b8a;
  border-radius: 50%;
  color: #0b6e7e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
:is(#professionalOnboarding .fd-home,
    #listaPacientesAtivos .fd-patients,
    #listaHistorico .fd-history-premium,
    #firstUseDemoTestes .fd-tests-demo,
    #firstUseDemoEscalas .fd-scales-demo) .fd-demo-note :is(p, .fd-demo-note-copy) {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--fd-muted);
  font-size: 10.5px;
  line-height: 1.43;
  overflow-wrap: break-word;
}
:is(#professionalOnboarding .fd-home,
    #listaPacientesAtivos .fd-patients,
    #listaHistorico .fd-history-premium,
    #firstUseDemoTestes .fd-tests-demo,
    #firstUseDemoEscalas .fd-scales-demo) .fd-demo-note strong {
  color: var(--fd-ink);
  font-weight: 750;
}
:is(#listaPacientesAtivos .fd-patients,
    #listaHistorico .fd-history-premium,
    #firstUseDemoTestes .fd-tests-demo,
    #firstUseDemoEscalas .fd-scales-demo) .fd-demo-exit:focus-visible {
  outline: 3px solid #51b5c5;
  outline-offset: 2px;
}
#professionalOnboarding .fd-home .fd-demo-home-note { margin-top: 10px; }

/* Mobile uses one consistent hierarchy across the four dedicated demo pages. */
@media (max-width: 620px) {
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-standard-head {
    box-sizing: border-box;
    padding: 9px 13px 11px;
    border-bottom: 1px solid var(--fd-border);
    background: linear-gradient(112deg, #fcfefe 35%, #eaf8f8);
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-standard-head .fd-demo-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: static;
    padding: 0;
    margin: 0 0 1px;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-standard-head .fd-demo-eyebrow {
    flex: 1 1 auto;
    padding: 0;
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: .055em;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-standard-head .fd-demo-exit {
    position: static;
    inset: auto;
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 4px;
    margin: 0;
    font-size: 11px;
    align-self: center;
    text-align: center;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-standard-head h2,
  #firstUseDemoTestes .fd-demo-standard-head h2,
  #firstUseDemoEscalas .fd-demo-standard-head h2 {
    margin: 1px 0 0;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--fd-ink);
  }
  #listaPacientesAtivos .fd-patients .fd-demo-standard-head .fd-heading h2,
  #listaHistorico .fd-history-premium .fd-demo-standard-head .fd-heading h2 {
    font-size: 17px;
    margin: 1px 0 3px;
    line-height: 1.25;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium) .fd-demo-standard-head .fd-heading p {
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
  }
  /* Fix original overlapping "Recolher demonstração" in Patients. */
  #listaPacientesAtivos .fd-patients .fd-patient-hero .fd-dismiss.fd-demo-exit {
    position: static;
    inset: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 4px;
    margin: 0;
  }
  #listaPacientesAtivos .fd-patients .fd-head.fd-patient-hero,
  #listaHistorico .fd-history-premium .fd-head.fd-history-hero {
    padding: 9px 13px 11px;
    background: linear-gradient(112deg, #fcfefe 35%, #eaf8f8);
  }
  #firstUseDemoTestes .fd-tests-mobile-header.fd-demo-standard-head,
  #firstUseDemoEscalas .fd-scales-mobile-head.fd-demo-standard-head {
    padding: 9px 13px 11px;
    background: linear-gradient(112deg, #fcfefe 35%, #eaf8f8);
  }
  :is(#listaPacientesAtivos .fd-patients .fd-demo-person,
      #listaHistorico .fd-history-premium .fd-demo-person,
      #firstUseDemoTestes .fd-demo-person,
      #firstUseDemoEscalas .fd-demo-person) {
    gap: 9px;
    min-width: 0;
    margin-top: 0;
  }
  :is(#listaPacientesAtivos .fd-patients .fd-demo-person,
      #listaHistorico .fd-history-premium .fd-demo-person,
      #firstUseDemoTestes .fd-demo-person,
      #firstUseDemoEscalas .fd-demo-person)
      :is(.fd-avatar, .fd-scales-mobile-avatar, .fd-tests-mobile-avatar) {
    width: 39px;
    height: 39px;
    min-width: 39px;
    flex: 0 0 39px;
    border-radius: 11px;
    font-size: 13px;
    box-shadow: none;
  }
  #professionalOnboarding .fd-home .fd-demo-home-note {
    display: flex;
    gap: 9px;
    margin: 10px 0 0;
    padding: 9px 11px;
  }
  #professionalOnboarding .fd-home .fd-demo-home-note .fd-demo-note-copy {
    font-size: 10.5px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-notice.fd-demo-note,
  #listaHistorico .fd-history-premium .fd-history-notice.fd-demo-note {
    margin: 8px 12px 0;
  }
  #firstUseDemoTestes .fd-tests-mobile-note.fd-demo-note {
    display: flex;
    margin: 10px 0 0;
    padding: 9px 11px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-footer .fd-scales-demo-note.fd-demo-note {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 9px 11px;
    border-radius: 11px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-footer .fd-scales-demo-note p {
    flex: 1 1 0;
    width: auto;
    margin: 0;
    font-size: 10.5px;
  }
}
@media (max-width: 359px) {
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-standard-head .fd-demo-eyebrow {
    font-size: 9px;
    letter-spacing: .035em;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-standard-head h2 {
    font-size: 16px;
  }
}


/* The same illustration components also have safe tablet/desktop dimensions.
   Without these base sizes, an SVG can expand to the browser's 300x150 default. */
#listaPacientesAtivos .fd-patients .fd-demo-feature-title,
#listaHistorico .fd-history-premium .fd-demo-feature-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
#listaPacientesAtivos .fd-patients .fd-demo-feature-icon,
#listaHistorico .fd-history-premium .fd-demo-feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #edf8f9;
  color: #0c6978;
}
#listaPacientesAtivos .fd-patients .fd-demo-feature-icon svg,
#listaHistorico .fd-history-premium .fd-demo-feature-icon svg {
  display: block;
  width: 17px;
  height: 17px;
}
#listaPacientesAtivos .fd-patients .fd-patient-case .fd-case-copy > .fd-demo-passport-label,
#listaHistorico .fd-history-premium .fd-demo-passport-label {
  display: block;
  color: #0d7180;
  font-size: 10px;
  letter-spacing: .05em;
  font-weight: 800;
}
#listaPacientesAtivos .fd-patients .fd-demo-case-passport .fd-demo-passport-mark,
#listaHistorico .fd-history-premium .fd-demo-case-passport .fd-demo-passport-mark {
  display: none;
}

/* Visual demo system V7 — a clear shared case identity across sections.
   Only sample-first-use surfaces change; live records, page heroes and desktop stay untouched. */
@media (max-width: 620px) {
  /* A real visual component, not only matching labels. */
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-standard-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 7px 13px 7px;
    background:
      radial-gradient(ellipse at 99% 20%, rgba(127, 210, 214, .26) 0, transparent 53%),
      linear-gradient(115deg, #f3fbfb 0%, #e0f5f5 100%);
    border-bottom: 1px solid #c9e7e9;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-standard-head::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 150px;
    height: 150px;
    right: -78px;
    top: -72px;
    border: 1px solid rgba(20, 125, 140, .13);
    border-radius: 50%;
    pointer-events: none;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-header-top {
    margin: 0 0 3px;
    min-height: 30px;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-standard-head .fd-demo-eyebrow {
    display: inline-flex;
    width: fit-content;
    flex: 0 1 auto;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid #b4dde2;
    background: rgba(255,255,255,.72);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.2;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-standard-head .fd-demo-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #128b96;
    box-shadow: 0 0 0 4px rgba(22, 137, 151, .11);
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-standard-head .fd-demo-exit {
    min-height: 44px;
    min-width: 44px;
    padding: 7px 3px;
    color: #0c6473;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-feature-heading {
    display: grid;
    gap: 5px;
    margin: 1px 0 0;
    padding: 0;
    min-width: 0;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-feature-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-feature-icon {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #0c6978;
    border: 1px solid rgba(144, 207, 211, .42);
    background: rgba(255,255,255,.68);
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-feature-icon svg {
    display: block;
    width: 17px;
    height: 17px;
  }
  #listaPacientesAtivos .fd-patients .fd-demo-standard-head .fd-demo-feature-title h2,
  #listaHistorico .fd-history-premium .fd-demo-standard-head .fd-demo-feature-title h2,
  #firstUseDemoTestes .fd-demo-standard-head .fd-demo-feature-title h2,
  #firstUseDemoEscalas .fd-demo-standard-head .fd-demo-feature-title h2 {
    margin: 0;
    padding: 0;
    min-width: 0;
    font-family: 'Manrope', var(--font-sans);
    font-size: 17px;
    line-height: 1.22;
    font-weight: 780;
    letter-spacing: -.03em;
    color: #153d4a;
    overflow-wrap: normal;
  }
  #listaPacientesAtivos .fd-patients .fd-demo-standard-head .fd-demo-feature-description,
  #listaHistorico .fd-history-premium .fd-demo-standard-head .fd-demo-feature-description,
  #firstUseDemoTestes .fd-demo-standard-head .fd-demo-feature-description,
  #firstUseDemoEscalas .fd-demo-standard-head .fd-demo-feature-description {
    margin: 0 0 0 42px;
    font-size: 10.5px;
    line-height: 1.35;
    color: #496c77;
  }

  /* Shared fictional patient "passport": a colored compact card on every demo. */
  #listaPacientesAtivos .fd-patients .fd-demo-case-passport,
  #listaHistorico .fd-history-premium .fd-demo-case-passport,
  #firstUseDemoTestes .fd-demo-case-passport,
  #firstUseDemoEscalas .fd-demo-case-passport {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 12px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    box-sizing: border-box;
    width: calc(100% - 26px);
    max-width: 100%;
    min-height: 77px;
    margin: 11px 13px 0;
    padding: 10px 11px;
    border: 1px solid #c3e0e5;
    border-radius: 14px;
    background:
      radial-gradient(ellipse at 96% 10%, rgba(130, 210, 210, .19), transparent 58%),
      linear-gradient(118deg, #f0fbfb, #f9fcfc);
    box-shadow: inset 3px 0 0 rgba(19, 137, 148, .52);
    min-width: 0;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-case-passport
      .fd-demo-passport-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    min-width: 44px;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, #0e566a 20%, #087f8b 100%);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 3px 10px rgba(10, 82, 99, .1);
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-case-passport .fd-demo-passport-copy {
    display: grid;
    grid-column: 2;
    gap: 2px;
    min-width: 0;
    margin: 0;
    padding: 0;
    flex: 1 1 0;
  }
  #listaPacientesAtivos .fd-patients .fd-demo-case-passport .fd-case-copy > .fd-demo-passport-label,
  #listaHistorico .fd-history-premium .fd-demo-case-passport .fd-case-copy > .fd-demo-passport-label,
  #firstUseDemoTestes .fd-demo-case-passport .fd-case-copy > .fd-demo-passport-label,
  #firstUseDemoEscalas .fd-demo-case-passport .fd-case-copy > .fd-demo-passport-label {
    display: block;
    margin: 0;
    padding: 0;
    color: #087386;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .065em;
  }
  #listaPacientesAtivos .fd-patients .fd-demo-case-passport .fd-case-copy h3,
  #listaHistorico .fd-history-premium .fd-demo-case-passport .fd-case-copy h3,
  #firstUseDemoTestes .fd-demo-case-passport .fd-case-copy h3,
  #firstUseDemoEscalas .fd-demo-case-passport .fd-case-copy h3 {
    margin: 0;
    padding: 0;
    color: #123f4c;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
  }
  #listaPacientesAtivos .fd-patients .fd-demo-case-passport .fd-case-copy p,
  #listaHistorico .fd-history-premium .fd-demo-case-passport .fd-case-copy p,
  #firstUseDemoTestes .fd-demo-case-passport .fd-case-copy p,
  #firstUseDemoEscalas .fd-demo-case-passport .fd-case-copy p {
    margin: 0;
    padding: 0;
    color: #496b76;
    font-size: 10.5px;
    line-height: 1.3;
  }
  :is(#listaPacientesAtivos .fd-patients,
      #listaHistorico .fd-history-premium,
      #firstUseDemoTestes .fd-tests-demo,
      #firstUseDemoEscalas .fd-scales-demo) .fd-demo-case-passport .fd-demo-passport-mark {
    display: block;
    grid-column: 3;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2d9da7;
    box-shadow: 0 0 0 4px #d9f1f2;
  }

  /* Harmonized content area after the new passport; functionality stays the same. */
  #listaPacientesAtivos .fd-patients .fd-body.fd-patient-overview,
  #listaHistorico .fd-history-premium .fd-body.fd-history-overview {
    margin: 10px 12px 12px;
    padding: 13px 11px 12px;
    border: 1px solid #d6e9ed;
    border-radius: 14px;
    background: #fff;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-body-heading,
  #listaHistorico .fd-history-premium .fd-history-overview .fd-body-heading {
    padding: 0 0 9px;
    border-bottom: 1px solid #e5eff2;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-body-heading h3,
  #listaHistorico .fd-history-premium .fd-history-overview .fd-body-heading h3 {
    font-size: 15px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-tabs {
    margin-top: 11px;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-tabs button {
    background: #f6fbfc;
    border-color: #d6e9ed;
  }
  #listaPacientesAtivos .fd-patients .fd-patient-overview .fd-tabs button.active {
    background: linear-gradient(120deg, #0c596b, #0d7a89);
    border-color: #0d6f7d;
    color: #fff;
  }
  #listaHistorico .fd-history-premium .fd-history-item {
    box-shadow: inset 3px 0 0 rgba(16, 128, 140, .2);
  }
  #listaHistorico .fd-history-premium .fd-history-item.fd-history-expanded {
    box-shadow: inset 3px 0 0 #107f8d;
  }
  #firstUseDemoTestes .fd-tests-mobile-content,
  #firstUseDemoEscalas .fd-scales-mobile-body {
    padding: 0 12px 13px;
  }
  #firstUseDemoTestes .fd-demo-case-passport,
  #firstUseDemoEscalas .fd-demo-case-passport {
    margin: 11px 0 0;
    width: 100%;
  }
  #firstUseDemoTestes .fd-tests-mobile-examples,
  #firstUseDemoEscalas .fd-scales-mobile-title {
    margin-top: 13px;
  }
  #firstUseDemoTestes .fd-tests-mobile-test {
    background: linear-gradient(115deg, #fcfefe, #f4fafb);
    box-shadow: inset 3px 0 0 rgba(14, 132, 141, .22);
  }
  #firstUseDemoTestes .fd-tests-mobile-test[open] {
    box-shadow: inset 3px 0 0 #168895;
  }
  #firstUseDemoEscalas .fd-scales-mobile-score {
    background: linear-gradient(113deg, #f0fafb, #e8f6f7);
    border-color: #c2e4e7;
  }
  #firstUseDemoEscalas .fd-scales-mobile-score strong {
    color: #07677a;
    font-size: 22px;
  }
  #firstUseDemoEscalas .fd-scales-mobile-switch {
    background: #e7f6f7;
    border-color: #b6dce1;
  }

  /* Home is a compact entry point, but its sample becomes the same visible case card. */
  #professionalOnboarding .fd-home .fd-home-compact-banner {
    border: 1px solid #bce2e5;
    background:
      radial-gradient(ellipse at 100% 20%, rgba(103, 193, 198, .18), transparent 53%),
      linear-gradient(115deg, #f8fefe, #eaf7f8);
  }
  #professionalOnboarding .fd-home .fd-home-banner-copy {
    gap: 1px;
  }
  #professionalOnboarding .fd-home .fd-home-banner-kicker {
    display: block;
    color: #0c7985;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.2;
  }
  #professionalOnboarding .fd-home .fd-home-case-card {
    background:
      radial-gradient(ellipse at 97% 0%, rgba(166, 224, 222, .22), transparent 52%),
      linear-gradient(115deg, #f4fbfc, #ffffff 68%);
    border-color: #c8e3e6;
    box-shadow: inset 3px 0 0 rgba(19, 137, 148, .5);
  }
  #professionalOnboarding .fd-home .fd-home-case-label {
    display: inline-flex;
    width: fit-content;
    grid-column: 1 / -1;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid #bfe2e5;
    background: rgba(255,255,255,.82);
    color: #0b7581;
    font-size: 9px;
    letter-spacing: .05em;
  }
  #professionalOnboarding .fd-home .fd-demo-home-passport {
    border-bottom-color: #c2e3e7;
  }
  #professionalOnboarding .fd-home .fd-demo-home-person .fd-avatar {
    background: linear-gradient(145deg, #0e566a, #087f8b);
    box-shadow: 0 3px 10px rgba(10, 82, 99, .1);
  }
  #professionalOnboarding .fd-home .fd-demo-home-person .fd-case-copy p {
    color: #496b76;
  }
}
@media (max-width: 359px) {
  #listaPacientesAtivos .fd-patients .fd-demo-standard-head .fd-demo-feature-title h2,
  #listaHistorico .fd-history-premium .fd-demo-standard-head .fd-demo-feature-title h2,
  #firstUseDemoTestes .fd-demo-standard-head .fd-demo-feature-title h2,
  #firstUseDemoEscalas .fd-demo-standard-head .fd-demo-feature-title h2 {
    font-size: 15px;
  }
  #firstUseDemoTestes .fd-demo-case-passport,
  #firstUseDemoEscalas .fd-demo-case-passport {
    grid-template-columns: 40px minmax(0,1fr) 8px;
    gap: 7px;
  }
}
