
/* as mesmas fontes dos sites de jazz e do Em Família; as cores são próprias: topo escuro, violeta, rosa e âmbar,
   e uma cor por gênero (a variável --g de cada card) */
:root {
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --bg: #f6f2ec; --surface: #ffffff; --surface-2: #ece6dc; --ink: #16121f; --muted: #655f70;
  --line: #e0d9cd; --accent: #6a2bd9; --accent-soft: #e9defc; --accent-ink: #fff;
  --pink: #f0246e; --amber: #ffb400; --topo: #16121f;
  --sale: #b34a00; --sale-soft: #ffe7cc; --new: #6a2bd9; --new-soft: #e9defc; --out: #b3202a; --out-soft: #fbdcdc;
  --shadow: 0 1px 2px rgba(22, 18, 31, .07), 0 6px 20px rgba(22, 18, 31, .08);
  --shadow-up: 0 2px 4px rgba(22, 18, 31, .08), 0 14px 34px rgba(22, 18, 31, .16);
}
:root[data-theme="dark"] {
  --bg: #0f0c15; --surface: #1a1623; --surface-2: #272132; --ink: #f4f0fa; --muted: #a8a1b6;
  --line: #2e283b; --accent: #b895ff; --accent-soft: #2c2145; --accent-ink: #160f24;
  --pink: #ff5c97; --amber: #ffc53d; --topo: #08060c;
  --sale: #ffb066; --sale-soft: #3d2710; --new: #c9aeff; --new-soft: #2c2145; --out: #ff9aa0; --out-soft: #3d181b;
  --shadow: none; --shadow-up: 0 0 0 1px var(--accent); color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

/* Topo: faixa escura de ponta a ponta, com manchas de cor */
.topo { background:
    radial-gradient(60% 90% at 8% 0%, rgba(106, 43, 217, .75), transparent 62%),
    radial-gradient(45% 80% at 96% 10%, rgba(240, 36, 110, .6), transparent 60%),
    radial-gradient(40% 70% at 62% 110%, rgba(255, 180, 0, .38), transparent 62%),
    var(--topo);
  color: #fff; padding-bottom: 20px; }
header { padding: 26px 0 6px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 10vw, 5.2rem); line-height: .9; margin: 0; letter-spacing: -.03em; }
h1 span { background: linear-gradient(95deg, #ff5c97, #ffb400); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 a { color: inherit; text-decoration: none; }
.rede { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: #ffd166; font-weight: 700; margin: 0 0 8px; }
.tagline { color: rgba(255, 255, 255, .86); margin: 12px 0 0; max-width: 62ch; font-size: 17px; }
.stats { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.stats b { color: #ffd166; }
.iconbtn { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; border-radius: 999px; width: 40px; height: 40px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn svg { width: 18px; height: 18px; }

/* Abas: cartões no próprio topo, como no Em Família (o ativo em âmbar) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tabs a { text-decoration: none; }
.tabs .ultima { margin-left: auto; }  /* Casas fica na extrema direita (André, 23/11/2026) */
.tabs button, .tabs a { border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .04); color: #fff; border-radius: 999px;
  padding: 7px 14px; cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; font: inherit; white-space: nowrap; }
.tabs button b, .tabs a b { font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.15; }
.tabs button .n, .tabs a .n { font-size: 13px; opacity: .8; font-variant-numeric: tabular-nums; }
.tabs button[aria-selected=true] { background: #ffd166; border-color: #ffd166; color: #1d1400; }
.tabs button:hover:not([aria-selected=true]), .tabs a:hover { border-color: #fff; }
.conteudo { padding-top: 18px; }

/* Agenda: filtros ao lado no computador, em cima no celular */
.grade { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.grade > * { min-width: 0; } /* sem isto, a fila de chips sem quebra alarga a coluna no celular */
/* a barra cabe na tela sem rolagem própria: filtros compactos, como no Em Família (André, 23/11/2026) */
.side { position: sticky; top: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
.side h3, .selects span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 4px; font-weight: 700; }
.chips.quando { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.chips.quando .chip { justify-content: center; }
.chips.generos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.chips.generos .chip { padding: 5px 7px; font-size: 13px; gap: 4px; justify-content: flex-start; overflow: hidden; }
.chips.generos .chip i { width: 8px; height: 8px; }
.chips.generos .chip small { margin-left: auto; font-size: 11px; }
.selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.selects label { min-width: 0; }
.selects label.caixa { display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; padding: 4px 0; }
.selects label.caixa input { width: 17px; height: 17px; accent-color: var(--accent); }

.selects select { width: 100%; font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.selects select.ativo { border-color: var(--ink); font-weight: 700; }
input[type=search] { width: 100%; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 5px 11px; border-radius: 999px; font-size: 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--g); flex: none; }
.chip small { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed=true] { background: var(--g, var(--ink)); color: #fff; border-color: var(--g, var(--ink)); }
:root[data-theme="dark"] .chip[aria-pressed=true]:not([style]) { color: var(--bg); }
.chip[aria-pressed=true] small { color: inherit; opacity: .8; }
.chip[aria-pressed=true] i { background: #fff; }
.chip:disabled { opacity: .4; cursor: default; }
.limpar { border: 0; background: none; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; font-size: 14px; justify-self: start; }
/* Faixa dos meses: a agenda de horizonte longo */
.meses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mes { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 5px 0 6px; text-align: center; cursor: pointer; line-height: 1.15; }
.mes .mn { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mes .mc { font-family: var(--font-display); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.mes .ma { font-size: 10px; color: var(--muted); }
.mes[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mes[aria-pressed=true] .mn, .mes[aria-pressed=true] .ma { color: inherit; }
.mes:disabled { opacity: .35; cursor: default; }

/* Dia e cards */
h2.dia { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin: 30px 0 12px; padding: 8px 0; display: flex; align-items: baseline; gap: 12px; position: sticky; top: 0; z-index: 3; background: var(--bg); }
h2.dia:first-child { margin-top: 0; }
h2.dia .rel { font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--pink); border-radius: 999px; padding: 3px 10px; align-self: center; }
h2.dia .n { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: auto; text-transform: none; letter-spacing: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 16px; }
.ev { --g: #7a7486; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.ev:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.foto { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--g), color-mix(in srgb, var(--g) 40%, #0b0810)); overflow: hidden; text-decoration: none; }
.foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.foto .sem { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; overflow: hidden; overflow-wrap: anywhere; }
.foto .sem::before { content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .16); }
.pil { position: absolute; top: 10px; left: 10px; background: rgba(12, 9, 18, .82); color: #fff; font-weight: 700; font-size: 14px; padding: 4px 11px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.pil.st { left: auto; right: 10px; background: var(--out); text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.corpo { border-top: 5px solid var(--g); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.est { font-size: 13px; color: var(--muted); }
.gen { background: var(--g); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; }
.titulo { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.titulo a { text-decoration: none; } .titulo a:hover { text-decoration: underline; }
.casa { font-size: 15px; }
.casa button { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 700; text-decoration: underline; text-decoration-color: var(--g); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.casa .bairro { color: var(--muted); }
.abre { color: var(--muted); font-size: 13px; }
.faixa { background: var(--sale-soft); color: var(--sale); font-weight: 700; font-size: 14px; border-radius: 10px; padding: 6px 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.novo { background: var(--new-soft); color: var(--new); font-weight: 700; }
.tag.venda { background: var(--sale-soft); color: var(--sale); font-weight: 700; }
.tag.preco { color: var(--ink); font-weight: 700; }
.links { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.links a.compra { background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.links a.compra:hover { background: var(--g); color: #fff; }
.links a.sec { color: var(--muted); }
.vazio { color: var(--muted); padding: 40px 0; text-align: center; }
.aviso { background: var(--surface); border-left: 5px solid var(--amber); border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.sub { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin: 24px 0 10px; }

/* Casas */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ccard { background: var(--surface); border-radius: 18px; border-top: 6px solid var(--accent); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; }
.ccard:nth-child(3n+2) { border-top-color: var(--pink); } .ccard:nth-child(3n) { border-top-color: var(--amber); }
.ccard .cn { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.15; }
.ccard .ck { font-size: 13px; color: var(--muted); }
.ccard .cp { font-size: 14px; }
.ccard .cl { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; }
.ccard .cl a { color: var(--accent); text-decoration: none; font-weight: 700; }
.ccard .cl button { border: 0; background: var(--ink); color: var(--bg); padding: 7px 13px; border-radius: 999px; cursor: pointer; font-weight: 700; }

/* Calendário de três semanas (como no jazz) */
.dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 3px 0 4px; text-align: center; cursor: pointer; line-height: 1.1; }
.dbtn .wd { font-size: 10px; text-transform: uppercase; color: var(--muted); }
.dbtn .dn { font-family: var(--font-display); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.dbtn .ct { font-size: 10px; color: var(--muted); min-height: 11px; }
.dbtn.fds { background: var(--surface-2); }
.dbtn[aria-pressed=true] { background: var(--pink); border-color: var(--pink); color: #fff; }
.dbtn[aria-pressed=true] .wd, .dbtn[aria-pressed=true] .ct { color: #fff; }
.dbtn:disabled { opacity: .35; cursor: default; }
/* Ações do card: favoritar, compartilhar, pôr na agenda */
.acoes { display: flex; gap: 6px; margin-left: auto; position: relative; }
.act { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); padding: 0; }
.act svg { width: 17px; height: 17px; }
.act:hover { border-color: var(--g); color: var(--g); }
.act.on { background: var(--amber); border-color: var(--amber); color: #1d1400; }
.menu { position: absolute; right: 0; bottom: 44px; z-index: 6; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-up); padding: 6px; display: grid; min-width: 220px; }
.menu a, .menu button { text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none; cursor: pointer; text-decoration: none; font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.pil.agora { left: auto; right: 10px; background: var(--pink); }
.descr { font-size: 14px; color: var(--muted); line-height: 1.4; }
.ev .descr { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.ev .descr.aberta { display: block; }
/* Faixas de resumo no alto da agenda, como no Em Família */
.faixas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 0 0 20px; align-items: start; }
.faixas::-webkit-scrollbar { display: none; }
.fx { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; }
.fx h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.fx a { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 4px 0; text-decoration: none; font-size: 15px; line-height: 1.25; }
.fx a b { color: var(--pink); font-weight: 700; font-variant-numeric: tabular-nums; }
.fx a:hover span { text-decoration: underline; }
/* uma linha por show nas faixas (André, 23/11/2026) */
.fx a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ig { color: var(--pink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.ev.alvo { outline: 4px solid var(--amber); outline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; z-index: 20; font-size: 14px; }
.filtrosbtn { display: none; }
/* Conta (login por código no e-mail, como no jazz) */
.topobtns { display: flex; gap: 8px; align-items: center; }
.entrar { border: 1px solid rgba(255,255,255,.45); background: #fff; color: #16121f; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
dialog#login { border: 0; border-radius: 20px; padding: 24px; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-up); }
dialog#login::backdrop { background: rgba(12, 9, 18, .55); }
#login h2 { font-family: var(--font-display); font-weight: 800; margin: 0 0 8px; font-size: 1.6rem; }
.lhint { color: var(--muted); font-size: 14px; }
#login input[type=email], #login #loginCode { width: 100%; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; margin: 6px 0; }
#login .primary { width: 100%; border: 0; border-radius: 12px; padding: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; margin-top: 6px; }
.lcheck, .prefs label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 8px 0; }
.lclose { position: absolute; right: 12px; top: 8px; } .lclose button { border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; font-size: 14px; }
.lmsg { min-height: 20px; font-size: 14px; margin: 10px 0 0; color: var(--accent); }
.calbox { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 12px 0; }
.calbox .row { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; } .calbox a { color: var(--accent); }
.followlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.followlist .fgroup { width: 100%; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.followlist button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px; cursor: pointer; font-size: 13px; }
.act.seguindo { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.menu .on { font-weight: 700; color: var(--accent); }
.ccard .cl button.seg { background: none; color: var(--accent); border: 2px solid var(--accent); }
.ccard .cl button.seg.on { background: var(--accent); color: var(--accent-ink); }
/* Mapa das casas (Leaflet e OpenStreetMap, carregados só quando a aba abre) */
#mapa { height: 420px; border-radius: 18px; overflow: hidden; margin-bottom: 16px; background: var(--surface-2); box-shadow: var(--shadow); }
.dark-tiles { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.85) saturate(.6); }
.pino { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pink); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); display: grid; place-items: center; }
.pino b { transform: rotate(45deg); color: #fff; font: 700 11px/1 var(--font-body); }
.pino.vazio { background: #8a8496; }
.leaflet-popup-content { font: 14px/1.4 var(--font-body); }
.leaflet-popup-content b { font-family: var(--font-display); font-size: 16px; }
.leaflet-popup-content button { margin-top: 6px; border: 0; background: #16121f; color: #fff; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-weight: 700; }
.dist { color: var(--accent); font-weight: 700; font-size: 13px; }
.mapafalhou { padding: 20px; color: var(--muted); }

footer { margin-top: 64px; background: var(--topo); color: rgba(255, 255, 255, .75); font-size: 13px; padding: 26px 0 40px; }
footer p { margin: 0 0 6px; max-width: 80ch; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .grade { grid-template-columns: 1fr; gap: 14px; }
  .side { position: static; }
  .tabs .ultima { margin-left: 0; }
  .chips.quando, .chips.generos { display: flex; }
  .chips.generos .chip { padding: 5px 11px; font-size: 14px; overflow: visible; }
  .chips.generos .chip small { margin-left: 0; }
  .faixas { display: flex; align-items: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; }
  .faixas::-webkit-scrollbar { display: none; }
  .fx { flex: 0 0 min(82vw, 330px); }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  /* no celular os filtros ficam recolhidos: busca, quando e os dias à mostra; o resto atrás de um botão */
  .filtrosbtn { display: inline-flex; align-items: center; gap: 6px; justify-self: start; border: 2px solid var(--ink); background: none; border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; }
  .filtrosbtn b { background: var(--pink); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 13px; }
  .side:not(.aberta) .extra { display: none; }
  header { padding-top: 18px; }
  h1 { font-size: 2.6rem; }
  .rede { font-size: 11px; margin-bottom: 6px; }
  .tagline { font-size: 15px; margin-top: 10px; }
  .stats { font-size: 13px; }
  .topo { padding-bottom: 16px; }
  /* os cartões das abas correm de lado, como no Em Família */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button, .tabs a { flex: 0 0 auto; padding: 7px 12px; }
  .tabs button b, .tabs a b { font-size: 15px; }
  .entrar { padding: 7px 13px; }
  /* os 21 dias numa faixa só, de lado (em três linhas tomavam meia tela) */
  .dias { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .dias::-webkit-scrollbar { display: none; }
  .dbtn { flex: 0 0 46px; }
  .foto { aspect-ratio: 16 / 10; }
}
/* tela baixa: a barra não cabe inteira, então não fica presa (sem rolagem própria, rola com a página) */
@media (max-height: 740px) { .side { position: static; } }
@media (prefers-reduced-motion: reduce) { .ev { transition: none; } .ev:hover { transform: none; } }
/* "Voltar ao topo" flutuante, como no Em Família (André, 23/11/2026): aparece depois de duas telas de rolagem */
#topo { position: fixed; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 450;
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
#topo[hidden] { display: none; }
#topo svg { width: 20px; height: 20px; }
@media print { #topo { display: none !important; } }
