/* The Simple Trip — app web (MVP). Registro de produto: escala fixa, movimento só de estado. */
body { font-size: 15px; }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }

/* ---------- rail (desktop) ---------- */
.rail { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 28px; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--bg); }
.rail-logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.04em; font-size: 18px; }
.rail-logo img { width: 30px; height: auto; }
.rail-nav { display: grid; gap: 2px; }
.rail-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-md); color: var(--muted); text-decoration: none; font-weight: 600; transition: background var(--t-fast), color var(--t-fast); }
.rail-nav a i { font-size: 20px; }
.rail-nav a:hover { background: var(--surface-2); color: var(--ink); }
.rail-nav a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.rail-nav .rail-new { order: -1; margin-bottom: 12px; background: var(--ink); color: var(--surface); }
.rail-nav .rail-new:hover, .rail-nav .rail-new[aria-current] { background: var(--ink-2); color: var(--surface); box-shadow: none; }
.rail-foot { margin-top: 0; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.rail-foot div { display: grid; line-height: 1.3; }
.rail-foot strong { font-size: 14px; }
.rail-foot span { font-size: 12px; color: var(--muted); }

.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.av-me { background: var(--pink); color: var(--ink); }
.av-2 { background: var(--ink); color: var(--surface); }

/* ---------- main ---------- */
.main { --gap: 24px; --gap-lg: 40px; padding: 20px clamp(16px, 3.5vw, 48px) 96px; max-width: 1328px; width: 100%; margin-inline: auto; }
.view.enter { animation: viewIn var(--t-mid) var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: grid; gap: 8px; margin-bottom: var(--gap); }
h1 { font-size: 40px; line-height: 1; letter-spacing: -0.045em; font-weight: 800; }
.eyebrow { font-size: 12px; color: var(--muted); }
.lede { color: var(--muted); max-width: 60ch; }
.block-title { font-size: 20px; letter-spacing: -0.03em; font-weight: 700; margin: var(--gap-lg) 0 12px; }
.help { font-size: 13px; color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip-pink { background: var(--pink-soft); color: var(--rouge); }
.chip-forest { background: var(--forest-soft); color: oklch(0.42 0.08 165); }
.chip-glass { background: color-mix(in oklch, var(--surface) 78%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); }

/* ---------- viagens ---------- */
.quick { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; transition: border-color var(--t-fast); }
.quick:focus-within { border-color: var(--ink); }
.quick > i { font-size: 20px; color: var(--muted); }
.quick input { flex: 1; min-width: 0; border: 0; background: none; height: 44px; font-size: 16px; outline: none; }
.quick input::placeholder { color: var(--muted); }

.next-trip { position: relative; display: block; height: clamp(320px, 42vw, 440px); border-radius: var(--r-xl); overflow: hidden; color: var(--surface); text-decoration: none; isolation: isolate; }
.next-trip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--ease-out); }
.next-trip:hover img { transform: scale(1.03); }
.next-trip::after { content: ""; position: absolute; inset: 40% 0 0; z-index: -1; background: linear-gradient(to top, oklch(0.16 0.01 110 / 0.78), transparent); }
.nt-top { position: absolute; inset: 16px 16px auto; display: flex; justify-content: space-between; align-items: center; }
.avatars { display: flex; }
.avatars .av { border: 2px solid var(--surface); margin-left: -8px; }
.nt-info { position: absolute; inset: auto 24px 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.nt-info h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.045em; font-weight: 800; line-height: 1; }
.nt-info p { font-size: 13px; opacity: 0.9; margin-top: 6px; }
.nt-cost { display: grid; text-align: right; padding: 10px 14px; border-radius: var(--r-md); background: color-mix(in oklch, var(--surface) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); }
.nt-cost span { font-size: 12px; color: var(--muted); font-weight: 600; }
.nt-cost strong { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }

.trip-list { display: grid; border-top: 1px solid var(--line); }
.trip-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background var(--t-fast); }
.trip-row:hover { background: var(--surface); }
.trip-row div { display: grid; }
.trip-row strong { font-size: 16px; letter-spacing: -0.02em; }
.trip-row div span { font-size: 13px; color: var(--muted); }
.thumb { width: 56px; height: 56px; border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-building { background: var(--pink); }
.thumb-building img { width: 70%; height: auto; object-fit: contain; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(0.92); opacity: 0.8; } }

/* ---------- criar ---------- */
.create { max-width: 760px; margin-inline: auto; padding-top: clamp(8px, 4vh, 40px); }
.composer { display: grid; gap: 18px; }
.composer h1 { font-size: clamp(44px, 6vw, 72px); }
.seg { display: inline-flex; justify-self: start; padding: 4px; gap: 4px; border-radius: var(--r-full); background: var(--surface-2); }
.seg button, .pills button, .filters button { border: 0; background: transparent; min-height: 38px; padding: 0 16px; border-radius: var(--r-full); font-weight: 600; font-size: 14px; color: var(--muted); transition: background var(--t-fast), color var(--t-fast); }
.seg [aria-selected="true"], .pills [aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.composer textarea { width: 100%; resize: vertical; min-height: 120px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--surface); font-size: 18px; line-height: 1.5; transition: border-color var(--t-fast); }
.composer textarea::placeholder { color: var(--muted); }
.composer textarea:focus { outline: none; border-color: var(--ink); }
.composer.has-error textarea { border-color: var(--error); }
.composer.has-error .help { color: oklch(0.5 0.18 25); font-weight: 600; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { min-height: 36px; padding: 0 14px; border-radius: var(--r-full); border: 1px dashed var(--line-strong); background: transparent; font-size: 14px; color: var(--ink-2); transition: border-color var(--t-fast), background var(--t-fast); }
.suggest button:hover { border-style: solid; border-color: var(--ink); background: var(--surface); }
.opts { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px 32px; }
.opt { display: grid; gap: 6px; }
.opt > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.pills { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-full); background: var(--surface-2); }
.composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.quota { font-size: 12px; color: var(--muted); }

.building { display: grid; gap: 16px; justify-items: start; }
.building h1 { font-size: clamp(32px, 4vw, 44px); }
.breath { position: relative; width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 8px; }
.breath-sq { position: absolute; inset: 8px; background: var(--pink); filter: url(#brush); animation: breathe 2.4s ease-in-out infinite; }
.breath img { position: relative; width: 82%; animation: breathe 2.4s ease-in-out infinite 0.15s; }
.breath.done .breath-sq, .breath.done img { animation: pop 0.5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.12); } }
.b-stages { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.b-stages li { display: flex; align-items: center; gap: 12px; color: var(--faint); font-weight: 500; transition: color var(--t-mid); }
.b-stages .dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: all var(--t-mid) var(--spring); }
.b-stages li.on { color: var(--ink); }
.b-stages li.on .dot { background: var(--ink); border-color: var(--ink); }
.b-stages li.now .dot { background: var(--pink); border-color: var(--rouge); transform: scale(1.3); }
.b-cities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.bc { display: grid; gap: 6px; padding: 6px 6px 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); animation: viewIn var(--t-slow) var(--spring); }
.bc img { width: 100%; height: 96px; object-fit: cover; border-radius: var(--r-md); }
.bc div { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px; gap: 6px; }
.bc .mono { font-size: 11px; color: var(--muted); }
.bc .verified { padding: 0 6px; }
.skeleton { min-height: 150px; padding: 6px; }
.skeleton span { display: block; border-radius: var(--r-md); background: linear-gradient(90deg, var(--surface-2) 30%, var(--bg) 50%, var(--surface-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s var(--ease-out) infinite; }
.skeleton span:first-child { height: 96px; }
.skeleton span:last-child { height: 14px; width: 60%; margin: 8px 6px 0; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- viagem ---------- */
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; font-size: 20px; color: var(--ink); text-decoration: none; background: color-mix(in oklch, var(--surface) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform var(--t-mid) var(--spring); }
.icon-btn:active { transform: scale(0.92); }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: var(--gap) 0; }
.tabs button { border: 0; background: none; padding: 12px 0; font-weight: 600; color: var(--muted); position: relative; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }

.trip-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; }
.days button { display: grid; justify-items: start; gap: 1px; min-width: 96px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-align: left; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-mid) var(--spring); }
.days button:active { transform: scale(0.97); }
.days .mono { font-size: 11px; color: var(--muted); }
.days strong { font-size: 15px; letter-spacing: -0.02em; }
.days span:last-child { font-size: 12px; color: var(--muted); }
.days [aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.days [aria-selected="true"] span { color: oklch(0.82 0.004 210); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.day-head h2 { font-size: 26px; letter-spacing: -0.04em; font-weight: 800; }
.day-head .mono { font-size: 12px; color: var(--muted); }

.stops { list-style: none; padding: 0; margin: 0; }
.stop { display: grid; grid-template-columns: 52px 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 0; animation: viewIn var(--t-mid) var(--ease-out) both; animation-delay: calc(var(--i) * 30ms); }
.stop .t { font-size: 13px; }
.media img, .media .ico { width: 64px; height: 64px; border-radius: var(--r-md); object-fit: cover; display: grid; place-items: center; background: var(--surface-2); font-size: 22px; color: var(--ink-2); }
.stop-stay .media .ico, .stop-move .media .ico { background: transparent; border: 1px dashed var(--line-strong); }
.stop .txt { display: grid; }
.stop strong { font-size: 16px; letter-spacing: -0.02em; }
.stop .txt span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop .verified i { font-size: 20px; }
.stop.is-new .media .ico { background: var(--pink-soft); color: var(--rouge); }
.stop.is-new strong::after { content: "novo"; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--rouge); background: var(--pink-soft); padding: 2px 8px; border-radius: var(--r-full); vertical-align: 2px; }
.leg { display: flex; align-items: center; gap: 8px; padding: 2px 0 2px 100px; font-size: 12px; color: var(--muted); position: relative; }
.leg::before { content: ""; position: absolute; left: 97px; top: -8px; bottom: -8px; border-left: 1.5px dashed var(--line-strong); }
.leg i { position: relative; background: var(--bg); font-size: 15px; margin-left: -10px; }

.cost-list { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 8px 24px; }
.cost-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line-strong); }
.cost-list dt { display: grid; font-weight: 600; }
.cost-list small { font-weight: 400; color: var(--muted); font-size: 13px; }
.cost-list dd { margin: 0; }
.cost-list .cl-total { border: 0; }
.cl-total dd { font-size: 28px; letter-spacing: -0.04em; }

.pack { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.pack li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pack input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.pack label { display: grid; cursor: pointer; }
.pack label span { font-size: 13px; color: var(--muted); }
.pack input:checked + label strong { text-decoration: line-through; color: var(--muted); }

.trip-side { position: sticky; top: 24px; display: grid; gap: 14px; }
.refine { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.refine label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.refine label i { color: var(--rouge); }
.refine-row { display: flex; gap: 6px; }
.refine-row input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--bg); font-size: 14px; }
.refine-row input:focus { outline: none; border-color: var(--ink); }
.refine-row .btn { width: 44px; min-height: 44px; padding: 0; }
.diff { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); animation: viewIn var(--t-mid) var(--spring); }
.diff-ask { font-size: 13px; color: var(--muted); font-style: italic; }
.diff-title { font-size: 12px; font-weight: 700; }
.diff-ops { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.diff-ops li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }
.diff-ops .mono { font-size: 12px; font-weight: 400; white-space: nowrap; flex: none; }
.sg { width: 20px; text-align: center; font-weight: 800; }
.op-del { background: oklch(0.95 0.03 25); color: oklch(0.45 0.15 25); text-decoration: line-through; }
.op-add { background: var(--forest-soft); color: oklch(0.38 0.08 165); }
.op-mod { background: var(--surface-2); }
.diff-actions { display: flex; gap: 8px; }
.diff-actions .btn { min-height: 40px; flex: 1; }
.diff-wait { display: flex; gap: 6px; padding: 6px 0; }
.diff-wait span { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: breathe 0.9s ease-in-out infinite; }
.diff-wait span:nth-child(2) { animation-delay: 0.15s; } .diff-wait span:nth-child(3) { animation-delay: 0.3s; }

.side-card { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.side-card p { font-size: 13px; color: var(--muted); }
.sc-head { display: flex; align-items: center; gap: 8px; }
.sc-head i { font-size: 20px; }
.code-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 8px 8px 8px 12px; border-radius: var(--r-md); background: var(--bg); }
.link-btn { border: 0; background: none; font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.total-card { background: var(--pink); border-color: transparent; }
.total-card span:first-child { font-weight: 700; font-size: 13px; }
.total-card strong { font-size: 32px; font-weight: 500; letter-spacing: -0.04em; }
.total-card span:last-child { font-size: 12px; color: var(--rouge); }

/* ---------- hoje ---------- */
.now-card { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.now-card img { width: 100%; height: 300px; object-fit: cover; }
.now-info { padding: 20px 24px 24px; display: grid; gap: 6px; }
.now-t { font-size: 12px; color: var(--rouge); font-weight: 500; }
.now-card h2 { font-size: 26px; letter-spacing: -0.04em; font-weight: 800; }
.now-card p { color: var(--muted); font-size: 14px; }
.now-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.feel { display: flex; gap: 6px; }
.feel button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: transparent; font-weight: 600; font-size: 14px; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-mid) var(--spring); }
.feel button:active { transform: scale(0.95); }
.feel [data-feel="amei"][aria-pressed="true"] { background: var(--pink); border-color: var(--pink); }
.feel [data-feel="pulei"][aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ---------- comunidade ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.filters button { border: 1px solid var(--line); }
.filters [aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.masonry { columns: 3 260px; column-gap: 14px; }
.plan { position: relative; break-inside: avoid; margin-bottom: 14px; height: 300px; border-radius: var(--r-xl); overflow: hidden; color: var(--surface); isolation: isolate; }
.plan.tall { height: 400px; }
.plan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s var(--ease-out); }
.plan:hover img { transform: scale(1.04); }
.plan::after { content: ""; position: absolute; inset: 35% 0 0; z-index: -1; background: linear-gradient(to top, oklch(0.16 0.01 110 / 0.8), transparent); }
.plan-info { position: absolute; inset: 14px 14px 16px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.plan-info > div { display: grid; margin-top: auto; margin-bottom: 12px; }
.plan-info strong { font-size: 22px; letter-spacing: -0.03em; }
.plan-info .mono { font-size: 12px; opacity: 0.9; }
.plan .btn { min-height: 40px; font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity var(--t-fast), transform var(--t-mid) var(--spring); }
.plan:hover .btn, .plan:focus-within .btn { opacity: 1; transform: none; }
@media (hover: none) { .plan .btn { opacity: 1; transform: none; } }

/* ---------- ajustes ---------- */

/* ---------- toast ---------- */
.toast { display: flex; align-items: center; gap: 10px; white-space: nowrap; position: fixed; z-index: var(--z-toast); left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: var(--r-full); background: var(--ink); color: var(--surface); font-weight: 600; font-size: 14px; transition: opacity var(--t-fast), transform var(--t-mid) var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobile: dock em pílula ---------- */
@media (max-width: 1023px) { .trip-body { grid-template-columns: minmax(0, 1fr); } .trip-side { position: static; } }
@media (max-width: 767px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; z-index: var(--z-dock); top: auto; height: auto; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 6px; border: 0; border-radius: var(--r-full); background: var(--ink); }
  .rail-logo, .rail-foot { display: none; }
  .rail-nav { display: flex; gap: 4px; }
  .rail-nav a { width: 52px; height: 52px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; color: oklch(0.75 0.004 210); }
  .rail-nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rail-nav a:hover { background: transparent; color: var(--surface); }
  .rail-nav a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: none; }
  .rail-nav .rail-new { order: 0; margin: 0; background: var(--pink); color: var(--ink); }
  .rail-nav .rail-new[aria-current] { background: var(--pink); color: var(--ink); }
  .rail-nav a[data-nav="ajustes"] { display: none; }
  .main { padding: 20px 16px 120px; }
  h1 { font-size: 34px; }
  .quick .btn { width: 44px; padding: 0; font-size: 0; }
  .quick .btn i { font-size: 18px; }
  .nt-cost { text-align: left; }
  .b-cities { grid-template-columns: minmax(0, 1fr); }
  .bc { grid-template-columns: 72px 1fr; align-items: center; }
  .bc img { height: 56px; }
  .skeleton { min-height: 70px; }
  .stop { grid-template-columns: 44px 52px minmax(0, 1fr) auto; gap: 10px; }
  .media img, .media .ico { width: 52px; height: 52px; }
  .leg { padding-left: 80px; }
  .leg::before { left: 79px; }
  .now-card img { height: 220px; }
  .today-grid { gap: 20px; }
  .today-title h1 { font-size: 48px; }
  .today-fox { width: 48px; }
  .set-row { flex-direction: column; align-items: stretch; }
  .set-row .pills { align-self: flex-start; }
  .toast { bottom: 96px; }
}

/* ---------- desktop: barra superior, agente, painel, mosaico, mapa (refs Roam / TRIPLY) ---------- */
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.crumbs { flex: 1; font-size: 12px; color: var(--muted); }
.ask { display: flex; align-items: center; gap: 10px; width: min(420px, 40vw); height: 42px; padding: 0 8px 0 14px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; text-align: left; transition: border-color var(--t-fast); }
.ask:hover { border-color: var(--ink); color: var(--ink); }
.ask i { color: var(--rouge); font-size: 16px; }
.ask span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask kbd { font-size: 11px; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.icon-plain { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--line); }
.icon-plain:hover { border-color: var(--ink); }

.rail-agent { margin-top: auto; display: grid; gap: 4px; padding: 14px; border-radius: var(--r-lg); background: var(--ink); color: var(--surface); text-decoration: none; transition: transform var(--t-mid) var(--spring); }
.rail-agent:active { transform: scale(0.98); }
.ra-mark { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 6px; position: relative; }
.ra-mark::before { content: ""; position: absolute; inset: 4px; background: var(--pink); filter: url(#brush); animation: breathe 2.4s ease-in-out infinite; }
.ra-mark img { position: relative; width: 100%; }
.rail-agent strong { font-size: 15px; }
.rail-agent span { font-size: 12px; line-height: 1.4; color: oklch(0.78 0.004 210); }

.dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.dash-side { display: grid; gap: 14px; position: sticky; top: 24px; }
.prep { gap: 12px; }
.prep-head { display: flex; justify-content: space-between; align-items: baseline; }
.prep-head .mono { font-size: 12px; color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.prep-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.prep-list li { display: flex; align-items: center; gap: 10px; }
.prep-list i { font-size: 18px; color: var(--line-strong); }
.prep-list .done { color: var(--muted); }
.prep-list .done i { color: var(--forest); }
.prep-list a { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink); }
.people { gap: 12px; }
.person { display: flex; align-items: center; gap: 10px; }
.person div { display: grid; flex: 1; line-height: 1.3; }
.person b { font-size: 14px; }
.person span { font-size: 12px; color: var(--muted); }
.online { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 3px var(--forest-soft); }
.people .btn { min-height: 40px; font-size: 14px; }

.trip-head { display: grid; gap: 18px; }
.th-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.th-row h1 { font-size: clamp(36px, 4vw, 52px); }
.th-meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.th-actions { display: flex; align-items: center; gap: 10px; }
.th-actions .btn { min-height: 44px; }
.th-actions .avatars { margin-right: 6px; }
.mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 280px; gap: 8px; }
.mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--r-lg); }
.mosaic img:first-child { border-radius: var(--r-xl) var(--r-lg) var(--r-lg) var(--r-xl); }
.mosaic img:last-of-type { border-radius: var(--r-lg) var(--r-xl) var(--r-xl) var(--r-lg); }
.mosaic-tag { position: absolute; left: 14px; bottom: 14px; }

.route-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr); gap: 24px; align-items: start; }
.map { position: sticky; top: 24px; margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.map svg { display: block; width: 100%; height: auto; }
.m-streets path { fill: none; stroke: var(--surface); stroke-width: 3; stroke-linecap: round; }
.m-streets path:nth-child(4n) { stroke-width: 7; }
.m-river { fill: oklch(0.88 0.025 230); }
.m-river-name { font: 500 11px var(--mono); fill: oklch(0.5 0.04 230); letter-spacing: 0.08em; }
.m-route { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 6; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -11; } }
.m-pin circle { fill: var(--ink); stroke: var(--surface); stroke-width: 3; transition: r var(--t-mid) var(--spring), fill var(--t-fast); }
.m-pin text { font: 600 12px var(--font); fill: var(--surface); text-anchor: middle; pointer-events: none; }
.m-pin { cursor: pointer; }
.m-pin.is-new circle { fill: var(--rouge); }
.m-pin.hl circle { fill: var(--pink); r: 19; }
.m-pin.hl text { fill: var(--ink); }
.stop.hl strong { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.stop:focus-visible { outline-offset: 2px; }
.map figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); font-size: 13px; }
.map figcaption .mono { font-size: 11px; color: var(--muted); text-align: right; }

@media (max-width: 1200px) { .route-grid { grid-template-columns: minmax(0, 1fr); } .map { position: static; max-width: 460px; } }
@media (max-width: 1023px) { .dash { grid-template-columns: minmax(0, 1fr); } .dash-side { position: static; } .rail-agent span { display: none; } }
@media (max-width: 767px) {
  .topbar, .rail-agent { display: none; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: 200px; }
  .mosaic img:not(:first-child) { display: none; }
  .mosaic img:first-child { border-radius: var(--r-xl); }
  .th-actions .btn { display: none; }
  .map { max-width: none; }
}

/* ---------- a raposa no app ---------- */
.toast img { width: 22px; height: auto; flex: none; }
.thumb-fox { position: relative; background: transparent; overflow: visible; }
.thumb-fox .tf-sq, .today-fox .tf-sq { position: absolute; inset: 14% 22% 8% 8%; background: var(--pink); filter: url(#brush); }
.thumb-fox img { position: relative; width: 86%; height: auto; object-fit: contain; transform-origin: 50% 90%; transition: transform var(--t-mid) var(--spring); }
.trip-row:hover .thumb-fox img { transform: translate(4px, -6px) rotate(8deg); }

.create-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.create-fox { height: auto; width: clamp(72px, 9vw, 112px); transform-origin: 40% 90%; animation: idle 4s ease-in-out infinite; }
@keyframes idle { 0%, 100% { transform: none; } 50% { transform: translateY(-4px) rotate(-2deg); } }
.create-fox.leap { animation: leapOut 0.42s var(--ease-out) forwards; }
@keyframes leapOut { to { transform: translate(60px, -60px) rotate(18deg); opacity: 0; } }
.composer.has-error ~ * .create-fox, .composer.has-error .create-fox { animation: shake 0.4s var(--spring); }
@keyframes shake { 25% { transform: rotate(-8deg); } 75% { transform: rotate(6deg); } }

.today-fox img { position: relative; width: 100%; }

/* ---------- passe de espaçamento e usabilidade ---------- */
.main .btn { min-height: 44px; }
.main .btn-sm, .btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-danger { background: transparent; border-color: oklch(0.86 0.06 25); color: oklch(0.5 0.18 25); }
.btn-danger:hover { background: oklch(0.96 0.02 25); border-color: oklch(0.5 0.18 25); }
.crumbs { display: flex; align-items: center; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }
.crumbs .sep { color: var(--line-strong); }

/* hoje */
.today-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: var(--gap); }
.today-title { display: flex; align-items: flex-end; gap: 12px; margin-top: 6px; }
.today-title h1 { font-size: clamp(48px, 5vw, 72px); line-height: 0.88; }
.today-fox { position: relative; width: 64px; aspect-ratio: 426 / 441; flex: none; }
.today-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: var(--gap); align-items: start; }
.today-side { display: grid; gap: 16px; position: sticky; top: 24px; }
.rest .block-title { margin-top: 32px; }
.map-today { position: static; }
.hint { font-size: 12px; color: var(--muted); }
.tomorrow { gap: 6px; }
.tomorrow strong { font-size: 18px; letter-spacing: -0.02em; }
.tomorrow p { color: var(--ink-2); font-size: 14px; }
.side-card { padding: 20px; }

/* ajustes e páginas estreitas */
[data-view="ajustes"] .page-head, .settings { max-width: 760px; margin-inline: auto; }
.settings { display: grid; gap: var(--gap-lg); }
.set-group h2 { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: -0.01em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.set-row label, .set-label { font-weight: 600; font-size: 15px; }
.set-row p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.select { appearance: none; -webkit-appearance: none; min-width: 200px; height: 44px; padding: 0 40px 0 16px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231a1a14' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; font-weight: 500; cursor: pointer; }
.select:hover, .select:focus { border-color: var(--ink); outline: none; }

@media (max-width: 1023px) {
  .today-grid { grid-template-columns: minmax(0, 1fr); }
  .today-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .map-today { grid-column: 1 / -1; }
}

/* mapa com altura controlada; pino do "agora" */
.m-pin.is-now circle { fill: var(--pink); stroke: var(--ink); stroke-width: 2; }
.m-pin.is-now text { fill: var(--ink); }
@media (max-width: 767px) {
  .now-actions .btn-ink { flex: 1 1 100%; }
  .feel { flex: 1 1 100%; }
  .feel button { flex: 1; justify-content: center; }
}

/* aviso de conta de exemplo */
.demo-bar { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; margin-bottom: 20px; border-radius: var(--r-lg); background: var(--pink-wash); border: 1px solid var(--pink-soft); }
.demo-bar img { width: 28px; height: auto; flex: none; }
.demo-bar p { flex: 1; font-size: 14px; color: var(--ink-2); }
.demo-bar .btn { flex: none; }
.demo-close { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; font-size: 16px; color: var(--muted); }
.demo-close:hover { background: var(--pink-soft); color: var(--ink); }
.tag-ex { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; margin-left: 4px; border-radius: var(--r-full); background: var(--pink-soft); color: var(--rouge); vertical-align: 2px; }
@media (max-width: 767px) {
  .demo-bar { flex-wrap: wrap; }
  .demo-bar p { flex: 1 1 calc(100% - 100px); }
  .demo-bar .btn { order: 3; width: 100%; }
}

.plan.is-focus { outline: 3px solid var(--pink); outline-offset: 4px; }
.plan.is-focus .btn { opacity: 1; transform: none; }
