:root {
  --bg: #eceef3;
  --panel: #ffffff;
  --soft: #f5f6f9;
  --line: #e6e8ee;
  --text: #15171c;
  --text2: #4a4f5a;
  --muted: #9097a3;
  --ink: #041A30;
  --accent: #0A8F35;
  --accent-soft: #e6f5eb;
  --danger: #e5484d;
  --ok: #18a058;
  --t-dica: #e4edff;
  --t-solucao: #e1f6ea;
  --t-duvida: #fff3d9;
  --t-role: #eee8ff;
  --t-mod: #ffe6ef;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(20, 22, 30, 0.04), 0 12px 32px -18px rgba(20, 22, 30, 0.18);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0; color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 700px at 85% -10%, #d3ecdb 0%, transparent 55%),
              radial-gradient(900px 600px at -10% 110%, #fbeeb4 0%, transparent 55%), var(--bg);
  background-attachment: fixed; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 800; }
[hidden] { display: none !important; }

/* Moldura do app */
.shell { max-width: 1280px; margin: 24px auto; display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 28px;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 36px; padding: 28px; box-shadow: 0 40px 80px -40px rgba(30, 35, 60, 0.35); min-height: calc(100vh - 48px); }
.shell.wide { grid-template-columns: 250px minmax(0, 1fr); }
.left, .right { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: none; }
.main-col { min-width: 0; }

/* Coluna esquerda */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; margin: 4px 6px 26px; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, #0c3a63, #041A30); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: 0 8px 18px -8px #041A30; }
.brand .br { color: var(--accent); }
.me-card { text-align: center; padding: 8px 0 22px; }
.me-card .avatar { margin: 0 auto 12px; }
.me-card b { display: block; font-size: 1rem; }
.me-card .meta { display: block; }
.me-card .btn { margin-top: 14px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; font-weight: 600; color: var(--text2); transition: background 0.15s; }
.nav a:hover { background: var(--soft); color: var(--text); }
.nav a.on { background: var(--ink); color: #fff; }
.nav a i { font-style: normal; width: 22px; text-align: center; font-size: 1.05rem; }
.app-card { display: block; margin-top: 28px; border: 2px dashed var(--line); border-radius: 24px; padding: 22px 18px; text-align: center; }
.app-card .icon { width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(135deg, #1aa84a, #0A8F35 50%, #041A30); box-shadow: 0 14px 24px -12px #0A8F35; }
.app-card b { display: block; margin-bottom: 4px; }

/* Cabeçalho do feed */
.feed-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 18px; }
.seg { display: flex; gap: 18px; font-size: 0.9rem; font-weight: 600; }
.seg a { color: var(--muted); }
.seg a.on, .seg a:hover { color: var(--text); }
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 999px; padding: 4px 4px 4px 18px; margin-bottom: 16px; }
.searchbar input { border: 0; background: none; padding: 10px 0; box-shadow: none !important; }
.searchbar .btn { padding: 9px 18px; }
.scroller { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }

/* Caixa "compartilhe" */
.composer { background: var(--soft); border-radius: 26px; padding: 16px 18px; margin-bottom: 18px; }
.composer .fake { display: flex; align-items: center; gap: 12px; }
.composer .fake span.input { flex: 1; background: #fff; border-radius: 999px; padding: 12px 18px; color: var(--muted); }
.composer .tools { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding-left: 4px; font-size: 0.88rem; font-weight: 600; color: var(--text2); flex-wrap: wrap; }
.composer .tools a:hover { color: var(--text); }
.composer .tools .btn { margin-left: auto; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; font: 700 0.92rem var(--font);
  border: 0; border-radius: 999px; padding: 11px 22px; cursor: pointer; transition: transform 0.12s, opacity 0.15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn.accent { background: var(--accent); }
.btn.small { padding: 7px 14px; font-size: 0.8rem; }
.btn.ghost { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.link { background: none; border: 0; color: var(--text2); cursor: pointer; font: 600 0.88rem var(--font); padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: var(--text); }

/* Chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { flex: none; background: #fff; border: 1px solid var(--line); color: var(--text2); border-radius: 999px; padding: 7px 14px; font: 600 0.82rem var(--font); cursor: pointer; transition: all 0.15s; }
.chip:hover { color: var(--text); border-color: #cfd3db; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Posts */
.card { border-radius: 26px; padding: 20px 22px; margin-bottom: 16px; background: var(--soft); transition: transform 0.15s; }
.card.t-dica { background: var(--t-dica); }
.card.t-solucao { background: var(--t-solucao); }
.card.t-duvida { background: var(--t-duvida); }
.card.t-role { background: var(--t-role); }
.card.t-mod { background: var(--t-mod); }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-head .who { flex: 1; min-width: 0; line-height: 1.3; }
.card-head .who .meta { display: block; }
.more { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, 0.12); display: grid; place-items: center; font-weight: 800; color: var(--text2); flex: none; }
.more:hover { background: rgba(255, 255, 255, 0.6); }
.card h2 { margin: 14px 0 6px; font-size: 1.12rem; }
.card h2 a:hover { text-decoration: underline; }
.excerpt { color: var(--text2); margin: 0; }
.gallery { display: grid; gap: 8px; margin-top: 14px; border-radius: 18px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; background: rgba(0, 0, 0, 0.06); }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n1 img { max-height: 460px; }
.gallery.n2 { grid-template-columns: 1fr 1fr; height: 300px; }
.gallery.n3 { grid-template-columns: 1fr 1fr 2fr; height: 260px; }
.bar { display: flex; align-items: center; gap: 22px; margin-top: 16px; font-size: 0.86rem; font-weight: 600; color: var(--text2); flex-wrap: wrap; }
.bar .act { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.bar .act:hover { color: var(--text); }
.bar .act.liked { color: #e5486e; }
.bar .act.saved { color: var(--accent); }
.bar .push { margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.75); border-radius: 999px; padding: 5px 12px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; }
.pill.solved { color: var(--ok); }
.tag { color: var(--text2); font-size: 0.8rem; font-weight: 700; margin-right: 8px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.name { font-weight: 800; }
.meta { color: var(--muted); font-size: 0.8rem; }
.mech { color: var(--accent); font-size: 0.75rem; font-weight: 800; }
.ok { color: var(--ok); font-size: 0.82rem; font-weight: 700; }
.badge { border-radius: 999px; padding: 4px 10px; font-size: 0.7rem; font-weight: 800; }

/* Avatares */
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; flex: none; color: #fff;
  background: linear-gradient(135deg, #22b453, #087a2d); box-shadow: 0 0 0 3px #fff; }
.avatar.c1 { background: linear-gradient(135deg, #7aa7ff, #4361ee); }
.avatar.c2 { background: linear-gradient(135deg, #5be3a6, #12a36b); }
.avatar.c3 { background: linear-gradient(135deg, #c79bff, #7b3fe4); }
.avatar.c4 { background: linear-gradient(135deg, #ff9bc0, #e2457a); }
.avatar.big { width: 52px; height: 52px; font-size: 1.15rem; }
.avatar.huge { width: 96px; height: 96px; font-size: 2.2rem; box-shadow: 0 0 0 5px #fff, 0 16px 30px -14px rgba(0, 0, 0, 0.4); }
.avatar.sm { width: 32px; height: 32px; font-size: 0.8rem; }

/* Coluna direita */
.right h3 { margin: 4px 0 14px; font-size: 1.2rem; }
.right section { margin-bottom: 28px; }
.stories { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.story { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #22b453, #087a2d); }
.story img { width: 100%; height: 100%; object-fit: cover; }
.story .who { position: absolute; left: 8px; right: 8px; bottom: 8px; background: #fff; border-radius: 999px; padding: 4px 8px 4px 4px; display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .who .avatar { width: 22px; height: 22px; font-size: 0.6rem; box-shadow: none; }
.story.empty-story { display: grid; place-items: center; color: #fff; font-weight: 800; text-align: center; padding: 14px; font-size: 0.9rem; }
.people { display: flex; flex-direction: column; gap: 14px; }
.person { display: flex; align-items: center; gap: 12px; }
.person .grow b { display: block; font-size: 0.9rem; line-height: 1.25; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { aspect-ratio: 1; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 0.88rem; gap: 2px; align-content: center; transition: transform 0.15s; }
.tile:hover { transform: scale(1.04); }
.tile i { font-style: normal; font-size: 1.6rem; }
.tile.s1 { background: var(--t-dica); border-radius: 50%; }
.tile.s2 { background: #ffd4e4; border-radius: 28px; }
.tile.s3 { background: var(--t-duvida); border-radius: 28px; }
.tile.s4 { background: #d9ccff; border-radius: 50%; }

/* Formulários */
input, textarea, select { width: 100%; background: var(--soft); color: var(--text); border: 1.5px solid transparent; border-radius: 16px; padding: 12px 16px; font: 500 0.95rem var(--font); transition: border-color 0.15s, background 0.15s; }
input::placeholder, textarea::placeholder { color: #a3a9b4; }
input:focus, textarea:focus { outline: none; background: #fff; border-color: var(--accent); }
label, .label { display: block; color: var(--text2); font-size: 0.82rem; font-weight: 700; margin-bottom: 16px; }
label input, label textarea { margin-top: 7px; }
.label { margin-bottom: 8px; }
.hint { display: block; color: var(--muted); font-weight: 500; font-size: 0.76rem; margin-top: 6px; }
textarea { resize: vertical; }
.error { color: var(--danger); margin: 4px 0 12px; font-size: 0.88rem; font-weight: 600; min-height: 1px; }

/* Páginas internas */
.page-title { margin: 4px 0 20px; }
.page-title .meta { margin-top: 4px; font-size: 0.9rem; }
.narrow { max-width: 560px; }
.box { background: var(--soft); border-radius: 26px; padding: 24px; margin-bottom: 18px; }
.empty { text-align: center; color: var(--text2); padding: 44px 24px; background: var(--soft); border-radius: 26px; }
.empty b { display: block; font-size: 1.15rem; color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.center { text-align: center; color: var(--muted); padding: 18px 0; }

/* Post aberto */
.post { background: var(--soft); border-radius: 28px; padding: 24px; }
.post.t-dica { background: var(--t-dica); } .post.t-solucao { background: var(--t-solucao); } .post.t-duvida { background: var(--t-duvida); }
.post.t-role { background: var(--t-role); } .post.t-mod { background: var(--t-mod); }
.post h1 { margin: 16px 0 10px; }
.body { white-space: pre-wrap; color: var(--text2); overflow-wrap: anywhere; }
.photo { width: 100%; border-radius: 18px; margin-top: 14px; object-fit: cover; max-height: 420px; }
.photo.big { max-height: none; }
.actions { margin-top: 18px; gap: 20px; }
.comments { margin-top: 26px; }
.comments h2 { margin-bottom: 12px; }
.comments .comment { background: var(--soft); border-radius: 20px; padding: 14px 16px; margin: 10px 0; }
.comment.reply { margin-left: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.comment.solution { background: var(--t-solucao); }
.comment .meta a { color: var(--text); font-weight: 700; }
.comment .row { margin-top: 6px; gap: 16px; }
#comment-form { margin-top: 16px; background: var(--soft); border-radius: 22px; padding: 14px; }
#comment-form textarea { background: #fff; margin-bottom: 10px; }
#replying { cursor: pointer; color: var(--accent); margin-bottom: 8px; font-weight: 700; }

/* Entrar */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--soft); border-radius: 30px; overflow: hidden; }
.auth-side { padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: radial-gradient(400px 260px at 0% 0%, #cdebd6, transparent 70%), radial-gradient(360px 240px at 100% 100%, #fdf0c0, transparent 70%), #f2faf4; }
.auth-side h1 { font-size: 2.1rem; line-height: 1.1; }
.auth-side h1 em { font-style: normal; color: var(--accent); }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: center; color: var(--text2); font-weight: 500; }
.auth-side li i { flex: none; width: 40px; height: 40px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-style: normal; box-shadow: var(--shadow); }
.auth-form { padding: 32px; background: #fff; }
.auth-form input { background: var(--soft); }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 999px; margin-bottom: 24px; }
.tab { flex: 1; background: none; border: 0; border-radius: 999px; color: var(--muted); font: 700 0.92rem var(--font); padding: 10px; cursor: pointer; }
.tab.on { background: var(--ink); color: #fff; }
.kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.field-city { position: relative; }
.dropdown { position: absolute; left: 0; right: 0; top: calc(100% - 8px); z-index: 30; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px -16px rgba(20, 22, 30, 0.35), 0 0 0 1px var(--line); }
.dropdown button { display: flex; justify-content: space-between; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); padding: 12px 16px; font: 600 0.92rem var(--font); cursor: pointer; }
.dropdown button:last-child { border: 0; }
.dropdown button span { color: var(--muted); font-size: 0.8rem; font-weight: 800; }
.dropdown button:hover, .dropdown button.on { background: var(--accent-soft); }
.dropdown .none { padding: 12px 16px; color: var(--muted); font-size: 0.88rem; }
.city-ok { border-color: var(--ok) !important; }
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.previews img { width: 88px; height: 88px; object-fit: cover; border-radius: 16px; }
.steps { padding-left: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 14px; margin-bottom: 14px; color: var(--text2); align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 0.85rem; }

/* Perfil */
.profile-cover { height: 150px; border-radius: 28px; background: linear-gradient(120deg, #041A30, #0A8F35 60%, #FEC804); }
.profile-head { display: flex; align-items: flex-start; gap: 18px; padding: 0 22px; margin-top: -48px; }
.profile-head h1 { font-size: 1.5rem; }
.profile-head .grow { padding-top: 56px; }
.profile .stats { display: flex; gap: 28px; margin: 18px 22px; color: var(--muted); font-size: 0.88rem; }
.profile .stats b { color: var(--text); font-size: 1.15rem; display: block; }
.bikes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 24px; }
.bike { background: var(--soft); border-radius: 20px; padding: 16px; display: flex; gap: 12px; align-items: center; font-weight: 700; }
.bike i { font-style: normal; width: 42px; height: 42px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.section-title { margin: 26px 0 12px; }

/* Mapa */
#map { height: min(66vh, 620px); border-radius: 26px; overflow: hidden; z-index: 1; }
.map-wrap { position: relative; }
.map-count { position: absolute; top: 14px; left: 14px; z-index: 500; background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow); }
.map-count b { color: var(--accent); }
.leaflet-container { font-family: var(--font); background: #e8ebf0; }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 14px !important; overflow: hidden; }
.pin { background: var(--accent); color: #fff; border: 3px solid #fff; border-radius: 50%; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(10, 143, 53, 0.22), 0 6px 14px rgba(0, 0, 0, 0.25); cursor: pointer; }
.riders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rider { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 20px; padding: 12px 14px; }
.rider:hover { background: var(--accent-soft); }

/* App */
.app-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.phone { aspect-ratio: 9 / 18; max-width: 220px; margin: 0 auto; border-radius: 36px; border: 8px solid var(--ink); background: var(--soft); display: flex; flex-direction: column; padding: 16px 12px; gap: 10px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.45); }
.phone .ph-bar { height: 10px; width: 55%; border-radius: 6px; background: var(--line); }
.phone .ph-card { flex: 1; border-radius: 16px; background: var(--t-dica); }
.phone .ph-card.b { background: var(--t-duvida); }
.phone .ph-card.on { flex: 0 0 60px; background: linear-gradient(135deg, #22b453, #087a2d); }

/* Barra inferior no celular */
.tabbar { display: none; }

@media (max-width: 1180px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); }
  .right { display: none; }
}
@media (max-width: 820px) {
  body { background: var(--bg); }
  .shell, .shell.wide { grid-template-columns: 1fr; margin: 0; border-radius: 0; padding: 16px 14px 96px; min-height: 100vh; border: 0; box-shadow: none; }
  .left { position: static; max-height: none; }
  .left .me-card, .left .nav, .left .app-card { display: none; }
  .brand { margin: 0 0 6px; }
  .tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1000; background: var(--ink); border-radius: 26px; padding: 8px; justify-content: space-around; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5); }
  .tabbar a { color: #b9bec8; display: grid; place-items: center; font-size: 0.68rem; font-weight: 700; padding: 6px 10px; border-radius: 18px; gap: 2px; }
  .tabbar a i { font-style: normal; font-size: 1.2rem; }
  .tabbar a.on { color: #fff; background: rgba(255, 255, 255, 0.12); }
  .tabbar a.plus i { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
  .auth, .app-hero { grid-template-columns: 1fr; }
  .auth-side, .auth-form { padding: 24px; }
  .card { padding: 16px; border-radius: 22px; }
  .gallery.n2, .gallery.n3 { height: 200px; }
  .composer .tools .hide-sm { display: none; }
}
.profile-head .btn { margin-top: 60px; }

/* Ícones SVG */
.ic { flex: none; display: inline-block; vertical-align: middle; }
.ic.muted { color: var(--muted); }
.liked .ic, .saved .ic { fill: currentColor; }
#like-btn.liked { color: #e5486e; }
#save-btn.saved { color: var(--accent); }
.nav a .ic { width: 22px; }
.brand-mark .ic { color: #fff; }
.avatar .ic { color: #fff; }
.mech { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.pill .ic { margin-right: -2px; }
.composer .tools a { display: inline-flex; align-items: center; gap: 6px; }
.story.empty-story { gap: 10px; align-content: center; }
.tile { gap: 8px; }
.tile .ic { color: var(--text); }
.auth-side li i .ic { color: var(--accent); }
.bike i .ic { color: var(--accent); }
.hint .ic { color: var(--ok); }
.tabbar a .ic { margin-bottom: 1px; }
.tabbar a.plus i { width: 44px; height: 44px; }
.app-card .icon .ic { color: #fff; }
.me-card .avatar.huge .ic { color: #fff; }
.link .ic { margin-right: 0; }

/* Logo */
.brand { display: block; margin: 0 0 18px; }
.brand img { display: block; width: 150px; height: auto; margin: 0 auto; }
.auth-logo { width: 190px; height: auto; margin-bottom: 18px; }
@media (max-width: 820px) {
  .brand { margin: 0 0 8px; }
  .brand img { width: 96px; margin: 0; }
}

/* Tela cheia: o app ocupa toda a janela */
body { background: #fff; }
.shell { max-width: none; margin: 0; min-height: 100vh; border-radius: 0; border: 0; box-shadow: none;
  background: #fff; padding: 0; gap: 0; grid-template-columns: 290px minmax(0, 1fr) 360px; }
.shell.wide { grid-template-columns: 290px minmax(0, 1fr); }
.left { top: 0; height: 100vh; max-height: 100vh; padding: 28px 22px; border-right: 1px solid var(--line); background: #fbfcfd; }
.right { top: 0; height: 100vh; max-height: 100vh; padding: 28px 24px; border-left: 1px solid var(--line); background: #fbfcfd; }
.main-col { padding: 28px clamp(20px, 3vw, 48px) 60px; }
.main-col > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.shell.wide .main-col > * { max-width: none; }
@media (max-width: 1180px) {
  .shell { grid-template-columns: 250px minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .shell, .shell.wide { grid-template-columns: 1fr; padding: 0; }
  .left { position: static; height: auto; max-height: none; border: 0; background: #fff; padding: 16px 14px 0; }
  .main-col { padding: 12px 14px 100px; }
}

/* Tela de boas-vindas (visitante sem conta) */
.welcome { display: none; }
html.gate body { overflow: hidden; }
html.gate .welcome { display: grid; position: fixed; inset: 0; z-index: 3000; grid-template-columns: 1.25fr 1fr; background: #fff; overflow-y: auto; }
html.gate .tabbar { display: none; }
.w-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(32px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 22px;
  background: radial-gradient(700px 420px at 100% 0%, rgba(10, 143, 53, 0.45), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(254, 200, 4, 0.18), transparent 60%), linear-gradient(160deg, #0a2a4a, #041A30 60%); }
.w-logo { width: clamp(160px, 18vw, 240px); height: auto; }
.w-hero h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.08; max-width: 640px; }
.w-hero > p { color: #c9d5e3; font-size: 1.05rem; max-width: 560px; margin: 0; }
.w-feats { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; max-width: 560px; }
.w-feats li { display: flex; gap: 14px; align-items: center; }
.w-feats li i { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #FEC804; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.w-feats b { display: block; font-size: 0.98rem; }
.w-feats span { color: #b6c4d4; font-size: 0.9rem; }
.w-stats { display: flex; gap: 36px; margin-top: 10px; }
.w-stats b { display: block; font-size: 2rem; font-weight: 800; color: #FEC804; line-height: 1; }
.w-stats span { color: #9fb1c5; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.w-road { position: absolute; right: -80px; bottom: -60px; width: 520px; height: 220px; opacity: 0.16; pointer-events: none;
  background: repeating-linear-gradient(90deg, #fff 0 46px, transparent 46px 82px) center / 100% 8px no-repeat, linear-gradient(#fff, #fff) center 30% / 100% 3px no-repeat, linear-gradient(#fff, #fff) center 70% / 100% 3px no-repeat;
  transform: rotate(-14deg); }
.w-panel { display: grid; place-items: center; padding: 40px 28px; background: #fbfcfd; }
.w-box { width: 100%; max-width: 400px; }
.w-box h2 { font-size: 1.9rem; }
.w-box .meta { font-size: 0.95rem; margin: 6px 0 26px; }
.w-btn { padding: 15px 22px; font-size: 1rem; margin-bottom: 12px; }
.w-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.82rem; margin: 6px 0 18px; }
.w-or::before, .w-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.w-note { color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin: 6px 0 0; text-align: center; }
@media (max-width: 900px) {
  html.gate .welcome { grid-template-columns: 1fr; }
  .w-hero { padding: 32px 22px 28px; gap: 16px; }
  .w-feats, .w-road { display: none; }
  .w-stats { gap: 24px; margin-top: 0; }
  .w-panel { padding: 28px 22px 40px; place-items: start center; }
}

/* Barra de quem navega sem conta */
.guest-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--accent-soft); border-radius: 18px; padding: 10px 14px; margin-bottom: 18px; font-size: 0.88rem; font-weight: 600; color: var(--text2); }
.guest-bar span { flex: 1; min-width: 160px; }

/* Colunas recolhíveis */
.shell { transition: grid-template-columns 0.25s ease; }
.left-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.left-top .brand { margin-bottom: 18px; }
.fold { flex: none; width: 36px; height: 36px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background 0.15s, color 0.15s; }
.fold:hover { background: var(--soft); color: var(--text); }
.right { position: sticky; }
.fold-r { position: absolute; top: 22px; right: 18px; z-index: 2; }
.right h3:first-of-type { padding-right: 44px; }
.rail-open { display: none; position: fixed; top: 22px; right: 18px; z-index: 900; width: 40px; height: 40px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.rail-open:hover { background: var(--soft); }

/* Menu esquerdo recolhido: só ícones */
html.nav-mini .shell { grid-template-columns: 84px minmax(0, 1fr) 360px; }
html.nav-mini .shell.wide { grid-template-columns: 84px minmax(0, 1fr); }
html.nav-mini .left { padding: 22px 12px; }
html.nav-mini .left-top { flex-direction: column; align-items: center; gap: 10px; }
html.nav-mini .brand img { width: 56px; }
html.nav-mini .brand { margin: 0; }
html.nav-mini .fold#fold-left { transform: scaleX(-1); }
html.nav-mini .me-card { padding: 14px 0; }
html.nav-mini .me-card .avatar.huge { width: 48px; height: 48px; font-size: 1.1rem; box-shadow: 0 0 0 3px #fff; }
html.nav-mini .me-card .avatar.huge .ic { width: 24px; height: 24px; }
html.nav-mini .me-card b, html.nav-mini .me-card .meta, html.nav-mini .me-card .btn, html.nav-mini .app-card, html.nav-mini .nav .lbl { display: none; }
html.nav-mini .nav a { justify-content: center; padding: 12px 0; }

/* Coluna direita recolhida */
html.rail-off .shell { grid-template-columns: 290px minmax(0, 1fr) 0; }
html.nav-mini.rail-off .shell { grid-template-columns: 84px minmax(0, 1fr) 0; }
html.rail-off .right { display: none; }
html.rail-off .rail-open { display: grid; }

@media (max-width: 1180px) {
  html.nav-mini .shell { grid-template-columns: 84px minmax(0, 1fr); }
  html.rail-off .shell { grid-template-columns: 250px minmax(0, 1fr); }
  .rail-open, html.rail-off .rail-open { display: none; }
}
@media (max-width: 820px) {
  .fold { display: none; }
  html.nav-mini .shell, html.rail-off .shell { grid-template-columns: 1fr; }
  html.nav-mini .brand img { width: 96px; }
  html.nav-mini .left-top { flex-direction: row; }
}

/* Sem coluna direita: o feed fica centralizado no espaço livre */
.main-col > * { max-width: 820px; }
.shell.wide .main-col > * { max-width: 820px; }
.shell.wide .main-col > .map-full, .shell.wide .main-col > .wide-block { max-width: none; }
.main-col.full > *, .shell.wide .main-col.full > * { max-width: 1200px; }
html.gate .main-col > .welcome { max-width: none; margin: 0; }
@media (max-width: 900px) {
  .w-hero { gap: 12px; padding: 26px 22px 22px; }
  .w-hero h1 { font-size: 1.6rem; }
  .w-hero > p { display: none; }
  .w-logo { width: 130px; }
  .w-stats b { font-size: 1.5rem; }
  .w-stats span { font-size: 0.68rem; }
  .w-panel { padding: 22px 22px 32px; }
  .w-box h2 { font-size: 1.45rem; }
  .w-box .meta { margin-bottom: 18px; }
}
