:root {
  --primary: #0d9488;
  --primary-deep: #00685f;
  --primary-soft: #ccfbf1;
  --surface: #f8f9ff;
  --surface-low: #eff4ff;
  --surface-card: #ffffff;
  --surface-mint: #f0fdfa;
  --surface-blue: #e5eeff;
  --outline: #bcc9c6;
  --text: #0b1c30;
  --muted: #5b6765;
  --muted-2: #6d7a77;
  --danger: #ba1a1a;
  --warning: #b45309;
  --success: #047857;
  --shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  --shadow-strong: 0 18px 50px rgba(15, 23, 42, 0.1);
  --radius: 16px;
  --radius-sm: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: calc(88px + var(--safe-bottom));
}

.public-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7fffd 0%, var(--surface) 42%, #edf4ff 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 20px;
  background: rgba(248, 249, 255, 0.9);
  border-bottom: 1px solid rgba(188, 201, 198, 0.35);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-deep);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.18);
}

.logo-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: var(--primary-deep);
  transition: transform 0.18s ease, background 0.18s ease;
}

.icon-button:hover {
  background: var(--surface-low);
}

.icon-button:active,
.btn:active,
.nav-item:active {
  transform: scale(0.96);
}

.container {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(32px, 7vw, 64px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.12;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.hero-copy p {
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  gap: 8px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.18);
}

.btn-primary:hover {
  background: #087f75;
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-deep);
}

.btn-danger {
  background: #fee2e2;
  color: var(--danger);
}

.hero-visual {
  overflow: hidden;
  border-radius: 24px;
  background: #daeee9;
  box-shadow: var(--shadow-strong);
}

.hero-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.public-section {
  padding: 42px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

.card {
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: var(--shadow);
}

.card-pad {
  padding: 20px;
}

.feature-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  min-height: 170px;
}

.feature-card .feature-icon,
.tile-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 12px;
  background: #e0f2f1;
  color: var(--primary-deep);
}

.cta-band {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: var(--primary-deep);
  color: #fff;
}

.cta-band p {
  color: #d5fbf5;
}

.auth-wrap {
  min-height: 100vh;
  padding: 24px 0 48px;
}

.auth-card {
  width: min(860px, 100% - 40px);
  margin: 0 auto;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  background: var(--surface-low);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.step-pill.active {
  background: var(--primary);
  color: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  outline: 0;
  transition: border 0.18s ease, box-shadow 0.18s ease;
}

.textarea {
  min-height: 132px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.input[readonly] {
  background: var(--surface-low);
  color: var(--muted);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(248, 249, 255, 0.92);
  border-bottom: 1px solid rgba(188, 201, 198, 0.28);
  backdrop-filter: blur(16px);
}

.app-topbar > div:last-child {
  flex: 0 0 auto;
}

.profile-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.profile-title > div {
  min-width: 0;
}

.profile-title h3,
.profile-title p,
.kicker {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 46px;
  height: 46px;
  border: 2px solid #8ff2e7;
  border-radius: 999px;
  object-fit: cover;
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.pwa-banner {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: var(--radius-sm);
  background: #e0f8f5;
  color: var(--primary-deep);
  box-shadow: var(--shadow);
}

.pwa-banner.offline {
  background: #fff7ed;
  color: #9a3412;
}

.pwa-banner > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.pwa-banner span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-banner {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: var(--radius-sm);
  background: #fff7ed;
  color: #9a3412;
  box-shadow: var(--shadow);
}

.demo-banner > div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.demo-banner span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.page-heading {
  display: grid;
  gap: 8px;
  margin: 10px 0 22px;
}

.kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-card {
  border-left: 5px solid var(--primary);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric {
  padding: 14px;
  border-radius: 12px;
  background: #dfeafe;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--primary-deep);
  font-size: 28px;
  font-weight: 800;
}

.quick-list {
  display: grid;
  gap: 14px;
}

.quick-row,
.appointment-row,
.patient-row,
.exercise-row {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-row {
  grid-template-columns: 58px minmax(0, 1fr) 32px;
  align-items: center;
  text-align: left;
}

.appointment-row {
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  border-left: 5px solid transparent;
}

.appointment-row.confirmado {
  border-left-color: var(--primary);
}

.appointment-row.pendente {
  border-left-color: #bfdbfe;
}

.appointment-time {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status.confirmado,
.status.ativo,
.status.pago {
  background: #dcefeb;
  color: var(--primary-deep);
}

.status.pendente,
.status.aberto {
  background: #dbeafe;
  color: #315681;
}

.status.novo {
  background: #e5e7eb;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 4px;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.93);
  border-top: 1px solid rgba(188, 201, 198, 0.45);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 58px;
  border-radius: 999px;
  background: transparent;
  color: #384744;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-item.active {
  background: var(--primary);
  color: #fff;
}

.tabs,
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar,
.chips::-webkit-scrollbar {
  display: none;
}

.chip,
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(188, 201, 198, 0.7);
  border-radius: 999px;
  background: var(--surface-low);
  color: #374151;
  white-space: nowrap;
  font-weight: 800;
}

.chip.active,
.tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.week-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}

.day-card {
  display: grid;
  min-width: 58px;
  min-height: 72px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 800;
}

.day-card span:first-child {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-card.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.18);
}

.day-card.active span:first-child {
  color: #c9fff7;
}

.patient-header {
  display: grid;
  gap: 14px;
  align-items: center;
}

.progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #d8e5e2;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px #e0f2f1;
}

.soap-grid {
  display: grid;
  gap: 16px;
}

.soap-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.exercise-row {
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  border-left: 5px solid var(--primary);
}

.exercise-row img {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.fab {
  position: fixed;
  right: 22px;
  bottom: calc(96px + var(--safe-bottom));
  z-index: 25;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.26);
}

.drawer {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  max-height: 86vh;
  padding: 20px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -18px 60px rgba(15, 23, 42, 0.18);
  transform: translateY(110%);
  transition: transform 0.24s ease;
}

.drawer.open {
  transform: translateY(0);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  background: rgba(15, 23, 42, 0.3);
}

.overlay.open {
  display: block;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 110px;
  z-index: 70;
  max-width: min(360px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 138px;
  padding-top: 20px;
}

.bar {
  flex: 1;
  min-width: 28px;
  border-radius: 6px 6px 0 0;
  background: #c8dfdd;
}

.bar.active {
  background: var(--primary-deep);
  box-shadow: 0 10px 24px rgba(0, 104, 95, 0.22);
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(188, 201, 198, 0.45);
}

.settings-row:last-child {
  border-bottom: 0;
}

.switch {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.switch::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  content: "";
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease;
}

.switch.on {
  background: var(--primary);
}

.switch.on::after {
  transform: translateX(22px);
}

.empty {
  padding: 28px;
  border: 1px dashed var(--outline);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.help-hero {
  grid-template-columns: 1fr;
  gap: 18px;
}

.help-score {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 18px;
  border-radius: var(--radius);
  background: #dff8f4;
  color: var(--primary-deep);
  text-align: center;
}

.help-score strong {
  font-size: 44px;
  line-height: 1;
}

.help-score span {
  color: var(--primary-deep);
  font-weight: 800;
}

.help-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.pwa-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid rgba(13, 148, 136, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.pwa-card-main {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}

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

.pwa-tips {
  display: grid;
  gap: 10px;
}

.pwa-tips > div {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
}

.pwa-tips strong {
  display: block;
  margin-bottom: 3px;
  color: var(--primary-deep);
}

.demo-page {
  padding-block: 28px 48px;
}

.demo-heading {
  max-width: 780px;
}

.demo-grid {
  align-items: stretch;
}

.demo-card {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.demo-card .btn {
  margin-top: auto;
}

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

.demo-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-mint);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 800;
}

.demo-note {
  margin-top: 18px;
}

.demo-note > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--primary-deep);
}

.help-search {
  position: relative;
}

.help-search .material-symbols-outlined {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.help-search .input {
  padding-left: 46px;
}

.help-guide-list {
  display: grid;
  gap: 16px;
}

.help-guide {
  display: grid;
  gap: 16px;
}

.help-guide-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.help-guide ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.help-guide li {
  color: var(--text);
  line-height: 1.5;
}

.help-tip {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-mint);
  color: var(--primary-deep);
}

.help-tip p {
  color: var(--primary-deep);
}

.check-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-low);
  color: var(--text);
  font-weight: 700;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.faq-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-low);
}

.faq-item summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.faq-item p {
  margin-top: 10px;
}

@media (min-width: 760px) {
  .public-hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 56px;
  }

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

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

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .form-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid.three {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .patient-header {
    grid-template-columns: 1fr 280px;
  }

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

  .help-hero,
  .help-controls {
    grid-template-columns: 1fr 260px;
    align-items: end;
  }
}

@media (min-width: 1040px) {
  .app-shell {
    padding-bottom: 0;
    padding-left: 96px;
  }

  .bottom-nav {
    top: 0;
    right: auto;
    bottom: 0;
    width: 84px;
    grid-template-columns: 1fr;
    align-content: center;
    border-top: 0;
    border-right: 1px solid rgba(188, 201, 198, 0.45);
  }

  .nav-item {
    border-radius: 22px;
  }

  .fab {
    bottom: 28px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container,
  .auth-card {
    width: min(100% - 32px, 1120px);
  }

  .page {
    padding: 16px;
  }

  .pwa-banner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .pwa-banner .btn {
    justify-self: start;
  }

  .demo-banner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .demo-banner span {
    white-space: normal;
  }

  .demo-banner-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .demo-page {
    padding-block: 22px 42px;
  }

  h1,
  .page-heading h1,
  .auth-card h1 {
    font-size: 26px !important;
    line-height: 1.08;
  }

  h2,
  .card h2,
  .section-title h2 {
    font-size: 20px;
    line-height: 1.14;
  }

  h3,
  .card h3,
  .quick-row h3,
  .settings-row h3,
  .appointment-row h3,
  .exercise-row h3 {
    font-size: 16.5px;
    line-height: 1.22;
  }

  p,
  li,
  summary,
  .field label {
    font-size: 14px;
    line-height: 1.42;
  }

  .topbar {
    padding-inline: 14px;
    gap: 10px;
  }

  .topbar .hero-actions {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .topbar .btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .topbar [data-route="cadastro"] {
    display: none;
  }

  .app-topbar {
    min-height: 68px;
    padding: 10px 14px;
  }

  .profile-title {
    gap: 9px;
  }

  .avatar {
    width: 42px;
    height: 42px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .brand span:last-child {
    font-size: 18px;
  }

  .hero-visual img {
    height: 250px;
  }

  .card-pad {
    padding: 16px;
  }

  .metric {
    padding: 12px;
  }

  .metric strong {
    font-size: 23px;
  }

  .help-score strong {
    font-size: 38px;
  }

  .pwa-card-main {
    grid-template-columns: 46px 1fr;
  }

  .pwa-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .status {
    min-height: 28px;
    padding: 0 10px;
    font-size: 10.5px;
    line-height: 1;
    white-space: nowrap;
  }

  .chip,
  .tab {
    min-height: 38px;
    padding: 0 13px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  .tile-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  .quick-row {
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    gap: 10px;
    padding: 14px;
  }

  .settings-row {
    gap: 10px;
    padding: 12px 0;
  }

  .document-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .document-summary .btn {
    justify-self: start;
    margin-top: 2px;
  }

  .patient-row {
    gap: 10px;
    padding: 14px;
  }

  .bottom-nav {
    gap: 2px;
    padding-inline: 8px;
  }

  .nav-item {
    min-height: 54px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .appointment-row,
  .exercise-row {
    grid-template-columns: 1fr;
  }

  .appointment-time {
    text-align: left;
  }

  .exercise-row img {
    width: 100%;
    height: 150px;
  }

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