/* ============================================================
   Hedah Clinic — landing (estrutura e linguagem inspiradas no
   Billow; conteúdo, telas e marca só da Hedah). Vanilla, sem build.
   Uma face só: Google Sans (licença OFL, auto-hospedada em fonts/, um
   arquivo variável 400–700, subconjunto latino) — trocou a Switzer em
   2026-10-02, decisão do dono. A serif Gambetta foi testada e descartada
   em 2026-10-01.
   ============================================================ */

:root {
    --bg: #FBFCFE;
    --surface: #FFFFFF;
    --line: #E6EAF0;
    --line-2: #D5DCE6;

    --ink: #0E1E2E;          /* títulos */
    --tone: #4A6178;         /* segunda linha dos títulos em duas cores */
    --text: #334155;
    --muted: #55677A;

    --blue: #2563EB;
    --blue-deep: #1D4ED8;
    --blue-label: #175CD3;
    --blue-wash: #EEF4FF;
    --blue-wash-2: #DCE7FE;
    --cyan: #5CC8FF;          /* só no brilho atrás das telas */

    --ok: #039855;
    --ok-text: #05603A;

    --r-card: 20px;
    --r-inner: 14px;
    --r-sm: 10px;

    --shadow-soft: rgba(15, 30, 60, .04) 0 1px 2px, rgba(15, 30, 60, .06) 0 8px 24px -8px;
    --shadow-window: rgba(15, 30, 60, .06) 0 2px 4px, rgba(15, 30, 60, .10) 0 24px 60px -24px;

    --display: var(--sans);
    --sans: 'Google Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
    --header-h: 72px;
}

@font-face { font-family: 'Google Sans'; src: url('fonts/google-sans-latin.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--sans); font-size: 1rem; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }
mark { background: var(--blue-wash-2); color: var(--ink); font-weight: 500; padding: 1px 6px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.shell { width: min(1232px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .shell { width: min(1232px, 100% - 32px); } }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 12px 24px; border-radius: var(--r-sm); font-weight: 500; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* ---------- tipografia ---------- */
.display, .h2, .h3, .h4 { font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; }
.h2, .h2-xl { font-size: clamp(2.1rem, 3vw + .8rem, 3.6rem); line-height: 1.04; letter-spacing: -.03em; }
.h3 { font-size: clamp(1.75rem, 2vw + .9rem, 2.5rem); line-height: 1.08; letter-spacing: -.025em; }
.h4 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.015em; }
.h2 span, .h3 span, .h2-xl span { display: block; }
.h2 .tone, .h3 .tone, .h2-xl .tone { color: var(--tone); }
.final-title .tone { color: var(--ink); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 52ch; margin-inline: auto; text-wrap: pretty; }
.note { margin-top: 14px; font-size: .8125rem; color: var(--muted); }

/* pílula acima das seções: ícone + rótulo, borda fina */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: .875rem; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-soft); }
.pill svg:first-child { color: var(--blue); }
a.pill:hover { border-color: var(--blue); }
a.pill svg:last-child { color: var(--muted); }

.head-center { display: grid; justify-items: center; text-align: center; gap: 18px; margin-bottom: 56px; }

/* ---------- botões ---------- */
.btn-primary, .btn-dark, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 500; font-size: .9375rem; white-space: nowrap; transition: background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
/* Primário: mesmo tratamento dos botões das telas de acesso (2026-10-02,
   pedido do dono) — borda um tom abaixo, sombra curta (a longa e difusa
   borrava o botão), leve subida no hover, afundado no clique. */
.btn-primary { color: #fff; border: 1px solid var(--blue-deep); background: linear-gradient(180deg, #3A78F2 0%, var(--blue) 55%, #1E56DB 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(15, 30, 60, .10), 0 6px 14px -8px rgba(37, 99, 235, .60); }
.btn-primary:hover { background: linear-gradient(180deg, #2F6BF0 0%, var(--blue-deep) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(15, 30, 60, .12), 0 10px 20px -10px rgba(37, 99, 235, .70); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .22); }
.btn-primary svg { flex: none; transition: transform .2s ease; }
.btn-primary:hover svg { transform: translateX(2px); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { background: #1F3247; }
.btn-outline { color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-dark:active, .btn-outline:active { transform: translateY(1px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; background: rgba(251, 252, 254, .9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease, transform .28s cubic-bezier(.22, 1, .36, 1); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* some ao rolar para baixo, volta ao subir e no topo (landing.js) */
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand img { height: 28px; }
.site-nav { display: flex; gap: 4px; font-size: .9375rem; font-weight: 500; }
.site-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: color .18s ease, background .18s ease; }
.site-nav a:hover { color: var(--ink); background: rgba(14, 30, 46, .04); }
.nav-login { display: none; }
.header-actions { display: flex; justify-content: flex-end; gap: 10px; }
.header-actions .btn-outline, .header-actions .btn-dark { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.lbl-short { display: none; }
.burger { display: none; flex-direction: column; gap: 5px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border-radius: 999px; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 900px) {
    .header-inner { grid-template-columns: auto 1fr auto; gap: 8px; }
    .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
    .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .site-nav a { display: flex; align-items: center; min-height: 44px; }
    .nav-login { display: flex; }
    .header-actions .btn-outline { display: none; }
    .burger { display: flex; }
    .lbl-full { display: none; }
    .lbl-short { display: inline; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-inner .pill { margin-bottom: 28px; }
/* Título na régua das referências medidas (Linear, Attio, Notion: um peso,
   um tamanho, 56–64px a 1440, tracking −0,02 a −0,03em, entrelinha ~1,0,
   no máximo 2 linhas). Peso 600 e cor única (ink) em tudo — o azul e o
   sweep de "Hedah Clinic" saíram junto com a headline antiga
   (2026-10-02, decisão do dono). Desktop:
   duas linhas fixas, cada uma um bloco sem quebra; o tamanho cresce com a
   janela até 4rem e a primeira linha sempre cabe no container. */
.hero-title { font-size: clamp(2.25rem, 3.6vw + 1rem, 3.875rem); font-weight: 600; line-height: 1.04; letter-spacing: -.032em; color: var(--ink); max-width: 18ch; margin: 0 auto; text-wrap: balance; }
/* cada frase começa na própria linha; no celular quebra equilibrada dentro dela */
.hero-title .hl { display: block; }
@media (min-width: 900px) {
    .hero-title { max-width: none; font-size: min(4.3vw, 3.875rem); text-wrap: initial; }
    .hero-title .hl { white-space: nowrap; }
}
.hero-lead { font-size: 1.1875rem; color: var(--muted); max-width: 52ch; margin: 28px auto 32px; text-wrap: pretty; }

.hero-stage { --hero-gap: clamp(72px, 9vw, 120px); --rise: 0px; position: relative; margin-top: var(--hero-gap); padding-bottom: clamp(56px, 7vw, 104px); }
/* Nuvem de brilho atrás da tela do produto: manchas azul/ciano que derivam
   devagar (só transform, roda na GPU). Pedidos do dono (2026-10-01/02):
   "aumente este degradê e adicione movimento", "está muito pequeno e
   cortado", o contorno desenhado (no desktop a nuvem sobe pelas laterais,
   alta nas bordas da página e descendo até a borda de cima da janela) e
   "deixe o degradê mais orgânico" — por isso nada de borda reta: cada mancha
   tem contorno irregular e gira devagar, o centro do degradê é deslocado,
   e o desenho das laterais sai da soma das manchas, não de uma máscara.
   Nunca passa por trás do texto, do botão ou das garantias: no celular a
   máscara vertical só acende logo abaixo das garantias; no desktop uma
   clareira elíptica (borda curva, não diagonal) protege a coluna de texto.
   --rise é quanto a nuvem sobe acima do vão (0 no celular).
   Congela em prefers-reduced-motion. */
.hero-glow { position: absolute; top: calc(-1 * (var(--hero-gap) + var(--rise))); left: -16%; right: -16%; bottom: 0; pointer-events: none;
    --fade: linear-gradient(to bottom, transparent calc(var(--rise) + 12px), rgba(0, 0, 0, .3) calc(var(--rise) + 12px + clamp(30px, 4.5vw, 54px)), rgba(0, 0, 0, .75) calc(var(--rise) + var(--hero-gap)), #000 calc(var(--rise) + var(--hero-gap) + 110px), #000 calc(100% - clamp(64px, 7vw, 112px)), transparent 100%);
    -webkit-mask-image: var(--fade); mask-image: var(--fade); }
/* Base "Layered Tide" (2026-10-02, pedido do dono: "melhore este gradiente
   com 21st"). Referência: Oceanic Shimmer (21st.dev, MIT), técnica recriada
   em CSS puro com as cores da marca — faixas horizontais largas feitas de
   radial-gradients empilhados, claro no alto e azul profundo embaixo, como
   um horizonte; as manchas orgânicas derivam por cima e um grão de filme
   (feTurbulence) fecha o acabamento. Tudo dentro da mesma máscara, então o
   texto e o botão continuam sem nada atrás. */
.hero-glow::before { content: ""; position: absolute; inset: -4% 0; will-change: transform;
    background:
        radial-gradient(150% 46% at 42% 12%, rgba(238, 244, 255, .95) 0%, rgba(238, 244, 255, 0) 55%),
        radial-gradient(150% 46% at 45% 34%, rgba(92, 200, 255, .9) 0%, rgba(92, 200, 255, 0) 55%),
        radial-gradient(150% 46% at 52% 60%, rgba(56, 132, 255, .9) 0%, rgba(56, 132, 255, 0) 55%),
        radial-gradient(150% 46% at 55% 90%, rgba(37, 99, 235, .95) 0%, rgba(37, 99, 235, 0) 55%);
    animation: glow-tide 30s ease-in-out infinite alternate; }
.hero-glow::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .32; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 140px 140px; }
@keyframes glow-tide { to { transform: translate(-2%, -3%) scaleY(1.06); } }
.hero-glow i { position: absolute; filter: blur(52px); will-change: transform; opacity: .72;
    top: calc(var(--rise) + (100% - var(--rise)) * var(--y)); height: calc((100% - var(--rise)) * var(--h));
    border-radius: var(--shape, 50%);
    background: radial-gradient(farthest-side at var(--at, 50% 50%), rgba(var(--c), 1) 0%, rgba(var(--c), .7) 40%, rgba(var(--c), 0) 100%); }
.hero-glow i:nth-child(1) { --y: .02; --h: .6; --c: 92, 200, 255; --at: 44% 56%; --shape: 62% 38% 55% 45% / 48% 60% 40% 52%; width: 52%; left: -2%; animation: glow-a 16s ease-in-out infinite alternate; }
.hero-glow i:nth-child(2) { --y: -.04; --h: .52; --c: 37, 99, 235; --at: 54% 48%; --shape: 45% 55% 40% 60% / 58% 42% 58% 42%; width: 62%; left: 19%; animation: glow-b 20s ease-in-out infinite alternate; }
.hero-glow i:nth-child(3) { --y: .02; --h: .6; --c: 92, 200, 255; --at: 58% 52%; --shape: 40% 60% 48% 52% / 55% 45% 62% 38%; width: 52%; right: -2%; animation: glow-c 18s ease-in-out infinite alternate; }
.hero-glow i:nth-child(4) { --y: .38; --h: .62; --c: 56, 132, 255; --at: 40% 46%; --shape: 58% 42% 36% 64% / 44% 56% 44% 56%; width: 46%; left: 0; animation: glow-d 24s ease-in-out infinite alternate; }
.hero-glow i:nth-child(5) { --y: .38; --h: .62; --c: 56, 132, 255; --at: 60% 54%; --shape: 38% 62% 60% 40% / 56% 40% 60% 44%; width: 46%; right: 0; animation: glow-e 22s ease-in-out infinite alternate; }
.hero-glow i:nth-child(6) { --y: .68; --h: .44; --c: 92, 200, 255; --at: 48% 40%; --shape: 52% 48% 60% 40% / 40% 60% 40% 60%; width: 72%; left: 14%; animation: glow-f 26s ease-in-out infinite alternate; }
/* manchas que sobem pelas laterais: só existem no desktop */
.hero-glow i:nth-child(n+7) { display: none; }
@media (min-width: 900px) {
    .hero-stage { --rise: clamp(140px, 15vw, 240px); }
    /* Clareira em volta do texto: elipse centrada no topo da caixa, larga o
       bastante para guardar título/parágrafo/botão/garantias, alta o
       bastante para a cor só ficar cheia já na janela. Fora dela tudo acende;
       a borda de cima da caixa e a base esmaecem (interseção das camadas). */
    .hero-glow {
        --hole: radial-gradient(ellipse 36% calc((var(--rise) + var(--hero-gap)) * 1.15) at 50% 0, transparent 0, transparent 60%, rgba(0, 0, 0, .5) 80%, #000 100%);
        --edges: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .6) calc(var(--rise) * .45), #000 var(--rise), #000 calc(100% - clamp(64px, 7vw, 112px)), transparent 100%);
        -webkit-mask-image: var(--hole), var(--edges); mask-image: var(--hole), var(--edges);
        -webkit-mask-composite: source-in; mask-composite: intersect; }
    .hero-glow i:nth-child(n+7) { display: block; }
    /* laterais assimétricas, de propósito: a esquerda sobe mais que a direita */
    .hero-glow i:nth-child(7) { top: 2%; height: 46%; width: 30%; left: 3%; --c: 92, 200, 255; --at: 46% 58%; --shape: 64% 36% 52% 48% / 42% 58% 46% 54%; animation: glow-g 19s ease-in-out infinite alternate; }
    .hero-glow i:nth-child(8) { top: 5%; height: 42%; width: 32%; right: 2%; --c: 76, 176, 255; --at: 54% 60%; --shape: 38% 62% 44% 56% / 60% 40% 56% 44%; animation: glow-h 21s ease-in-out infinite alternate; }
    .hero-glow i:nth-child(9) { top: 15%; height: 22%; width: 17%; left: 15%; --c: 37, 99, 235; --at: 50% 50%; --shape: 55% 45% 62% 38% / 50% 62% 38% 50%; animation: glow-i 17s ease-in-out infinite alternate; }
    .hero-glow i:nth-child(10) { top: 19%; height: 20%; width: 15%; right: 16%; --c: 56, 132, 255; --at: 50% 50%; --shape: 42% 58% 50% 50% / 62% 38% 60% 40%; animation: glow-j 23s ease-in-out infinite alternate; }
}
@keyframes glow-a { to { transform: translate(12%, 10%) rotate(22deg) scale(1.12); } }
@keyframes glow-b { to { transform: translate(-10%, 8%) rotate(-16deg) scale(.9); } }
@keyframes glow-c { to { transform: translate(-12%, 8%) rotate(-24deg) scale(1.14); } }
@keyframes glow-d { to { transform: translate(10%, -10%) rotate(18deg) scale(1.15); } }
@keyframes glow-e { to { transform: translate(-10%, -8%) rotate(-20deg) scale(1.1); } }
@keyframes glow-f { to { transform: translate(-8%, -6%) rotate(14deg) scale(1.12); } }
@keyframes glow-g { to { transform: translate(10%, 8%) rotate(-26deg) scale(1.1); } }
@keyframes glow-h { to { transform: translate(-9%, 4%) rotate(30deg) scale(1.06); } }
@keyframes glow-i { to { transform: translate(18%, 14%) rotate(40deg) scale(1.2); } }
@keyframes glow-j { to { transform: translate(-16%, 10%) rotate(-36deg) scale(.86); } }
.app-window { position: relative; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-window); }
.app-screen { border-radius: 15px; overflow: hidden; background: var(--surface); }

/* ---------- como começar ---------- */
.start { padding-block: clamp(64px, 7vw, 104px) clamp(80px, 9vw, 128px); }
.start-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .start-grid { grid-template-columns: repeat(3, 1fr); } }
.start-card { background: linear-gradient(180deg, var(--blue-wash) 0%, var(--surface) 55%); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 24px 32px; text-align: center; }
.start-card h3 { margin: 28px 0 10px; }
.start-card > p { color: var(--muted); max-width: 34ch; margin-inline: auto; text-wrap: pretty; }
.start-visual { height: 220px; border-radius: var(--r-inner); display: flex; align-items: center; justify-content: center; position: relative; }
.mini-form, .mini-week, .mini-plans { width: min(280px, 100%); background: var(--surface); border-radius: var(--r-inner); box-shadow: var(--shadow-window); padding: 16px; text-align: left; font-size: .8125rem; }
.mf-label { color: var(--muted); font-size: .75rem; margin-bottom: 4px; }
.mf-field { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--ink); margin-bottom: 10px; }
.mf-btn { margin-top: 4px; text-align: center; padding: 8px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 500; }
.mini-week { position: relative; padding: 0; overflow: visible; }
.mini-week .sx-wrap { border-radius: 14px; }
.mw-badge { position: absolute; top: -18px; right: -14px; width: 56px; height: 56px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(180deg, #2F6BF0, var(--blue-deep)); color: #fff; font-size: .6875rem; line-height: 1; box-shadow: rgba(37, 99, 235, .4) 0 8px 18px -6px; }
.mw-badge b { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.mw-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); margin-bottom: 8px; }
.mw-row:last-child { margin-bottom: 0; }
.mw-row i { width: 3px; align-self: stretch; border-radius: 3px; background: var(--blue); }
.mw-row i.is-green { background: #0E9F6E; }
.mw-row i.is-orange { background: #E3A008; }
.mp-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; color: var(--ink); }
.mp-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-row.is-on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash-2); }
.mp-hint { color: var(--muted); font-size: .75rem; text-align: center; margin-top: 4px; }

/* ---------- recursos ---------- */
.features { position: relative; padding-block: clamp(80px, 9vw, 128px); }
.features-sky { position: absolute; inset: 0 0 auto; height: 520px; pointer-events: none; background: radial-gradient(60% 70% at 30% 10%, rgba(92, 200, 255, .22), transparent 70%), radial-gradient(50% 60% at 75% 0%, rgba(37, 99, 235, .14), transparent 70%); }
.features > .shell { position: relative; }
.feat { padding-block: clamp(48px, 6vw, 88px); }
.feat-head { display: grid; gap: 20px; margin-bottom: 40px; }
@media (min-width: 900px) { .feat-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 48px; } }
.feat-text { font-size: 1.0625rem; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
@media (min-width: 900px) { .feat-text { justify-self: end; } }
.stage { position: relative; border-radius: 24px; padding: clamp(20px, 4vw, 56px); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border: 1px solid var(--line); overflow: hidden; }
.stage-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 60% at 30% 100%, rgba(92, 200, 255, .30), transparent 70%), radial-gradient(40% 55% at 75% 100%, rgba(37, 99, 235, .20), transparent 70%); }
/* a tela real aparece em escala, cortada embaixo com fade: o corte diz
   que a tela continua */
.stage-window { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-window); max-height: clamp(300px, 46vw, 600px); -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.overlay { display: none; position: relative; margin: -40px 0 0 auto; width: min(320px, 92%); border-radius: 16px; box-shadow: var(--shadow-window); overflow: hidden; z-index: 2; }
@media (min-width: 900px) { .overlay { display: block; position: absolute; right: clamp(20px, 4vw, 48px); bottom: clamp(20px, 3vw, 40px); margin: 0; } }
.ov-title { font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.ov-label { color: var(--muted); font-size: .75rem; margin-bottom: 4px; }
.ov-field { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--ink); margin-bottom: 10px; }
.ov-btn { text-align: center; padding: 8px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 500; }
.ov-person { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: .8125rem; }
.ov-person b { display: block; color: var(--ink); font-size: .9375rem; font-weight: 600; }
.ov-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 600; }
.ov-list { display: grid; gap: 8px; }
.ov-list li { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.ov-list svg, .checks svg, .plan-list svg, .chips svg { flex: none; color: var(--blue); }
.ov-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #FEF3F2; color: #B42318; font-size: .75rem; font-weight: 500; margin-bottom: 10px; }
.ov-chip.is-blue { background: var(--blue-wash); color: var(--blue-label); }
.ov-strong { font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: 6px; }
.ov-small { color: var(--muted); font-size: .8125rem; }

/* destaque de anamnese: card de duas colunas (texto | visual) */
.spot { display: grid; gap: 24px; margin-top: clamp(32px, 4vw, 56px); padding: clamp(24px, 4vw, 56px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
@media (min-width: 900px) { .spot { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; } }
.spot-copy { display: grid; justify-items: start; gap: 18px; }
.spot-copy > p:not(.pill) { color: var(--muted); font-size: 1.0625rem; max-width: 44ch; }
.spot-visual { position: relative; min-height: 340px; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #E4F2FF, var(--blue-wash)); border: 1px solid var(--blue-wash-2); padding: 24px; }
.anam-card { position: relative; width: min(340px, 100%); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-window); padding: 20px; font-size: .875rem; }
.anam-title { font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: 14px; }
.anam-q { color: var(--ink); margin-bottom: 8px; }
.anam-opts { display: flex; gap: 8px; margin-bottom: 14px; }
.anam-opts span { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.anam-opts .is-on { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-label); font-weight: 500; }
.anam-foot { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.anam-foot b { color: var(--ink); }

.soon { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding: 20px 24px; border-radius: 20px; background: var(--surface); border: 1px dashed var(--line-2); }
.soon > div { flex: 1 1 320px; }
.soon-title { font-weight: 600; color: var(--ink); }
.soon > div > p:last-child { color: var(--muted); font-size: .9375rem; }
.soon-ico { flex: none; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--blue-wash); color: var(--blue); }

/* ---------- antes e depois ---------- */
.compare { padding-block: clamp(80px, 9vw, 128px); }
.seg { display: flex; justify-content: center; gap: 8px; margin: -24px 0 28px; }
.seg button { min-height: 40px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: .9375rem; font-weight: 500; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.seg button:hover { border-color: var(--ink); }
.seg button.is-on { border-color: var(--blue); color: var(--blue-label); background: var(--blue-wash); }
.compare-card { display: grid; gap: 32px; padding: clamp(24px, 4vw, 56px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); max-width: 1080px; margin-inline: auto; }
@media (min-width: 900px) { .compare-card { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }
.compare-copy > p { color: var(--muted); font-size: 1.0625rem; margin-top: 18px; }
.replaces { display: flex; align-items: center; gap: 12px; margin-top: 28px !important; font-family: var(--display); font-weight: 600; font-size: 1.25rem !important; color: var(--ink) !important; }
.replaces span { display: inline-flex; gap: 10px; color: var(--muted); }
.checks { display: grid; gap: 10px; margin-top: 16px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); }
.checks svg { margin-top: 4px; padding: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-wash); }
.compare-panels { display: flex; align-items: center; }
@media (min-width: 900px) { .compare-panels { min-height: 320px; } }
.compare-panels > [role="tabpanel"] { width: 100%; animation: panel-in .4s cubic-bezier(.22, 1, .36, 1) both; }
.compare-panels > [hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-hedah .sx-wrap { max-width: 400px; margin-inline: auto; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-window); }
.mess { display: grid; gap: 10px; }
.mess li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.mess li svg { flex: none; color: var(--muted); }
.mess li:nth-child(odd) { transform: rotate(-1.2deg); }
.mess li:nth-child(even) { transform: rotate(1deg) translateX(10px); }

/* ---------- planos ---------- */
.pricing { padding-block: clamp(80px, 9vw, 128px); }
.billing-toggle { display: flex; width: fit-content; gap: 4px; margin: -24px auto 32px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.billing-toggle button { min-height: 40px; padding: 8px 22px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: background .2s ease, color .2s ease; }
.billing-toggle button.is-active { background: var(--ink); color: #fff; }
.pricing-grid { display: grid; gap: 20px; max-width: 920px; margin-inline: auto; align-items: start; }
@media (min-width: 860px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-soft); }
.plan-prime { position: relative; border: 2px solid var(--blue); box-shadow: rgba(37, 99, 235, .18) 0 24px 48px -20px; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.plan-name { font-family: var(--display); font-weight: 600; font-size: 1.75rem; letter-spacing: -.02em; color: var(--ink); }
.plan-badge { padding: 3px 10px; border-radius: 999px; background: var(--blue-wash); color: var(--blue-label); font-size: .8125rem; font-weight: 600; }
.plan-desc { color: var(--muted); margin: 6px 0 24px; }
.plan-price { margin-bottom: 24px; }
.price-label { font-size: .8125rem; color: var(--muted); margin-bottom: 4px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 3vw + 1.2rem, 3.5rem); letter-spacing: -.03em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-value { white-space: nowrap; }
.price-cur { font-size: .42em; vertical-align: super; margin-right: 4px; font-family: var(--sans); }
.price-per { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-sub { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.price-annual { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--blue-wash); color: var(--blue-label); font-size: .875rem; font-weight: 600; }
.price-annual[hidden] { display: none; }
.plan-list-title { margin: 28px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.plan-list { display: grid; gap: 12px; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; line-height: 1.45; }
.plan-list svg { margin-top: 3px; }
.plan-list li.is-soon { color: var(--muted); }
.plan-excl { margin-top: 18px; font-size: .875rem; color: var(--muted); }
.chip-tag { flex: none; font-style: normal; padding: 1px 8px; border-radius: 6px; background: var(--blue-wash); color: var(--blue-label); font-size: .75rem; font-weight: 600; line-height: 1.6; }
.chip-tag.is-soon { background: #F2F4F7; color: var(--muted); }

/* ---------- cta final ---------- */
.final { padding-block: 24px clamp(80px, 9vw, 128px); }
.final-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: clamp(56px, 8vw, 104px) 24px; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); }
/* Mesmo degradê em faixas + grão do hero (2026-10-02, pedido do dono):
   horizonte claro no alto e azul na base, com uma clareira elíptica no
   centro para o ícone, o título, o parágrafo, o botão e a nota ficarem sobre
   fundo limpo. */
.final-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse 46% 62% at 50% 50%, transparent 0, transparent 58%, rgba(0, 0, 0, .55) 80%, #000 100%);
    mask-image: radial-gradient(ellipse 46% 62% at 50% 50%, transparent 0, transparent 58%, rgba(0, 0, 0, .55) 80%, #000 100%); }
.final-sky::before { content: ""; position: absolute; inset: -6% -4%; will-change: transform;
    background:
        radial-gradient(150% 46% at 40% 6%, rgba(238, 244, 255, .95) 0%, rgba(238, 244, 255, 0) 55%),
        radial-gradient(150% 46% at 44% 34%, rgba(92, 200, 255, .9) 0%, rgba(92, 200, 255, 0) 55%),
        radial-gradient(150% 46% at 54% 68%, rgba(56, 132, 255, .9) 0%, rgba(56, 132, 255, 0) 55%),
        radial-gradient(150% 46% at 56% 100%, rgba(37, 99, 235, .95) 0%, rgba(37, 99, 235, 0) 55%);
    animation: glow-tide 30s ease-in-out infinite alternate; }
.final-sky::after { content: ""; position: absolute; inset: 0; opacity: .32; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 140px 140px; }
.final-card > *:not(.final-sky) { position: relative; }
.final-icon { display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-window); }
.final-icon img { width: 44px; height: auto; }
.final-title span { display: block; }

/* ---------- faq ---------- */
.faq { padding-block: clamp(80px, 9vw, 128px); }
.faq-themes { display: grid; gap: 28px; max-width: 760px; margin-inline: auto; }
.faq-theme-title { font-size: .9375rem; font-weight: 600; color: var(--ink); margin: 0 0 10px 4px; }
.faq-grid { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.faq-card + .faq-card { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; min-height: 56px; text-align: left; font-size: 1rem; font-weight: 500; color: var(--ink); }
.faq-q:hover { background: var(--bg); }
.faq-q-text { flex: 1; }
.faq-sign { flex: none; position: relative; width: 28px; height: 28px; border-radius: 8px; background: var(--blue-wash); transition: transform .3s ease, background .2s ease; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--blue); border-radius: 2px; transform: translate(-50%, -50%); }
.faq-sign::before { width: 12px; height: 2px; }
.faq-sign::after { width: 2px; height: 12px; }
.faq-q[aria-expanded="true"] .faq-sign { transform: rotate(45deg); background: var(--blue); }
.faq-q[aria-expanded="true"] .faq-sign::before, .faq-q[aria-expanded="true"] .faq-sign::after { background: #fff; }
.faq-a { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 64px 20px 20px; color: var(--muted); }
.faq-more { text-align: center; margin-top: 32px; color: var(--muted); }
.faq-more a { color: var(--blue-label); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- tudo no sistema ---------- */
.allin { padding-block: clamp(64px, 8vw, 112px) clamp(80px, 9vw, 128px); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 960px; margin-inline: auto; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .9375rem; box-shadow: var(--shadow-soft); }
.chips li.is-soon { color: var(--muted); background: transparent; border-style: dashed; box-shadow: none; }
.allin-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 28px; background: var(--surface); }
.footer-inner { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; } }
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand-col p { color: var(--muted); font-size: .9375rem; max-width: 280px; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: .9375rem; color: var(--muted); }
.footer-col h2 { font-size: .9375rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.footer-col a:hover { color: var(--ink); }
.footer-copy { padding-top: 24px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
/* Alvos de toque de 44px no celular (spec: mínimo 44px). Só a área clicável
   cresce; o texto fica igual. Rodapé compensa no espaçamento entre links. */
@media (max-width: 899px) {
    .footer-col { gap: 0; }
    .footer-col h2 { margin-bottom: 6px; }
    .footer-col a { display: flex; align-items: center; min-height: 44px; }
    .footer-brand { display: inline-flex; align-items: center; min-height: 44px; }
    .footer-brand img { margin-bottom: 0; }
    .brand { display: inline-flex; align-items: center; min-height: 44px; }
    .pill { min-height: 44px; padding-block: 8px; }
    .header-actions .btn-dark { min-height: 44px; }
    .seg [role="tab"], .billing-toggle button { min-height: 44px; }
}

/* ---------- barra CTA mobile + whatsapp ---------- */
.cta-bar { display: none; }
@media (max-width: 899px) {
    .cta-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .28s ease; }
    .cta-bar.is-on { transform: none; }
    .cta-bar .btn-primary { flex: 1; min-height: 48px; }
    .cta-bar-note { font-size: .75rem; color: var(--muted); max-width: 11ch; line-height: 1.3; }
    body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: rgba(0, 0, 0, .16) 0 4px 16px; z-index: 90; transition: transform .18s ease; }
.whatsapp-float:hover { transform: scale(1.06); }
@media (max-width: 899px) { .whatsapp-float { bottom: calc(92px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .mess li { transform: none !important; }
}

/* ============================================================
   Telas do sistema, recriadas a partir das capturas reais
   (interface_img/*.png) e dos tokens de system/assets/css/
   theme-variables.css. Cada mock é a tela inteira em escala, como um
   print: --vw é a largura (em px reais) que a tela representa, e --u é
   1px real convertido para o tamanho do mock. Tudo dentro usa --u, então
   nada reflui nem "simplifica" — a tela encolhe inteira, igual à real.
   Fonte: o sistema usa Inter; aqui fica a Google Sans da landing para não
   criar dependência externa de fonte (diferença mínima em tamanho de UI).
   ============================================================ */
@property --u { syntax: "<length>"; inherits: true; initial-value: 1px; }
.sx-wrap { container-type: inline-size; width: 100%; overflow: hidden; }
/* telas estreitas: em vez de encolher até virar textura, mostra um recorte
   da esquerda da tela em escala legível (como um print ampliado) */
@container (max-width: 640px) { .sx.can-crop { --vw: 620; } }
/* no celular o menu lateral do sistema vira gaveta (fica escondido); a
   réplica faz o mesmo, senão o recorte mostraria quase só o menu */
@container (max-width: 640px) {
    .sx-shell .sx-side { display: none; }
    .sx-shell .sx-app { grid-template-columns: minmax(0, 1fr); }
}
.sx {
    --u: calc(100cqw / var(--vw, var(--design, 1464)));
    width: calc(var(--design, 1464) * var(--u));
    --s-bg: #F5F7FB; --s-bg2: #EEF2F7; --s-surface: #FFFFFF; --s-text: #1E293B; --s-text2: #475569; --s-muted: #64748B; --s-muted2: #94A3B8;
    --s-border: #E1E7EF; --s-border-l: #EEF2F7; --s-primary: #3B82F6; --s-primary-dk: #1D4ED8; --s-primary-bg: rgba(59, 130, 246, .1);
    --s-success: #0E9F6E; --s-success-dk: #046C4E; --s-success-bg: rgba(14, 159, 110, .10);
    --s-warning: #E3A008; --s-warning-dk: #8E4B10; --s-warning-bg: rgba(227, 160, 8, .12);
    --s-danger: #E5484D; --s-danger-bg: rgba(229, 72, 77, .10); --s-info: #6E56CF; --s-cyan: #0891B2;
    font-family: var(--sans); font-size: calc(15 * var(--u)); line-height: 1.45; color: var(--s-text); text-align: left;
    background: var(--s-bg); overflow: hidden; letter-spacing: 0;
}
.sx p { margin: 0; }
.sx svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); stroke-width: 1.6; flex: none; }

/* --- menu lateral (system/includes/sidebar.php + workspace-sidebar.css),
   refeito em 2026-10-02: o sistema trocou a barra no topo pelo menu lateral
   em 2026-10-01. Medidas tiradas da tela real a 1440px. --- */
.sx-app { display: grid; grid-template-columns: calc(256 * var(--u)) minmax(0, 1fr); align-items: stretch; }
.sx-side { display: flex; flex-direction: column; padding: 0 calc(14 * var(--u)) calc(10 * var(--u)); background: var(--s-surface); border-right: calc(1 * var(--u)) solid var(--s-border-l); }
.sxs-head { display: flex; align-items: center; gap: calc(10 * var(--u)); height: calc(68 * var(--u)); padding: 0 calc(3 * var(--u)); }
.sxs-mark img { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
.sxs-brand { display: grid; line-height: 1.2; }
.sxs-brand b { font-size: calc(13.5 * var(--u)); font-weight: 600; color: var(--s-text); }
.sxs-brand small { font-size: calc(10.5 * var(--u)); color: var(--s-muted); }
.sxs-toggle { margin-left: auto; color: var(--s-muted); display: inline-flex; }
.sxs-toggle svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.sxs-quick { display: flex; align-items: center; gap: calc(11 * var(--u)); height: calc(40 * var(--u)); padding: 0 calc(11 * var(--u)); margin-top: calc(4 * var(--u)); border-radius: calc(12 * var(--u)); background: var(--s-primary-bg); color: var(--s-primary-dk); font-size: calc(13.5 * var(--u)); font-weight: 600; }
.sxs-label { display: flex; align-items: center; height: calc(29 * var(--u)); margin-top: calc(14 * var(--u)); padding-left: calc(11 * var(--u)); font-size: calc(10 * var(--u)); font-weight: 600; letter-spacing: calc(1.1 * var(--u)); text-transform: uppercase; color: var(--s-muted); }
.sxs-link { display: flex; align-items: center; gap: calc(11 * var(--u)); height: calc(38 * var(--u)); padding: 0 calc(11 * var(--u)); border-radius: calc(12 * var(--u)); font-size: calc(13.5 * var(--u)); font-weight: 500; color: var(--s-text2); }
.sxs-link svg, .sxs-quick svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); stroke-width: 1.75; }
.sxs-link.is-on { background: var(--s-primary-bg); color: var(--s-primary-dk); }
.sxs-chev { margin-left: auto; display: inline-flex; color: var(--s-muted); }
.sxs-chev svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.sxs-link.is-on .sxs-chev { color: var(--s-primary-dk); }
.sxs-sep { height: calc(1 * var(--u)); margin: calc(10 * var(--u)) 0 0; background: var(--s-border-l); }
.sxs-sub { display: grid; gap: calc(2 * var(--u)); margin: calc(4 * var(--u)) 0 calc(4 * var(--u)) calc(21 * var(--u)); padding-left: calc(11 * var(--u)); border-left: calc(1 * var(--u)) solid var(--s-border); }
.sxs-sub > span { display: flex; align-items: center; gap: calc(9 * var(--u)); height: calc(36 * var(--u)); padding: 0 calc(10 * var(--u)); border-radius: calc(9 * var(--u)); font-size: calc(13 * var(--u)); color: var(--s-text2); }
.sxs-sub svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.sxs-sub > span.is-on { background: var(--s-primary-bg); color: var(--s-primary-dk); font-weight: 600; }
.sxs-foot { display: flex; align-items: center; gap: calc(9 * var(--u)); margin-top: auto; padding: calc(16 * var(--u)) calc(4 * var(--u)) calc(6 * var(--u)); }
.sxs-av { flex: none; display: inline-flex; width: calc(34 * var(--u)); height: calc(34 * var(--u)); align-items: center; justify-content: center; border-radius: 50%; background: var(--s-primary-bg); color: var(--s-primary-dk); font-size: calc(11 * var(--u)); font-weight: 700; }
.sxs-acc { display: grid; min-width: 0; line-height: 1.3; }
.sxs-acc b { font-size: calc(12.5 * var(--u)); font-weight: 600; color: var(--s-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxs-acc small { font-size: calc(11 * var(--u)); color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-main { min-width: 0; }


/* --- página, cabeçalho, cards e botões --- */
.sx-page { padding: calc(18 * var(--u)) calc(40 * var(--u)) calc(36 * var(--u)); }
.sx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(20 * var(--u)); margin-bottom: calc(26 * var(--u)); }
.sx-title { font-size: calc(28 * var(--u)); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.sx-sub { margin-top: calc(4 * var(--u)) !important; font-size: calc(13.5 * var(--u)); color: var(--s-muted); }
.sx-head-actions { display: flex; gap: calc(12 * var(--u)); align-items: center; }
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); height: calc(36 * var(--u)); padding: 0 calc(14 * var(--u)); border-radius: calc(8 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 500; white-space: nowrap; border: calc(1 * var(--u)) solid transparent; }
.sx-btn svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.sx-btn-lg { height: calc(38 * var(--u)); padding: 0 calc(18 * var(--u)); }
.sx-btn-primary { background: var(--s-primary); color: #fff; box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(59, 130, 246, .18); }
.sx-btn-outline { background: var(--s-surface); color: var(--s-text); border-color: var(--s-border); }
.sx-card { background: var(--s-surface); border: calc(1 * var(--u)) solid var(--s-border-l); border-radius: calc(14 * var(--u)); box-shadow: 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(43, 48, 58, .05); }
.sx-card-title { font-size: calc(17 * var(--u)); font-weight: 600; color: var(--s-text); }
.sx-card-title.sx-lg { font-size: calc(19 * var(--u)); }
.sx-card-sub { margin-top: calc(4 * var(--u)) !important; font-size: calc(14 * var(--u)); color: var(--s-muted); }
.sx-tabs { display: inline-flex; padding: calc(3 * var(--u)); gap: calc(2 * var(--u)); background: #EEF2F7; border: calc(1 * var(--u)) solid #D9E0EA; border-radius: calc(10 * var(--u)); }
.sx-tabs b { display: inline-flex; align-items: center; height: calc(32 * var(--u)); padding: 0 calc(12 * var(--u)); border-radius: calc(8 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 500; color: var(--s-text2); }
.sx-tabs b.is-on { background: var(--s-surface); color: var(--s-text); box-shadow: 0 calc(1 * var(--u)) calc(3 * var(--u)) rgba(16, 24, 40, .08), 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(16, 24, 40, .04); }

/* --- agenda (screen_system_2) --- */
.ag-body { display: flex; gap: calc(12 * var(--u)); padding: calc(10 * var(--u)); align-items: flex-start; }
.ag-main { flex: 1 1 0; min-width: 0; background: var(--s-surface); border: calc(1 * var(--u)) solid var(--s-border-l); border-radius: calc(10 * var(--u)); overflow: hidden; }
.ag-side { flex: 0 0 calc(280 * var(--u)); display: grid; gap: calc(12 * var(--u)); }
.ag-toolbar { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); border-bottom: calc(1 * var(--u)) solid var(--s-border-l); }
.ag-month { font-size: calc(25 * var(--u)); font-weight: 400; letter-spacing: -.01em; }
.ag-tools { margin-left: auto; display: flex; align-items: center; gap: calc(8 * var(--u)); }
.ag-tools .sx-btn { height: calc(38 * var(--u)); font-size: calc(14 * var(--u)); }
.ag-weekdays, .ag-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ag-weekdays span { padding: calc(12 * var(--u)) 0; text-align: center; font-size: calc(13 * var(--u)); color: var(--s-muted); border-bottom: calc(1 * var(--u)) solid var(--s-border-l); }
.ag-cell { min-height: calc(140 * var(--u)); padding: calc(10 * var(--u)) calc(8 * var(--u)); border-right: calc(1 * var(--u)) solid var(--s-border-l); border-bottom: calc(1 * var(--u)) solid var(--s-border-l); }
.ag-cell:nth-child(7n) { border-right: 0; }
.ag-cell.is-out { background: #F7F9FC; }
.ag-cell.is-today { background: #F2F7FF; box-shadow: inset 0 0 0 calc(2 * var(--u)) #93C5FD; }
.ag-dayhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: calc(10 * var(--u)); padding: 0 calc(4 * var(--u)); }
.ag-daynum { font-size: calc(13 * var(--u)); color: var(--s-text); }
.ag-daynum.is-on { display: inline-flex; width: calc(26 * var(--u)); height: calc(26 * var(--u)); align-items: center; justify-content: center; border-radius: 50%; background: var(--s-primary); color: #fff; font-weight: 600; }
.ag-count { display: inline-flex; min-width: calc(22 * var(--u)); height: calc(22 * var(--u)); align-items: center; justify-content: center; border-radius: 50%; background: #E8F0FE; color: var(--s-primary); font-size: calc(12 * var(--u)); font-weight: 500; }
.ag-count.is-on { background: var(--s-primary); color: #fff; }
.ag-event { display: block; padding: calc(6 * var(--u)) calc(10 * var(--u)); border-radius: calc(6 * var(--u)); background: #F1F5FA; border: calc(1 * var(--u)) solid var(--s-border-l); font-size: calc(13 * var(--u)); color: var(--s-text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-event b { display: block; font-weight: 400; color: var(--s-text2); font-size: calc(12 * var(--u)); }
.mc-head { display: flex; align-items: center; justify-content: space-between; font-size: calc(15 * var(--u)); font-weight: 500; margin-bottom: calc(12 * var(--u)); }
.mc-nav { display: inline-flex; width: calc(28 * var(--u)); height: calc(28 * var(--u)); align-items: center; justify-content: center; border: calc(1 * var(--u)) solid var(--s-border); border-radius: calc(6 * var(--u)); color: var(--s-text2); }
.mc-nav svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.sx-mini { padding: calc(14 * var(--u)); }
.mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: calc(4 * var(--u)); text-align: center; font-size: calc(13 * var(--u)); }
.mc-grid > span:nth-child(-n+7) { color: var(--s-muted); font-size: calc(12 * var(--u)); padding-bottom: calc(6 * var(--u)); }
.mc-d { display: inline-flex; height: calc(30 * var(--u)); align-items: center; justify-content: center; border-radius: calc(6 * var(--u)); color: var(--s-text); }
.mc-d.is-out { color: var(--s-muted2); }
.mc-d.is-on { background: var(--s-primary); color: #fff; }

/* agenda ao vivo (novo.js): o horário novo entra e sai */
.ag-event.is-live { animation: ag-pop .5s cubic-bezier(.22, 1, .36, 1) both; background: #EEF4FF; border-color: #BFD5FB; }
.ag-event.is-live.is-leaving { animation: ag-out .4s ease both; }
.ag-count.is-live { animation: ag-pop .4s cubic-bezier(.22, 1, .36, 1) both; }
.ag-new { transition: transform .15s ease; }
.ag-new.is-press { transform: scale(.94); }
@keyframes ag-pop { from { opacity: 0; transform: scale(.85) translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ag-out { to { opacity: 0; transform: scale(.92); } }

/* --- dashboard (screen.png) --- */
.qa, .rs { padding: calc(18 * var(--u)); }

/* --- pacientes (screen_system_3) --- */
.ps-intro .sx-card-sub { max-width: calc(640 * var(--u)); font-size: calc(15 * var(--u)); }

/* --- gestão (screen_system_1) --- */
.gf-dates { display: flex; align-items: flex-end; gap: calc(12 * var(--u)); }
.gf-dates label { display: grid; gap: calc(6 * var(--u)); font-size: calc(13 * var(--u)); color: var(--s-text2); }
.gf-dates b { display: inline-flex; align-items: center; justify-content: space-between; gap: calc(28 * var(--u)); height: calc(38 * var(--u)); padding: 0 calc(12 * var(--u)); border: calc(1 * var(--u)) solid var(--s-border); border-radius: calc(8 * var(--u)); font-weight: 400; color: var(--s-text); font-size: calc(14 * var(--u)); }
.gf-dates b svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.gf-dates .sx-btn { height: calc(38 * var(--u)); }
.g-two > .sx-card { padding: calc(20 * var(--u)) calc(22 * var(--u)); min-height: calc(240 * var(--u)); }
.g-acts .sx-btn { height: calc(36 * var(--u)); }

/* blocos compactos (antes/depois, como começar) */
.sx-compact { display: grid; gap: calc(14 * var(--u)); padding: calc(16 * var(--u)); }
.sx-compact .kp { min-height: 0; padding-bottom: calc(18 * var(--u)); }

/* --- telas no desenho atual do sistema (shadcn vanilla, 2026-09-17),
   réplicas refeitas em 2026-10-02 --- */
.sx-btn-icon { width: calc(36 * var(--u)); padding: 0; }
.sx-btn-outline { box-shadow: 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(16, 24, 40, .04); }
.sx-btn-primary { background: #2563EB; border-color: #2563EB; box-shadow: 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(16, 24, 40, .04); }
.sx-seg2 { display: inline-flex; padding: calc(3 * var(--u)); background: #EEF2F7; border: calc(1 * var(--u)) solid #D9E0EA; border-radius: calc(10 * var(--u)); }
.sx-seg2 b { display: inline-flex; align-items: center; height: calc(30 * var(--u)); padding: 0 calc(12 * var(--u)); border-radius: calc(8 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 500; color: var(--s-text2); }
.sx-seg2 b.is-on { background: var(--s-surface); color: var(--s-text); box-shadow: 0 calc(1 * var(--u)) calc(3 * var(--u)) rgba(16, 24, 40, .08); }
.sx-navgroup { display: inline-flex; border: calc(1 * var(--u)) solid var(--s-border); border-radius: calc(8 * var(--u)); background: var(--s-surface); overflow: hidden; }
.sx-navgroup b { display: inline-flex; align-items: center; justify-content: center; min-width: calc(34 * var(--u)); height: calc(34 * var(--u)); padding: 0 calc(10 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 500; color: var(--s-text); }
.sx-navgroup b + b { border-left: calc(1 * var(--u)) solid var(--s-border); }
.sx-navgroup svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }

/* agenda: painel lateral atual (agenda exibida + resumo do dia) */
.ag-cal-pick { padding: calc(14 * var(--u)); }
.acp-head { display: flex; align-items: center; justify-content: space-between; font-size: calc(12.5 * var(--u)); color: var(--s-muted); margin-bottom: calc(10 * var(--u)) !important; }
.acp-head svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); color: var(--s-text2); }
.acp-box { display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(9 * var(--u)) calc(10 * var(--u)); border: calc(1 * var(--u)) solid var(--s-border); border-radius: calc(10 * var(--u)); }
.acp-box > i { flex: none; width: calc(4 * var(--u)); align-self: stretch; border-radius: calc(4 * var(--u)); background: var(--s-primary); }
.acp-box > span { display: grid; flex: 1; line-height: 1.25; }
.acp-box b { font-size: calc(13.5 * var(--u)); font-weight: 600; }
.acp-box small { font-size: calc(11.5 * var(--u)); color: var(--s-muted); }
.acp-box svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); color: var(--s-muted); }
.ag-radar { padding: calc(16 * var(--u)); }
.ar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(10 * var(--u)); margin-bottom: calc(14 * var(--u)); }
.ar-title { font-size: calc(16 * var(--u)); font-weight: 600; }
.ar-date { font-size: calc(12.5 * var(--u)); color: var(--s-muted); }
.ar-add { display: inline-flex; width: calc(34 * var(--u)); height: calc(34 * var(--u)); align-items: center; justify-content: center; border-radius: calc(8 * var(--u)); background: #2563EB; color: #fff; }
.ar-stats { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)); }
.ar-big, .ar-list { border: calc(1 * var(--u)) solid var(--s-border-l); border-radius: calc(10 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); }
.ar-big b { display: block; font-size: calc(26 * var(--u)); font-weight: 600; line-height: 1.1; }
.ar-big span { font-size: calc(12 * var(--u)); color: var(--s-muted); }
.ar-list { display: grid; gap: calc(4 * var(--u)); align-content: center; }
.ar-list p { display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(12 * var(--u)); color: var(--s-muted); }
.ar-list b { min-width: calc(14 * var(--u)); font-size: calc(14 * var(--u)); color: var(--s-text); }
.ar-list b.is-ok { color: var(--s-success-dk); }
.ar-list b.is-wait { color: var(--s-warning-dk); }
.ar-label { margin: calc(14 * var(--u)) 0 calc(8 * var(--u)) !important; font-size: calc(12 * var(--u)); font-weight: 500; color: var(--s-text2); }
.ar-next { display: flex; align-items: flex-start; gap: calc(10 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(10 * var(--u)); background: #F3F7FE; box-shadow: inset calc(3 * var(--u)) 0 0 #2563EB; }
.ar-time { flex: none; font-size: calc(13 * var(--u)); font-weight: 600; color: var(--s-primary-dk); }
.ar-next > div { flex: 1; min-width: 0; }
.ar-name { font-size: calc(13.5 * var(--u)); font-weight: 500; }
.ar-proc { font-size: calc(12 * var(--u)); color: var(--s-muted); }
.ar-tag { flex: none; display: inline-flex; height: calc(22 * var(--u)); padding: 0 calc(8 * var(--u)); align-items: center; border-radius: calc(8 * var(--u)); border: calc(1 * var(--u)) solid rgba(37, 99, 235, .25); color: var(--s-primary-dk); font-size: calc(11.5 * var(--u)); font-weight: 500; }

/* cartões de métrica (Painel, Pacientes) */
.m2-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(16 * var(--u)); margin-bottom: calc(16 * var(--u)); }
.m2 { padding: calc(20 * var(--u)) calc(22 * var(--u)); border-color: var(--s-border); border-radius: calc(12 * var(--u)); }
.m2.is-grad { background: linear-gradient(to top, #F3F7FE, var(--s-surface)); }
.m2-top { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(10 * var(--u)); }
.m2-lbl { font-size: calc(13 * var(--u)); color: var(--s-muted); }
.m2-badge { flex: none; display: inline-flex; align-items: center; gap: calc(5 * var(--u)); padding: calc(2 * var(--u)) calc(8 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--s-primary-bg); border: calc(1 * var(--u)) solid rgba(59, 130, 246, .22); color: var(--s-primary-dk); font-size: calc(12 * var(--u)); font-weight: 500; white-space: nowrap; }
.m2-badge svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.m2-val { margin-top: calc(6 * var(--u)) !important; font-size: calc(30 * var(--u)); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.m2-trend { display: flex; align-items: center; gap: calc(6 * var(--u)); margin-top: calc(18 * var(--u)) !important; font-size: calc(13 * var(--u)); font-weight: 500; }
.m2-trend svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.m2-trend.is-up { color: var(--s-success-dk); }
.m2-trend.is-down { color: #A32128; }
.m2-trend.is-flat { color: var(--s-text2); }
.m2-foot { margin-top: calc(2 * var(--u)) !important; font-size: calc(13 * var(--u)); color: var(--s-muted); }

/* pacientes */
.pt2-bar { display: flex; align-items: center; gap: calc(12 * var(--u)); margin-bottom: calc(14 * var(--u)); }
.pt2-search { flex: 1; display: flex; align-items: center; gap: calc(10 * var(--u)); height: calc(40 * var(--u)); padding: 0 calc(12 * var(--u)); border: calc(1 * var(--u)) solid var(--s-border); border-radius: calc(10 * var(--u)); background: var(--s-surface); font-size: calc(14 * var(--u)); color: var(--s-muted); }
.pt2-count { font-size: calc(13 * var(--u)); color: var(--s-muted); white-space: nowrap; }
.pt2 { overflow: hidden; border-color: var(--s-border); border-radius: calc(12 * var(--u)); }
.pt2-head, .pt2-row { display: grid; grid-template-columns: 1.25fr 1.25fr 1fr 1.35fr; gap: calc(16 * var(--u)); align-items: center; padding: 0 calc(20 * var(--u)); }
.pt2-head { height: calc(44 * var(--u)); background: #F7F9FC; border-bottom: calc(1 * var(--u)) solid var(--s-border-l); font-size: calc(13 * var(--u)); font-weight: 500; color: var(--s-text2); }
.pt2-head span:last-child { text-align: right; }
.pt2-row { padding-block: calc(13 * var(--u)); border-bottom: calc(1 * var(--u)) solid var(--s-border-l); }
.pt2-who { display: flex; align-items: center; gap: calc(12 * var(--u)); min-width: 0; }
.pt2-av { flex: none; display: inline-flex; width: calc(36 * var(--u)); height: calc(36 * var(--u)); align-items: center; justify-content: center; border-radius: 50%; background: #EEF2F7; color: var(--s-text2); font-size: calc(12 * var(--u)); font-weight: 600; }
.pt2-name { font-size: calc(14 * var(--u)); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt2-meta { font-size: calc(12.5 * var(--u)); color: var(--s-muted); }
.pt2-contact p { display: flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(14 * var(--u)); }
.pt2-contact svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); color: var(--s-muted); }
.pt2-contact .pt2-mail { font-size: calc(12.5 * var(--u)); color: var(--s-muted); }
.pt2-sit { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); }
.pill2 { display: inline-flex; align-items: center; height: calc(24 * var(--u)); padding: 0 calc(9 * var(--u)); border-radius: calc(8 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 500; border: calc(1 * var(--u)) solid; }
.pill2.is-ok { color: var(--s-success-dk); border-color: rgba(14, 159, 110, .35); background: rgba(14, 159, 110, .07); }
.pill2.is-warn { color: var(--s-warning-dk); border-color: rgba(227, 160, 8, .45); background: rgba(227, 160, 8, .09); }
.pt2-acts { display: flex; justify-content: flex-end; gap: calc(4 * var(--u)); }
.pt2-acts span { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); height: calc(32 * var(--u)); padding: 0 calc(10 * var(--u)); border-radius: calc(8 * var(--u)); font-size: calc(13 * var(--u)); color: var(--s-text2); }
.pt2-acts svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.pt2-foot { display: flex; align-items: center; justify-content: space-between; padding: calc(12 * var(--u)) calc(20 * var(--u)); font-size: calc(13 * var(--u)); color: var(--s-muted); }
.pt2-pages { display: inline-flex; gap: calc(4 * var(--u)); }
.pt2-pages b { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); height: calc(32 * var(--u)); min-width: calc(32 * var(--u)); justify-content: center; padding: 0 calc(8 * var(--u)); border-radius: calc(8 * var(--u)); font-weight: 500; color: var(--s-text); }
.pt2-pages b.is-on { border: calc(1 * var(--u)) solid var(--s-border); background: var(--s-surface); }
.pt2-pages svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }

/* gestão */
.g2-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(20 * var(--u)); margin-bottom: calc(16 * var(--u)); }
.g2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(16 * var(--u)); margin-bottom: calc(16 * var(--u)); }
.g2k { padding: calc(18 * var(--u)) calc(22 * var(--u)) calc(20 * var(--u)); border-color: var(--s-border); border-radius: calc(12 * var(--u)); background: linear-gradient(to top, #F3F7FE, var(--s-surface)); }
.g2-ico { flex: none; display: inline-flex; width: calc(30 * var(--u)); height: calc(30 * var(--u)); align-items: center; justify-content: center; border-radius: calc(8 * var(--u)); border: calc(1 * var(--u)) solid; }
.g2-ico svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.g2-ico.is-green { color: var(--s-success-dk); background: rgba(14, 159, 110, .08); border-color: rgba(14, 159, 110, .3); }
.g2-ico.is-red { color: #A32128; background: rgba(229, 72, 77, .08); border-color: rgba(229, 72, 77, .3); }
.g2-ico.is-blue { color: var(--s-primary-dk); background: var(--s-primary-bg); border-color: rgba(59, 130, 246, .25); }
.g2-ico.is-amber { color: var(--s-warning-dk); background: rgba(227, 160, 8, .1); border-color: rgba(227, 160, 8, .35); }
.g2-val { margin-top: calc(10 * var(--u)) !important; font-size: calc(28 * var(--u)); font-weight: 600; font-variant-numeric: tabular-nums; }
.g2-panels { display: grid; grid-template-columns: 1fr 1fr; padding: calc(22 * var(--u)); border-color: var(--s-border); border-radius: calc(12 * var(--u)); }
.g2-panels > div + div { border-left: calc(1 * var(--u)) solid var(--s-border-l); padding-left: calc(22 * var(--u)); margin-left: calc(22 * var(--u)); }
.g2-alert, .g2-act { display: flex; align-items: center; gap: calc(12 * var(--u)); margin-top: calc(10 * var(--u)) !important; padding: calc(11 * var(--u)) calc(14 * var(--u)); border-radius: calc(10 * var(--u)); border: calc(1 * var(--u)) solid; font-size: calc(14 * var(--u)); }
.g2-alert svg, .g2-act > svg { margin-left: auto; width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.g2-alert.is-info { color: var(--s-primary-dk); background: rgba(59, 130, 246, .06); border-color: rgba(59, 130, 246, .3); }
.g2-alert.is-warn { color: var(--s-warning-dk); background: rgba(227, 160, 8, .07); border-color: rgba(227, 160, 8, .35); }
.g2-act { border-color: var(--s-border); color: var(--s-text); background: var(--s-surface); }
.g2-act > svg { color: var(--s-muted); }
.g2-act-ico { flex: none; display: inline-flex; width: calc(28 * var(--u)); height: calc(28 * var(--u)); align-items: center; justify-content: center; border-radius: calc(8 * var(--u)); background: #F1F4F9; color: var(--s-text2); }
.g2-act-ico svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }

/* painel (dashboard) */
.db2-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: calc(16 * var(--u)); align-items: start; }
.db2-col { display: grid; gap: calc(16 * var(--u)); }
.db2-card { padding: calc(20 * var(--u)) calc(22 * var(--u)); border-color: var(--s-border); border-radius: calc(12 * var(--u)); }
.db2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(12 * var(--u)); margin-bottom: calc(6 * var(--u)); }
.tl-day { display: flex; align-items: center; gap: calc(8 * var(--u)); margin: calc(12 * var(--u)) 0 calc(6 * var(--u)) !important; padding-left: calc(12 * var(--u)); font-size: calc(12.5 * var(--u)); color: var(--s-text2); }
.tl-day b { display: inline-flex; min-width: calc(20 * var(--u)); height: calc(20 * var(--u)); align-items: center; justify-content: center; border-radius: calc(6 * var(--u)); background: #EEF2F7; font-size: calc(11.5 * var(--u)); font-weight: 600; }
.tl-row { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(10 * var(--u)); }
.tl-row.is-next { background: #F3F7FE; box-shadow: inset calc(3 * var(--u)) 0 0 #2563EB; }
.tl-time { flex: none; width: calc(46 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-av { flex: none; display: inline-flex; width: calc(32 * var(--u)); height: calc(32 * var(--u)); align-items: center; justify-content: center; border-radius: 50%; background: #EEF2F7; color: var(--s-text2); font-size: calc(11.5 * var(--u)); font-weight: 600; }
.tl-who { flex: 1; min-width: 0; }
.tl-who p:first-child { font-size: calc(14 * var(--u)); font-weight: 500; }
.tl-proc { font-size: calc(13 * var(--u)); color: var(--s-muted); }
.tl-badge { flex: none; padding: calc(2 * var(--u)) calc(8 * var(--u)); border-radius: calc(8 * var(--u)); background: #2563EB; color: #fff; font-size: calc(12 * var(--u)); font-weight: 500; }
.db2-ok { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(16 * var(--u)) calc(22 * var(--u)); border-color: var(--s-border); border-radius: calc(12 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 500; }
.db2-ok svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); color: var(--s-success); }
.db2-ok-sub { font-size: calc(13 * var(--u)); font-weight: 400; color: var(--s-muted); }
.db2-fin-lbl { margin-top: calc(14 * var(--u)) !important; font-size: calc(13 * var(--u)); color: var(--s-muted); }
.db2-fin { font-size: calc(30 * var(--u)); font-weight: 600; font-variant-numeric: tabular-nums; }
.db2-fin-sub { margin-top: calc(4 * var(--u)) !important; font-size: calc(13 * var(--u)); color: var(--s-muted); }
