/* VITAMED — Informação, acesso e cuidado com medicamentos. */
:root {
  --navy: #0b2a5b;
  --navy-2: #123a7c;
  --azul: #1565d8;
  --azul-2: #2f7de1;
  --claro: #5aa9f0;
  --gelo: #e9f2fd;
  --fundo: #f3f7fc;
  --branco: #ffffff;
  --texto: #0e2240;
  --suave: #5b6b82;
  --borda: #d9e4f2;
  --ok: #138a5e;
  --ok-bg: #e3f6ee;
  --warn: #a86400;
  --warn-bg: #fff3dc;
  --erro: #c43c3c;
  --erro-bg: #fdeaea;
  --raio: 16px;
  --raio-s: 10px;
  --sombra: 0 6px 20px rgba(11, 42, 91, .10);
  --sombra-s: 0 2px 8px rgba(11, 42, 91, .08);
  --fonte: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fonte-t: "Montserrat", "Nunito Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --nav-h: 66px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--fonte); color: var(--texto); font-size: 16px; line-height: 1.45;
  background: radial-gradient(1200px 600px at 10% -10%, #dbe9fb 0, transparent 60%), #e7eef8;
  min-height: 100vh;
}
a { color: var(--azul); text-decoration: none; }
h1, h2, h3 { font-family: var(--fonte-t); line-height: 1.2; margin: 0; }
img { max-width: 100%; }
.ic { width: 22px; height: 22px; flex: none; }

/* --------- moldura do app (celular) --------- */
.app {
  position: relative; max-width: 480px; min-height: 100vh; margin: 0 auto; background: var(--fundo);
  padding-bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  box-shadow: 0 0 60px rgba(11, 42, 91, .12);
}
body.sem-nav .app { padding-bottom: 24px; }

/* --------- topo --------- */
.topo {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
  padding: calc(12px + env(safe-area-inset-top)) 10px 14px;
}
.topo h1 { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: .1px; }
.topo-btn { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; border-radius: 12px; flex: none; }
a.topo-btn:active, button.topo-btn:active { background: rgba(255,255,255,.12); }
button.topo-btn { background: none; border: 0; cursor: pointer; }

.conteudo { padding: 16px; }
.conteudo > * + * { margin-top: 14px; }
.secao-titulo { font-size: 14px; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .6px; margin: 22px 2px 8px; font-family: var(--fonte); }

/* --------- cartões --------- */
.card { background: #fff; border-radius: var(--raio); box-shadow: var(--sombra-s); padding: 16px; border: 1px solid #edf2f9; }
.card h2 { font-size: 17px; color: var(--navy); }
.card h3 { font-size: 15px; color: var(--navy); }
.card p { margin: 8px 0 0; color: var(--suave); }
.card.destaque { background: linear-gradient(135deg, #e7f1fd, #f6faff); border-color: #d6e6fb; }
.card-row { display: flex; gap: 12px; align-items: flex-start; }
.icone-circ {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--gelo); color: var(--azul);
}
.icone-circ .ic { width: 24px; height: 24px; }
.aviso { display: flex; gap: 10px; align-items: flex-start; background: var(--gelo); border-radius: var(--raio-s); padding: 12px 14px; font-size: 14px; color: #24406b; }
.aviso .ic { color: var(--azul); width: 20px; height: 20px; margin-top: 1px; }
.aviso.warn { background: var(--warn-bg); color: #6b4300; }
.aviso.warn .ic { color: var(--warn); }
.aviso.erro { background: var(--erro-bg); color: #7b2222; }
.aviso.erro .ic { color: var(--erro); }
.aviso.ok { background: var(--ok-bg); color: #0d5a3e; }
.aviso.ok .ic { color: var(--ok); }
.muted { color: var(--suave); }
.peq { font-size: 13px; }

/* --------- splash --------- */
.splash {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(170deg, var(--navy) 0%, #0d3577 55%, #1d5fc0 100%); color: #fff; text-align: center;
  position: relative; overflow: hidden; padding: 24px;
}
.splash::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -8%; height: 34%;
  background: #f6faff; border-radius: 55% 45% 0 0 / 40% 50% 0 0; transform: rotate(-4deg);
}
.splash .marca { position: relative; z-index: 1; margin-top: -12vh; animation: surgir .8s ease-out both; }
.splash .rodape { position: absolute; bottom: 9vh; z-index: 2; color: var(--navy); font-style: italic; font-weight: 600; animation: surgir 1s .3s ease-out both; }
.splash .barra { width: 90px; height: 4px; border-radius: 4px; background: #cfe1f8; margin: 16px auto 0; overflow: hidden; }
.splash .barra i { display: block; height: 100%; width: 40%; background: var(--azul); border-radius: 4px; animation: carregar 1.4s ease-in-out infinite; }
@keyframes carregar { 0% { transform: translateX(-100%);} 100% { transform: translateX(250%);} }
@keyframes surgir { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none; } }
.logo-svg { width: 120px; height: 102px; display: block; margin: 0 auto; }
.wordmark { font-family: var(--fonte-t); font-weight: 800; letter-spacing: .5px; font-size: 44px; line-height: 1; margin-top: 10px; color: #fff; }
.wordmark span { color: var(--claro); }
.slogan { font-size: 15px; opacity: .92; margin-top: 8px; max-width: 260px; margin-left: auto; margin-right: auto; }

/* --------- autenticação --------- */
.auth-topo {
  background: linear-gradient(170deg, var(--navy) 0%, #0f3a7c 70%, #1a56b3 100%); color: #fff; text-align: center;
  padding: calc(36px + env(safe-area-inset-top)) 20px 64px; border-radius: 0 0 36px 36px;
}
.auth-topo .logo-svg { width: 84px; height: 72px; }
.auth-topo .wordmark { font-size: 32px; }
.auth-card { margin: -40px 16px 0; position: relative; }
.auth-card h2 { font-size: 20px; margin-bottom: 4px; }

/* --------- formulários --------- */
.campo { display: block; margin-top: 14px; }
.campo > label, .rotulo { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number],
input[type=search], input[type=time], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--texto); background: #fff; border: 1.5px solid var(--borda);
  border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--suave) 50%), linear-gradient(135deg, var(--suave) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--azul-2); box-shadow: 0 0 0 4px rgba(47, 125, 225, .15); }
input::placeholder, textarea::placeholder { color: #9aa9bd; }
.ajuda { font-size: 13px; color: var(--suave); margin-top: 6px; }
.linha { display: flex; gap: 10px; }
.linha > * { flex: 1; min-width: 0; }
.linha > .uf { flex: 0 0 96px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--azul); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; padding: 14px 18px; border-radius: 12px;
  background: linear-gradient(180deg, #1d6fe0, #1259c4); color: #fff; box-shadow: 0 6px 16px rgba(21, 101, 216, .28);
  transition: transform .08s, filter .15s; text-align: center;
}
.btn:active { transform: scale(.985); }
.btn:hover { filter: brightness(1.05); }
.btn.sec { background: #fff; color: var(--azul); border: 1.5px solid #c8dbf5; box-shadow: none; }
.btn.claro { background: var(--gelo); color: var(--azul); box-shadow: none; }
.btn.perigo { background: #fff; color: var(--erro); border: 1.5px solid #f0c8c8; box-shadow: none; }
.btn.peq { width: auto; padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn .ic { width: 20px; height: 20px; }
.btns { display: flex; gap: 10px; margin-top: 18px; }
.btns > * { flex: 1; }
form.inline { display: inline; }

/* --------- início --------- */
.home-topo {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
  padding: calc(18px + env(safe-area-inset-top)) 16px 22px;
}
.saudacao { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 800; font-family: var(--fonte-t); font-size: 18px; flex: none; }
.saudacao h1 { font-size: 18px; }
.saudacao p { margin: 2px 0 0; font-size: 14px; opacity: .85; }
.home-corpo { background: var(--navy-2); padding: 0 16px 18px; }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  background: #fff; border-radius: var(--raio); padding: 18px 10px 14px; text-align: center; color: var(--navy);
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  line-height: 1.2; box-shadow: var(--sombra-s); min-height: 116px; justify-content: center; position: relative;
  transition: transform .1s;
}
.tile:active { transform: scale(.97); }
.tile .ic { width: 34px; height: 34px; color: var(--azul); }
.tile .contador { position: absolute; top: 10px; right: 10px; background: var(--erro); color: #fff; border-radius: 999px; font-size: 12px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; }
.banner {
  display: flex; align-items: center; gap: 14px; margin-top: 12px; background: linear-gradient(90deg, #eaf3fe, #f9fbff);
  border-radius: var(--raio); padding: 14px 16px; color: var(--navy); font-weight: 700;
}
.banner .logo-svg { width: 52px; height: 44px; margin: 0; --logo-claro: #cfe3fb; }
.banner small { display: block; font-weight: 600; color: var(--azul); font-size: 14px; }
.info-tile { display: flex; align-items: center; gap: 12px; margin-top: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: var(--raio); padding: 12px 14px; font-weight: 700; }
.info-tile .ic { color: #9fd0fa; }
.info-tile .seta { margin-left: auto; opacity: .8; }

.dose-prox { display: flex; align-items: center; gap: 12px; }
.dose-prox .hora { font-family: var(--fonte-t); font-weight: 800; font-size: 22px; color: var(--azul); min-width: 70px; }

/* --------- listas --------- */
.busca { position: relative; }
.busca .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--suave); width: 20px; height: 20px; }
.busca input { padding-left: 44px; border-radius: 999px; }
.topo-busca { background: var(--navy-2); padding: 0 16px 16px; }
.topo-busca input { border: 0; }
.abas { display: flex; gap: 6px; background: #e3ecf8; padding: 4px; border-radius: 999px; }
.abas a { flex: 1; text-align: center; padding: 8px 6px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--suave); }
.abas a.ativo { background: #fff; color: var(--azul); box-shadow: var(--sombra-s); }

.lista { background: #fff; border-radius: var(--raio); box-shadow: var(--sombra-s); overflow: hidden; border: 1px solid #edf2f9; }
.item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--texto); border-bottom: 1px solid #eef3f9; }
.item:last-child { border-bottom: 0; }
.item .corpo { flex: 1; min-width: 0; }
.item .titulo { font-weight: 700; color: var(--navy); }
.item .sub { font-size: 13px; color: var(--suave); margin-top: 2px; }
.item .seta { color: #a9b8cc; }
.item-med { display: block; padding: 14px 16px; border-bottom: 1px solid #eef3f9; }
.item-med:last-child { border-bottom: 0; }
.item-med .topo-item { display: flex; gap: 12px; align-items: center; }
.item-med .lembrete { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2eaf5; font-size: 13px; color: var(--azul); font-weight: 600; }
.item-med .lembrete .ic { width: 16px; height: 16px; }
.pilula-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gelo); display: grid; place-items: center; color: var(--azul); flex: none; overflow: hidden; }
.pilula-ic img { width: 100%; height: 100%; object-fit: cover; }
.inativo { opacity: .6; }

/* interruptor */
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #c9d5e5; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--azul); }
.switch input:checked + span::before { transform: translateX(20px); }

/* badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef2f7; color: var(--suave); white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-erro { background: var(--erro-bg); color: var(--erro); }
.b-info { background: var(--gelo); color: var(--azul); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid #c8dbf5; background: #fff; color: var(--azul); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--azul); border-color: var(--azul); color: #fff; }

/* doses / lembretes */
.dose { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #eef3f9; }
.dose:last-child { border-bottom: 0; }
.dose .hora { font-family: var(--fonte-t); font-weight: 800; font-size: 18px; color: var(--navy); width: 58px; flex: none; }
.dose.atrasada .hora { color: var(--erro); }
.dose.feita { background: #f6fbf8; }
.dose.feita .hora { color: var(--ok); }
.dose .acoes { display: flex; gap: 6px; }
.btn-ic { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--borda); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--suave); }
.btn-ic.ok { border-color: #bfe6d5; color: var(--ok); }
.btn-ic.ok.on { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn-ic.x.on { background: #8796ab; color: #fff; border-color: #8796ab; }
.progresso { height: 8px; background: #e3ecf8; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progresso i { display: block; height: 100%; background: linear-gradient(90deg, var(--azul), var(--claro)); border-radius: 99px; }

/* detalhes */
.dl { display: grid; grid-template-columns: 1fr; gap: 0; }
.dl div { padding: 10px 0; border-bottom: 1px solid #eef3f9; }
.dl div:last-child { border-bottom: 0; }
.dl dt { font-size: 13px; color: var(--suave); }
.dl dd { margin: 2px 0 0; font-weight: 600; white-space: pre-line; }
.contato { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eef3f9; color: var(--texto); }
.contato:last-child { border-bottom: 0; }
.contato .ic { color: var(--navy); }
.contato small { display: block; color: var(--suave); }
.foto-med { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--raio-s); }
.ilustra { display: grid; place-items: center; padding: 6px 0 2px; }
.ilustra .ic { width: 64px; height: 64px; color: var(--azul); }
.vazio { text-align: center; padding: 34px 18px; color: var(--suave); }
.vazio .ic { width: 48px; height: 48px; color: #a9c4e8; margin-bottom: 6px; }
.dist { font-size: 12px; font-weight: 700; color: var(--azul); background: var(--gelo); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }

/* foto/OCR */
.foto-box { border: 2px dashed #c8dbf5; border-radius: var(--raio); padding: 14px; text-align: center; background: #f8fbff; }
.foto-box img { max-height: 160px; border-radius: 10px; margin-bottom: 8px; }
.foto-box label { cursor: pointer; color: var(--azul); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.foto-box input { display: none; }

/* --------- navegação inferior --------- */
.nav-inferior {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 30;
  display: flex; background: var(--navy); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0; box-shadow: 0 -6px 20px rgba(11, 42, 91, .18);
}
.nav-inferior a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #9db4d6; font-size: 12px; font-weight: 600; padding: 4px 0; border-radius: 12px; }
.nav-inferior a.ativo { color: #fff; }
.nav-inferior a.ativo .ic { filter: drop-shadow(0 0 6px rgba(90,169,240,.6)); }

/* --------- toasts --------- */
.toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 456px; z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--sombra); font-weight: 600; font-size: 15px; animation: surgir .25s ease-out both; }
.toast.t-erro { background: var(--erro); }
.toast.t-ok { background: var(--ok); }
.toast.t-info { background: var(--navy-2); }
.toast.t-fixo { background: #fff; color: var(--navy); border: 2px solid var(--azul); cursor: pointer; font-size: 16px; }
.toast .acao { margin-left: 10px; color: #fff; text-decoration: underline; background: none; border: 0; font: inherit; font-weight: 800; cursor: pointer; }

/* --------- menu "Mais" --------- */
.perfil-box { display: flex; align-items: center; gap: 12px; }
.rodape-marca { text-align: center; color: var(--suave); font-size: 13px; padding: 18px 0 4px; }
.rodape-marca b { font-family: var(--fonte-t); color: var(--navy); }

/* --------- impressão --------- */
.folha { background: #fff; max-width: 800px; margin: 0 auto; padding: 32px; color: #111; }
.folha h1 { color: var(--navy); font-size: 22px; }
.folha table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.folha td, .folha th { border: 1px solid #ccd6e3; padding: 8px 10px; text-align: left; vertical-align: top; font-size: 14px; }
.folha th { background: #eef4fb; width: 32%; }
.folha .reg + .reg { page-break-before: always; margin-top: 40px; }
@media print {
  body { background: #fff; }
  .nao-imprimir { display: none !important; }
  .folha { padding: 0; }
}

/* =================================================================
   RESPONSIVO — tablet retrato (600px+) e tablet paisagem / desktop (1024px+)
   ================================================================= */
.full { grid-column: 1 / -1; }

@media (min-width: 600px) {
  body { font-size: 17px; }
  .app { max-width: none; box-shadow: none; }
  .topo { padding-left: max(16px, calc((100% - 860px) / 2)); padding-right: max(16px, calc((100% - 860px) / 2)); }
  .topo h1 { font-size: 19px; }
  .conteudo { max-width: 908px; margin: 0 auto; padding: 22px 24px; }
  .topo-busca, .home-topo, .home-corpo { padding-left: max(24px, calc((100% - 860px) / 2)); padding-right: max(24px, calc((100% - 860px) / 2)); }
  .grade { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tile { min-height: 140px; font-size: 16px; }
  .tile .ic { width: 40px; height: 40px; }
  .home-corpo { padding-bottom: 24px; }
  .info-tile, .banner { margin-top: 16px; }
  .auth-topo { padding-bottom: 80px; }
  .auth-card { max-width: 480px; margin: -48px auto 0; padding: 24px; }
  .nav-inferior { max-width: none; border-radius: 0; justify-content: center; }
  .nav-inferior a { flex: 0 1 160px; font-size: 13px; }
  .nav-inferior .ic { width: 24px; height: 24px; }
  .toasts { max-width: 520px; }
  .linha > .uf { flex-basis: 110px; }
  .foto-box img { max-height: 220px; }
  .foto-med { max-height: 320px; }
  .splash .logo-svg { width: 180px !important; height: 154px !important; }
  .splash .wordmark { font-size: 64px !important; }
  .splash .slogan { font-size: 18px; max-width: 340px; }
  .splash::after { height: 30%; }
}

/* Paisagem: menu lateral e conteúdo em duas colunas */
@media (min-width: 1024px) {
  :root { --rail: 104px; }
  .app { padding-left: var(--rail); padding-bottom: 32px; }
  body.sem-nav .app { padding-left: 0; }
  .nav-inferior {
    top: 0; bottom: 0; left: 0; transform: none; width: var(--rail); max-width: none;
    flex-direction: column; justify-content: flex-start; gap: 6px; padding: 24px 10px;
    border-radius: 0 24px 24px 0; box-shadow: 4px 0 24px rgba(11, 42, 91, .18);
  }
  .nav-inferior::before {
    content: ""; display: block; width: 52px; height: 46px; margin: 0 auto 18px;
    background: url("../img/simbolo.svg") center / contain no-repeat;
  }
  .nav-inferior a { flex: 0 0 auto; padding: 12px 4px; gap: 6px; }
  .nav-inferior a.ativo { background: rgba(90, 169, 240, .16); }
  .topo, .topo-busca, .home-topo, .home-corpo {
    padding-left: max(28px, calc((100% - 1040px) / 2)); padding-right: max(28px, calc((100% - 1040px) / 2));
  }
  .conteudo { max-width: 1096px; padding: 26px 28px; }
  .grade { grid-template-columns: repeat(6, 1fr); }
  .tile { min-height: 150px; }
  .home-corpo { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; align-items: stretch; }
  .home-corpo .grade { grid-column: 1 / -1; }
  .home-corpo .info-tile, .home-corpo .banner { margin-top: 16px; }
  .conteudo-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
  .conteudo-home > * + * { margin-top: 0; }
  .conteudo-home > .card { grid-column: 1 / -1; }

  .colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .colunas > * + * { margin-top: 0; }
  .colunas > .btn, .colunas > a.btn, .colunas > button.btn, .colunas > form:not(.card),
  .colunas > .abas, .colunas > .secao-titulo, .colunas > .lista, .colunas > .aviso,
  .colunas > .ajuda, .colunas > .rodape-marca, .colunas > input[type=hidden] { grid-column: 1 / -1; }
  .colunas > .btn { max-width: 520px; justify-self: center; width: 100%; }
  .colunas > .secao-titulo { margin: 6px 2px -6px; }
  .colunas .lista .item { padding: 16px 20px; }
}

/* Tablet em paisagem com pouca altura: topo mais compacto */
@media (min-width: 1024px) and (max-height: 820px) {
  .home-topo { padding-top: 14px; padding-bottom: 16px; }
  .tile { min-height: 128px; padding: 14px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
