/* TrueCare24hs — sistema de design (2026-11)
 * Tipografia: Fraunces (títulos) + Lato (texto), ambas hospedadas localmente.
 * Paleta: azul-noite (ink), azul TrueCare (brand), verde-água (teal), areia (sand) e coral.
 * Páginas geradas por scripts/gerar-site.mjs. */

:root {
  --ink: #0b2433;
  --ink-2: #12344a;
  --ink-3: #1b4a66;
  --brand: #0a7fa6;
  --brand-600: #086a8b;
  --brand-50: #e7f4f8;
  --teal: #11a297;
  --teal-50: #e3f5f2;
  --coral: #ef6f5c;
  --coral-600: #d9533f;
  --coral-50: #fdebe6;
  --gold: #f2b84b;
  --sand: #faf6f0;
  --sand-2: #f3ece1;
  --cream: #fffdf9;
  --white: #ffffff;
  --text: #1c3341;
  --muted: #5b6e7b;
  --line: #e8e1d6;
  --line-cool: #dde8ee;
  --ok: #18794e;
  --error: #b42318;
  --warn-bg: #fff5e1;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(11 36 51 / 6%), 0 4px 14px -6px rgb(11 36 51 / 12%);
  --shadow: 0 2px 6px rgb(11 36 51 / 5%), 0 24px 48px -24px rgb(11 36 51 / 28%);
  --shadow-lg: 0 40px 80px -32px rgb(11 36 51 / 40%);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Lato", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--sand); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.12; letter-spacing: -.015em; }
h1, h2, .display { font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 120, "SOFT" 50; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -.03em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -.025em; line-height: 1.06; }
h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -.005em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--brand); }
.on-dark h1 em, .on-dark h2 em { color: #7fd8e6; }
em.coral { color: var(--coral) !important; }
strong { font-weight: 800; }
::selection { background: #bfe6f0; color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-sand-2 { background: var(--sand-2); }
.center { text-align: center; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 640px; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.eyebrow { display: inline-flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink-2); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgb(17 162 151 / 18%); }
.on-dark .eyebrow { background: rgb(255 255 255 / 10%); color: #d7eef5; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%); }
.kicker { display: block; margin-bottom: 14px; color: var(--coral-600); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.on-dark .kicker { color: #ffb4a6; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 30px; height: 30px; }

/* --------------------------------------------------------------- botões */
.btn { --b: var(--ink); --c: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--b); color: var(--c); font: 800 1rem/1.2 var(--sans); letter-spacing: .005em; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; box-shadow: 0 10px 24px -12px rgb(11 36 51 / 60%); white-space: nowrap; }
.btn:hover { color: var(--c); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgb(11 36 51 / 60%); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 20px; height: 20px; transition: transform .2s ease; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-coral { --b: var(--coral); box-shadow: 0 12px 26px -12px rgb(217 83 63 / 75%); }
.btn-coral:hover { --b: var(--coral-600); }
.btn-brand { --b: var(--brand); box-shadow: 0 12px 26px -12px rgb(10 127 166 / 70%); }
.btn-brand:hover { --b: var(--brand-600); }
.btn-light { --b: #fff; --c: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost { --b: transparent; --c: var(--ink); box-shadow: inset 0 0 0 1.5px rgb(11 36 51 / 22%); }
.btn-ghost:hover { --b: rgb(11 36 51 / 5%); box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-dark .btn-ghost { --c: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 35%); }
.on-dark .btn-ghost:hover { --b: rgb(255 255 255 / 8%); box-shadow: inset 0 0 0 1.5px #fff; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: wait; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; color: var(--brand-600); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------------- topo */
.topbar { background: var(--ink); color: #c9dce5; font-size: .85rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar-items { display: flex; gap: 22px; align-items: center; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .icon { width: 15px; height: 15px; color: #7fd8e6; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(250 246 240 / 82%); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s, background .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgb(11 36 51 / 45%); background: rgb(255 253 249 / 90%); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 168px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto 0 8px; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 700 .97rem var(--sans); text-decoration: none; cursor: pointer; }
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li:focus-within > button { background: rgb(11 36 51 / 6%); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--brand-600); }
.nav-links .icon-sm { width: 16px; height: 16px; transition: transform .2s; }
.menu { position: absolute; top: calc(100% + 10px); left: -12px; width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgb(11 36 51 / 6%); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { opacity: 1; visibility: visible; transform: none; }
.has-menu:hover > button .icon-sm, .has-menu.open > button .icon-sm { transform: rotate(180deg); }
.menu a { display: flex; gap: 14px; padding: 14px; border-radius: 14px; color: var(--text); text-decoration: none; }
.menu a:hover { background: var(--sand); color: var(--text); }
.menu .mi { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.menu .mi.t { background: var(--teal-50); color: var(--teal); }
.menu .mi.c { background: var(--coral-50); color: var(--coral-600); }
.menu strong { display: block; color: var(--ink); font-size: .98rem; }
.menu small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; width: 48px; height: 48px; margin-left: auto; border: 0; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; place-items: center; }

.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgb(11 36 51 / 45%); backdrop-filter: blur(4px); animation: fade .2s ease; }
.drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 28px; overflow-y: auto; background: var(--cream); animation: slide .28s cubic-bezier(.2, .8, .2, 1); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-top img { width: 150px; }
.drawer-panel h4 { margin: 18px 0 6px; color: var(--muted); font: 800 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.drawer-panel a.dl { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; color: var(--ink); font-weight: 700; text-decoration: none; }
.drawer-panel a.dl:hover { background: #fff; }
.drawer-panel .mi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-50); color: var(--brand-600); }
.drawer-panel .btn { margin-top: 10px; }
@keyframes slide { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }

/* --------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 84px) 0 clamp(64px, 8vw, 110px); isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero::before { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, #bfe7ef, transparent 70%); }
.hero::after { width: 460px; height: 460px; bottom: -220px; left: -140px; background: radial-gradient(circle, #fbd3c9, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--teal); color: #fff; stroke-width: 3; }

.hero-visual { position: relative; justify-self: end; width: min(100%, 540px); }
.arch { position: relative; aspect-ratio: 4 / 4.6; border-radius: 280px 280px 36px 36px; overflow: hidden; background: var(--sand-2); box-shadow: var(--shadow-lg); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(11 36 51 / 25%)); }
.hero-visual .ring { position: absolute; inset: -18px -18px auto auto; width: 140px; height: 140px; border-radius: 50%; border: 2px dashed rgb(10 127 166 / 35%); z-index: -1; animation: spin 40s linear infinite; }
.hero-visual .blob { position: absolute; left: -40px; bottom: 60px; width: 130px; height: 130px; border-radius: 40% 60% 55% 45%; background: var(--gold); opacity: .9; z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgb(255 255 255 / 92%); backdrop-filter: blur(10px); box-shadow: var(--shadow); color: var(--ink); font-size: .9rem; line-height: 1.3; animation: bob 6s ease-in-out infinite; }
.float-card strong { display: block; font-size: .95rem; }
.float-card small { color: var(--muted); }
.float-card .fi { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--teal-50); color: var(--teal); }
.float-card .fi.c { background: var(--coral-50); color: var(--coral-600); }
.float-card .fi.b { background: var(--brand-50); color: var(--brand-600); }
.float-card.a { left: -48px; top: 18%; }
.float-card.b { right: -28px; bottom: 16%; animation-delay: -3s; }
.float-card.c { left: 8%; bottom: -24px; animation-delay: -1.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* --------------------------------------------------------------- faixas */
.marquee { overflow: hidden; padding: 22px 0; background: var(--ink); color: #fff; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font: italic 500 clamp(1.3rem, 2.4vw, 1.9rem) var(--display); white-space: nowrap; }
.marquee span::after { content: "✦"; font-style: normal; font-size: .8em; color: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.trust > div { display: flex; gap: 14px; align-items: flex-start; padding: 26px 24px; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust .ti { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); }
.trust strong { display: block; color: var(--ink); line-height: 1.3; }
.trust span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.45; margin-top: 3px; }
.trust-lift { margin-top: clamp(-60px, -5vw, -40px); position: relative; z-index: 2; }

/* --------------------------------------------------------------- caminhos (home) */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { position: relative; display: flex; flex-direction: column; min-height: 560px; overflow: hidden; border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow); isolation: isolate; }
.path-body { position: relative; z-index: 1; padding: clamp(28px, 4vw, 44px); }
.path h3 { font-family: var(--display); font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
.path p { color: var(--muted); max-width: 440px; }
.path ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; }
.path li { padding: 7px 13px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-size: .88rem; font-weight: 700; }
.path-media { position: relative; flex: 1; min-height: 220px; margin: 0 clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px); border-radius: 24px; overflow: hidden; }
.path-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.path:hover .path-media img { transform: scale(1.04); }
.path.dark { background: radial-gradient(120% 90% at 100% 0%, #1d5d7d 0%, var(--ink) 55%); color: #d3e6ee; }
.path.dark h3 { color: #fff; }
.path.dark p { color: #b8d0db; }
.path.dark li { background: rgb(255 255 255 / 9%); color: #e4f2f7; }
.path.dark .path-media { background: #08202d; }

/* --------------------------------------------------------------- cartões */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; padding: 30px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin: 18px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .ci { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-50); color: var(--brand-600); }
.card:nth-child(3n+2) .ci { background: var(--teal-50); color: var(--teal); }
.card:nth-child(3n+3) .ci { background: var(--coral-50); color: var(--coral-600); }
.card .link-arrow { margin-top: 16px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); background: var(--cream); }
.card.flat:hover { transform: none; box-shadow: none; }
a.card { display: block; color: inherit; text-decoration: none; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(210px, auto); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; isolation: isolate; transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.tile h3 { margin: 0 0 6px; font-size: 1.3rem; }
.tile p { margin: 0; color: var(--muted); font-size: .96rem; }
.tile .ti { position: absolute; top: 26px; left: 28px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-50); color: var(--brand-600); }
.tile .go { position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sand); color: var(--ink); transition: transform .25s, background .25s; }
.tile:hover .go { transform: rotate(-45deg); background: var(--coral); color: #fff; }
.tile.span-2 { grid-column: span 2; }
.tile.span-3 { grid-column: span 3; }
.tile.span-4 { grid-column: span 4; }
.tile.tall { grid-row: span 2; }
.tile.photo { color: #fff; min-height: 300px; }
.tile.photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.tile.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(11 36 51 / 0%) 30%, rgb(11 36 51 / 85%)); }
.tile.photo:hover img { transform: scale(1.05); }
.tile.photo h3 { color: #fff; font-family: var(--display); font-size: 1.8rem; font-weight: 600; }
.tile.photo p { color: #d9e8ee; }
.tile.ink { background: var(--ink); }
.tile.ink h3 { color: #fff; }
.tile.ink p { color: #b8d0db; }
.tile.ink .ti { background: rgb(255 255 255 / 10%); color: #7fd8e6; }
.tile.teal { background: var(--teal); }
.tile.teal h3, .tile.teal p { color: #fff; }
.tile.teal .ti { background: rgb(255 255 255 / 18%); color: #fff; }
.tile.coral { background: var(--coral-50); }
.tile.coral .ti { background: #fff; color: var(--coral-600); }

/* --------------------------------------------------------------- passos */
.steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; border-top: 2px dashed rgb(10 127 166 / 28%); }
.steps li { position: relative; counter-increment: s; }
.steps .num { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 22px; border-radius: 22px; background: #fff; color: var(--brand-600); box-shadow: var(--shadow); }
.steps .num::after { content: counter(s); position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; font: 800 .8rem var(--sans); }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }
.on-dark .steps .num { background: rgb(255 255 255 / 8%); color: #7fd8e6; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%); }
.on-dark .steps::before { border-color: rgb(127 216 230 / 30%); }
.on-dark .steps p { color: #b8d0db; }

/* --------------------------------------------------------------- blocos escuros */
.dark-band { position: relative; overflow: hidden; background: radial-gradient(90% 120% at 85% 0%, #1b5a79 0%, var(--ink) 58%); color: #c9dde6; isolation: isolate; }
.dark-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .lead { color: #b8d0db; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .fi { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 15px; background: rgb(255 255 255 / 8%); color: #7fd8e6; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%); }
.feature h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: #b0c9d4; font-size: .97rem; }
.light .feature .fi { background: var(--brand-50); color: var(--brand-600); box-shadow: none; }
.light .feature h3 { color: var(--ink); }
.light .feature p { color: var(--muted); }

/* --------------------------------------------------------------- split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.rev > :first-child { order: 2; }
.media-frame { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; background: var(--sand-2); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-wrap { position: relative; }
.media-wrap .float-card { animation: none; }
.media-wrap .float-card.a { left: -28px; top: auto; bottom: 28px; }
.checklist { display: grid; gap: 14px; margin: 24px 0 30px; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--teal-50); color: var(--teal); stroke-width: 3; margin-top: 1px; }
.on-dark .checklist .icon { background: rgb(17 162 151 / 22%); color: #7fe0d4; }

/* --------------------------------------------------------------- citação */
.quote-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--ink); color: #fff; isolation: isolate; min-height: 420px; display: grid; align-items: end; }
.quote-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.quote-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(11 36 51 / 92%) 0%, rgb(11 36 51 / 55%) 55%, rgb(11 36 51 / 10%) 100%); }
.quote-band blockquote { max-width: 680px; margin: 0; padding: clamp(32px, 6vw, 72px); }
.quote-band p { margin: 0 0 24px; font: italic 500 clamp(1.7rem, 3.4vw, 2.7rem)/1.18 var(--display); letter-spacing: -.02em; }
.quote-band p::before { content: "“"; display: block; height: .55em; color: var(--coral); font-size: 2.4em; line-height: 1; }

/* --------------------------------------------------------------- preços */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-sm); }
.price h3 { margin: 0; font-family: var(--display); font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; }
.price .unit { color: var(--muted); font-weight: 700; }
.price .amount { margin: 22px 0 6px; color: var(--ink); font: 800 2.1rem/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price .amount small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.price ul { display: grid; gap: 10px; margin: 22px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--text); font-size: .96rem; }
.price li { display: flex; gap: 10px; }
.price li .icon { width: 20px; height: 20px; color: var(--teal); stroke-width: 2.6; }
.price .btn { margin-top: auto; }
.price.featured { background: var(--ink); color: #c9dde6; box-shadow: var(--shadow-lg); transform: translateY(-14px); }
.price.featured h3, .price.featured .amount { color: #fff; }
.price.featured .unit, .price.featured .amount small { color: #9fbccb; }
.price.featured ul { color: #d8e8ef; border-color: rgb(255 255 255 / 12%); }
.price.featured li .icon { color: #7fe0d4; }
.badge { position: absolute; top: 22px; right: 22px; padding: 6px 12px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .04em; }

/* --------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; color: var(--ink); font-weight: 800; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--sand); transition: background .2s, transform .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: transform .3s; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] .pm { background: var(--coral); transform: rotate(180deg); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: #fff; }
.faq details[open] .pm::after { transform: rotate(0); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 110px; }

/* --------------------------------------------------------------- CTA */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; padding: clamp(36px, 6vw, 72px); border-radius: var(--radius-xl); background: linear-gradient(120deg, var(--brand-600), var(--teal)); color: #e7f7fa; isolation: isolate; }
.cta::before { content: ""; position: absolute; right: -80px; top: -120px; z-index: -1; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgb(255 255 255 / 8%); }
.cta::after { content: ""; position: absolute; left: 30%; bottom: -160px; z-index: -1; width: 300px; height: 300px; border-radius: 50%; background: rgb(255 255 255 / 7%); }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta h2 em { color: #ffe1a6; }
.cta p { margin: 0; color: #dff4f6; font-size: 1.1rem; }
.cta .btn-row { justify-content: flex-end; }
.cta .btn-ghost { --c: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 50%); }

/* --------------------------------------------------------------- cidades */
.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.city { position: relative; padding: 30px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.city .pin { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: var(--coral-50); color: var(--coral-600); }
.city h3 { margin: 0 0 4px; font-family: var(--display); font-size: 1.8rem; font-weight: 600; }
.city p { margin: 0; color: var(--muted); }
.city.online { background: var(--ink); color: #c9dde6; }
.city.online h3 { color: #fff; }
.city.online p { color: #b0c9d4; }
.city.online .pin { background: rgb(255 255 255 / 10%); color: #7fd8e6; }

/* --------------------------------------------------------------- page hero (interno) */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; top: -260px; right: -160px; border-radius: 50%; background: radial-gradient(circle, #c7eaf1, transparent 70%); filter: blur(40px); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; font-weight: 700; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #b7c3ca; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-600); }

/* --------------------------------------------------------------- formulários */
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-lg); }
.form-card h2, .form-card h3 { font-family: var(--display); font-weight: 600; }
.form-card h3 { font-size: 1.6rem; letter-spacing: -.02em; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span, .field > label { color: var(--ink); font-size: .9rem; font-weight: 800; }
.field .hint { color: var(--muted); font-size: .84rem; font-weight: 400; }
.input, .form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form select, .form textarea, .tm-form input:not([type=checkbox]):not([type=radio]), .tm-form select, .tm-form textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1.5px solid #d6dfe4; border-radius: 14px; background: #fbfdfe; color: var(--text); font: 400 1rem var(--sans); transition: border-color .15s, box-shadow .15s, background .15s; appearance: none; -webkit-appearance: none; }
.form select, .tm-form select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2433' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.form textarea, .tm-form textarea { min-height: 120px; resize: vertical; }
.form input:hover, .form select:hover, .form textarea:hover, .tm-form input:hover, .tm-form select:hover, .tm-form textarea:hover { border-color: #b4c5ce; }
.form input:focus, .form select:focus, .form textarea:focus, .tm-form input:focus, .tm-form select:focus, .tm-form textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgb(10 127 166 / 14%); }
.form input::placeholder, .tm-form input::placeholder, .form textarea::placeholder { color: #98a8b1; }
.check { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: .94rem; line-height: 1.5; cursor: pointer; }
.check input, .tm-check input, .tc24-consent input { appearance: none; -webkit-appearance: none; display: grid; place-items: center; width: 22px !important; height: 22px !important; min-height: 22px !important; margin: 1px 0 0 !important; padding: 0 !important; flex: none; border: 1.5px solid #b4c5ce !important; border-radius: 7px !important; background: #fff !important; cursor: pointer; transition: background .15s, border-color .15s; }
.check input:checked, .tm-check input:checked, .tc24-consent input:checked { border-color: var(--teal) !important; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat !important; }
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border: 1.5px solid #d6dfe4; border-radius: 999px; background: #fbfdfe; font-weight: 700; transition: all .15s; }
.radio-pill input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); }
.radio-pill input:focus-visible + span { box-shadow: 0 0 0 4px rgb(10 127 166 / 18%); }
.file-drop { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; border: 1.5px dashed #b4c5ce; border-radius: 16px; background: var(--sand); cursor: pointer; transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop.has-file { border-color: var(--teal); background: var(--teal-50); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .fi { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm); }
.file-drop strong { display: block; color: var(--ink); }
.file-drop small { color: var(--muted); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--brand-50); color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.notice .icon { width: 20px; height: 20px; color: var(--brand-600); margin-top: 1px; }
.notice.warn { background: var(--warn-bg); color: #5a3d00; }
.notice.warn .icon { color: #b26b00; }
.status { min-height: 1.4em; margin: 0; font-weight: 700; font-size: .95rem; }
.status.ok { color: var(--ok); }
.status.error { color: var(--error); }
.tc24-turnstile:empty { display: none; }
.form-aside { position: sticky; top: 110px; }

/* --------------------------------------------------------------- telemedicina */
.tm-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(96px, 10vw, 140px); background: radial-gradient(80% 110% at 90% 10%, #1e6688 0%, #0f3850 45%, var(--ink) 75%); color: #c9dde6; isolation: isolate; }
.tm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(70% 80% at 30% 40%, #000, transparent); }
.tm-hero::after { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; left: -240px; bottom: -380px; border-radius: 50%; background: radial-gradient(circle, rgb(17 162 151 / 45%), transparent 65%); }
.tm-hero h1 { color: #fff; margin-bottom: 20px; }
.tm-hero .lead { color: #b8d0db; margin-bottom: 30px; }
.tm-search { padding: 10px; border-radius: 24px; background: rgb(255 255 255 / 10%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%); backdrop-filter: blur(8px); max-width: 560px; }
.tm-search-inner { padding: 22px; border-radius: 18px; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); }
.tm-search label { display: block; margin-bottom: 8px; color: var(--ink); font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tm-search-row { display: flex; gap: 10px; }
.tm-search-row select { flex: 1; min-width: 0; }
.tm-search .soon { display: flex; gap: 14px; align-items: flex-start; }
.tm-search .soon .fi { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--coral-50); color: var(--coral-600); }
.tm-search .soon strong { display: block; color: var(--ink); font-size: 1.05rem; }
.tm-search .soon p { margin: 4px 0 14px; color: var(--muted); font-size: .95rem; }
.pulse { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgb(239 111 92 / 60%); animation: pulse 1.8s infinite; vertical-align: middle; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(239 111 92 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(239 111 92 / 0%); } }
.tm-pills { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .93rem; font-weight: 700; color: #d7eaf1; }
.tm-pills li { display: inline-flex; align-items: center; gap: 8px; }
.tm-pills .icon { width: 20px; height: 20px; color: #7fe0d4; }

.call { position: relative; justify-self: end; width: min(100%, 520px); }
.call-frame { position: relative; aspect-ratio: 4 / 4.3; border-radius: 30px; overflow: hidden; background: #0a1d28; box-shadow: 0 50px 100px -40px rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 10%); }
.call-frame > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.call-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 29 40 / 55%) 0%, transparent 22%, transparent 62%, rgb(10 29 40 / 85%) 100%); }
.call-top { position: absolute; z-index: 2; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: .85rem; font-weight: 700; }
.call-top .live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgb(0 0 0 / 35%); backdrop-filter: blur(6px); }
.call-top .live i { width: 8px; height: 8px; border-radius: 50%; background: #ff5b4a; animation: blink 1.4s infinite; }
.call-top .lock { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgb(0 0 0 / 35%); backdrop-filter: blur(6px); }
.call-top .icon { width: 15px; height: 15px; }
@keyframes blink { 50% { opacity: .3; } }
.call-self { position: absolute; z-index: 2; right: 18px; top: 66px; width: 26%; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #f6c9b8, #e98f7c); box-shadow: 0 10px 30px -10px rgb(0 0 0 / 60%), 0 0 0 2px rgb(255 255 255 / 70%); display: grid; place-items: center; color: #fff; font: 600 1.6rem var(--display); }
.call-name { position: absolute; z-index: 2; left: 22px; bottom: 96px; color: #fff; }
.call-name strong { display: block; font-size: 1.15rem; }
.call-name span { color: #cfe3ea; font-size: .88rem; }
.call-controls { position: absolute; z-index: 2; left: 50%; bottom: 22px; display: flex; gap: 12px; transform: translateX(-50%); padding: 10px; border-radius: 999px; background: rgb(255 255 255 / 14%); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%); }
.call-controls span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / 18%); color: #fff; }
.call-controls span.end { background: #ef4a3c; width: 58px; border-radius: 999px; }
.call-controls .icon { width: 20px; height: 20px; }
.call .float-card.a { left: -60px; top: 34%; }
.call .float-card.b { right: -30px; bottom: -26px; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.spec { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); font: 700 .97rem var(--sans); text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.spec:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.spec .si { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.spec:nth-child(4n+2) .si { background: var(--teal-50); color: var(--teal); }
.spec:nth-child(4n+3) .si { background: var(--coral-50); color: var(--coral-600); }
.spec:nth-child(4n+4) .si { background: #fdf3dc; color: #b07a12; }
.spec small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.spec[aria-pressed="true"] { background: var(--ink); color: #fff; }
.spec[aria-pressed="true"] small { color: #b8d0db; }
body.tm-soon .spec { cursor: default; }
body.tm-soon .spec:hover { transform: none; box-shadow: var(--shadow-sm); }

.tm-results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; }
.tm-results-head h2 { margin: 0; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tm-offer { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.tm-offer:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tm-offer-head { display: flex; gap: 14px; align-items: center; }
.tm-avatar { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 18px; background: linear-gradient(140deg, var(--brand), var(--teal)); color: #fff; font: 600 1.3rem var(--display); }
.tm-offer strong { display: block; color: var(--ink); font-size: 1.08rem; line-height: 1.25; }
.tm-offer .crm { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: var(--teal-50); color: #0c7a71; font-size: .78rem; font-weight: 800; }
.tm-offer .crm .icon { width: 13px; height: 13px; stroke-width: 3; }
.tm-meta { display: grid; gap: 6px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: .92rem; list-style: none; }
.tm-meta li { display: flex; gap: 10px; align-items: center; }
.tm-meta .icon { width: 17px; height: 17px; color: var(--brand-600); }
.tm-offer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tm-price { color: var(--ink); font: 800 1.6rem/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tm-price small { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .02em; }
.tm-empty { padding: 36px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); color: var(--muted); text-align: center; }

.tm-panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow); }
.tm-panel + .tm-panel { margin-top: 22px; }
.tm-panel h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.tm-summary { display: flex; gap: 14px; align-items: center; margin: 0 0 18px; padding: 16px; border-radius: 16px; background: var(--brand-50); color: var(--ink-2); font-weight: 700; }
.tm-summary:empty { display: none; }
.tm-form { display: grid; gap: 16px; }
.tm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tm-form > label, .tm-row > label { display: grid; gap: 7px; color: var(--ink); font-size: .9rem; font-weight: 800; }
.tm-check { display: flex !important; align-items: flex-start; gap: 12px; font-weight: 400 !important; font-size: .94rem !important; color: var(--text) !important; }
.tm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tm-status { min-height: 1.4em; margin: 0; font-weight: 700; }
.tm-status.error { color: var(--error); }
.tm-status.ok { color: var(--ok); }
.tm-muted { color: var(--muted); font-size: .92rem; }
.tm-alert { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); color: #5a3d00; font-size: .93rem; }
.tm-note { padding: 14px 16px; border-radius: 14px; background: var(--brand-50); }
.tm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 800 .95rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.tm-btn:hover { color: #fff; background: var(--ink-3); transform: translateY(-1px); }
.tm-btn.secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgb(11 36 51 / 22%); }
.tm-btn.secondary:hover { background: var(--sand); color: var(--ink); }
.tm-btn.danger { background: #fff; color: var(--error); box-shadow: inset 0 0 0 1.5px rgb(180 35 24 / 35%); }
.tm-btn.danger:hover { background: #fdf0ee; color: var(--error); }
.tm-btn.coral { background: var(--coral); }
.tm-btn.coral:hover { background: var(--coral-600); }
.tm-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.tm-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.tm-table th, .tm-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tm-table th { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tm-table input[type="datetime-local"] { min-height: 42px; padding: 8px 10px; border: 1.5px solid #d6dfe4; border-radius: 10px; font: inherit; }
.tm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-size: .8rem; font-weight: 800; }
.tm-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tm-pill.solicitada { background: #fff3dc; color: #a26100; }
.tm-pill.paga, .tm-pill.realizada, .tm-pill.aprovada { background: #e2f5ea; color: var(--ok); }
.tm-pill.confirmada { background: #e3eefb; color: #1d4f91; }
.tm-pill.recusada, .tm-pill.cancelada, .tm-pill.expirada { background: #fdecea; color: var(--error); }
.tm-room { width: 100%; height: min(80vh, 780px); border: 0; border-radius: var(--radius-xl); background: #0b1d26; box-shadow: var(--shadow-lg); }
.tm-doctors { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.tm-doctors li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--sand); }
.tm-steps-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 26px; padding: 0; list-style: none; }
.tm-steps-track li { position: relative; padding-top: 34px; color: var(--muted); font-size: .82rem; font-weight: 800; text-align: center; }
.tm-steps-track li::before { content: ""; position: absolute; top: 8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #cfd9de; z-index: 1; }
.tm-steps-track li::after { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: #dbe3e7; }
.tm-steps-track li:first-child::after { display: none; }
.tm-steps-track li.done { color: var(--ink); }
.tm-steps-track li.done::before { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-50); }
.tm-steps-track li.done::after { background: var(--teal); }
.tm-detail { display: grid; gap: 4px; margin-bottom: 18px; }
.tm-detail strong { color: var(--ink); font-size: 1.2rem; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.stat { padding: 18px; border-radius: 16px; background: var(--sand); }
.stat b { display: block; color: var(--ink); font: 600 1.8rem var(--display); }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 700; }

/* --------------------------------------------------------------- blog / jurídico */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post .cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; color: #fff; overflow: hidden; }
.post .cover .icon { width: 56px; height: 56px; stroke-width: 1.4; opacity: .95; }
.post .cover.c1 { background: linear-gradient(135deg, var(--brand), var(--teal)); }
.post .cover.c2 { background: linear-gradient(135deg, var(--coral), #f4a35f); }
.post .cover.c3 { background: linear-gradient(135deg, var(--ink-2), var(--brand)); }
.post .cover::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 30px solid rgb(255 255 255 / 12%); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post time { color: var(--coral-600); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post h3 { margin: 10px 0 10px; font-family: var(--display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; }
.post p { margin: 0; color: var(--muted); font-size: .96rem; }

.legal { padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-sm); }
.legal h2 { margin: 2em 0 .6em; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.legal h2:first-of-type { margin-top: 1.2em; }
.legal h3 { margin: 1.6em 0 .5em; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: .94rem; display: block; overflow-x: auto; }
.legal th, .legal td { padding: 12px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.legal th { background: var(--sand); color: var(--ink); }
@media (max-width: 720px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; overflow: visible; }
  .legal thead { display: none; }
  .legal tr { margin: 0 0 12px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .legal td { padding: 8px 0; border: 0; border-bottom: 1px dashed var(--line); }
  .legal td:last-child { border-bottom: 0; }
  .legal td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
}
.tc24-legal-meta { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--sand); color: var(--muted); font-size: .85rem; font-weight: 700; }
.tc24-legal-alert { padding: 16px 18px; border-radius: 14px; background: var(--warn-bg); color: #5a3d00; }
.toc { position: sticky; top: 110px; display: grid; gap: 4px; padding: 22px; border-radius: var(--radius-lg); background: var(--cream); box-shadow: var(--shadow-sm); font-size: .9rem; }
.toc strong { margin-bottom: 8px; color: var(--ink); }
.toc a { padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { background: var(--sand); color: var(--ink); }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }

/* --------------------------------------------------------------- estados */
.state { display: grid; place-items: center; min-height: 70vh; padding: 48px 0; text-align: center; }
.state-icon { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 30px; background: var(--teal); color: #fff; box-shadow: 0 20px 40px -18px rgb(17 162 151 / 80%); }
.state-icon .icon { width: 46px; height: 46px; stroke-width: 2.4; }
.state-icon.draw path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .2s ease forwards; }
.state-icon.c { background: var(--coral); box-shadow: 0 20px 40px -18px rgb(239 111 92 / 80%); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.big-404 { font: italic 600 clamp(6rem, 18vw, 12rem)/.9 var(--display); color: var(--ink); letter-spacing: -.05em; }
.big-404 span { color: var(--coral); }

/* --------------------------------------------------------------- rodapé */
.site-footer { position: relative; margin-top: 0; padding: clamp(56px, 8vw, 96px) 0 32px; background: var(--ink); color: #9fbccb; font-size: .95rem; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgb(10 127 166 / 35%), transparent 65%); }
.site-footer a { color: #d5e7ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.footer-brand img { width: 170px; margin-bottom: 18px; }
.footer-brand p { max-width: 360px; }
.site-footer h4 { margin: 0 0 16px; color: #fff; font: 800 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: #7fd8e6; }
.footer-legal { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding-top: 28px; font-size: .85rem; line-height: 1.6; color: #84a3b3; }
.footer-legal p { margin: 0 0 10px; }
.ans-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / 6%); color: #c2d8e1; font-size: .88rem; }
.ans-note .icon { width: 20px; height: 20px; color: var(--gold); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(255 255 255 / 8%); }
.social a:hover { background: rgb(255 255 255 / 16%); text-decoration: none; }
.social .icon { width: 18px; height: 18px; }
.tc24-cookie-prefs-link { color: #d5e7ee; }

.app-header { background: #fff; border-bottom: 1px solid var(--line); }
.app-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.app-header img { width: 150px; }
.app-header nav { display: flex; gap: 6px; flex-wrap: wrap; }
.app-header nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: .92rem; text-decoration: none; }
.app-header nav a:hover { background: var(--sand); }
.app-footer { padding: 28px 0; color: var(--muted); font-size: .85rem; }
.app-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.app-footer a { margin-left: 14px; }

/* --------------------------------------------------------------- animação de entrada */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- responsivo */
@media (max-width: 1320px) { .nav-cta .btn-ghost { display: none; } .nav { gap: 18px; } }
@media (max-width: 1120px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .float-card.a { left: -16px; }
  .call .float-card.a { left: -20px; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .paths, .faq-layout, .cta, .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .split.rev > :first-child { order: 0; }
  .hero-visual, .call { justify-self: center; margin-top: 12px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3, .post-grid, .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust > div:nth-child(3) { border-left: 0; }
  .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.span-2, .tile.span-3, .tile.span-4 { grid-column: span 1; }
  .tile.wide-m { grid-column: span 2; }
  .tile.tall { grid-row: span 1; }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .price.featured { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .cta .btn-row { justify-content: flex-start; }
  .faq-layout .section-head, .form-aside, .toc { position: static; }
  .toc { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { grid-template-columns: 1fr; }
  .path { min-height: 0; }
  .path-media { min-height: 260px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .hide-s { display: none; }
  .topbar .wrap { justify-content: center; }
  .nav { min-height: 66px; gap: 12px; }
  .brand img { width: 140px; }
  .nav-cta .btn { display: none; }
  .g-2, .g-3, .g-4, .post-grid, .cities, .form-row, .tm-row, .stat-row { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; }
  .tile.wide-m { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { display: grid; grid-template-columns: 60px 1fr; gap: 0 16px; }
  .steps .num { width: 56px; height: 56px; margin: 0; border-radius: 18px; grid-row: span 2; }
  .float-card { padding: 9px 12px 9px 9px; font-size: .8rem; }
  .float-card .fi { width: 34px; height: 34px; border-radius: 10px; }
  .float-card strong { font-size: .84rem; }
  .float-card.a { left: -6px; top: 10%; }
  .float-card.b { right: -6px; }
  .float-card.c { display: none; }
  .call .float-card.a { left: -6px; top: 40%; }
  .call .float-card.b { right: 6px; bottom: -22px; }
  .hero-visual .blob { left: -20px; width: 90px; height: 90px; }
  .tm-search-row { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .tm-table thead { display: none; }
  .tm-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tm-table td { display: block; padding: 4px 0; border: 0; }
  .tm-steps-track li { font-size: .7rem; }
  .quote-band::after { background: linear-gradient(0deg, rgb(11 36 51 / 92%) 20%, rgb(11 36 51 / 30%) 100%); }
  .btn { min-height: 50px; }
  .hero-points { gap: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
@media print {
  .site-header, .topbar, .site-footer, .drawer, .marquee, .cta { display: none !important; }
  body { background: #fff; }
}
.tm-search-inner .btn-ghost { --c: var(--ink); box-shadow: inset 0 0 0 1.5px rgb(11 36 51 / 22%); }
.tm-search-inner .btn-ghost:hover { --b: var(--sand); }
.hero-grid > *, .split > *, .paths > *, .faq-layout > * { min-width: 0; }
@media (max-width: 640px) { .eyebrow { font-size: .72rem; letter-spacing: .04em; } .path ul li { font-size: .8rem; } }

/* --------------------------------------------------------------- painel de administração (/api/admin/) */
.adm-page { background: var(--sand); }
.adm-header .wrap { flex-wrap: wrap; }
.adm-user { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .9rem; }
.adm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.adm-badge .icon { width: 15px; height: 15px; }
.adm-operator { color: var(--muted); font-weight: 700; overflow-wrap: anywhere; }
.adm-sair { min-height: 38px; padding: 6px 16px; font-size: .88rem; }
.adm-hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 64px) 0 clamp(90px, 10vw, 120px); background: radial-gradient(120% 140% at 100% 0%, var(--ink-3) 0%, var(--ink) 55%); color: #d7eaf1; }
.adm-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgb(17 162 151 / 35%), transparent 70%); pointer-events: none; }
.adm-hero .kicker { color: #ffb4a6; }
.adm-hero h1 { margin: 0 0 12px; color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.adm-hero h1 em { color: #7fe0d4; font-style: italic; }
.adm-hero p { max-width: 640px; margin: 0; }
.adm-hero .adm-mode { display: inline-block; margin-top: 16px; padding: 8px 14px; border-radius: 12px; background: rgb(242 184 75 / 16%); color: #ffe2a8; font-size: .9rem; font-weight: 700; }
.adm-hero .adm-mode[hidden] { display: none; }
.adm-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.adm-stat { display: flex; gap: 14px; align-items: flex-start; min-width: 0; padding: 20px; border: 1px solid rgb(255 255 255 / 10%); border-radius: var(--radius-lg); background: rgb(255 255 255 / 6%); }
.adm-stat-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: rgb(255 255 255 / 10%); color: #7fe0d4; }
.adm-stat.warn .adm-stat-icon { color: var(--gold); }
.adm-stat.ok .adm-stat-icon { color: #8be3b1; }
.adm-stat-icon .icon { width: 22px; height: 22px; }
.adm-hero .adm-stat-label { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #a9c6d3; }
.adm-hero .adm-stat-value { margin: 2px 0 0; color: #fff; font: 600 2.1rem/1.1 var(--display); }
.adm-hero .adm-stat-sub { margin: 4px 0 0; font-size: .85rem; color: #a9c6d3; }
.adm-body { position: relative; z-index: 1; margin-top: -64px; padding-bottom: 56px; }
.adm-body > .tm-status { min-height: 0; margin: 0 0 12px; }
.adm-body > .tm-status:not(:empty) { padding: 12px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.adm-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 800 .95rem var(--sans); box-shadow: var(--shadow-sm); cursor: pointer; transition: background .2s, color .2s; }
.adm-tab .icon { width: 18px; height: 18px; color: var(--brand); }
.adm-tab:hover { background: var(--brand-50); }
.adm-tab[aria-selected="true"] { background: var(--coral); color: #fff; }
.adm-tab[aria-selected="true"] .icon { color: #fff; }
.adm-tab:focus-visible, .adm-filter button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.adm-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 28px; margin-bottom: 24px; }
.adm-panel-head > div:first-child { flex: 1 1 380px; min-width: 0; }
.adm-panel-head h2 { margin: 0 0 6px; }
.adm-panel-head .tm-muted { margin: 0; }
.adm-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sand); }
.adm-filter button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 700 .88rem var(--sans); cursor: pointer; }
.adm-filter button span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgb(11 36 51 / 8%); font-size: .78rem; text-align: center; }
.adm-filter button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.adm-filter button[aria-pressed="true"] span { background: var(--coral); color: #fff; }
.adm-clinics { display: grid; gap: 16px; }
.adm-loading { color: var(--muted); }
.adm-clinic { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); transition: opacity .35s, transform .35s; }
.adm-clinic.adm-out { opacity: 0; transform: translateX(24px); }
.adm-clinic-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.adm-clinic-title { flex: 1 1 220px; min-width: 0; }
.adm-clinic-title h3 { margin: 0; font-size: 1.35rem; }
.adm-clinic-title p { margin: 2px 0 0; overflow-wrap: anywhere; }
.adm-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0 0 14px; }
.adm-dl-row { min-width: 0; }
.adm-dl dt { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.adm-dl dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.adm-mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.adm-link { padding: 0; border: 0; background: none; color: var(--brand-600); font: 700 .85rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.adm-repasse summary { color: var(--brand-600); font-weight: 700; cursor: pointer; }
.adm-pre { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-small { font-size: .85rem; color: var(--muted); }
.adm-actions { margin-top: 16px; }
.adm-actions[hidden], .adm-reason[hidden] { display: none; }
.adm-reason { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--coral-50); }
.adm-reason label { display: grid; gap: 6px; font-weight: 700; }
.adm-reason textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #e6c3bb; border-radius: 12px; background: #fff; font: inherit; resize: vertical; }
.adm-reason .tm-actions { margin-top: 12px; }
.adm-month { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.adm-month label { display: grid; gap: 4px; color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.adm-month input { min-height: 46px; padding: 8px 12px; border: 1.5px solid #d6dfe4; border-radius: 12px; background: #fff; color: var(--ink); font: 700 1rem var(--sans); }
.adm-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.adm-totals[hidden] { display: none; }
.adm-totals div { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius); background: var(--sand); }
.adm-totals span { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.adm-totals strong { color: var(--ink); font: 600 1.5rem var(--display); }
.adm-totals .hl { background: var(--teal-50); }
.adm-totals .hl strong { color: #0d7a72; }
.adm-table-wrap { overflow-x: auto; }
.adm-money { color: #0d7a72; }
.adm-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; max-width: 640px; }
.adm-search label { flex: 1 1 280px; }
.adm-subject { display: grid; gap: 26px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.adm-subject-head { display: flex; align-items: center; gap: 14px; }
.adm-subject-head h3 { margin: 0; overflow-wrap: anywhere; }
.adm-subject-head p { margin: 2px 0 0; }
.adm-subject h4 { margin: 0 0 10px; font-family: var(--sans); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.adm-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.adm-list li { padding: 10px 14px; border-radius: 12px; background: var(--sand); overflow-wrap: anywhere; }
.adm-steps { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.adm-danger { padding: 22px; border: 1.5px solid rgb(180 35 24 / 25%); border-radius: var(--radius-lg); background: #fffaf9; }
.adm-subject .adm-danger h4 { display: flex; align-items: center; gap: 8px; color: var(--error); }
.adm-danger h4 .icon { width: 18px; height: 18px; }
.adm-danger .tm-check { margin: 14px 0; }
.adm-confirm { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.adm-confirm label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
.adm-confirm input { min-height: 46px; padding: 8px 12px; border: 1.5px solid #e6c3bb; border-radius: 12px; font: 700 1rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.adm-facts { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .93rem; }
.adm-facts li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; min-width: 0; }
.adm-facts .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--brand-600); }
.adm-note-box { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.adm-proposal { display: grid; gap: 14px; margin-top: 16px; padding: 18px; border-radius: var(--radius); background: var(--brand-50); }
.adm-proposal[hidden] { display: none; }
.adm-proposal h4 { margin: 0; font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.adm-proposal label { display: grid; gap: 6px; color: var(--ink); font-size: .9rem; font-weight: 800; min-width: 0; }
.adm-proposal select, .adm-proposal input, .adm-proposal textarea { width: 100%; min-height: 46px; padding: 9px 12px; border: 1.5px solid #c9dbe3; border-radius: 12px; background: #fff; color: var(--ink); font: 400 1rem var(--sans); }
.adm-proposal textarea { resize: vertical; }
.adm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adm-calc { margin: -4px 0 0; }
@media (max-width: 640px) { .adm-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.adm-pros-toggle { display: block; margin: 4px 0 10px; }
.adm-pros { margin-bottom: 8px; }
.adm-pros[hidden], .adm-families[hidden], #adm-familia[hidden] { display: none; }
.adm-list li.adm-off { opacity: .6; }
.adm-families { display: grid; gap: 10px; }
.adm-family { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.adm-family:hover { border-color: var(--brand); transform: translateY(-1px); }
.adm-family:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.adm-family .tm-avatar { width: 46px; height: 46px; border-radius: 14px; font-size: 1.05rem; }
.adm-family-main { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.adm-family-main strong { color: var(--ink); }
.adm-family-meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.adm-family > .icon { flex: none; width: 18px; height: 18px; color: var(--muted); transform: rotate(-90deg); }
.adm-back { display: inline-block; margin-bottom: 18px; }
#adm-familia .adm-subject-head { margin-bottom: 16px; }
.adm-h4 { margin: 26px 0 12px; font-family: var(--sans); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adm-recipients { display: grid; gap: 14px; }
.adm-ficha { display: grid; gap: 12px; margin: 12px 0 0; }
.adm-ficha dt { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.adm-ficha dd { margin: 2px 0 0; }
@media (max-width: 640px) { .adm-family { flex-wrap: wrap; } .adm-family-meta { justify-items: start; width: 100%; } .adm-family > .icon { display: none; } }
.tm-pill.pendente { background: #fff3dc; color: #a26100; }
.tm-pill.suspensa { background: #eef0f2; color: #4a5a66; }
@media (max-width: 960px) {
  .adm-stats, .adm-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-dl, .adm-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .adm-stats { gap: 10px; }
  .adm-stat { flex-direction: column; gap: 10px; padding: 16px; }
  .adm-hero .adm-stat-value { font-size: 1.7rem; }
  .adm-tab { flex: 1 1 auto; justify-content: center; padding: 10px 14px; }
  .adm-filter { border-radius: 18px; }
  .adm-operator { display: none; }
  .adm-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
}

/* --------------------------------------------------------------- cuidado: painel da agência e conta da família */
.cd-page { background: var(--sand); min-height: 70vh; }
.cd-login { max-width: 560px; margin: 32px auto; }
.cd-login h1 { font-size: clamp(2rem, 4vw, 2.4rem); }
.cd-login-icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 0 20px; }
.cd-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 18px 0 22px; padding: 4px; border-radius: 999px; background: var(--sand); }
.cd-switch button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 800 .92rem var(--sans); cursor: pointer; }
.cd-switch button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.cd-switch button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.cd-sent { display: grid; justify-items: center; gap: 6px; padding: 12px 0; text-align: center; }
.cd-sent h2 { margin: 8px 0 0; font-size: 1.8rem; }
.cd-head h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.cd-head .tm-muted { margin: 6px 0 0; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.cd-chips li { padding: 5px 12px; border-radius: 999px; background: var(--teal-50); color: #0d7a72; font-size: .82rem; font-weight: 800; }
.cd-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px 24px; margin-bottom: 20px; }
.cd-section-head > div { flex: 1 1 320px; min-width: 0; }
.cd-section-head h2 { margin: 0 0 6px; }
.cd-section-head .tm-muted { margin: 0; }
.cd-count { padding: 6px 14px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-weight: 800; font-size: .9rem; }
.cd-people { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cd-people li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.cd-people li.cd-off { opacity: .65; }
.cd-people .tm-avatar { width: 46px; height: 46px; border-radius: 14px; font-size: 1.05rem; }
.cd-person { display: grid; gap: 2px; flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.cd-person strong { color: var(--ink); }
.cd-coren[hidden], #cd-consent-saude[hidden], #cd-consent-ok[hidden] { display: none !important; }
.cd-request { margin: 0 0 22px; padding: 20px; border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--line); }
.cd-request[hidden] { display: none; }
.cd-orders { display: grid; gap: 14px; }
.cd-order { display: grid; gap: 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); min-width: 0; }
.cd-order.cd-off { opacity: .7; }
.cd-order header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.cd-order header > div { flex: 1 1 220px; min-width: 0; }
.cd-order h3 { margin: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.cd-order header p { margin: 2px 0 0; }
.cd-order .cd-facts { padding: 12px 0 0; border-bottom: 0; }
.cd-order-desc { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }
.cd-order-note { margin: 0; }
.cd-ficha summary { color: var(--brand-600); font-weight: 800; cursor: pointer; }
.cd-ficha dl { display: grid; gap: 10px; margin: 12px 0 0; }
.cd-ficha dt { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cd-ficha dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cd-ficha p { margin: 10px 0 0; }
.cd-page .tm-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.cd-page .tm-note .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }
.cd-soon { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, #fff, var(--brand-50)); }
.cd-soon .ci { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.cd-soon h2 { margin: 0 0 6px; font-size: 1.5rem; }
.cd-soon p { margin: 0; }
.cd-hello { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 8px 0 22px; }
.cd-hello > div { flex: 1 1 420px; min-width: 0; }
.cd-hello h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 4.4vw, 3.1rem); }
.cd-hello h1 em { color: var(--brand); }
.cd-hello p { max-width: 640px; margin: 0; }
.cd-flash { margin: 0 0 16px; }
.cd-flash:not(:empty) { padding: 12px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.cd-recipients { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.cd-recipient { display: grid; gap: 14px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); }
.cd-recipient header { display: flex; align-items: center; gap: 14px; }
.cd-recipient header > div { min-width: 0; }
.cd-recipient h3 { margin: 0; font-size: 1.35rem; overflow-wrap: anywhere; }
.cd-recipient header p { margin: 2px 0 0; }
.cd-facts { display: grid; gap: 8px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); list-style: none; color: var(--text); font-size: .92rem; }
.cd-facts li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.cd-facts .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--brand-600); }
.cd-facts li.warn .icon { color: var(--coral-600); }
.cd-recipient-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.cd-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-btns .tm-btn { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.cd-fieldset { display: grid; gap: 14px; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); min-width: 0; }
.cd-fieldset legend { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; color: var(--ink); font: 600 1.15rem var(--display); }
.cd-fieldset legend .icon { width: 20px; height: 20px; color: var(--coral); }
.cd-fieldset textarea, .cd-fieldset input, .cd-fieldset select { background: #fff; }
.cd-fieldset > label, .cd-health > label, .tm-form .tm-row > label { display: grid; gap: 7px; color: var(--ink); font-size: .9rem; font-weight: 800; }
.tm-form .hint { color: var(--muted); font-size: .84rem; font-weight: 400; }
.cd-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--brand-600); font: 800 .9rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cd-health { display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); background: #fff6f3; border: 1px dashed rgb(239 111 92 / 40%); }
.cd-health-title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--coral-600); font-weight: 800; }
.cd-health-title .icon { width: 18px; height: 18px; }
.cd-editor-actions { justify-content: space-between; }
.cd-photo-info { padding: 18px 20px; border-radius: var(--radius); background: var(--sand); }
.cd-photo-info p { margin: 0 0 12px; }
.cd-photo-info .checklist { margin: 0; }
.cd-photo-state { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 12px 16px; border-radius: 14px; font-weight: 700; }
.cd-photo-state .icon { width: 20px; height: 20px; flex: none; }
.cd-photo-state.on { background: #e2f5ea; color: var(--ok); }
.cd-photo-state.off { background: var(--warn-bg); color: #5a3d00; }
.cd-details summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.cd-details summary::-webkit-details-marker { display: none; }
.cd-details summary > span:first-child { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 1.4rem var(--display); }
.cd-details summary .icon { width: 20px; height: 20px; color: var(--brand); }
.cd-details[open] summary { margin-bottom: 20px; }
@media (max-width: 640px) {
  .cd-fieldset { padding: 16px; }
  .cd-soon { flex-direction: column; }
  .cd-editor-actions { flex-direction: column-reverse; align-items: stretch; }
}

/* ===================== Diário do cuidado (família e agência) ===================== */
.cd-manage { display: grid; gap: 16px; padding-top: 16px; border-top: 1px dashed var(--line); min-width: 0; }
.cd-manage[hidden] { display: none; }
.cd-manage > .tm-note { font-size: .9rem; }
.dy { display: grid; gap: 12px; min-width: 0; }
.dy-h { margin: 6px 0 0; color: var(--ink); font: 600 1.15rem var(--display); }
.dy-plan { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dy-plan li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 12px; background: #fff; overflow-wrap: anywhere; }
.dy-time { color: var(--brand-600); font-weight: 800; font-variant-numeric: tabular-nums; }
.dy-shifts { display: grid; gap: 12px; }
.dy-shift { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); min-width: 0; }
.dy-shift.cd-off { opacity: .65; }
.dy-shift header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dy-shift header > div { flex: 1 1 240px; min-width: 0; }
.dy-shift h4 { margin: 0; font: 800 1rem var(--sans); color: var(--ink); }
.dy-shift header p { margin: 2px 0 0; overflow-wrap: anywhere; }
.dy-shift > .tm-btn { justify-self: start; min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.dy-summary { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--sand); white-space: pre-wrap; overflow-wrap: anywhere; }
.dy-tasks summary { color: var(--brand-600); font-weight: 800; cursor: pointer; }
.dy-tasks ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.dy-tasks li { display: grid; grid-template-columns: 20px 1fr; gap: 2px 10px; align-items: start; font-size: .93rem; overflow-wrap: anywhere; }
.dy-tasks li > .tm-muted { grid-column: 2; }
.dy-tasks .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--muted); }
.dy-tasks li.feito .icon { color: var(--ok); }
.dy-tasks li.nao-feito .icon { color: var(--coral-600); }
.dy-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dy-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; min-width: 0; }
.dy-item > div { min-width: 0; }
.dy-item p { margin: 0; overflow-wrap: anywhere; }
.dy-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--brand-50); color: var(--brand-600); }
.dy-ic .icon { width: 18px; height: 18px; }
.dy-intercorrencia .dy-ic { background: #fdecea; color: var(--error); }
.dy-intercorrencia .dy-text { color: #7a1a12; font-weight: 700; }
.dy-sinais .dy-ic { background: var(--coral-50); color: var(--coral-600); }
.dy-foto .dy-ic { background: var(--teal-50); color: var(--teal); }
.dy-meta { color: var(--muted); font-size: .86rem; }
.dy-meta strong { color: var(--ink); }
.dy-text { white-space: pre-wrap; }
.dy-photo { display: block; width: min(100%, 320px); margin-top: 8px; border-radius: 12px; background: var(--sand-2); }
.cd-plan, .cd-schedule { padding: 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.cd-plan h4, .cd-schedule h4 { margin: 0; }
.cd-plan-rows { display: grid; gap: 8px; }
.cd-plan-row { display: grid; grid-template-columns: minmax(130px, 170px) 1fr 120px auto; gap: 8px; align-items: center; }
.cd-plan-row .tm-btn { min-height: 42px; padding: 8px 14px; font-size: .85rem; }
.cd-schedule > label, .cd-repeat > label { display: grid; gap: 7px; color: var(--ink); font-size: .9rem; font-weight: 800; }
.cd-schedule > label.tm-check { display: flex; }
.cd-repeat { display: grid; gap: 12px; }
.cd-repeat[hidden] { display: none; }
.cd-week { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-day { position: relative; }
.cd-day input { position: absolute; opacity: 0; }
.cd-day span { display: inline-grid; place-items: center; min-width: 48px; min-height: 40px; padding: 0 10px; border-radius: 12px; background: var(--sand); color: var(--ink-2); font-weight: 800; font-size: .88rem; cursor: pointer; }
.cd-day input:checked + span { background: var(--ink); color: #fff; }
.cd-day input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 640px) {
  .cd-plan-row { grid-template-columns: 1fr 1fr; padding: 10px; border-radius: 12px; background: var(--sand); }
  .cd-plan-row input[name=descricao] { grid-column: 1 / -1; grid-row: 1; }
  .dy-plan li { grid-template-columns: 48px 1fr; }
  .dy-plan li > .tm-muted { grid-column: 2; }
}

/* ===================== Aplicativo do profissional (/app/) ===================== */
.ap-page { background: var(--sand); }
.ap-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--ink); }
.ap-bar img { display: block; height: 28px; width: auto; }
.ap-sync { padding: 4px 12px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .8rem; font-weight: 800; }
.ap-sync[hidden] { display: none; }
.ap { width: min(100%, 640px); margin: 0 auto; padding: 18px 16px calc(40px + env(safe-area-inset-bottom)); }
.ap > section[hidden] { display: none; }
.ap-card { display: grid; gap: 12px; margin: 0 0 14px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); min-width: 0; }
.ap-card h2 { margin: 0; font-size: 1.35rem; }
.ap-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ap-login { text-align: center; margin-top: 12px; }
.ap-login h1 { margin: 0; font-size: 1.9rem; }
.ap-login .state-icon { margin-bottom: 8px; }
.ap-login .tm-form { text-align: left; }
.ap-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 4px 0 14px; }
.ap-hello h1 { margin: 0; font-size: 2rem; }
.ap-hello h1 em { color: var(--brand); }
.ap-kicker { margin: 0; color: var(--muted); font-size: .86rem; font-weight: 800; }
.ap-sair { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.ap-h2 { margin: 22px 0 10px; font-size: 1.25rem; }
.ap-tip { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; margin: 0 0 12px; padding: 14px 16px; border-radius: 18px; background: var(--brand-50); }
.ap-tip[hidden] { display: none; }
.ap-tip > .icon { width: 22px; height: 22px; color: var(--brand-600); }
.ap-tip div { display: grid; gap: 2px; font-size: .9rem; }
.ap-tip .tm-btn { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.ap-tip .tm-btn[hidden] { display: none; }
.ap-list { display: grid; gap: 10px; }
.ap-shift { display: grid; grid-template-columns: 58px 1fr; gap: 6px 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; }
.ap-shift:hover, .ap-shift:focus-visible { color: var(--text); box-shadow: var(--shadow); }
.ap-shift-time { display: grid; justify-items: center; padding: 8px 0; border-radius: 14px; background: var(--ink); color: #fff; font-variant-numeric: tabular-nums; }
.ap-shift-time strong { font-size: 1.05rem; }
.ap-shift-time span { font-size: .78rem; opacity: .8; }
.ap-shift-main { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ap-shift-main strong { color: var(--ink); font-size: 1.05rem; }
.ap-shift .tm-pill { grid-column: 2; justify-self: start; }
.ap-voltar { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 0; border: 0; background: none; color: var(--brand-600); font: 800 .95rem var(--sans); cursor: pointer; }
.ap-voltar .icon { width: 18px; height: 18px; transform: scaleX(-1); }
.ap-person h1 { margin: 0; font-size: 1.7rem; overflow-wrap: anywhere; }
.ap-person-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ap-person-head p { margin: 2px 0 0; }
.ap-when { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.ap-when .icon, .ap-allergy .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brand-600); }
.ap-allergy { display: flex; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 12px; background: #fdecea; color: #7a1a12; overflow-wrap: anywhere; }
.ap-allergy .icon { color: var(--error); }
.ap-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-contacts .tm-btn { min-height: 44px; padding: 8px 12px; font-size: .86rem; text-align: center; }
.ap-contacts .tm-btn:last-child { grid-column: 1 / -1; color: var(--error); }
.ap-ficha dl { margin-top: 10px; }
.ap-checkin .btn { min-height: 56px; font-size: 1.05rem; }
.ap-tasks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ap-task { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--cream); border: 1.5px solid var(--line); }
.ap-task-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.ap-task-ic .icon { width: 20px; height: 20px; }
.ap-task-main { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ap-task-main strong { color: var(--ink); line-height: 1.3; }
.ap-task.proxima { border-color: var(--brand); background: var(--brand-50); }
.ap-task.atrasada { border-color: var(--coral); background: #fff6f3; }
.ap-task.feito { background: #eef8f2; border-color: #bfe3cd; }
.ap-task.feito .ap-task-ic { background: #d6f0e0; color: var(--ok); }
.ap-task.nao-feito { background: #fdf3f1; border-color: #f3c9c1; }
.ap-ticks { display: flex; gap: 6px; }
.ap-tick { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px; cursor: pointer; }
.ap-tick .icon { width: 22px; height: 22px; stroke-width: 2.6; }
.ap-tick.ok { background: var(--ok); color: #fff; }
.ap-tick.no { background: #fff; color: var(--error); box-shadow: inset 0 0 0 1.5px rgb(180 35 24 / 35%); }
.ap-pend { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--warn-bg); color: #8a5a00; font-size: .74rem; font-weight: 800; }
.ap-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-action { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border: 0; border-radius: 16px; background: var(--brand-50); color: var(--ink); font: 800 .9rem var(--sans); cursor: pointer; }
.ap-action .icon { width: 24px; height: 24px; color: var(--brand-600); }
.ap-action.danger { background: #fdecea; }
.ap-action.danger .icon { color: var(--error); }
.ap-form { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--sand); }
.ap-form h3 { margin: 0; font-size: 1.2rem; }
.ap-form > label { display: grid; gap: 7px; color: var(--ink); font-size: .9rem; font-weight: 800; }
.ap-form textarea, .ap-form input { background: #fff; }
.ap-form .tm-alert { margin: 0; }
.ap-incident { background: #fff6f3; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chip { padding: 6px 12px; border: 0; border-radius: 999px; background: #fff; color: var(--ink-2); font: 800 .82rem var(--sans); cursor: pointer; box-shadow: var(--shadow-sm); }
.ap-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-grid-2 label { display: grid; gap: 6px; color: var(--ink); font-size: .84rem; font-weight: 800; }
.ap-rules { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.ap-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ap-form > .ap-file-btn { position: relative; display: inline-flex; justify-self: start; cursor: pointer; color: var(--ink); }
.ap-preview { width: 100%; max-height: 320px; object-fit: contain; border-radius: 12px; background: #fff; }
.ap-preview[hidden] { display: none; }
.ap .tm-status:empty { display: none; }
.ap .tm-status:not(:empty) { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
@media (min-width: 560px) {
  .ap-actions { grid-template-columns: repeat(4, 1fr); }
  .ap-contacts { grid-template-columns: repeat(3, 1fr); }
  .ap-contacts .tm-btn:last-child { grid-column: auto; }
}

/* ===================== Teleconsulta: sala, cofre do paciente, área de atendimento e verificação ===================== */
.tm-room-box { min-width: 0; }
.tm-room-box:empty { display: none; }
.tm-rtk { display: block; width: 100%; height: min(78vh, 760px); border-radius: var(--radius-xl); overflow: hidden; background: #0b1d26; box-shadow: var(--shadow-lg); }
.pr-cofre { display: grid; gap: 16px; margin-top: 26px; }
.pr-cofre:empty { display: none; }
.pr-card { display: grid; gap: 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); min-width: 0; }
.pr-card h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.35rem; }
.pr-card h2 .icon { width: 20px; height: 20px; color: var(--brand); flex: none; }
.pr-card p { margin: 0; }
.pr-docs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pr-docs li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pr-docs li.pr-off { opacity: .6; }
.pr-doc-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.pr-doc-ic .icon { width: 18px; height: 18px; }
.pr-doc-main { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.pr-doc-main strong { color: var(--ink); }
.pr-docs .tm-btn { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
/* Farmácia: comprar a receita nas farmácias parceiras */
.fa-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.fa-acoes .tm-btn { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.fa-fluxo:empty, .fa-pedidos:empty { display: none; }
.fa-passo { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.fa-passo > strong { color: var(--ink); }
.fa-linha { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fa-linha input { flex: 1 1 140px; max-width: 200px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.fa-farmacias { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fa-farmacias li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.fa-farmacias li.melhor { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.fa-farmacias li > div { display: grid; gap: 2px; min-width: 0; }
.fa-total { display: flex; align-items: center; gap: 12px; }
.fa-total strong { font-size: 1.15rem; color: var(--ink); }
.fa-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.fa-form .tm-field { display: grid; gap: 6px; font-size: .9rem; font-weight: 800; color: var(--ink); }
.fa-form .tm-field input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-weight: 400; }
.fa-form > p, .fa-form > button { grid-column: 1 / -1; }
.fa-pedidos { display: grid; gap: 8px; }
.fa-pedidos h3 { margin: 4px 0 0; font-size: 1.05rem; }
@media (max-width: 640px) { .fa-form { grid-template-columns: 1fr; } }
.pr-upload { padding: 16px; border-radius: 16px; background: #fff; border: 1px dashed var(--line); }
.pr-upload > label, .pr-form > label, .pr-item > label { display: grid; gap: 7px; color: var(--ink); font-size: .9rem; font-weight: 800; }
.pr-record { display: grid; gap: 10px; margin: 0; }
.pr-record > div { padding: 10px 14px; border-radius: 12px; background: #fff; }
.pr-record dt { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pr-record dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pr-addenda { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); }
.pr-addenda h3 { margin: 0; font-size: 1.05rem; }
.pr-addenda p { white-space: pre-wrap; overflow-wrap: anywhere; }
.pr-log summary { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; cursor: pointer; }
.pr-log summary .icon { width: 18px; height: 18px; color: var(--brand); }
.pr-log ol { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.pr-log li { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: #fff; font-size: .92rem; }
.pr-head h1 { margin: 0 0 6px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); overflow-wrap: anywhere; }
.pr-facts { border-bottom: 0; padding-bottom: 0; }
.pr-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.pr-grid[hidden] { display: none; }
.pr-grid > .tm-panel + .tm-panel { margin-top: 0; }
.pr-video { position: sticky; top: 16px; display: grid; gap: 12px; }
.pr-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pr-section-head h2 { margin: 0; }
.pr-video .tm-rtk, .pr-video .tm-room { height: min(56vh, 520px); }
.pr-transcricao { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--sand); }
.pr-transcricao h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.1rem; }
.pr-transcricao h3 .icon { width: 18px; height: 18px; color: var(--coral); }
.pr-transcricao textarea { width: 100%; min-height: 120px; padding: 12px 14px; border: 1.5px solid #d6dfe4; border-radius: 14px; background: #fff; color: var(--text); font: 400 .92rem/1.55 var(--sans); resize: vertical; }
.pr-transcricao textarea:focus { outline: 3px solid var(--brand-50); border-color: var(--brand); }
.pr-head .tm-status:empty { display: none; }
.pr-tabs { margin-bottom: 18px; }
.pr-panel { display: grid; gap: 14px; min-width: 0; }
.pr-panel[hidden] { display: none; }
.pr-panel > .tm-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.pr-panel > .tm-note .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.pr-panel .tm-alert { margin: 0; }
.pr-form textarea, .pr-form input, .pr-form select { background: #fff; }
.pr-items { display: grid; gap: 10px; }
.pr-item { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 10px; padding: 14px; border-radius: 14px; background: var(--sand); }
.pr-item .pr-wide { grid-column: 1 / -1; }
.pr-item > .tm-check { display: flex; font-weight: 600; }
.pr-item .pr-remove { justify-self: start; min-height: 38px; padding: 6px 14px; font-size: .85rem; }
.pr-med { position: relative; display: grid; gap: 4px; min-width: 0; grid-column: 1 / -1; }
.pr-med > label { display: grid; gap: 7px; color: var(--ink); font-size: .9rem; font-weight: 800; }
.pr-sugestoes { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; max-height: 260px; overflow-y: auto; margin: 4px 0 0; padding: 4px; list-style: none; border-radius: 12px; border: 1px solid #e4ddd2; background: #fff; box-shadow: 0 8px 24px rgba(11, 36, 51, .12); }
.pr-sugestoes[hidden], .pr-origem[hidden] { display: none; }
.pr-sugestoes li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.pr-sugestoes li[aria-selected="true"] { background: var(--sand); }
.pr-sugestoes em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--ok); }
.pr-sugestoes em.warn { color: #b3412f; }
.pr-origem { color: var(--ok); font-size: .8rem; font-weight: 700; }
.pr-issued { display: grid; gap: 8px; }
.pr-issued h3 { margin: 0; font-size: 1.1rem; }
.pr-verify-card { display: grid; gap: 12px; margin-top: 18px; padding: 20px; border-radius: var(--radius-lg); border: 2px solid #bfe3cd; background: #f3fbf6; }
.pr-verify-card.off { border-color: #f3c9c1; background: #fff6f3; }
.pr-verify-state { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ok); font: 800 1.15rem var(--sans); }
.pr-verify-card.off .pr-verify-state { color: var(--error); }
.pr-verify-state .icon { width: 24px; height: 24px; flex: none; }
.pr-verify-items { display: grid; gap: 6px; margin: 0; padding-left: 20px; overflow-wrap: anywhere; }
@media (max-width: 980px) {
  .pr-grid { grid-template-columns: minmax(0, 1fr); }
  .pr-video { position: static; }
}
@media (max-width: 640px) {
  .pr-item { grid-template-columns: 1fr; }
  .pr-card { padding: 16px; }
}

/* ===================== Etapa E: Carteira de Saúde, cartão de emergência, selo e avaliação ===================== */
.cd-facts li.ok .icon { color: var(--ok); }
.cd-quality h2 { display: flex; align-items: center; gap: 10px; }
.cd-quality h2 .icon { width: 22px; height: 22px; color: var(--coral); }
.cd-criteria { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cd-criteria li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--sand); }
.cd-criteria li span { display: grid; gap: 2px; min-width: 0; }
.cd-criteria .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.cd-criteria li.ok { background: #eef8f2; }
.cd-criteria li.ok .icon { color: var(--ok); }
.cd-suggest { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-lg); background: var(--coral-50); border: 1px solid #f6cfc6; }
.cd-suggest .dy-h { display: flex; align-items: center; gap: 8px; margin: 0; }
.cd-suggest .dy-h .icon { width: 18px; height: 18px; color: var(--coral-600); }
.cd-suggest-item { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #fff; }
.cd-suggest-item p { margin: 0; overflow-wrap: anywhere; }
.cd-suggest-row { display: grid; grid-template-columns: 1fr 140px; gap: 10px; }
.cd-suggest-row label { display: grid; gap: 6px; color: var(--ink); font-size: .86rem; font-weight: 800; }
.cd-suggest-done { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.cd-suggest-done li { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.cd-suggest-done .icon { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--muted); }
.cd-rate { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px dashed var(--line); }
.cd-rate-title { margin: 0; color: var(--ink); font-weight: 800; }
.cd-stars { display: flex; gap: 4px; }
.cd-stars button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--sand); color: #c9c0b2; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cd-stars button.on { background: #fff3dc; color: #e2a300; }
.cd-stars button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.cd-rate input { min-height: 42px; }
.cd-wallet { display: grid; gap: 4px; }
#cd-carteira { display: grid; gap: 16px; }
#cd-carteira > .tm-status:empty { display: none; }
.cd-wallet-plan { display: grid; gap: 12px; padding: 18px 20px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff, var(--brand-50)); border: 1px solid var(--line-cool); }
.cd-wallet-plan.ativa { background: #f3fbf6; border-color: #bfe3cd; }
.cd-wallet-plan .checklist { margin: 0; }
.cd-wallet-plan p { margin: 0; }
.cd-wallet-state { display: flex; gap: 10px; align-items: flex-start; font-weight: 800; }
.cd-wallet-state .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.cd-wallet-state.on { color: var(--ok); }
.cd-wallet-state.warn { color: #8a5a00; }
.cd-wallet-link { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--sand); }
.cd-wallet-link h3, .cd-wallet-block h4 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); }
.cd-wallet-link h3 { font-size: 1.15rem; }
.cd-wallet-link h3 .icon, .cd-wallet-block h4 .icon { width: 18px; height: 18px; color: var(--brand); flex: none; }
.cd-wallet-link p { margin: 0; }
.cd-wallet-row { display: grid; grid-template-columns: 1fr minmax(140px, 200px) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; }
.cd-wallet-row > span { min-width: 0; overflow-wrap: anywhere; }
.cd-wallet-person { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); }
.cd-wallet-person > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.cd-wallet-person > summary::-webkit-details-marker { display: none; }
.cd-wallet-person > summary .tm-avatar { width: 42px; height: 42px; border-radius: 13px; font-size: 1rem; }
.cd-wallet-person > summary > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cd-wallet-person[open] > summary { border-bottom: 1px solid var(--line); }
.cd-wallet-person > *:not(summary) { margin: 14px 18px; }
.cd-wallet-block { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #fff; min-width: 0; }
.cd-wallet-block h4 { font: 800 1rem var(--sans); }
.cd-wallet-block p { margin: 0; }
.cd-wallet-consult { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.cd-wallet-consult:first-of-type { border-top: 0; padding-top: 0; }
.cd-wallet-consult > p { margin: 0; overflow-wrap: anywhere; }
.cd-wallet-record dl { display: grid; gap: 8px; margin: 0; }
.cd-wallet-record dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cd-wallet-record dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cd-wallet-record[hidden] { display: none; }
.cd-wallet-rx { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--sand); }
.cd-wallet-rx p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; overflow-wrap: anywhere; }
.cd-wallet-rx p .icon { width: 16px; height: 16px; color: var(--brand); }
.cd-wallet-suggest { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #fff; }
.cd-wallet-suggest[hidden] { display: none; }
.cd-wallet-suggest .tm-check { font-weight: 600; }
.cd-sug-aceita .icon { color: var(--ok); }
.cd-sug-recusada .icon { color: var(--error); }
.cd-wallet-export { justify-content: flex-end; }
.cd-reminders { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cd-reminders li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--sand); }
.cd-reminders li.warn { background: #fff3dc; }
.cd-reminders li > span { min-width: 0; overflow-wrap: anywhere; }
.cd-card-print { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 460px; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--error); background: #fff; }
.cd-card-title { margin: 0; color: var(--error); font: 800 .82rem var(--sans); letter-spacing: .12em; }
.cd-card-name { margin: 4px 0; color: var(--ink); font: 600 1.4rem var(--display); overflow-wrap: anywhere; }
.cd-card-hint { margin: 0; color: var(--muted); font-size: .82rem; }
.cd-qr { width: 132px; height: 132px; flex: none; image-rendering: pixelated; }
.cd-card-log summary { color: var(--brand-600); font-weight: 800; cursor: pointer; }
.cd-card-log ul { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; }
@media print {
  body.cd-imprimindo * { visibility: hidden !important; }
  body.cd-imprimindo .cd-imprimir, body.cd-imprimindo .cd-imprimir * { visibility: visible !important; }
  body.cd-imprimindo .cd-imprimir { position: absolute; left: 0; top: 0; width: 86mm; max-width: none; padding: 4mm; border-radius: 3mm; }
  body.cd-imprimindo .cd-qr { width: 30mm; height: 30mm; }
}
@media (max-width: 640px) {
  .cd-wallet-row { grid-template-columns: 1fr; }
  .cd-suggest-row { grid-template-columns: 1fr; }
  .cd-wallet-person > *:not(summary) { margin: 12px; }
  .cd-card-print { flex-direction: row; }
  .cd-qr { width: 112px; height: 112px; }
}

/* Página pública do cartão de emergência */
.em-page { background: #fff7f5; }
.em-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: var(--error); color: #fff; }
.em-bar img { height: 26px; width: auto; }
.em-bar span { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .04em; }
.em-bar .icon { width: 20px; height: 20px; }
.em { width: min(100%, 640px); margin: 0 auto; padding: 18px 16px 40px; display: grid; gap: 12px; }
#em-cartao { display: grid; gap: 12px; }
#em-cartao:empty { display: none; }
.em-pessoa h1 { margin: 0; font-size: clamp(1.9rem, 6vw, 2.5rem); overflow-wrap: anywhere; }
.em-pessoa p { margin: 4px 0 0; color: var(--ink-2); font-size: 1.15rem; font-weight: 800; }
.em-bloco { padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.em-bloco h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 800 .82rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.em-bloco h2 .icon { width: 18px; height: 18px; color: var(--brand); }
.em-bloco p { margin: 0; color: var(--ink); font-size: 1.12rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.em-destaque { border: 2px solid var(--error); }
.em-destaque h2, .em-destaque h2 .icon { color: var(--error); }
.em-contatos { display: grid; gap: 10px; }
.em-ligar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; }
.em-ligar:hover { color: #fff; background: var(--ink-3); }
.em-ligar .icon { width: 24px; height: 24px; flex: none; }
.em-ligar > span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.em-atualizado, .em-nota { margin: 0; color: var(--muted); font-size: .88rem; }
.em-nota { display: block; }
.em-nota .icon { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.cd-wallet-block select, .cd-wallet-block input:not([type=checkbox]):not([type=file]), .cd-wallet-row select, .cd-rate input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid #d6dfe4; border-radius: 12px; background: #fff; color: var(--text); font: inherit;
}
.cd-wallet-block .tm-row > label, .cd-wallet-block > label { display: grid; gap: 6px; color: var(--ink); font-size: .86rem; font-weight: 800; }
.em .tm-status:empty { display: none; }

/* ===================== Parceiros: documentos do cadastro, médicos e vínculos ===================== */
.docs-fieldset { display: grid; gap: 10px; min-width: 0; margin: 4px 0 0; padding: 16px; border: 1.5px dashed var(--line-cool); border-radius: var(--radius); background: #fbfdfe; }
.docs-fieldset legend { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px; color: var(--ink); font: 800 .95rem var(--sans); }
.docs-fieldset legend .icon { width: 18px; height: 18px; color: var(--brand); }
.docs-hint { margin: 0; color: var(--muted); font-size: .84rem; }
.doc-field { display: grid; gap: 6px; color: var(--ink); font-size: .88rem; font-weight: 700; min-width: 0; }
.doc-field input[type=file] { width: 100%; max-width: 100%; padding: 8px; border: 1.5px solid #d6dfe4; border-radius: 10px; background: #fff; font: inherit; font-size: .85rem; }
.doc-req { color: var(--coral-600); font-style: normal; font-size: .76rem; font-weight: 800; }
.docs-optional summary { color: var(--brand-600); font-weight: 800; font-size: .88rem; cursor: pointer; }
.docs-optional[open] { display: grid; gap: 10px; }
.tm-specs { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tm-specs legend { padding: 0; margin-bottom: 4px; color: var(--ink); font-size: .9rem; font-weight: 800; }
.tm-specs .hint { color: var(--muted); font-weight: 400; }
.tm-spec-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(90px, .8fr) minmax(90px, .6fr) auto; gap: 8px; align-items: center; }
.tm-spec-row select, .tm-spec-row input { min-height: 44px; padding: 8px 10px; border: 1.5px solid #d6dfe4; border-radius: 10px; background: #fff; font: inherit; min-width: 0; }
.tm-spec-row .tm-btn { min-height: 40px; padding: 6px 12px; font-size: .84rem; }
.tm-specs > .tm-btn { justify-self: start; min-height: 40px; padding: 6px 14px; font-size: .86rem; }
.tm-spec-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-links { display: grid; gap: 12px; margin-bottom: 24px; }
.tm-link-card { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-lg); background: var(--brand-50); }
.tm-link-card p { margin: 0; overflow-wrap: anywhere; }
.tm-specs-box { display: grid; gap: 8px; }
.adm-docs { display: grid; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f3fbf6; }
.adm-docs.incompleto { background: #fff6f3; }
.adm-docs h4 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .95rem; }
.adm-docs h4 .icon { width: 16px; height: 16px; color: var(--brand); }
.adm-docs-falta { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--error); font-weight: 700; font-size: .9rem; }
.adm-docs-falta .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.adm-access { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.adm-access .tm-btn { min-height: 40px; padding: 6px 14px; font-size: .86rem; }
.adm-access-link { flex: 1 1 100%; padding: 10px 12px; border-radius: 10px; background: var(--sand); }
.adm-access-link p { margin: 0 0 4px; }
.adm-break { overflow-wrap: anywhere; word-break: break-all; font-size: .82rem; }
@media (max-width: 640px) {
  .tm-spec-row { grid-template-columns: 1fr 1fr; }
  .tm-spec-row select[name=esp] { grid-column: 1 / -1; }
}

/* Cadastros: edição de médicos, profissionais e qualquer persona (admin) */
.tm-doctors li.tm-off { opacity: .7; }
.adm-search.adm-cad-busca { max-width: 880px; }
.adm-cad-busca label:first-child { flex: 0 1 240px; }
.adm-cad-form { margin-top: 12px; }
.adm-cad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px 18px; align-items: start; }
.adm-cad-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .92rem; min-width: 0; }
.adm-cad-field input:not([type=checkbox]), .adm-cad-field select, .adm-cad-field textarea { width: 100%; min-width: 0; }
.adm-cad-field.tm-check { flex-direction: row; align-items: center; font-weight: 700; align-self: end; }
.adm-cad-wide { grid-column: 1 / -1; }
fieldset.adm-cad-field { border: 1px solid var(--line, #e3ddd3); border-radius: 12px; padding: 10px 14px; margin: 0; }
.adm-cad-multi { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 400; }
.adm-rel { margin: 6px 0 4px; }
.adm-rel .adm-families { margin-top: 8px; }
.adm-link-row { margin: 6px 0; overflow-wrap: anywhere; }

/* --------------------------------------------------------------- admin: navegação lateral, contadores e busca rápida */
.adm-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 24px; align-items: start; }
.adm-main { min-width: 0; }
.adm-main > .tm-status { min-height: 0; margin: 0 0 12px; }
.adm-main > .tm-status:not(:empty) { padding: 12px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.adm-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); padding: 14px; overflow: auto; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.adm-quick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sand); color: var(--muted); font: 700 .9rem var(--sans); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.adm-quick:hover { border-color: var(--brand); background: #fff; }
.adm-quick span { flex: 1; min-width: 0; }
.adm-quick .icon { flex: none; width: 18px; height: 18px; color: var(--brand); }
.adm-page kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--muted); font: 700 .7rem/1.5 var(--sans); white-space: nowrap; }
.adm-nav .adm-tabs { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.adm-nav-group { margin: 14px 12px 4px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.adm-nav-group:first-child { margin-top: 2px; }
.adm-nav .adm-tab { position: relative; justify-content: flex-start; width: 100%; min-height: 42px; padding: 8px 12px; border-radius: 12px; background: transparent; box-shadow: none; color: var(--ink); font: 700 .93rem var(--sans); text-align: left; }
.adm-nav .adm-tab:hover { background: var(--sand); }
.adm-nav .adm-tab[aria-selected="true"] { background: var(--brand-50); color: var(--ink); }
.adm-nav .adm-tab[aria-selected="true"] .icon { color: var(--coral); }
.adm-nav .adm-tab[aria-selected="true"]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--coral); }
.adm-tab-label { flex: 1; min-width: 0; }
.adm-count { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--coral); color: #fff; font: 800 .75rem/22px var(--sans); text-align: center; }
.adm-count[hidden] { display: none; }
button.adm-stat { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
button.adm-stat:hover { border-color: rgb(255 255 255 / 24%); background: rgb(255 255 255 / 11%); transform: translateY(-2px); }
button.adm-stat:focus-visible { outline: 3px solid #7fe0d4; outline-offset: 2px; }
.adm-stat-text { display: block; min-width: 0; }
.adm-stat-text > span { display: block; }
.adm-palette { width: min(640px, calc(100vw - 32px)); max-height: min(580px, calc(100vh - 80px)); margin: 10vh auto auto; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgb(11 36 51 / 45%); }
.adm-palette::backdrop { background: rgb(11 36 51 / 50%); backdrop-filter: blur(3px); }
.adm-palette-box { display: flex; flex-direction: column; max-height: min(580px, calc(100vh - 80px)); }
.adm-palette-field { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.adm-palette-field .icon { flex: none; width: 20px; height: 20px; color: var(--brand); }
.adm-palette-field input { flex: 1; min-width: 0; padding: 8px 0; border: 0; outline: 0; background: transparent; box-shadow: none; color: var(--ink); font: 600 1.05rem var(--sans); }
.adm-palette-res { overflow: auto; padding: 6px 8px 10px; }
.adm-palette-sec { margin: 12px 12px 4px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.adm-palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.adm-palette-item .tm-avatar { flex: none; width: 34px; height: 34px; border-radius: 10px; font-size: .82rem; }
.adm-palette-ico { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--sand); color: var(--brand); }
.adm-palette-ico .icon { width: 18px; height: 18px; }
.adm-palette-txt { flex: 1; min-width: 0; }
.adm-palette-txt strong, .adm-palette-txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-palette-txt small { color: var(--muted); }
.adm-palette-item[aria-selected="true"], .adm-palette-item:hover { background: var(--brand-50); }
.adm-palette-empty { margin: 0; padding: 22px 18px; color: var(--muted); text-align: center; }
.adm-palette-help { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
@media (max-width: 1000px) {
  .adm-shell { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .adm-nav { top: 0; z-index: 5; flex-direction: row; align-items: center; gap: 6px; max-height: none; padding: 6px; overflow: visible; border-radius: 16px; }
  .adm-quick { flex: none; justify-content: center; width: 44px; padding: 0; }
  .adm-quick span, .adm-quick kbd { display: none; }
  .adm-nav .adm-tabs { flex: 1; flex-direction: row; flex-wrap: nowrap; gap: 2px; min-width: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .adm-nav .adm-tabs::-webkit-scrollbar { display: none; }
  .adm-nav-group { display: none; }
  .adm-nav .adm-tab { flex: none; width: auto; white-space: nowrap; scroll-snap-align: start; }
  .adm-nav .adm-tab[aria-selected="true"]::before { top: auto; right: 12px; bottom: 3px; left: 12px; width: auto; height: 3px; border-radius: 3px; }
  .adm-palette { margin-top: 16px; }
}

/* --------------------------------------------------------------- emergência: botões de ligar com um toque */
.cd-emergency, .ap-emergency { margin: 12px 0; padding: 12px 14px; border: 1px solid #f3c6bd; border-radius: 14px; background: #fff6f4; }
.cd-emergency-title, .ap-emergency-title { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--error); font-weight: 800; }
.cd-emergency-title .icon, .ap-emergency-title .icon { width: 18px; height: 18px; }
.cd-emergency .tm-muted, .ap-emergency .tm-muted { margin: 8px 0 0; }
.cd-emergency .tm-btn.danger, .ap-emergency .tm-btn.danger { background: var(--error); color: #fff; box-shadow: none; }
.cd-emergency .tm-btn.danger:hover, .ap-emergency .tm-btn.danger:hover { background: #8f1c13; color: #fff; }
.ap-emergency .ap-contacts .tm-btn:last-child { grid-column: auto; color: inherit; }
.ap-emergency .ap-contacts .tm-btn.danger { grid-column: 1 / -1; color: #fff; }
.em-ligar.em-samu { background: var(--error); }
.em-ligar.em-samu:hover { background: #8f1c13; }

/* --------------------------------------------------------------- faturas, extrato e carteira h-Commerce Pay */
.cd-invoices { display: grid; gap: 12px; margin-bottom: 16px; }
.cd-invoice { padding: 16px 18px; border: 1.5px solid var(--coral); border-radius: 16px; background: #fff; }
.cd-invoice.atrasada { border-color: var(--error); background: #fff6f4; }
.cd-invoice header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.cd-invoice h3 { margin: 0; font-size: 1.05rem; }
.cd-invoice-items { display: grid; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.cd-invoice-items li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 10px; border-radius: 10px; background: var(--sand); font-size: .92rem; }
.cd-invoice-items li span { min-width: 0; overflow-wrap: anywhere; }
.cd-invoice-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.cd-invoice-foot p { margin: 0; }
.cd-invoices-paid summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.cd-hc, .tm-hc { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cd-hc.ativa, .tm-hc.ativa { border-color: #b9e3c8; background: #f3fbf6; }
.cd-hc-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.cd-hc-state .icon { width: 18px; height: 18px; color: var(--brand); }
.cd-hc-form, .tm-hc-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 8px; }
.cd-hc-form label, .tm-hc-form label { flex: 1 1 240px; }
.cd-hc-form .tm-status, .tm-hc-form .tm-status { flex-basis: 100%; }
.cd-mes { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .88rem; }
.cd-extrato-totais { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; margin: 8px 0 16px; }
.cd-extrato-totais > div { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--sand); }
.cd-extrato-totais strong { font-size: 1.15rem; }
.adm-hc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--sand); }
.adm-proposta-item { margin: 10px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; }
.adm-proposta-item.adm-off { opacity: .55; }
.adm-proposta-item legend { padding: 0 6px; font-weight: 800; }
.adm-rep-acao { margin-top: 6px; }
.cd-wallet-plan-pessoa { margin: 8px 0 12px; }
.cd-mes input { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
