/* Bulla CCI — estilos fiéis ao Figma (cores lidas direto das telas exportadas) */
:root {
  /* cores do kit de marca Bulla C.C.I. (Canva): azul-petróleo do logotipo, dourado do anel e verde-sálvia da figura */
  --teal-950: #002830;
  --teal-900: #00303c;
  --teal-800: #004e5a;
  --teal-600: #3c727e;
  --teal-300: #8fb3b8;
  --teal-100: #dce9e7;
  --teal-50: #eaf3f1;
  --sage: #bad2cc;
  --tint-card: #e7ebeb;
  --cyan-200: #b6ecf5;
  --cyan-text: #0b5560;
  --mint: #5eead4;
  --gold-200: #f4d9a2;
  --gold-100: #fbefd4;
  --gold-50: #fdf5e6;
  --gold-500: #d8ae66;
  --gold-600: #c69c54;
  --gold-700: #8a6430;
  --gold-800: #7a5626;
  --peach: #fdecce;
  --bg: #fcf9f4;
  --bg-home: #fbfdfd;
  --white: #ffffff;
  --input: #f6f3ee;
  --surface: #f0ede8;
  --surface-2: #ebe8e3;
  --line: #e6e2dc;
  --ink: #1b1d1c;
  --ink-2: #3d4341;
  --muted: #6b716e;
  --muted-2: #9aa09d;
  --red: #b42318;
  --red-btn: #c0262d;
  --green: #138a5e;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(1, 59, 65, .04), 0 8px 24px rgba(1, 59, 65, .06);
  --shadow-btn: 0 10px 24px rgba(0, 48, 60, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #e9e6e0;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }

#app {
  max-width: 430px;
  min-height: 100%;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, .06);
  padding-top: env(safe-area-inset-top, 0px);
}
.tela { min-height: 100vh; padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.tela.sem-nav { padding-bottom: 40px; }
.tela.home-pac { background: var(--bg-home); }
.pad { padding: 0 24px; }

/* ---------- cabeçalho */
.topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 24px;
  background: rgba(252, 249, 244, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}
.home-pac .topo { background: rgba(251, 253, 253, .94); height: 72px; }
.topo .marca { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.logo-quad {
  width: 32px; height: 32px; border-radius: 8px; background: var(--teal-800);
  display: grid; place-items: center; flex-shrink: 0;
}
.logo-quad img { width: 21px; height: auto; }
.home-pac .logo-quad { width: 34px; height: 34px; }
.topo h1 { margin: 0; font-size: 19px; font-weight: 600; color: var(--teal-900); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo h1.duas { white-space: normal; font-size: 16px; line-height: 1.35; font-weight: 600; }
.topo .acoes { display: flex; align-items: center; gap: 14px; }
.sino { position: relative; width: 32px; height: 36px; display: grid; place-items: center; color: var(--muted); }
.sino .bolinha { position: absolute; top: 5px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red-btn); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.avatar-topo { width: 40px; height: 40px; border-radius: 50%; padding: 2px; border: 1.5px solid var(--line); }
.emblema-mini { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(1, 59, 65, .12); }
.emblema-mini img { width: 36px; height: 36px; object-fit: contain; }
.marca-txt { font-weight: 800; color: var(--teal-900); font-size: 17px; letter-spacing: -.03em; }

.topo.voltar h1 { font-size: 16px; line-height: 1.3; white-space: normal; }
.btn-voltar { width: 36px; height: 36px; display: grid; place-items: center; color: var(--teal-900); margin-left: -8px; }
.selo-bulla { display: flex; align-items: center; gap: 6px; color: var(--teal-900); font-weight: 800; font-size: 10.5px; letter-spacing: .08em; line-height: 1.15; }
.selo-bulla img { width: 22px; }

/* ---------- avatar com iniciais */
.av {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-weight: 700; font-size: 16px; letter-spacing: -.02em;
  background: var(--teal-50); color: var(--teal-800);
}
.av.q { border-radius: 14px; }
.av.sm { width: 36px; height: 36px; font-size: 13px; }
.av.t1 { background: #f6e3cf; color: #8a5a2b; }
.av.t2 { background: #dcebe9; color: #1e5f59; }
.av.t3 { background: #ece3f3; color: #6a4a86; }
.av.t4 { background: #fbe6e1; color: #9b4636; }
.av.t5 { background: #e2ecf7; color: #2f5d8a; }

/* ---------- tipografia */
.titulo-pg { font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -.035em; color: var(--teal-900); margin: 28px 0 8px; }
.sub-pg { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 24px; }
.sub-pg b { color: var(--teal-900); }
.migalha { font-size: 13px; color: var(--ink-2); margin: 40px 0 -16px; display: flex; gap: 6px; align-items: center; }
.rot { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-900); }
.rot.cinza { color: var(--muted); }
.rot.ouro { color: var(--gold-700); }
.sec-tit { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 14px; }
.sec-tit h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--teal-900); display: flex; align-items: center; gap: 10px; }
.sec-tit h2.ouro { color: var(--gold-700); }
.sec-tit h2.p { font-size: 17px; font-weight: 600; }
.link-ver { font-size: 13px; font-weight: 700; color: var(--gold-700); }
.link-ver.teal { color: var(--teal-800); }

/* ---------- botões */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 58px; border-radius: var(--radius);
  font-weight: 700; font-size: 16px;
  transition: transform .12s ease, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-esc { background: var(--teal-900); color: #fff; box-shadow: var(--shadow-btn); }
.btn-ouro { background: var(--gold-500); color: #fff; box-shadow: 0 10px 24px rgba(211, 174, 110, .35); }
.btn-ouro-esc { display: inline-flex; background: var(--gold-800); color: #fff; height: 46px; width: auto; padding: 0 24px; border-radius: 10px; font-size: 15px; }
.btn-claro { background: var(--surface-2); color: var(--ink-2); }
.btn-txt { height: 44px; font-weight: 600; color: var(--muted); font-size: 15px; }
.btn-txt.teal { color: var(--teal-900); font-weight: 700; }
.btn-p { height: 44px; border-radius: 10px; font-size: 14.5px; }
.btn-vermelho { background: var(--red-btn); color: #fff; }

/* ---------- formulários */
.campo { margin-bottom: 20px; }
.campo label, .lbl { display: block; font-size: 14px; color: var(--ink-2); margin: 0 0 8px 4px; }
.lbl.up { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-900); margin-left: 0; }
.inp {
  width: 100%; height: 52px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  background: var(--input); padding: 0 16px; font-size: 15.5px; outline: none;
  transition: border-color .15s, background .15s;
}
.inp::placeholder { color: var(--muted-2); }
.inp:focus { border-color: var(--teal-600); background: #fff; }
.inp.branco { background: #fff; border-color: var(--line); }
.inp-ic { position: relative; }
.inp-ic svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.inp-ic .inp { padding-left: 46px; }
textarea.inp { height: 120px; padding: 14px 16px; resize: none; line-height: 1.5; }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23013b41' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.erro-campo { color: var(--red); font-size: 13px; margin: 6px 4px 0; }

.cartao { background: #fff; border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow); }
.bloco { background: var(--surface); border-radius: var(--radius); padding: 22px 18px; margin-bottom: 18px; }
.bloco.branco { background: #fff; box-shadow: var(--shadow); }

/* ---------- boas-vindas */
.boas {
  min-height: 100vh; padding: 64px 24px 40px;
  background: linear-gradient(180deg, #c1b199 0%, #e8d9c2 32%, #f8edde 60%, #faf4ed 100%);
  display: flex; flex-direction: column;
}
.boas .emblema { width: 108px; height: 108px; border-radius: 50%; background: #fff; margin: 0 auto 18px; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(1, 59, 65, .18); }
.boas .emblema img { width: 96px; height: 96px; object-fit: contain; }
.boas .nome { text-align: center; font-weight: 800; letter-spacing: .14em; color: var(--teal-900); font-size: 15px; }
.boas .nome2 { text-align: center; color: var(--teal-900); font-size: 24px; font-weight: 500; letter-spacing: -.03em; margin: 6px 0 40px; }
.porta { display: flex; align-items: center; justify-content: space-between; border-radius: 12px; padding: 20px 20px; margin-bottom: 14px; width: 100%; text-align: left; transition: transform .12s; }
.porta:active { transform: scale(.985); }
.porta small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.porta strong { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.porta.p1 { background: var(--teal-900); color: #fff; box-shadow: var(--shadow-btn); }
.porta.p1 small { color: rgba(255, 255, 255, .7); }
.porta.p2 { background: #fff; color: var(--teal-900); box-shadow: var(--shadow); }
.porta.p2 small { color: var(--gold-700); }
.porta.p3 { background: var(--gold-200); color: var(--gold-700); }
.porta.p4 { background: var(--surface); color: var(--ink-2); }
.porta.p4 small { color: var(--muted); }
.porta.p4 svg { color: var(--muted-2); }
.slogan { text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .02em; margin-top: auto; padding-top: 40px; }
.pontos { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.pontos i { width: 6px; height: 6px; border-radius: 50%; background: #c8c4bd; }

/* ---------- login */
.login-cartao { margin-top: 8px; }
.demo-caixa { border: 1.5px dashed var(--gold-500); background: var(--gold-50); border-radius: var(--radius); padding: 16px; margin-top: 18px; }
.demo-caixa p { margin: 0 0 10px; font-size: 13px; color: var(--gold-700); line-height: 1.45; }
.demo-caixa .btn { height: 44px; font-size: 14px; margin-top: 8px; }

/* ---------- cadastro paciente */
.tag-ciano { display: inline-flex; align-items: center; gap: 6px; background: var(--cyan-200); color: var(--cyan-text); font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 6px 10px; border-radius: 8px; margin-top: 28px; }
.h-grande { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.035em; color: var(--teal-900); margin: 18px 0 18px; }
.p-corpo { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 24px; }
.privac { display: flex; gap: 14px; margin-bottom: 32px; }
.privac .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--teal-900); flex-shrink: 0; }
.privac b { display: block; color: var(--teal-900); font-size: 15px; margin-bottom: 2px; }
.privac span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.cartao h2 { margin: 0 0 24px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; color: var(--teal-900); }
.nota { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.45; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }

/* ---------- cadastro colaborador */
.colab-bg { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbf8f2 0%, #f5efe4 100%); }
.colab-bg .marca-agua { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); width: 300px; opacity: .07; pointer-events: none; }
.colab-bg > * { position: relative; }
.voltar-portal { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-800); font-size: 13px; font-weight: 600; padding: 18px 0 0; }
.centro { text-align: center; }
.consent { display: flex; gap: 14px; align-items: flex-start; background: #eef2f0; border-radius: var(--radius); padding: 18px; margin: 8px 0 24px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.consent input { width: 22px; height: 22px; accent-color: var(--teal-800); margin-top: 1px; flex-shrink: 0; }
.consent a { color: var(--gold-500); font-weight: 600; text-decoration: underline; }
.rodape-ajuda { text-align: center; font-size: 14px; color: var(--ink-2); margin: 28px 0; }
.rodape-ajuda a { color: var(--teal-900); font-weight: 700; border-bottom: 1px solid var(--line); }

/* ---------- home paciente */
.ola small { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 16px; }
.ola h2 { margin: 6px 0 24px; font-size: 30px; font-weight: 600; color: var(--teal-800); letter-spacing: -.03em; }
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 44px; padding: 0 18px; border-radius: 6px; background: var(--teal-50); color: var(--ink-2); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; transition: background .15s; }
.chip.on { background: var(--teal-800); color: #fff; }
.chip.p { height: 38px; border-radius: 99px; font-size: 14px; padding: 0 16px; background: var(--surface-2); }
.chip.p.on { background: var(--teal-900); }
.card-prox { background: var(--tint-card); border-radius: var(--radius-sm); padding: 22px 20px; display: block; width: 100%; text-align: left; box-shadow: inset 0 0 0 1px rgba(0,0,0,.03); }
.card-prox .lin { display: flex; gap: 14px; align-items: center; }
.ic-box { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--teal-50); color: var(--teal-800); }
.ic-box.ouro { background: var(--gold-100); color: var(--gold-700); }
.ic-box.ciano { background: var(--cyan-200); color: var(--teal-800); border-radius: 50%; width: 40px; height: 40px; }
.ic-box.branco { background: #fff; color: var(--teal-800); }
.card-prox h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.card-prox .quem { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-prox .quando { color: var(--teal-800); font-weight: 700; font-size: 17px; margin-top: 14px; }
.card-prox .dur { font-size: 12px; color: var(--muted); margin-top: 2px; }

.esp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 18px; margin-bottom: 14px; width: 100%; text-align: left; display: block; transition: border-color .15s; }
.esp:active { border-color: var(--teal-600); }
.esp .lin { display: flex; gap: 12px; align-items: center; }
.esp .ic-box { width: 34px; height: 34px; border-radius: 8px; }
.esp h3 { margin: 0; flex: 1; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.esp .saiba { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--teal-800); text-align: center; line-height: 1.3; display: flex; gap: 6px; align-items: flex-start; }
.esp .rot { display: block; margin: 18px 0 6px; font-size: 10.5px; color: var(--muted); letter-spacing: .12em; }
.esp p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

.banner-aval { position: relative; margin: 10px -24px 0; border-radius: 28px; overflow: hidden; padding: 30px 36px 34px; color: #fff; min-height: 240px; background: linear-gradient(115deg, rgba(1, 59, 65, .92) 0%, rgba(4, 84, 92, .7) 55%, rgba(4, 84, 92, .25) 100%), var(--foto, linear-gradient(135deg, #2f7f7a, #c9d9d4)); background-size: cover; background-position: center; }
.banner-aval h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; font-weight: 600; max-width: 230px; }
.banner-aval p { margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; opacity: .85; max-width: 240px; }
.suporte { margin: 18px -24px 0; background: var(--teal-950); color: #fff; border-radius: 28px; padding: 32px 30px; }
.suporte h3 { margin: 18px 0 14px; font-size: 19px; font-weight: 600; }
.suporte p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; opacity: .75; max-width: 250px; }
.suporte a { color: var(--mint); font-size: 13px; font-weight: 800; letter-spacing: .1em; }

.fab { position: fixed; z-index: 25; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); right: max(24px, calc(50vw - 215px + 24px)); width: 52px; height: 52px; border-radius: 50%; background: var(--teal-800); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(4, 84, 92, .35); }

/* ---------- navegação inferior */
.nav {
  position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  display: flex; justify-content: space-around; align-items: center;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-radius: 26px 26px 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .05);
}
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 14px; color: #8c918e; font-size: 11.5px; min-width: 70px; }
.nav a.on { background: var(--surface); color: var(--teal-900); font-weight: 700; }
.nav.pac a { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-300); background: none; }
.nav.pac a.on { color: var(--teal-800); font-weight: 800; }
.nav .bolinha { position: absolute; top: 4px; right: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-btn); }

/* ---------- home profissional */
.resumo { position: relative; overflow: hidden; background: linear-gradient(140deg, #3c727e 0%, var(--teal-800) 45%, var(--teal-900) 100%); color: #fff; border-radius: var(--radius); padding: 26px 24px; margin-top: 24px; }
.resumo .rot { color: rgba(255, 255, 255, .6); font-size: 10px; }
.resumo .num { font-size: 40px; font-weight: 600; letter-spacing: -.03em; margin: 6px 0 4px; }
.resumo p { margin: 0 0 22px; font-size: 14.5px; line-height: 1.5; opacity: .75; max-width: 210px; }
.resumo .pilula { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); padding: 9px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.resumo .fundo-ic { position: absolute; right: 18px; bottom: 16px; opacity: .14; }
.nova-sessao { display: block; width: 100%; text-align: left; background: var(--peach); border: 1px solid #f6dcb0; border-radius: var(--radius); padding: 24px 20px 20px; margin-top: 18px; }
.nova-sessao .mais { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-200); color: var(--gold-700); display: grid; place-items: center; }
.nova-sessao h3 { margin: 18px 0 4px; font-size: 17px; color: var(--gold-800); font-weight: 600; }
.nova-sessao p { margin: 0; font-size: 13px; color: #a07a3c; }
.nova-sessao .seta { display: flex; justify-content: flex-end; color: #c19d63; margin-top: 4px; }
.atalhos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.atalho { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius-sm); padding: 14px; font-weight: 600; font-size: 14px; color: var(--ink-2); text-align: left; }
.atalho .ic-box { width: 32px; height: 32px; background: var(--surface-2); color: var(--teal-900); border-radius: 8px; }
.pac-lin { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); width: 100%; text-align: left; }
.pac-lin .av.q { width: 54px; height: 54px; border-radius: 12px; }
.pac-lin .info { flex: 1; min-width: 0; }
.pac-lin b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pac-lin small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pac-lin .hora { text-align: right; }
.pac-lin .hora strong { display: block; font-size: 18px; color: var(--teal-900); font-weight: 700; margin-bottom: 3px; }
.encaixe { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border: 2px dashed var(--line); border-radius: var(--radius); color: #b8bbb8; font-weight: 700; font-size: 13px; letter-spacing: .1em; width: 100%; margin-top: 4px; }

/* ---------- etiquetas de status */
.st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.st.conf { background: #e3f2ef; color: #1e6b5f; }
.st.conf-borda { background: #fff; border: 1.5px solid #cfe6e1; color: var(--teal-900); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; height: 26px; padding: 0 12px; }
.st.breve { background: #fdf0d7; color: #a0661b; }
.st.aguard { background: #edf0f4; color: #6a7380; }
.st.pend { background: #fdecce; color: #9a6a1a; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; height: 24px; border-radius: 99px; padding: 0 12px; }
.st.recus { background: #fde5e2; color: var(--red); }
.st.canc { background: var(--surface-2); color: var(--muted); }
.st.real { background: var(--teal-50); color: var(--teal-800); }
.tag-serv { display: inline-flex; background: var(--cyan-200); color: var(--cyan-text); font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 6px; }

/* ---------- agenda */
.agenda-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin: 28px 0 24px; }
.agenda-cab .titulo-pg { margin: 0; }
.agenda-cab .mes { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.sync { display: flex; gap: 6px; align-items: flex-start; color: var(--gold-700); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; max-width: 150px; text-align: left; padding-bottom: 6px; }
.sync.girando svg { animation: gira 1s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.dias-caixa { background: #f2efe9; border-radius: var(--radius-lg); padding: 18px 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.025); }
.dias { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 8px 20px; scroll-snap-type: x mandatory; }
.dias::-webkit-scrollbar { display: none; }
.dia { flex-shrink: 0; width: 60px; height: 92px; border-radius: 16px; background: #e9e6e0; color: #9a9d9b; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; scroll-snap-align: center; transition: transform .15s; }
.dia small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dia b { font-size: 24px; font-weight: 700; }
.dia.on { background: var(--teal-900); color: #fff; transform: scale(1.1); box-shadow: 0 12px 24px rgba(1, 59, 65, .3); margin: 0 4px; }
.dia.on small { opacity: .75; }
.dia.fechado { opacity: .45; }

.slot { display: flex; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 22px 18px; margin-bottom: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.slot .hr { width: 74px; text-align: center; flex-shrink: 0; }
.slot .hr b { display: block; font-size: 19px; font-weight: 700; color: var(--teal-900); }
.slot .hr small { font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.slot .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 16px 0 10px; }
.slot .corpo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.slot .nm { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.slot .sv { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.slot.livre { background: transparent; border: 1.5px dashed #d9d5ce; box-shadow: none; }
.slot.livre .hr b { color: #b3b6b4; font-weight: 600; }
.slot.livre .sv { color: #a3a6a4; font-size: 14px; }
.btn-add { display: flex; align-items: center; gap: 8px; background: var(--teal-900); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 11px; font-weight: 800; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; text-align: left; flex-shrink: 0; }
.slot.pend::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-200); }
.slot.ext { background: var(--surface); box-shadow: none; }
.slot.real { opacity: .8; }
.mini-acao { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.mini-acao.ok { color: var(--green); background: #e6f4ee; }
.mini-acao.nao { color: var(--red); background: #fde8e5; }
.menu-pts { width: 28px; height: 32px; display: grid; place-items: center; color: var(--muted); }
.aviso { display: flex; gap: 10px; align-items: flex-start; background: #fff4e5; color: #8a5a14; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; line-height: 1.45; margin: 16px 0; }
.aviso.erro { background: #fde8e5; color: var(--red); }
.aviso.ok { background: #e6f4ee; color: #146a49; }
.aviso a, .aviso button { font-weight: 700; text-decoration: underline; }

/* ---------- solicitações */
.sol { background: #fff; border-radius: var(--radius); padding: 22px 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.sol .lin { display: flex; gap: 14px; align-items: flex-start; }
.sol .av.q { width: 60px; height: 60px; border-radius: 12px; }
.sol .nm { font-size: 19px; font-weight: 600; color: var(--teal-900); line-height: 1.25; margin-bottom: 6px; }
.sol .dt { text-align: right; font-size: 13px; line-height: 1.35; margin-left: auto; flex-shrink: 0; }
.sol .dt b { display: block; font-size: 14px; }
.sol .quem { font-size: 12px; color: var(--muted); margin-top: 6px; }
.sol .botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.btn-recusar { background: var(--surface-2); color: var(--red); }
.justif { background: var(--surface); border-radius: 12px; padding: 16px; margin-top: 18px; }
.justif .rot { color: var(--gold-700); font-size: 11px; margin-bottom: 10px; display: block; }
.justif textarea { height: 76px; background: #fff; font-size: 13.5px; }
.justif .botoes { margin-top: 12px; }

/* ---------- sessão (registrar / finalizar) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg button { height: 44px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: 14px; border: 2px solid transparent; }
.seg button.on { background: #fff; border-color: var(--teal-900); color: var(--teal-900); }
.seg.grande button { height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; background: var(--surface); font-size: 13.5px; font-weight: 500; }
.seg.grande button.on { background: #fff; border-color: var(--teal-900); }
.passo { display: flex; align-items: center; background: #fff; border-radius: 10px; height: 46px; overflow: hidden; }
.passo button { width: 46px; height: 46px; display: grid; place-items: center; color: var(--teal-900); }
.passo input { flex: 1; min-width: 0; text-align: center; border: 0; outline: 0; font-weight: 700; font-size: 16px; background: transparent; }
.passo.destaque { box-shadow: inset 3px 0 0 var(--gold-700); }
.recentes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; }
.recentes::-webkit-scrollbar { display: none; }
.recentes button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 99px; padding: 7px 12px; font-size: 12px; color: var(--ink-2); }
.recentes button::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-700); }
.resultados { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; max-height: 240px; overflow-y: auto; }
.resultados button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--surface); font-size: 14px; }
.escolhido { display: flex; align-items: center; gap: 12px; background: var(--teal-50); border-radius: 12px; padding: 10px 12px; }
.escolhido b { flex: 1; font-size: 15px; }
.nota-esp { display: flex; align-items: center; gap: 8px; color: var(--teal-800); font-size: 12.5px; font-weight: 600; margin-top: 12px; }
.decor { width: 120px; height: 120px; border-radius: 50%; background: #efece6; margin: 40px auto 0; display: grid; place-items: center; }
.decor img { width: 92px; opacity: .45; filter: grayscale(.6); }
.dica { display: flex; gap: 16px; background: #e5f2f2; border-radius: var(--radius); padding: 22px 18px; margin-top: 40px; }
.dica .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-900); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.dica b { display: block; color: var(--teal-900); font-size: 14.5px; margin-bottom: 4px; }
.dica span { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.rodape-marca { text-align: center; margin: 44px 0 10px; font-size: 10px; letter-spacing: .2em; color: #b3b6b4; }
.rodape-marca::before { content: ''; display: block; width: 40px; height: 3px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.contador { font-size: 10px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- pacientes */
.filtros { display: flex; gap: 10px; margin: 18px 0 30px; flex-wrap: nowrap; }
.filtros button { flex: 1; min-height: 42px; border-radius: 99px; background: var(--surface-2); font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 0 10px; line-height: 1.2; }
.filtros button.on { background: var(--teal-900); color: #fff; font-weight: 700; flex: 0 0 auto; padding: 0 18px; }
.p-item { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; width: 100%; text-align: left; transition: background .15s; }
.p-item.on { background: #fff; box-shadow: var(--shadow), inset 4px 0 0 var(--teal-800); }
.p-item b { display: block; font-size: 15px; font-weight: 600; }
.p-item.on b { color: var(--teal-800); }
.p-item small { font-size: 12.5px; color: var(--ink-2); }
.p-item .info { flex: 1; min-width: 0; }
.ag-card { background: var(--surface); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; position: relative; }
.ag-card .data-tag { display: inline-block; background: var(--surface-2); padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; margin-bottom: 12px; }
.ag-card h4 { margin: 0 0 3px; font-size: 16px; font-weight: 700; }
.ag-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.ag-card .menu-pts { position: absolute; top: 12px; right: 10px; }
.linha-tempo { position: relative; padding-left: 30px; }
.linha-tempo::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 30px; width: 2px; background: var(--line); }
.lt-item { position: relative; background: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.lt-item::before { content: ''; position: absolute; left: -29px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-700); }
.lt-item:not(:first-child)::before { background: #c7b48f; }
.lt-item .dt { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--gold-700); text-transform: uppercase; }
.lt-item h4 { margin: 6px 0 6px; font-size: 16px; font-weight: 700; }
.lt-item p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; white-space: pre-line; }
.lt-item .notas-link { display: inline-flex; gap: 4px; align-items: center; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--teal-900); }
.pacotes-lin { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 0; }
.contato { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.contato a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--teal-800); background: var(--teal-50); padding: 8px 12px; border-radius: 99px; }

/* ---------- agendar (paciente) */
.prof-op { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 2px solid transparent; border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.prof-op.on { border-color: var(--teal-900); }
.prof-op b { display: block; font-size: 15px; }
.prof-op small { color: var(--muted); font-size: 12.5px; }
.horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.horas button { height: 46px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; color: var(--teal-900); }
.horas button.on { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.vazio { text-align: center; color: var(--muted); font-size: 14px; line-height: 1.55; padding: 28px 16px; background: var(--surface); border-radius: var(--radius); }
.vazio b { display: block; color: var(--teal-900); font-size: 16px; margin-bottom: 4px; }
.resumo-ag { background: var(--teal-50); border-radius: var(--radius); padding: 18px; margin: 24px 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.resumo-ag b { color: var(--teal-900); }

/* ---------- lista de agendamentos do paciente / alertas */
.item-lista { background: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.item-lista .lin { display: flex; gap: 12px; align-items: flex-start; }
.item-lista h4 { margin: 0 0 3px; font-size: 16px; font-weight: 700; color: var(--teal-900); }
.item-lista p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.item-lista .motivo { margin-top: 10px; background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.item-lista .acoes-l { display: flex; justify-content: flex-end; margin-top: 10px; }
.alerta.novo { box-shadow: var(--shadow), inset 4px 0 0 var(--gold-500); }
.alerta .quando { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---------- configurações */
.dias-semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dias-semana button { height: 40px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.dias-semana button.on { background: var(--teal-900); color: #fff; }
.duas-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.copiar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px dashed var(--teal-300); border-radius: 12px; padding: 12px; font-size: 12.5px; word-break: break-all; color: var(--teal-900); font-weight: 600; width: 100%; text-align: left; }
.copiar svg { color: var(--teal-800); }
.passos-guia { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.colab-lin { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.colab-lin:last-child { border-bottom: 0; }
.colab-lin .info { flex: 1; min-width: 0; }
.colab-lin b { display: block; font-size: 14.5px; }
.colab-lin small { color: var(--muted); font-size: 12px; }
.mini-btn { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; background: var(--teal-900); color: #fff; }
.mini-btn.claro { background: var(--surface-2); color: var(--ink-2); }

/* ---------- menus, modais e avisos */
.fundo-modal { position: fixed; inset: 0; z-index: 60; background: rgba(1, 30, 33, .35); display: flex; align-items: flex-end; justify-content: center; animation: aparece .18s ease; }
.folha { width: 100%; max-width: 430px; background: #fff; border-radius: 26px 26px 0 0; padding: 12px 24px calc(28px + env(safe-area-inset-bottom, 0px)); animation: sobe .22s ease; max-height: 90vh; overflow-y: auto; }
.folha .alca { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 18px; }
.folha h3 { margin: 0 0 6px; font-size: 20px; color: var(--teal-900); letter-spacing: -.02em; }
.folha p { margin: 0 0 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.folha .op { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 4px; font-size: 15.5px; font-weight: 600; border-bottom: 1px solid var(--surface); text-align: left; }
.folha .op.perigo { color: var(--red); }
@keyframes aparece { from { opacity: 0; } }
@keyframes sobe { from { transform: translateY(40px); opacity: .6; } }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: 360px; width: calc(100% - 48px); background: var(--teal-950); color: #fff; padding: 14px 18px; border-radius: 14px; font-size: 14px; line-height: 1.45; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); display: flex; gap: 10px; align-items: flex-start; animation: sobe .2s ease; }
.toast.erro { background: #7a1c16; }
.carregando { display: grid; place-items: center; padding: 60px 0; color: var(--teal-300); }
.carregando svg { animation: gira 1s linear infinite; }
.esqueleto { background: linear-gradient(90deg, var(--surface) 0%, #f7f4ef 50%, var(--surface) 100%); background-size: 200% 100%; animation: brilho 1.2s infinite; border-radius: var(--radius); height: 88px; margin-bottom: 14px; }
@keyframes brilho { to { background-position: -200% 0; } }
.faixa-demo { background: var(--gold-200); color: var(--gold-700); font-size: 11.5px; font-weight: 700; text-align: center; padding: 6px 10px; letter-spacing: .02em; }
.oculto { display: none !important; }

/* ---------- fotos da clínica */
.galeria { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px 6px; scroll-snap-type: x mandatory; }
.galeria::-webkit-scrollbar { display: none; }
.galeria figure { margin: 0; flex: 0 0 62%; scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.galeria img { width: 100%; height: 100%; object-fit: cover; }
.galeria figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: 13.5px; font-weight: 600; background: linear-gradient(0deg, rgba(1, 59, 65, .85), transparent); }
.foto-serv { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 18px; box-shadow: var(--shadow); }
.foto-serv img { width: 100%; height: 100%; object-fit: cover; }
.foto-serv span { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -.02em; background: linear-gradient(0deg, rgba(1, 59, 65, .85), transparent); }
.foto-boas { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; margin: 0 0 24px; box-shadow: var(--shadow); }
.foto-boas img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.folha-foto { width: calc(100% + 48px); max-width: none; margin: -4px -24px 20px; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- abas */
.abas { display: flex; gap: 6px; background: var(--surface); padding: 5px; border-radius: 14px; margin: 4px 0 24px; }
.abas a { flex: 1; text-align: center; padding: 11px 6px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.abas a.on { background: #fff; color: var(--teal-900); box-shadow: var(--shadow); }

/* ---------- avisos na home do paciente */
.aviso-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 14px; color: var(--muted); }
.aviso-card > span:nth-child(2) { flex: 1; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.aviso-card b { display: block; color: var(--teal-900); font-size: 15px; margin-bottom: 2px; }

/* ---------- recomendações */
.rec { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.rec summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; color: var(--muted); }
.rec summary::-webkit-details-marker { display: none; }
.rec[open] summary > svg { transform: rotate(180deg); }
.rec-tit { flex: 1; min-width: 0; }
.rec-tit b { display: block; color: var(--teal-900); font-size: 15.5px; }
.rec-tit small { font-size: 12.5px; color: var(--muted); }
.rec-corpo { padding: 0 18px 18px; border-top: 1px solid var(--surface); }
.rec-corpo h4 { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); }
.rec-msg { margin: 16px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.alim { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alim-col { border-radius: 12px; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.alim-col b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.alim-col span { display: flex; gap: 6px; align-items: flex-start; line-height: 1.35; }
.alim-col.bom { background: #e8f5ef; color: #146a49; }
.alim-col.evitar { background: #fdeceb; color: #9b2c22; }
.alim-col:only-child { grid-column: 1 / -1; }
.item-rec { background: var(--bg); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.item-rec h5 { margin: 4px 0 6px; font-size: 15.5px; color: var(--ink); }
.item-rec p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; }
.item-rec .obs-item { background: var(--gold-50); border-radius: 8px; padding: 8px 10px; color: var(--gold-800); }
.freq { display: inline-flex; align-items: center; gap: 5px; background: var(--teal-50); color: var(--teal-800); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.rec-aviso { margin: 18px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.midias { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.midias::-webkit-scrollbar { display: none; }
.midia { position: relative; flex: 0 0 auto; width: 150px; height: 190px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.midias:has(.midia:only-child) .midia { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.midia img, .midia video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.midia img { background: var(--surface-2); cursor: zoom-in; }
.midia .tirar { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; }
.carregando-midia { display: grid; place-items: center; color: var(--teal-300); }
.links-video { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.links-video a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #fff; background: var(--teal-900); padding: 8px 14px; border-radius: 99px; }

/* ---------- compor recomendação */
.bloco-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.bloco-cab .lbl { display: flex; align-items: center; gap: 6px; }
.item-ed { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.item-ed-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.item-ed-cab img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.item-ed-cab .ic-box { width: 40px; height: 40px; }
.item-ed-cab b { flex: 1; font-size: 14.5px; }
.item-ed .inp { height: 44px; font-size: 14px; }
.item-ed .lbl { font-size: 12px; margin: 0 0 4px 2px; }
.dica-vazia { font-size: 12.5px; color: var(--muted); margin: 4px 0; line-height: 1.5; }
.add-secao { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.lista-sel { max-height: 50vh; overflow-y: auto; }
.lista-sel label { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--surface); cursor: pointer; }
.lista-sel input { width: 20px; height: 20px; accent-color: var(--teal-800); flex-shrink: 0; }
.lista-sel img, .lista-sel .ic-box { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.lista-sel b { display: block; font-size: 14.5px; }
.lista-sel small { color: var(--muted); font-size: 12px; }

/* ---------- pasta */
.pasta-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow); color: var(--muted); }
.pasta-item .thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-800); }
.pasta-item .thumb.vid { background: var(--teal-900); color: #fff; }
.pasta-item .info { flex: 1; min-width: 0; }
.pasta-item b { display: block; color: var(--ink); font-size: 15px; }
.pasta-item small { color: var(--teal-800); font-weight: 600; font-size: 12px; }
.pasta-item .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }

/* ---------- anamnese */
.bloco-tit { margin: 8px 0 16px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); }
.bloco-tit:not(:first-child) { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.chips-check { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-check label { cursor: pointer; }
.chips-check input { position: absolute; opacity: 0; pointer-events: none; }
.chips-check span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 99px; background: var(--input); border: 1.5px solid transparent; font-size: 13.5px; color: var(--ink-2); transition: all .15s; }
.chips-check input:checked + span { background: var(--teal-50); border-color: var(--teal-800); color: var(--teal-900); font-weight: 700; }
.chips-check input:focus-visible + span { outline: 2px solid var(--teal-600); }
.faixa { width: 100%; accent-color: var(--teal-800); height: 28px; }
.faixa-rot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.an-res { padding: 18px; }
.an-meta { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.an-lin { display: grid; grid-template-columns: 40% 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--surface); font-size: 13.5px; }
.an-lin span { color: var(--muted); }
.an-lin b { font-weight: 600; color: var(--ink); white-space: pre-line; }

/* ---------- horários */
.hr-lista { display: flex; flex-direction: column; gap: 8px; }
.hr-dia { background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.hr-dia.on { background: var(--teal-50); }
.hr-cab { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.hr-cab b { flex: 1; font-size: 14.5px; }
.hr-cab small { color: var(--muted); font-size: 12.5px; }
.hr-tog { width: 42px; height: 24px; border-radius: 99px; background: #cfd3d1; position: relative; flex-shrink: 0; transition: background .15s; }
.hr-tog span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.hr-dia.on .hr-tog { background: var(--teal-800); }
.hr-dia.on .hr-tog span { left: 21px; }
.hr-int { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.hr-int .inp { height: 42px; padding: 0 30px 0 12px; background-color: #fff; background-position: right 8px center; font-size: 15px; font-weight: 600; flex: 1; min-width: 0; }
.hr-int span { font-size: 12.5px; color: var(--muted); }
.atalhos button.atalho { width: 100%; }


/* ======================================================================= versão 3: fluidez, menu ☰, computador */
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
.tela { animation: entra .32s var(--ease); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
a, button { transition: transform .15s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s; }
.pac-lin:active, .p-item:active, .pacote-card:active, .esp:active, .aviso-card:active { transform: scale(.985); }
.btn-menu { width: 40px; height: 40px; display: grid; place-items: center; color: var(--teal-900); border-radius: 12px; }
.btn-menu:active { background: var(--surface); }
.nav a { font-size: 11px; }
.nav a span { line-height: 1; }
.nav i.bolinha { position: absolute; top: 6px; right: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-btn); }
.nav.pac a { font-size: 9.5px; }
.layout { display: block; }
.lateral { display: none; }

/* gaveta do ☰ */
.gaveta-fundo { position: fixed; inset: 0; z-index: 70; background: rgba(0, 30, 36, .38); animation: aparece .2s ease; }
.gaveta { position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, 86vw); background: var(--bg); box-shadow: -10px 0 40px rgba(0, 0, 0, .15); display: flex; flex-direction: column; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px)); animation: gaveta .28s var(--ease); overflow-y: auto; }
.gaveta-fundo.saindo { opacity: 0; transition: opacity .2s; }
.gaveta-fundo.saindo .gaveta { transform: translateX(40px); transition: transform .2s; }
@keyframes gaveta { from { transform: translateX(100%); } }
.gav-cab { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.gav-cab > span:not(.av) { flex: 1; min-width: 0; }
.gav-cab b, .lat-pe b { display: block; color: var(--teal-900); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gav-cab small, .lat-pe small { color: var(--muted); font-size: 12px; }
.gav-cab button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); }
.gaveta nav, .lateral nav { display: flex; flex-direction: column; gap: 2px; }
.gaveta nav a, .lateral nav a { display: flex; align-items: center; gap: 14px; padding: 12px 12px; border-radius: 12px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.gaveta nav a svg, .lateral nav a svg { color: var(--teal-600); }
.gaveta nav a.on, .lateral nav a.on { background: var(--teal-50); color: var(--teal-900); }
.gaveta nav a:hover, .lateral nav a:hover { background: var(--surface); }
.gaveta nav a span, .lateral nav a span { flex: 1; }
.cont { background: var(--red-btn); color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 6px; }
.gaveta hr, .lateral hr { border: 0; border-top: 1px solid var(--line); margin: 8px 6px; }
.gav-sair { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 12px; color: var(--red); font-weight: 700; }

/* avisos e componentes novos */
.avaliacao { background: linear-gradient(135deg, var(--gold-50), #fff); border: 1px solid var(--gold-200); border-radius: var(--radius); padding: 18px; margin: 0 0 22px; }
.avaliacao .estrelas { color: var(--gold-500); letter-spacing: 3px; font-size: 18px; }
.avaliacao p { margin: 8px 0 14px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.av-acoes { display: flex; align-items: center; gap: 12px; }
.av-acoes .btn-txt { height: auto; font-size: 13.5px; }
.banner-notif { display: flex; align-items: center; gap: 12px; background: var(--teal-900); color: #fff; border-radius: var(--radius); padding: 14px 14px 14px 16px; margin: 16px 0 6px; animation: entra .3s var(--ease); }
.banner-notif > span { flex: 1; font-size: 12.5px; line-height: 1.4; opacity: .9; }
.banner-notif b { display: block; font-size: 14.5px; opacity: 1; }
.banner-notif .mini-btn { background: var(--gold-500); color: var(--teal-950); }
.tirar-b { color: rgba(255, 255, 255, .7); width: 28px; height: 28px; display: grid; place-items: center; }
.fab-whats { background: #1faa59; box-shadow: 0 10px 24px rgba(31, 170, 89, .35); }
.pacote-barra { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.pacote-barra i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-600), var(--teal-800)); transition: width .6s var(--ease); }
.pacote-card { display: block; background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); color: inherit; }
.pacote-card .lin { display: flex; align-items: center; gap: 12px; }
.pacote-card .lin > span:not(.ic-box):not(.av):not(.pk-num):not(.pk-hora) { flex: 1; min-width: 0; }
.pacote-card b { display: block; font-size: 15px; color: var(--ink); }
.pacote-card small { color: var(--muted); font-size: 12.5px; }
.pacote-card.quase { box-shadow: var(--shadow), inset 4px 0 0 var(--gold-500); }
.pacote-card.quase .pacote-barra i { background: linear-gradient(90deg, var(--gold-500), var(--gold-600)); }
.pacote-card.fim { box-shadow: var(--shadow), inset 4px 0 0 var(--red-btn); }
.pacote-card.fim .pacote-barra i { background: var(--red-btn); opacity: .55; }
.pk-num { text-align: center; font-size: 24px; font-weight: 800; color: var(--teal-800); line-height: 1; }
.pk-num small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pk-hora { font-size: 20px; font-weight: 800; color: var(--teal-900); min-width: 64px; }
.pacote-destaque { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, var(--teal-800), var(--teal-900)); color: #fff; border-radius: var(--radius-lg); padding: 18px 20px; margin: 22px 0 0; }
.pacote-destaque > span:last-child { flex: 1; }
.pacote-destaque b { display: block; font-size: 16px; }
.pacote-destaque small { opacity: .75; font-size: 12.5px; }
.pacote-destaque .pacote-barra { background: rgba(255, 255, 255, .18); }
.pacote-destaque .pacote-barra i { background: var(--gold-500); }
.pacote-destaque.quase { background: linear-gradient(135deg, var(--gold-700), var(--gold-800)); }
.pk-grande { font-size: 44px; font-weight: 800; line-height: 1; min-width: 56px; text-align: center; color: var(--gold-200); }
.presenca { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.presenca .info { flex: 1; min-width: 0; }
.presenca b { display: block; font-size: 14.5px; }
.presenca small { color: var(--muted); font-size: 12px; }
.inativo-card { background: #fff; border: 1px solid #f1d5b0; border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.inativo-card .lin { display: flex; gap: 12px; align-items: center; }
.inativo-card b { display: block; font-size: 15px; }
.inativo-card small { color: var(--ink-2); font-size: 12.5px; line-height: 1.4; }
.botoes3 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.mini-btn.perigo { background: #fde8e5; color: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags .st.conf-borda { margin: 0; }
.slot .nm { display: block; color: var(--ink); }
.aniv-faixa { display: flex; align-items: center; gap: 8px; background: var(--gold-50); color: var(--gold-800); border-radius: 12px; padding: 10px 14px; margin-top: 12px; font-size: 14px; }
.sel-prof { margin: 0 0 16px; }
.grade-inicio { display: grid; gap: 0; }
.google-hero { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 36px auto 4px; background: var(--gold-50); color: var(--gold-700); }
.google-hero.ok { background: var(--teal-50); color: var(--teal-800); }
.estreito { max-width: 620px; margin: 0 auto; }
.ficha-cab { display: flex; align-items: center; gap: 14px; margin: 24px 0 14px; }
.ficha-cab small { color: var(--muted); font-size: 13px; }
.lista-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; grid-column: 1 / -1; }
.busca-grande { height: 58px; border-radius: 18px; background: var(--surface-2); }
.op-radio { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; }
.op-radio:has(input:checked) { border-color: var(--teal-800); background: var(--teal-50); }
.op-radio input { margin-top: 3px; accent-color: var(--teal-800); width: 18px; height: 18px; flex-shrink: 0; }
.op-radio b { display: block; font-size: 14.5px; }
.op-radio small { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.pac-op { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border-bottom: 1px solid var(--surface); text-align: left; }
.pac-op b { display: block; font-size: 14.5px; }
.pac-op small { color: var(--muted); font-size: 12px; }
.pop-48 { width: 76px; height: 76px; border-radius: 50%; background: var(--teal-50); color: var(--teal-800); display: grid; place-items: center; margin: 4px auto 12px; }
.linha-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--surface); cursor: pointer; font-size: 14.5px; }
.linha-switch input { position: absolute; opacity: 0; pointer-events: none; }
.linha-switch i { width: 44px; height: 26px; border-radius: 99px; background: #cfd3d1; position: relative; flex-shrink: 0; transition: background .2s; }
.linha-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .2s var(--ease); }
.linha-switch input:checked + i { background: var(--teal-800); }
.linha-switch input:checked + i::after { left: 21px; }
.acoes-l { gap: 8px; flex-wrap: wrap; }

/* agenda: semana e mês */
.periodo-nav { display: flex; align-items: center; gap: 8px; background: #f2efe9; border-radius: var(--radius); padding: 8px; }
.periodo-nav b { flex: 1; text-align: center; color: var(--teal-900); font-size: 15px; }
.periodo-nav > button:not(.mini-btn) { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--teal-900); }
.semana { display: flex; flex-direction: column; gap: 10px; }
.sem-dia { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.sem-dia.hoje { box-shadow: var(--shadow), inset 0 0 0 2px var(--teal-800); }
.sem-cab { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 4px 6px 8px; text-align: left; }
.sem-cab small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sem-cab b { font-size: 20px; color: var(--teal-900); }
.sem-cab span { margin-left: auto; font-size: 12px; color: var(--muted); }
.ev { display: block; border-radius: 10px; padding: 8px 10px; margin-top: 6px; font-size: 13.5px; background: var(--teal-50); color: var(--teal-900); border-left: 3px solid var(--teal-800); }
.ev small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.ev.st-pendente { background: var(--gold-50); border-left-color: var(--gold-500); }
.ev.st-realizado { background: var(--surface); border-left-color: var(--teal-300); color: var(--muted); }
.ev.st-falta { background: #fdeceb; border-left-color: var(--red-btn); color: var(--muted); text-decoration: line-through; }
.ev.aniv { background: var(--gold-50); border-left-color: var(--gold-500); color: var(--gold-800); display: flex; align-items: center; gap: 6px; }
.mes-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mes-sem { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding: 4px 0; }
.mes-cel { position: relative; aspect-ratio: 1 / 1.05; border-radius: 12px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.mes-cel.vazia { background: transparent; box-shadow: none; }
.mes-cel .n { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.mes-cel.hoje { background: var(--teal-900); }
.mes-cel.hoje .n { color: #fff; }
.qt { min-width: 22px; height: 18px; padding: 0 6px; border-radius: 99px; background: var(--teal-800); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.mes-cel.hoje .qt { background: var(--gold-500); color: var(--teal-950); }
.pend { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); display: inline-block; }
.legenda .pend { position: static; }
.bolo { color: var(--gold-700); line-height: 0; }
.legenda { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.legenda > span { display: inline-flex; align-items: center; gap: 6px; }

/* recepção */
.rec-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 26px 0 18px; }
.rec-cab .titulo-pg { margin: 0; }
.rec-datas { display: flex; align-items: center; gap: 8px; }
.rec-datas .inp { height: 38px; width: auto; padding: 0 10px; font-size: 14px; }
.rec-resumo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.rec-resumo > * { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.rec-resumo b { display: block; font-size: 26px; color: var(--teal-900); }
.rec-resumo small { font-size: 12px; color: var(--muted); }
.tabela-rec { display: flex; flex-direction: column; gap: 10px; }
.tr-lin { display: grid; grid-template-columns: 64px 1fr; gap: 6px 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tr-lin.confirmada { box-shadow: var(--shadow), inset 4px 0 0 #1faa59; }
.tr-lin.enviada { box-shadow: var(--shadow), inset 4px 0 0 var(--gold-500); }
.tr-hora { font-size: 18px; font-weight: 800; color: var(--teal-900); grid-row: span 2; }
.tr-pac b { display: block; font-size: 15px; color: var(--ink); }
.tr-pac small { font-size: 12.5px; color: var(--muted); }
.tr-acoes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.btn-whats { display: inline-flex; align-items: center; gap: 8px; background: #1faa59; color: #fff; font-weight: 700; font-size: 13.5px; padding: 0 14px; height: 36px; border-radius: 10px; }

/* ---------- computador e tablet deitado: barra lateral fixa */
@media (min-width: 860px) {
  body { background: #eef1ef; }
  #app { max-width: none; box-shadow: none; background: transparent; }
  .layout { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
  .lateral { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #fff; border-right: 1px solid var(--line); padding: 22px 16px; }
  .lat-marca img { width: 190px; margin: 0 auto 20px 6px; }
  .lat-pe { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); }
  .lat-pe > span:not(.av) { flex: 1; min-width: 0; }
  .lat-pe button { color: var(--muted); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
  .lat-pe button:hover { background: var(--surface); color: var(--red); }
  .principal { min-width: 0; background: var(--bg); }
  .principal .tela { padding-bottom: 60px; }
  .principal .nav, .principal .btn-menu { display: none; }
  .principal .topo { height: 64px; padding: 0 40px; }
  .principal .topo .marca { visibility: hidden; }
  .principal .topo.voltar .marca, .principal .topo.voltar h1 { visibility: visible; }
  .principal .pad { padding: 0 40px; max-width: 860px; margin: 0 auto; }
  .principal .pad.largo { max-width: 1180px; }
  .principal .pad.estreito { max-width: 640px; }
  .principal .fab { right: 40px; bottom: 36px; }
  .principal .home-pac .pad, .principal .tela .pad:has(.grade-inicio) { max-width: 1100px; }
  .grade-inicio { grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: stretch; }
  .grade-inicio .nova-sessao { margin-top: 24px; }
  .atalhos { grid-template-columns: repeat(4, 1fr); }
  .lista-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .duas-colunas-pc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 36px; align-items: start; }
  .semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: start; }
  .sem-dia { min-height: 220px; }
  .sem-cab { flex-direction: column; align-items: flex-start; gap: 0; }
  .sem-cab span { margin: 2px 0 0; }
  .mes-cel { aspect-ratio: 1.5 / 1; }
  .banner-aval, .suporte { margin-left: 0; margin-right: 0; }
  .galeria figure { flex-basis: 30%; }
  .boas { align-items: center; }
  .boas > *, .boas-caixa { width: 100%; max-width: 440px; }
  .boas .voltar-portal { align-self: flex-start; }
  .cadastro-pac .pad { max-width: 1100px; margin: 0 auto; }
  .cadastro-pac .duas-colunas-pc { grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 10px; }
  .colab-bg .pad { max-width: 520px; margin: 0 auto; }
  .fundo-modal { align-items: center; }
  .folha { border-radius: 26px; max-width: 520px; }
  .toast { bottom: 32px; }
  .pac-lin:hover, .p-item:hover, .pacote-card:hover, .esp:hover { box-shadow: 0 2px 4px rgba(0, 48, 60, .05), 0 14px 30px rgba(0, 48, 60, .1); }
}
@media (max-width: 859px) { .lista-grade { display: block; } .duas-colunas-pc { display: block; } }
@media (max-width: 420px) { .rec-resumo { grid-template-columns: repeat(2, 1fr); } }


/* ======================================================================= versão 3.1: tablet, transições e apresentações */
html { scroll-behavior: smooth; }
@media (min-width: 600px) and (max-width: 859px) {
  body { background: #eef1ef; }
  #app { max-width: 760px; }
  .nav { max-width: 760px; }
  .pad { padding: 0 32px; }
  .rec-resumo { grid-template-columns: repeat(4, 1fr); }
  .lista-grade { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .fab { right: calc(50vw - 380px + 24px); }
}
@media (max-width: 520px) {
  .rec-resumo { grid-template-columns: repeat(2, 1fr); }
  .rec-cab { margin-top: 18px; }
  .rec-datas { width: 100%; }
  .rec-datas .inp { flex: 1; }
  .tr-lin { grid-template-columns: 56px 1fr; padding: 12px 14px; }
  .tr-hora { font-size: 16px; }
}
/* listas entram em sequência, uma depois da outra */
@keyframes sobeSuave { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.tela :is(.pac-lin, .p-item, .pacote-card, .slot, .item-lista, .esp, .tr-lin, .sol, .presenca, .inativo-card, .ag-card, .lt-item, .atalho, .rec-resumo > *) { animation: sobeSuave .45s var(--ease) both; }
.tela :is(.pac-lin, .p-item, .pacote-card, .slot, .item-lista, .esp, .tr-lin, .sol, .presenca, .ag-card, .lt-item, .atalho, .rec-resumo > *):nth-child(2) { animation-delay: .04s; }
.tela :is(.pac-lin, .p-item, .pacote-card, .slot, .item-lista, .esp, .tr-lin, .sol, .presenca, .ag-card, .lt-item, .atalho, .rec-resumo > *):nth-child(3) { animation-delay: .08s; }
.tela :is(.pac-lin, .p-item, .pacote-card, .slot, .item-lista, .esp, .tr-lin, .sol, .presenca, .ag-card, .lt-item, .atalho, .rec-resumo > *):nth-child(4) { animation-delay: .12s; }
.tela :is(.pac-lin, .p-item, .pacote-card, .slot, .item-lista, .esp, .tr-lin, .sol, .presenca, .ag-card, .lt-item, .atalho, .rec-resumo > *):nth-child(5) { animation-delay: .16s; }
.tela :is(.pac-lin, .p-item, .pacote-card, .slot, .item-lista, .esp, .tr-lin, .sol, .presenca, .ag-card, .lt-item, .atalho):nth-child(n+6) { animation-delay: .2s; }
/* troca de página: a anterior some e a nova entra deslizando */
::view-transition-old(root) { animation: .18s ease both somePag; }
::view-transition-new(root) { animation: .32s var(--ease) both entraPag; }
@keyframes somePag { to { opacity: 0; transform: translateY(-6px); } }
@keyframes entraPag { from { opacity: 0; transform: translateY(10px); } }
.tela { animation: none; }
.dias, .galeria, .chips, .recentes, .midias, .slides-trilho { scroll-behavior: smooth; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
@media (pointer: fine) { .dias, .galeria, .chips, .midias, .slides-trilho { cursor: grab; } }
.arrastando { cursor: grabbing !important; scroll-behavior: auto !important; scroll-snap-type: none !important; user-select: none; }
.arrastando * { pointer-events: none; }
.galeria img, .slide img { -webkit-user-drag: none; user-select: none; }
.btn:hover, .mini-btn:hover, .chip:hover { filter: brightness(1.05); }
.btn:active, .mini-btn:active, .chip:active, .dia:active, .btn-whats:active { transform: scale(.96); }
.folha { animation: sobe .3s var(--ease); }
.toast { animation: sobe .3s var(--ease); }

/* apresentações (como usar o app) */
.slides { position: relative; margin-top: 18px; border-radius: var(--radius-lg); overflow: hidden; background: var(--teal-900); box-shadow: 0 20px 50px rgba(0, 48, 60, .18); }
.slides-trilho { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides-trilho::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; aspect-ratio: 16 / 9; scroll-snap-align: center; position: relative; background: var(--bg); }
.slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.slide figcaption { display: none; position: absolute; inset: 0; place-items: center; color: var(--muted); font-size: 14px; }
.slide.falhou img { display: none; }
.slide.falhou figcaption { display: grid; }
.sl-seta { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--teal-900); display: grid; place-items: center; box-shadow: var(--shadow); }
.sl-seta.esq { left: 10px; } .sl-seta.dir { right: 10px; }
.sl-seta:hover { transform: translateY(-50%) scale(1.06); }
.sl-tela { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .9); color: var(--teal-900); display: grid; place-items: center; }
.slides:fullscreen { display: grid; place-items: center; border-radius: 0; }
.slides:fullscreen .slide { aspect-ratio: auto; height: 100vh; }
.sl-pontos { display: flex; justify-content: center; gap: 8px; margin: 16px 0 6px; }
.sl-pontos button { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.sl-pontos button.on { width: 26px; background: var(--teal-800); }
@media (max-width: 600px) { .sl-seta { display: none; } }

@media (min-width: 1200px) {
  .tr-lin { grid-template-columns: 70px minmax(0, 2fr) minmax(0, 1fr) auto; }
  .tr-hora { grid-row: auto; }
  .tr-acoes { grid-column: auto; justify-content: flex-end; }
}
@media (min-width: 860px) and (max-width: 1199px) {
  .tr-lin { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .tr-hora { grid-row: span 2; }
  .tr-acoes { grid-column: 2 / -1; }
}
