/* Identidade "Adesivo": contorno escuro grosso, sombra dura deslocada, blocos de cor saturada.
   Fonte da verdade dos tokens. Por enquanto só modo claro (o escuro ainda será desenhado). */
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F3F0FF; --surface: #FFFFFF; --ink: #1B1535; --ink-2: #3F3A5C; --muted: #5A5478; --dash: #8D88A8;
  --coral: #FF5A4E; --sun: #FFD23F; --sky: #3D5AFE; --sky-soft: #DDE3FF; --mint: #2DD4A7; --gum: #FFC2D9;
  --periwinkle: #9DB0FF; --lilac: #C9D2FF; --done: #E9E5F8; --stub: #FBFAFF; --danger: #B3123F; --on-sky: #FFFFFF;
  --n0: #FFD23F; --n1: #FFC2D9; --n2: #A8F0DC; --n3: #C9D2FF; --n4: #FFB8A8; --n5: #FFFFFF;
  --bw: 2.5px; --radius: 20px; --r-sm: 14px;
  --shadow: 5px 5px 0 var(--ink); --shadow-sm: 3px 3px 0 var(--ink);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); }
/* App do iPhone (tela cheia): reserva a área da barra de status/Dynamic Island, que cobria o topo (setinha de voltar).
   No navegador e no app da tela de início, env(safe-area-inset-top) é 0 e nada muda. */
body { padding-top: env(safe-area-inset-top); }
body::before { content: ""; position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--surface); pointer-events: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-family: var(--display); font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
h1 { font-size: 1.65rem; letter-spacing: -.02em; } h2 { font-size: 1.25rem; } h3 { font-size: 1.15rem; }
a { color: var(--ink); }
p { overflow-wrap: anywhere; }
.muted { color: var(--muted); margin: 0; }
.stack { display: grid; gap: 12px; }
.stack > * { min-width: 0; }
.stack.tight { gap: 8px; }
p.label { margin: 0; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 > * { min-width: 0; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.view { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(100px + env(safe-area-inset-bottom)); display: grid; gap: 14px; align-content: start; }
.view.narrow { padding-bottom: 40px; }
.card { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--radius); padding: 16px; }
.card.pop { box-shadow: var(--shadow); }
.banner { background: var(--sun); border-bottom: var(--bw) solid var(--ink); font-size: .82rem; font-weight: 600; text-align: center; padding: 6px 12px; }
.small-hint { font-size: .8rem; }

/* adesivos: etiqueta inclinada e bloco com ícone */
.pill { display: inline-block; width: fit-content; background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; margin: 0; }
.pill.warn { background: var(--sun); transform: rotate(2deg); text-decoration: none; }
.pill.count { padding: 1px 9px; font-family: var(--font); letter-spacing: 0; }
.tile { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; border: 2px solid var(--ink); background: var(--coral); transform: rotate(-4deg); font-size: 1.1rem; line-height: 1; }
.tile.lg { width: 60px; height: 60px; border-radius: 18px; border-width: var(--bw); font-size: 1.8rem; }
.tile.xl { width: 96px; height: 96px; border-radius: 28px; border-width: 3px; box-shadow: var(--shadow); font-size: 2.8rem; }
.tile.xl .ic { width: 52px; height: 52px; stroke-width: 1.6; }
.tile.t-sun { background: var(--sun); } .tile.t-mint { background: var(--mint); } .tile.t-lilac { background: var(--lilac); }
.tile.t-white { background: var(--surface); } .tile.t-sky { background: var(--sky); color: var(--on-sky); }
.tile.t-flight { background: var(--periwinkle); } .tile.t-hotel { background: var(--mint); } .tile.t-car { background: var(--sun); } .tile.t-other { background: var(--gum); }
.ic.sun-fill { fill: var(--sun); }

/* formulários */
input, select, textarea { width: 100%; font: 500 1rem var(--font); color: var(--ink); background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); padding: 11px 14px; min-width: 0; }
.card input, .card select, .card textarea { background: var(--bg); }
/* iPhone (Safari): data e hora têm largura e altura próprias e ignoram width: 100% — ficavam maiores que os outros campos */
input[type="date"], input[type="datetime-local"], input[type="time"] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; min-height: 46px; line-height: 1.2; text-align: left; }
input[type="date"]::-webkit-date-and-time-value, input[type="datetime-local"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.2em; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--lilac); }
textarea { resize: vertical; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.label { font-size: .82rem; font-weight: 700; color: var(--ink); padding: 0; }
.error { color: var(--danger); font-weight: 600; margin: 0; min-height: 0; }
.btn { font: 700 .95rem var(--font); color: var(--ink); background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); padding: 11px 16px; min-height: 46px; cursor: pointer; text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn, .btn-icon, .chip, .tab, .trip-link, .item-open, .plan-open, .star-btn { transition: transform .1s, box-shadow .1s; }
/* Toque: resposta imediata (afunda um pouco), sem o realce cinza do WebKit. */
.btn:active, .btn-icon:active, .chip:active, .tab:active .ti, .trip-link:active, .item-open:active, .plan-open:active, .star-btn:active { transform: scale(.97); }
.btn-primary, .btn-sun, .btn-mint { box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.btn-primary { background: var(--coral); } .btn-sun { background: var(--sun); } .btn-mint { background: var(--mint); }
.btn-primary:active, .btn-sun:active, .btn-mint:active { transform: translate(3px, 3px); box-shadow: none; }
.btn-lg { font-size: 1.05rem; padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow); }
.btn-sm { min-height: 44px; padding: 6px 14px; border-width: 2px; border-radius: 999px; font-size: .82rem; box-shadow: none; }
.btn-sm .ic { width: 15px; height: 15px; stroke-width: 2.5; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .55; cursor: default; }
.grow { flex: 1; }
.btn-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; background: none; border: 0; border-radius: 12px; color: var(--muted); cursor: pointer; padding: 0; }
.btn-icon .ic { width: 17px; height: 17px; stroke-width: 2.4; }
.btn-icon:hover { background: var(--bg); color: var(--ink); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* pickers e chips */
.picks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.picks.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pick { font-size: 1.5rem; line-height: 1; width: 100%; max-width: 56px; aspect-ratio: 1; justify-self: center; padding: 0; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--surface); cursor: pointer; transition: transform .12s; }
.picks.four .pick { aspect-ratio: auto; max-width: none; height: 56px; border-radius: 16px; font-size: 1.65rem; }
.pick.on { background: var(--sun); box-shadow: var(--shadow-sm); }
.picks.four .pick.on { transform: rotate(-4deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 2px 12px 2px 3px; border-radius: 999px; background: var(--bg); border: 2px solid var(--ink); font: 600 .9rem var(--font); color: var(--ink); max-width: 100%; }
.chip.plain { padding-left: 12px; }
.chip .ic { width: 16px; height: 16px; }
.chip .btn-icon { width: 44px; height: 44px; margin: -2px -12px -2px -6px; }
button.chip { cursor: pointer; background: var(--surface); min-height: 44px; }
.chip.on { background: var(--sun); font-weight: 700; box-shadow: 2px 2px 0 var(--ink); }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: var(--bw) solid var(--ink); font-size: 1.4rem; line-height: 1; flex: none; }
.avatar.sm { width: 28px; height: 28px; border-width: 2px; font-size: .95rem; }
.who { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.who .avatar.sm { width: 24px; height: 24px; font-size: .8rem; }

/* entrada: marca, minhas viagens, telas de estado */
.landing { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 14px 0 4px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1; letter-spacing: -.02em; margin: 0; }
.wordmark span { display: inline-block; background: var(--sun); border: 3px solid var(--ink); border-radius: 12px; padding: 0 8px; transform: rotate(-3deg); }
.userbar { justify-content: space-between; padding: 6px 6px 6px 14px; border-radius: 16px; font-weight: 600; }
.userbar .btn { min-height: 40px; padding: 6px 14px; border-width: 2px; border-radius: 12px; }
.trip-link { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 12px; box-shadow: 4px 4px 0 var(--ink); }
.trip-link:nth-child(3n) .tile { background: var(--mint); transform: rotate(3deg); }
.trip-link:nth-child(3n+1) .tile { background: var(--lilac); transform: rotate(-2deg); }
.trip-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.trip-info b { font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.15; overflow-wrap: anywhere; }
.trip-info span { font-size: .82rem; color: var(--ink-2); }
.trip-link .pill { flex: none; }
.pill.soon { background: var(--sun); } .pill.past { background: var(--done); }
.status { min-height: 100vh; min-height: 100dvh; padding: 24px 28px; text-align: center; display: grid; gap: 16px; justify-items: center; align-content: center; }
.status .tile.xl { width: 120px; height: 120px; border-radius: 36px; transform: rotate(6deg); margin-bottom: 8px; }
.status .tile.xl .ic { width: 64px; height: 64px; }
.status h1 { font-size: 2rem; }
.join-head { display: flex; align-items: center; gap: 14px; background: var(--sun); border-radius: 24px; padding: 18px; }
.join-head > div { min-width: 0; }
.join-head p { margin: 4px 0 0; font-size: .9rem; font-weight: 500; }
.join-head .tile { transform: rotate(-5deg); }
.divider { border-top: var(--bw) dashed var(--ink); padding-top: 14px; }
.gbtn { min-height: 44px; display: flex; justify-content: center; }
/* Se o estilo do botão do Google não carregar, o logo dele não pode tomar a tela. */
.gbtn svg { width: 18px; height: 18px; flex: none; }
.gbtn { max-width: 100%; overflow: hidden; }
/* App do iPhone: login nativo. O botão da Apple segue o padrão dela (preto, logo  à esquerda, mesmo tamanho dos outros). */
/* Botões de login (site e app): Apple e Google do mesmo tamanho, um embaixo do outro. A Apple segue o padrão dela
   (preto, logo  à esquerda); o Google, o dele (branco com o "G" colorido). Os dois com o contorno e a sombra do Adesivo. */
.login-buttons { display: grid; gap: 10px; width: 100%; max-width: 340px; margin-inline: auto; }
.login-buttons .btn { width: 100%; justify-content: center; gap: 10px; text-decoration: none; }
.login-buttons .ic.logo, .login-buttons .g-logo { width: 20px; height: 20px; flex: none; }
.ic.logo { fill: currentColor; stroke: none; }
.apple-btn { background: #000; color: #fff; }
.google-btn { background: var(--surface); color: var(--ink); }
/* Minha conta */
.danger-zone { border-color: var(--danger); }
.danger-zone h2 { color: var(--danger); }
.legal .card p { margin: 0; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.account-trips { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-weight: 600; }
.center-box { text-align: center; justify-items: center; }

/* página de apresentação */
.lp { max-width: 1040px; margin: 0 auto; padding: 14px 16px 40px; display: grid; gap: 28px; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp-brand .wordmark { font-size: 1.35rem; }
.lp-brand .wordmark span { border-width: 2px; border-radius: 9px; padding: 0 6px; }
.lp-top .btn { min-height: 44px; padding: 8px 16px; }
.lp-main { display: grid; gap: 44px; }
.lp-hero { display: grid; gap: 32px; align-items: center; }
.lp-pitch { gap: 16px; }
.lp-hero h1 { font-size: clamp(2.3rem, 9vw, 3.7rem); line-height: 1; letter-spacing: -.03em; }
.lp-mark { display: inline-block; background: var(--sun); border: 3px solid var(--ink); border-radius: 14px; padding: 0 10px 2px; transform: rotate(-2deg); }
.lp-lead { margin: 0; font-size: 1.08rem; line-height: 1.5; color: var(--ink-2); }
.lp-cta { justify-items: center; text-align: center; outline: none; scroll-margin-top: 16px; }
.lp-demo { display: grid; gap: 16px; width: 100%; max-width: 340px; justify-self: center; padding: 6px 8px 8px 4px; }
.lp-demo > :nth-child(1) { transform: rotate(-2deg); }
.lp-demo > :nth-child(2) { transform: rotate(1.5deg); margin-left: 18px; }
.lp-demo > :nth-child(3) { transform: rotate(-1deg); margin-right: 18px; }
.lp-demo-title { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; letter-spacing: -.02em; }
.lp-demo-h { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.lp-demo-kind { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.lp-demo .big { font-size: 4.6rem; }
.lp-av { background: var(--sun); }
.lp-h2 { font-size: 1.7rem; letter-spacing: -.02em; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lp-step, .lp-feat { display: grid; gap: 8px; align-content: start; }
.lp-step p, .lp-feat p, .lp-final p { margin: 0; color: var(--ink-2); }
.lp-step .tile { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin-bottom: 4px; }
.lp-feats { display: grid; gap: 14px; }
.lp-feat .tile { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 4px; }
.lp-feat .tile .ic { width: 24px; height: 24px; }
.lp-final { background: var(--coral); display: grid; gap: 10px; justify-items: center; text-align: center; padding: 28px 20px; border-radius: 28px; }
.lp-final h2 { font-size: 2.4rem; }
.lp-final p { color: var(--ink); font-weight: 500; }
.lp-final-btn { background: var(--sun); margin-top: 6px; }
.lp-foot { text-align: center; font-size: .82rem; }
.lp-foot a { color: inherit; }
/* Cartão do app do iPhone (versão de teste) na apresentação */
.lp-ios { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: center; }
.lp-ios h2 { font-size: 1.25rem; }
.lp-ios .btn { grid-column: 1 / -1; justify-self: stretch; }
@media (min-width: 700px) { .lp-ios { grid-template-columns: auto minmax(0, 1fr) auto; } .lp-ios .btn { grid-column: auto; } }
@media (min-width: 620px) { .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) {
  .lp { padding-top: 22px; gap: 44px; }
  .lp-main { gap: 64px; }
  .lp-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; }
  .lp-cta { justify-items: start; text-align: left; max-width: 440px; }
  .lp-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* entrada: escolha do tipo de perfil */
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 16px; cursor: pointer; }
.choice.on { background: var(--sun); box-shadow: var(--shadow-sm); }
.choice .tile { width: 40px; height: 40px; }
.choice-txt { display: grid; gap: 2px; min-width: 0; }
.choice-txt span { font-size: .82rem; color: var(--ink-2); }

/* links por papel */
.links { gap: 16px; }
.link-row { display: grid; gap: 8px; padding-top: 14px; border-top: 2px dashed var(--dash); }
.link-row:first-child { padding-top: 0; border-top: 0; }
.link-head { display: flex; align-items: center; gap: 12px; }
.link-txt { display: grid; gap: 2px; min-width: 0; }
.link-txt span { font-size: .82rem; color: var(--ink-2); }
.link-row input { font-size: .82rem; padding: 8px 12px; }
.pill.eye { display: inline-flex; align-items: center; gap: 6px; background: var(--lilac); padding: 6px 12px; font-size: .82rem; }
.pill.eye .ic { width: 16px; height: 16px; }
.react:disabled, .check input:disabled + .box { cursor: default; }
.check:has(input:disabled) { cursor: default; }

/* notificações */
.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 52px; height: 32px; margin: 0; padding: 0; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--done); cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 23px; height: 23px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); transition: transform .15s; }
.switch:checked { background: var(--sun); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: .45; cursor: default; }
.switch:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.switch-row { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; }
.switch-row + .switch-row { border-top: 1.5px solid var(--done); }
.switch-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.switch-txt b { font-size: .95rem; }
.switch-txt span { font-size: .78rem; color: var(--ink-2); }
.push-master { display: flex; align-items: center; gap: 12px; background: var(--done); }
.push-master.on { background: var(--mint); }
.push-master .tile { width: 44px; height: 44px; }
.push-group { padding: 8px 16px; }
.push-group h2 { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; font-size: 1.1rem; }
.push-group h2 .tile { width: 32px; height: 32px; }
.push-promo { position: relative; display: grid; gap: 12px; }
.push-promo .promo-tag { position: absolute; top: -13px; right: 16px; background: var(--sun); transform: rotate(3deg); }
.push-promo .row { gap: 12px; }
.notice { margin: 0; background: var(--sun); font-weight: 600; font-size: .9rem; }
.app-header .brand { flex: 1; }
.app-header .bell { color: var(--ink); }

/* cabeçalho e navegação */
.app-header { position: sticky; top: env(safe-area-inset-top); z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 60px; padding: 6px 16px; background: var(--surface); border-bottom: var(--bw) solid var(--ink); }
.app-header.simple { justify-content: flex-start; padding-left: 6px; gap: 2px; }
.app-header.simple h1 { font-size: 1.3rem; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.15rem; min-width: 0; }
.hname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border-radius: 50%; display: block; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 54px; min-width: 220px; background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 14px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.menu-pop p { margin: 0; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; background: var(--surface); border-top: var(--bw) solid var(--ink); padding: 8px 2px calc(8px + env(safe-area-inset-bottom)); }
.tab { flex: 1; min-width: 0; max-width: 108px; display: grid; justify-items: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: .62rem; font-weight: 700; }
.tab .ti { display: grid; place-items: center; width: 40px; height: 30px; border-radius: 10px; border: 2px solid transparent; color: var(--ink); transition: transform .15s; }
.tab .tl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab.active { color: var(--ink); }
.tab.active .ti { background: var(--sun); border-color: var(--ink); transform: rotate(-3deg); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.head-actions { gap: 8px; margin-left: auto; }
.btn-square { width: 46px; padding: 0; }
.composer { display: grid; gap: 12px; }
.composer h2 { font-size: 1.2rem; }

/* início */
.hero { background: var(--sun); border-radius: 24px; padding: 18px; display: grid; gap: 8px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-edit { background: var(--surface); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm); flex: none; }
.hero h1 { font-size: 1.85rem; line-height: 1; overflow-wrap: anywhere; }
/* "Faltam  4  dias para a viagem": o número é o destaque */
.countdown { margin: 4px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; row-gap: 2px; font-weight: 700; font-size: 1.05rem; }
.countdown .big { font-size: 5.2rem; }
.hero-phase { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-trip { width: 100%; justify-content: center; text-decoration: none; }
.sub-head { justify-content: flex-start; flex-wrap: nowrap; }
.sub-head h1 { min-width: 0; }
.cl { font-weight: 600; font-size: .9rem; }
.big { font-family: var(--display); font-weight: 800; font-size: 5.6rem; line-height: .8; letter-spacing: -.04em; flex: none; }
.hero .tile.lg { background: var(--surface); transform: rotate(5deg); }
.hero .tile.lg .ic { width: 32px; height: 32px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 10px; display: grid; gap: 2px; text-decoration: none; }
.stat b { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.stat span { font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.next { display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--sky); color: var(--on-sky); padding: 14px 16px; }
.next .tile { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); color: var(--ink); }
.next-txt { display: grid; gap: 1px; min-width: 0; font-size: .82rem; }
.next-txt b { font-size: 1rem; overflow-wrap: anywhere; }

/* listas: lugares e roteiro */
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.card-head .btn-icon { margin: -10px -10px -10px 0; }
.place { display: grid; gap: 10px; padding: 16px 16px 14px; }
.days { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 14px; }
.day-pill { display: inline-flex; align-items: center; gap: 2px; background: var(--mint); }
.pill-x { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -10px -14px -10px -6px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.pill-x .ic { width: 13px; height: 13px; stroke-width: 3; }
.card select.day-select { width: auto; min-height: 44px; padding: 2px 8px; border-width: 2px; border-style: dashed; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface); }
.addr { display: flex; align-items: flex-start; gap: 6px; width: fit-content; max-width: 100%; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.addr .ic { width: 16px; height: 16px; margin-top: 3px; }
.addr.find { color: var(--ink-2); font-weight: 500; }
.addr.plain { font: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.addr.plain .ic { display: none; }
.dlg .addr { text-align: left; }
.row.tight { gap: 0; }
.card-head .row.tight { margin: -10px -10px -10px 0; }
.card-head .row.tight .btn-icon { margin: 0; }
.card-head .row.tight { gap: 8px; }
.plan-item a.btn-icon { margin: -4px -6px; color: var(--ink); }
.scan .btn { width: 100%; }
.found { display: grid; gap: 6px; padding: 12px; border: 2px dashed var(--ink); border-radius: 16px; background: var(--bg); }
.found .route { font-size: 1.15rem; }
.note-text { margin: 0; overflow-wrap: anywhere; color: var(--ink-2); font-size: .92rem; }
.votes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.votes .who { margin-left: auto; }
.react { font: 700 .88rem var(--font); color: var(--ink); background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; min-height: 44px; min-width: 44px; padding: 4px 12px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; justify-content: center; }
.react.on { background: var(--sun); box-shadow: 2px 2px 0 var(--ink); }
.empty { text-align: center; color: var(--muted); font-weight: 500; padding: 24px 12px; margin: 0; }
.day { padding: 14px; gap: 8px; }
.day h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.day-n { display: inline-block; font-size: 1rem; border: 2px solid var(--ink); border-radius: 10px; padding: 3px 10px; transform: rotate(-3deg); background: var(--sun); }
.day:nth-child(4n+2) .day-n { background: var(--mint); } .day:nth-child(4n+3) .day-n { background: var(--gum); } .day:nth-child(4n) .day-n { background: var(--periwinkle); }
.day-date { font: 600 .88rem var(--font); letter-spacing: 0; color: var(--ink-2); }
.plan-item { display: flex; align-items: center; gap: 10px; min-height: 44px; border: 2px solid var(--ink); border-radius: 12px; padding: 4px 4px 4px 10px; font-size: .9rem; font-weight: 600; }
.plan-item .ic { width: 18px; height: 18px; }
.plan-item .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.plan-item .time { font-family: var(--display); font-weight: 800; }
.plan-item.ev { background: var(--sky-soft); border-color: transparent; padding-right: 10px; }
.plan-empty { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 4px 10px; border: 2px dashed var(--dash); border-radius: 12px; font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: none; text-align: center; }

/* reservas: bilhete com picote */
details.card > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; font-weight: 700; }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { margin-bottom: 14px; }
.booking { padding: 0; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); }
.bk-main { display: grid; gap: 4px; padding: 12px 14px; }
.bk-head { display: flex; align-items: center; gap: 10px; }
.bk-head h3 { flex: 1; min-width: 0; font: 700 .82rem var(--font); letter-spacing: 0; color: var(--ink-2); }
.bk-head .btn-icon { margin: -4px -6px -4px 0; }
.bk-head .btn-icon + .btn-icon { margin-left: -2px; }
.route { margin: 2px 0 0; font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.1; overflow-wrap: anywhere; }
.when { margin: 0; color: var(--ink-2); font-size: .82rem; font-weight: 500; }
.bk-stub { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px 10px 22px; border-top: var(--bw) dashed var(--ink); background: var(--stub); }
.bk-stub::before, .bk-stub::after { content: ""; position: absolute; top: -11px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: var(--bw) solid var(--ink); }
.bk-stub::before { left: -11px; } .bk-stub::after { right: -11px; }
.stub-txt { display: grid; min-width: 0; font-size: .7rem; font-weight: 700; color: var(--muted); }
.code { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: .08em; color: var(--ink); overflow-wrap: anywhere; }

/* checklist e compras */
.progress { background: var(--mint); display: grid; gap: 10px; padding: 14px 16px; }
.progress .muted { color: var(--ink); font-weight: 700; font-size: .9rem; }
.bar { height: 18px; border-radius: 999px; background: var(--surface); border: var(--bw) solid var(--ink); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--sun); transition: width .4s; }
.addrow { display: flex; gap: 10px; }
.addrow input { flex: 1; }
.item { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 4px 4px 4px 12px; background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 16px; }
.item.done { background: var(--done); }
.check { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 6px 0; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { width: 28px; height: 28px; border-radius: 9px; border: var(--bw) solid var(--ink); background: var(--surface); display: grid; place-items: center; flex: none; transition: background .15s; }
.box .ic { width: 16px; height: 16px; stroke-width: 3.5; opacity: 0; }
.check input:checked + .box { background: var(--mint); }
.check input:checked + .box .ic { opacity: 1; }
.check input:focus-visible + .box { outline: 3px solid var(--sky); outline-offset: 2px; }
.txtwrap { display: grid; min-width: 0; }
.txt { font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
.item.done .txt { text-decoration: line-through; color: var(--muted); }
.meta { margin: 0; font-size: .75rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.meta .who { font-size: .75rem; color: var(--muted); gap: 4px; }
.meta .who .avatar.sm { width: 18px; height: 18px; font-size: .62rem; border-width: 1.5px; }
.group { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.group .sum { margin-left: auto; font-size: 1.05rem; }
.item { flex-wrap: wrap; }

.item-extra { flex-basis: 100%; display: grid; gap: 4px; padding: 0 10px 10px 40px; font-size: .85rem; color: var(--ink-2); }
.item-extra p { margin: 0; }
.item-extra .price { font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--ink); }
.pre { white-space: pre-wrap; }
.row3 { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 8px; }
.row3 > * { min-width: 0; }
.row3 input { padding-inline: 10px; }
.linkbtn { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* mural */
.notes-grid { columns: 2 140px; column-gap: 14px; padding: 2px 6px 6px 2px; }
@media (max-width: 379px) { .notes-grid { columns: 1; } }
/* reservas fora das datas da viagem: no fim da lista, com a data em destaque */
.off-dates-group { margin-top: 10px; }
.off-head { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0; }
.booking.off-dates { border-style: dashed; }
.off-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; }
.off-when { background: var(--sun); border-radius: 6px; padding: 1px 6px; display: inline-block; font-weight: 700; }
.day.off-dates { border-style: dashed; }
.off-ev { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.note { break-inside: avoid; margin-bottom: 16px; padding: 12px; border: var(--bw) solid var(--ink); border-radius: 6px 6px 18px 6px; box-shadow: 4px 4px 0 var(--ink); display: grid; gap: 10px; }
.note:nth-child(odd) { transform: rotate(-1.2deg); } .note:nth-child(even) { transform: rotate(1.2deg); }
.note-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.note-foot { display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.note-foot .who { color: var(--ink); font-weight: 700; font-size: .78rem; }
.note-foot .who .avatar { background: var(--surface) !important; }
.note-foot .btn-icon { margin: -8px -8px -8px 0; color: var(--ink-2); }
.note .react { min-height: 44px; padding: 0 4px; justify-content: center; font-size: .8rem; background: transparent; }
.note .react.on { background: var(--surface); }
.note .votes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.note-form .row { display: grid; gap: 12px; }
.note-form textarea { border-radius: 6px 6px 16px 6px; resize: none; }
.c0 { background: var(--n0); } .c1 { background: var(--n1); } .c2 { background: var(--n2); }
.c3 { background: var(--n3); } .c4 { background: var(--n4); } .c5 { background: var(--n5); }
.card textarea.c0 { background: var(--n0); } .card textarea.c1 { background: var(--n1); } .card textarea.c2 { background: var(--n2); }
.card textarea.c3 { background: var(--n3); } .card textarea.c4 { background: var(--n4); } .card textarea.c5 { background: var(--n5); }
.dots { display: flex; flex-wrap: wrap; gap: 14px; flex: 1; min-width: 0; }
.dot { position: relative; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: var(--bw) solid var(--ink); cursor: pointer; }
.dot::after { content: ""; position: absolute; inset: -9.5px; border-radius: 50%; } /* área de toque de 44px */
.dot.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--ink); }

/* diálogo, toast, confete */
.dlg { border: 3px solid var(--ink); border-radius: 26px; box-shadow: 7px 7px 0 var(--ink); padding: 34px 20px 20px; background: var(--surface); color: var(--ink); width: min(92vw, 400px); text-align: center; overflow: visible; }
.dlg[open] { display: grid; gap: 12px; justify-items: center; }
.dlg::backdrop { background: rgba(27, 21, 53, .72); }
/* Janelas aparecem com leve escala e fundo escurecendo; painéis de adicionar/editar sobem. */
.dlg[open] { animation: dlg-in .22s cubic-bezier(.2, .8, .2, 1); }
.dlg[open]::backdrop { animation: fade-in .22s ease-out; }
.composer:not([hidden]) { animation: rise-in .25s cubic-bezier(.2, .8, .2, 1); }
/* Folha de confirmação (app de loja): presa embaixo, cantos de cima arredondados, alça, sobe de baixo. */
.dlg.sheet { margin: auto auto 0; width: 100%; max-width: 520px; border-radius: 26px 26px 0 0; border-bottom: 0; box-shadow: none;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); text-align: left; }
.dlg.sheet[open] { display: grid; gap: 14px; justify-items: stretch; animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
.sheet-grip { justify-self: center; width: 40px; height: 5px; border-radius: 999px; background: var(--dash); }
.sheet-text { margin: 4px 4px 0; font-size: 1.05rem; font-weight: 600; }
.sheet-actions { gap: 10px; }
.btn-danger { background: var(--danger); color: var(--surface); }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes dlg-in { from { opacity: 0; transform: scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
.dlg .pill { position: absolute; top: -18px; left: 50%; margin-left: -88px; width: 176px; padding: 6px 10px; background: var(--sun); border-width: var(--bw); font-size: .88rem; transform: rotate(-3deg); }
.dlg .tile.lg { width: 72px; height: 72px; border-radius: 22px; transform: rotate(5deg); }
.dlg .tile.lg .ic { width: 38px; height: 38px; }
.dlg .row { align-self: stretch; justify-self: stretch; margin-top: 6px; }
.dlg .row .btn { flex: 1; padding-inline: 8px; }
.big-pick { font-size: 2rem; line-height: 1; letter-spacing: -.02em; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: 92vw; background: var(--ink); color: var(--surface); padding: 10px 18px; border-radius: 999px; font-weight: 700; z-index: 30; transition: opacity .3s; text-align: center; }
.toast.out { opacity: 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

/* Telas estreitas: 12 avatares em 3 linhas de 4, para cada um ter área de toque confortável. */
@media (max-width: 379px) { .picks:not(.four) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .note, .tile, .pill, .day-n, .push-promo .promo-tag, .wordmark span, .tab.active .ti, .pick.on, .tag.set, .lp-mark, .lp-demo > * { transform: none !important; }
}
@media (min-width: 700px) {
  .app-header { padding-inline: max(16px, calc(50% - 320px)); }
  .app-header.simple { padding-left: max(6px, calc(50% - 330px)); }
}
@media (min-width: 700px) { .tabbar { max-width: 640px; margin: 0 auto; border-radius: 20px 20px 0 0; border: var(--bw) solid var(--ink); border-bottom: 0; } }

[hidden] { display: none !important; }

/* Navegação com cara de app (js/nav.js): durante a transição, a tela que sai (cópia) e a que entra viram camadas presas
   na tela; a de cima ganha a borda escura do Adesivo na lateral. */
.nav-layer { position: fixed; inset: 0; z-index: 40; overflow: hidden; padding-top: env(safe-area-inset-top); background: var(--bg); will-change: transform, opacity; }
.nav-layer.nav-under { z-index: 41; }
.nav-layer.nav-over { z-index: 42; box-shadow: calc(-1 * var(--bw)) 0 0 var(--ink); }
.nav-animating { pointer-events: none; }

/* App de loja: interface não seleciona texto nem abre o menu de pressionar e segurar (conteúdo do usuário continua
   selecionável); a página não "estica" além do topo e do fim. */
html { -webkit-tap-highlight-color: transparent; }
.native body { overscroll-behavior: none; }
.native :is(.btn, .btn-icon, .chip, .tab, .tabbar, .app-header, .page-head, .pill, .tile, .star-btn, .check, summary, label .label) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* lote: reservas que abrem, compras que abrem para editar, "Desfazer", voos no roteiro */
.booking { cursor: pointer; }
.bk-head h3 { flex: 1; min-width: 0; margin: 0; }
.bk-toggle { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; cursor: pointer; font: inherit; color: inherit; }
.bk-toggle:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.bk-toggle .ic { flex: none; }
.bk-actions { margin-top: 4px; align-items: center; }
.item-open { all: unset; box-sizing: border-box; flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; cursor: pointer; padding: 6px 0; }
.item-open:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
.check.box-only { flex: none; padding: 10px 4px 10px 0; }
.toast-action { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 18px; }
.toast-btn { font: 800 .9rem var(--font); color: var(--ink); background: var(--sun); border: 2px solid var(--surface); border-radius: 999px; min-height: 40px; padding: 0 14px; cursor: pointer; }
.ev-detail { display: grid; gap: 1px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.ev-flight .txt { display: grid; gap: 2px; }
.settings-link { justify-content: flex-start; }
.toast-action { width: max-content; max-width: min(92vw, 460px); }
.toast-action span { flex: 1; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.toast-action .toast-btn { flex: none; }
/* roteiro e mural: tocar abre os detalhes */
.plan-item .plan-open { gap: 10px; padding: 0; min-height: 40px; }
.plan-item.ev .plan-open { min-height: 36px; }
.note-open { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 600; font-size: .95rem; line-height: 1.35; color: var(--ink); }
.note-open:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.dlg-card { justify-self: stretch; text-align: left; }
.dlg-card .booking { box-shadow: none; cursor: default; }
.votes-sum { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 0; }
.votes-sum .react { cursor: default; }
.dlg-card .bk-toggle { cursor: default; } .dlg-card .bk-toggle .ic { display: none; }
/* lugares: sugestões enquanto digita */
.suggest-wrap { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.suggest .sg { display: grid; gap: 1px; min-height: 44px; padding: 7px 10px; border-radius: 10px; cursor: pointer; align-content: center; }
.suggest .sg b { font-size: .95rem; overflow-wrap: anywhere; }
.suggest .sg span { font-size: .8rem; color: var(--ink-2); overflow-wrap: anywhere; }
.suggest .sg.on, .suggest .sg:hover { background: var(--sky-soft); }
.suggest .sg-credit { font-size: .7rem; color: var(--muted); text-align: right; padding: 2px 8px 0; }
/* roteiro: horário do lugar (o organizador toca para marcar) */
.time-slot { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; border: 2px dashed var(--dash); border-radius: 10px; color: var(--muted); cursor: pointer; }
.time-slot.set { border: 2px solid var(--ink); background: var(--sun); color: var(--ink); min-width: 62px; }
.time-slot .ic { width: 18px; height: 18px; pointer-events: none; }
/* o campo de hora fica invisível por cima do relógio/horário: tocar abre o seletor do celular */
.time-slot .time-input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; cursor: pointer; }
.time-slot.set .time { font: 800 .9rem var(--display); }
.plan-item .time-slot + .plan-open { margin-left: 2px; }
/* a tropa: pedidos para entrar e pessoas com o papel */
.person { display: grid; gap: 8px; padding: 10px 0; border-top: 2px dashed var(--dash); }
.person:first-of-type { border-top: 0; }
.person-head { display: flex; align-items: center; gap: 10px; }
.person-txt { flex: 1; min-width: 0; display: grid; }
.person-txt b { overflow-wrap: anywhere; }
.person-txt span { font-size: .8rem; color: var(--ink-2); }
.person-actions .btn { min-height: 44px; }
.req-notice { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.share-trip .pill.count { margin-left: 4px; }
.troop-requests h2 { display: flex; align-items: center; gap: 8px; }
/* sugestão de instalar (primeira visita): por cima da barra de abas, fecha para sempre com "Agora não"/"Entendi" */
.install-sheet { position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto; display: grid; gap: 14px; background: var(--surface); }
.install-head { display: flex; gap: 14px; align-items: center; }
.install-head h2 { font-size: 1.2rem; margin: 0; }
.install-head p { margin: 2px 0 0; font-size: .9rem; }
.install-head .tile img { width: 100%; height: 100%; border-radius: inherit; display: block; }
.install-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: .98rem; }
.install-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 8px; vertical-align: middle; background: var(--sky-soft); }
.install-ic .ic { width: 18px; height: 18px; }
/* roteiro: escolher o lugar do dia sem sair da aba */
.plan-add { width: 100%; gap: 6px; font: inherit; font-size: .88rem; font-weight: 600; background: transparent; cursor: pointer; color: var(--ink-2); }
.plan-add .ic { width: 18px; height: 18px; }
.plan-add:hover { border-color: var(--ink); color: var(--ink); }
.plan-add:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.pick-title { font-size: 1.3rem; margin: 0; }
.pick-time { justify-self: stretch; text-align: left; }
.pick-list { justify-self: stretch; display: grid; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px 4px 6px 2px; }
.pick-place { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; text-align: left; font: inherit; color: var(--ink);
  background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.pick-place:hover { background: var(--sky-soft); }
.pick-place:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.pick-place .ic { width: 18px; height: 18px; flex: none; }
.pick-txt { flex: 1; min-width: 0; display: grid; }
.pick-txt b { overflow-wrap: anywhere; }
.pick-txt span { font-size: .8rem; color: var(--ink-2); }
.pick-votes { flex: none; font-size: .85rem; font-weight: 700; }
.pick-title:focus { outline: none; }
/* roteiro: arrastar lugares entre os dias (só pelo puxador; a rolagem segue normal no resto) */
.drag-handle { flex: none; display: grid; place-items: center; width: 32px; min-height: 40px; margin-left: -4px; padding: 0; border: 0; background: transparent;
  color: var(--muted); cursor: grab; touch-action: none; border-radius: 8px; }
.drag-handle .ic { width: 20px; height: 20px; stroke-width: 3.2; }
.drag-handle:hover { color: var(--ink); background: var(--sky-soft); }
.drag-handle:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }
.plan-item.dragging { opacity: .35; }
.drag-ghost { position: fixed; z-index: 50; margin: 0; pointer-events: none; background: var(--surface); box-shadow: 6px 6px 0 var(--ink); transform: rotate(-2deg); }
.day.drop-target { outline: 3px dashed var(--sky); outline-offset: 3px; background: var(--sky-soft); }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
/* lugar no roteiro: puxador + relógio já identificam a linha; o alfinete sai para o nome caber, e a quebra respeita as palavras */
.plan-item:not(.ev) .plan-open > .ic { display: none; }
.plan-item:not(.ev) .plan-open .txt { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
/* avaliações dos lugares: faixa no cartão, estrelas e janela de comentários */
.rv-strip { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 10px; font: inherit; font-size: .88rem; color: var(--ink-2);
  background: var(--stub); border: 2px dashed var(--dash); border-radius: 12px; cursor: pointer; text-align: left; }
.rv-strip:hover { border-color: var(--ink); color: var(--ink); }
.rv-strip:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.rv-strip-txt { flex: 1; min-width: 0; }
.rv-strip-txt b { color: var(--ink); }
.pill.visited { background: var(--mint); display: inline-flex; align-items: center; gap: 4px; }
.pill.visited.sm { font-size: .75rem; padding: 2px 8px; }
.pill.visited .ic { width: 14px; height: 14px; }
.dlg-reviews { text-align: left; max-height: min(88vh, 760px); overflow-y: auto; padding-top: 20px; }
.dlg-reviews[open] { justify-items: stretch; }
.rv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rv-head h2 { margin: 0; font-size: 1.4rem; overflow-wrap: anywhere; }
.rv-head h2:focus { outline: none; }
.rv-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.rv-avg { margin: 0; display: flex; align-items: center; gap: 8px; }
.rv-avg b { font: 800 1.6rem var(--display); }
.stars { color: #E8A800; letter-spacing: 1px; font-size: 1.05rem; }
.stars.sm { font-size: .85rem; }
.stars-off { color: var(--dash); }
.visited-toggle .ic { width: 16px; height: 16px; }
.star-pick { display: flex; gap: 6px; }
.star-btn { width: 48px; height: 48px; font-size: 1.7rem; line-height: 1; border: 2px solid var(--ink); border-radius: 12px; background: var(--surface); color: var(--dash); cursor: pointer; }
.star-btn.on { color: #B58300; background: var(--sun); }
.star-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.rv-people { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rv-person { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
.rv-sub { margin: 4px 0 0; font-size: 1rem; }
.rv-comments { display: grid; gap: 10px; }
.rv-comment { border: 2px solid var(--ink); border-radius: 14px; padding: 8px 10px; display: grid; gap: 4px; background: var(--surface); }
.rv-c-head { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.rv-c-head .muted { flex: 1; font-size: .78rem; }
.rv-comment .note-text { margin: 0; overflow-wrap: anywhere; }
.rv-form { display: grid; gap: 8px; }
.rv-form textarea { resize: vertical; }
/* lista de viagens: as concluídas ficam embaixo, mais discretas */
.trips-past .trip-link { background: var(--done); }
.trips-past .tile { filter: saturate(.6); }
/* nada fora de bilhete se divide entre as colunas do mural */
.notes-grid > * { break-inside: avoid; }
/* estrelas no cartão do lugar (ranking): na mesma linha de quem sugeriu */
.card-stars { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.star-pick.sm { gap: 4px; }
.star-pick.sm .star-btn { width: 40px; height: 40px; font-size: 1.3rem; border-radius: 10px; }
.push-test-msg { margin: 0; font-size: .9rem; font-weight: 600; }
.push-test-msg.ok { color: #12805C; }
.push-test-msg.bad { color: var(--danger); }

/* "Ideias para <destino>": quadro amarelo em Lugares e folha com as sugestões */
.ideas-card { background: var(--sun); display: grid; gap: 10px; }
.ideas-card-head { align-items: center; gap: 10px; }
.ideas-card p { margin: 0; color: var(--ink-2); }
.ideas-card .btn { justify-self: start; }
.ideas-sheet { max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; }
.ideas-head { justify-content: space-between; align-items: center; gap: 8px; }
.ideas-head h2 { font-size: 1.3rem; }
.ideas-search { display: grid; gap: 10px; }
.ideas-field { display: grid; gap: 4px; }
.ideas-field span { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
@media (min-width: 480px) { .ideas-search { grid-template-columns: 1fr 1fr; } .ideas-search .btn { grid-column: 1 / -1; } }
.chip.on { background: var(--ink); color: var(--surface); }
.idea { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); padding: 12px; }
.idea-txt { display: grid; gap: 3px; min-width: 0; }
.idea h3 { font-size: 1rem; }
.idea p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.idea .meta { font-size: .78rem; color: var(--muted); }
.idea-btn { white-space: nowrap; }
.idea-in { display: inline-flex; align-items: center; gap: 4px; background: var(--mint); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 700; }
.idea-in .ic { width: 14px; height: 14px; }
.ideas-status { text-align: center; margin: 6px 0; }
.ideas-sheet .fine { margin: 0; font-size: .75rem; color: var(--muted); text-align: center; }

/* faixa do ambiente de testes (teste.viajar.goelias.com) */
.banner.banner-test { background: var(--gum); }
