:root {
  --red: #C8102E;
  --ink: #1F1F1F;
  --ink-2: #5E5E5E;
  --ink-3: #8A8A8A;
  --line: #E4E2DE;
  --bg: #F6F5F2;
  --card: #FFFFFF;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow: 0 6px 24px rgba(0, 0, 0, .14);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: Archivo, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.45; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.01em; }
#app { height: 100dvh; display: flex; flex-direction: column; max-width: 1400px; margin: 0 auto; background: var(--bg); }
.view { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; position: relative; }
.view.map-view { overflow: hidden; }
.pad { padding: 20px 16px 32px; max-width: 760px; margin: 0 auto; }

/* Navegação */
.tabs { height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; background: var(--card); border-top: 1px solid var(--line); flex: none; }
.tab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--red); }

/* Login */
.login { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 32px 24px; background: var(--bg); position: relative; }
/* margin:auto centraliza sem cortar o topo quando o conteúdo é mais alto que a tela */
.login-inner { max-width: 380px; width: 100%; margin: auto; }
.buy-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; margin-bottom: 18px; }
.buy-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.buy-price b { font-size: 30px; font-weight: 800; color: var(--red); letter-spacing: -.02em; }
.buy-amt { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.buy-price > span { white-space: nowrap; }
.buy-amt s { font-size: 15px; color: var(--ink-3); }
.buy-tag { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--red); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid #CFCCC6; border-radius: 8px; background: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.coupon-row input:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
.coupon-msg { margin: 6px 0 0; font-size: 13px; min-height: 1em; }
.coupon-msg.ok { color: #1B8A3A; font-weight: 600; }
.coupon-msg.bad { color: var(--red); }
.coupon-card { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.coupon-card { flex-wrap: wrap; }
.coupon-card .cc-main { flex: 1 1 220px; min-width: 0; }
.coupon-card b { letter-spacing: .04em; }
.coupon-card .note { margin: 2px 0 0; }
.coupon-card.off { opacity: .55; }
.kind-pick { display: grid; gap: 8px; }
.kind-pick label { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid #CFCCC6; border-radius: 8px; background: #fff; cursor: pointer; }
.kind-pick label:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.kind-pick input { grid-row: span 2; width: 18px; height: 18px; padding: 0; margin: 2px 0 0; accent-color: var(--red); }
.kind-pick b { font-size: 15px; color: var(--ink); }
.kind-pick small { font-size: 13px; color: var(--ink-2); }
.field.check { display: flex; gap: 8px; align-items: center; min-height: 46px; }
.field.check input { width: 20px; height: 20px; accent-color: var(--red); }
.field.check > span { margin: 0; color: var(--ink); font-size: 15px; }
.buy-price span { font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.buy-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.buy-list li { padding-left: 20px; position: relative; }
.buy-list li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.link-btn { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.result-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 18px; }
.result-mark.wait { background: #E0A800; }
.result-mark.fail { background: var(--ink-3); }
.wordmark { font-weight: 500; font-size: 52px; letter-spacing: -.03em; line-height: .95; color: #6E6E6E; }
.wordmark b { display: block; font-weight: 800; color: #6E6E6E; }
.wordmark .yr { display: block; color: var(--red); font-weight: 800; font-size: 26px; margin-top: 10px; letter-spacing: 0; }
.login p.lead { color: var(--ink-2); margin: 16px 0 26px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #CFCCC6; border-radius: 8px; background: #fff; font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 8px; font-weight: 700; background: var(--red); color: #fff; text-decoration: none; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #CFCCC6; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn[disabled] { opacity: .5; cursor: default; }
.stack { display: grid; gap: 10px; }
.note { font-size: 13px; color: var(--ink-2); }
.demo-flag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--red); border: 1px solid var(--red); border-radius: 4px; padding: 2px 7px; margin-bottom: 14px; }
.err { color: var(--red); font-size: 14px; margin: 0 0 12px; }

/* Mapa */
#map { position: absolute; inset: 0 0 74px 0; z-index: 0; background: #E9E7E2; }
.leaflet-tile-pane { filter: grayscale(.75) brightness(1.04) contrast(.92); }
.sheet:not(.open) .sheet-list { display: none; }
.map-top { position: absolute; z-index: 500; top: 0; left: 0; right: 0; padding: 12px 12px 0; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 0 12px; height: 46px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 9px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 12px; border-radius: 17px; background: #fff; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); white-space: nowrap; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.chip[aria-pressed="true"] { background: var(--c, var(--ink)); color: #fff; }
.chip[aria-pressed="true"] i { background: #fff; }
.chips.zones .chip { box-shadow: none; border: 1px solid var(--line); }
.map-tools { position: absolute; z-index: 500; right: 12px; bottom: 92px; display: grid; gap: 8px; }
.round { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; }
.round svg { width: 20px; height: 20px; }
.sheet { position: absolute; z-index: 600; left: 0; right: 0; bottom: 0; background: var(--card); border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .14); display: flex; flex-direction: column; max-height: 76%; transition: height .22s ease; height: 74px; }
.sheet.open { height: 62%; }
.sheet-head { flex: none; padding: 8px 16px 10px; width: 100%; text-align: left; }
.sheet-head::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 2px; background: #D5D2CC; margin: 0 auto 9px; }
.sheet-head strong { font-size: 15px; }
.sheet-head span { color: var(--ink-2); font-size: 13px; margin-left: 6px; }
.sheet-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 16px; }
.pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 2px; transform: rotate(-45deg); background: var(--c); border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .35); }
.pin.fav { outline: 2px solid var(--ink); }
.zone-label { background: none; border: 0; box-shadow: none; font-weight: 800; font-size: 12px; color: #222; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; }
.marker-cluster { background: rgba(200, 16, 46, .22); border-radius: 50%; }
.marker-cluster div { width: 30px; height: 30px; margin: 5px 0 0 5px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 30px; }

/* Listas e cartões */
.row { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.row:last-child { border-bottom: 0; }
.row .dot { width: 11px; height: 11px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--c); }
.row .body { flex: 1; min-width: 0; }
.row .t { font-weight: 700; overflow-wrap: anywhere; }
.row .s { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.row .price { font-size: 13px; color: var(--ink-2); font-weight: 700; flex: none; }
.h-page { font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.sub-page { color: var(--ink-2); margin: 0 0 16px; }
.section-t { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin: 26px 0 6px; }
.zone-card { display: flex; align-items: stretch; width: 100%; text-align: left; background: var(--card); border-radius: 10px; margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); }
.zone-card .bar { width: 10px; background: var(--c); flex: none; }
.zone-card .in { padding: 14px; min-width: 0; flex: 1; }
.zone-card h3 { font-size: 20px; font-weight: 800; }
.zone-card p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); }
.zone-card .n { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
/* Quem somos */
.about-card { --c: var(--red); display: flex; align-items: stretch; width: 100%; text-align: left; background: var(--ink); color: #fff; border-radius: 12px; margin: 4px 0 14px; overflow: hidden; min-height: 112px; }
.about-card .about-pic { width: 112px; flex: none; background: #2E2E2E; display: grid; place-items: center; overflow: hidden; }
.about-card .about-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-card .in { padding: 14px 16px; min-width: 0; align-self: center; }
.about-card .kicker { color: #FF6B7F; padding: 0; margin: 0 0 4px; }
.about-card h3 { font-size: 19px; font-weight: 800; line-height: 1.15; }
.about-card p { margin: 5px 0 0; font-size: 13.5px; color: #CFCFCF; }
.about-mono { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.about-mono b { font-size: 22px; }
.about-mono i { font-style: normal; font-weight: 500; color: var(--red); font-size: 18px; }
.about { --c: var(--red); }
.about .kicker { padding: 0; margin: 18px 0 4px; }
.about-hero { margin: 4px 0 0; border-radius: 12px; overflow: hidden; background: #2E2E2E; aspect-ratio: 4 / 3; }
.about-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-hero.empty { display: grid; place-items: center; align-content: center; gap: 8px; aspect-ratio: 16 / 7; }
.about-hero.empty .about-mono b { font-size: 40px; }
.about-hero.empty .about-mono i { font-size: 30px; }
.about-hero.empty p { margin: 0; font-size: 13px; color: #BDBDBD; }
.about-names { font-size: 28px; line-height: 1.1; }
.about-tag { color: var(--ink-2); margin: 6px 0 0; font-size: 17px; }
.about-people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.about-people div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.about-people b { display: block; font-size: 16px; }
.about-people span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 22px; }
.about-stats div { background: var(--card); padding: 14px; }
.about-stats b { display: block; font-size: 24px; font-weight: 800; color: var(--red); letter-spacing: -.02em; line-height: 1.1; }
.about-stats span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 420px) { .about-people { grid-template-columns: 1fr; } }
.photo-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.photo-pick img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); min-height: 40px; }
.stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.station { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 13px; }
.station b { display: block; font-size: 13px; }
.line { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; padding: 0 5px; border-radius: 3px; margin: 3px 3px 0 0; }
.line.M1 { background: #D8232A; } .line.M2 { background: #1B8A3A; } .line.M3 { background: #E0A800; color: #222; } .line.M4 { background: #1565A9; } .line.M5 { background: #7D4E9E; }
.seg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: none; }
.seg .chip { box-shadow: none; border: 1px solid var(--line); }
.input-search { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid #CFCCC6; background: #fff; font-size: 16px; margin-bottom: 10px; }
.article p { margin: 0 0 12px; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 3px; padding: 1px 6px; background: #1B8A3A; color: #fff; margin-right: 5px; vertical-align: 1px; }
.tag.Festa { background: #312E6B; }
.tag.review { background: #E0A800; color: #222; }
.article h2 { font-size: 19px; font-weight: 800; margin: 24px 0 8px; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; background: var(--line); }
.hero { display: block; width: calc(100% + 36px); max-width: none; margin: -18px -18px 14px; max-height: 280px; object-fit: cover; background: var(--line); }
.modal .close { background: rgba(255, 255, 255, .86); border-radius: 50%; z-index: 1; }
.num { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; flex: none; }
.num.on-map { border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .35); }
#route-map { height: 260px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 12px; z-index: 0; }
.metro-btn { font-weight: 800; font-size: 17px; color: #D8232A; }
.metro-btn[aria-pressed="true"] { background: #D8232A; color: #fff; }
.stop-edit { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.stop-edit span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.stop-edit button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; flex: none; }
.pick-results { max-height: 180px; overflow-y: auto; margin-bottom: 12px; }
.photo-edit { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.photo-edit img { width: 92px; height: 68px; object-fit: cover; border-radius: 6px; }
/* Mapa da zona */
.zone-map-wrap { position: relative; margin: 0 -16px 8px; }
#zone-map { height: 46dvh; min-height: 300px; max-height: 460px; z-index: 0; background: #E9E7E2; }
.zone-map-wrap .fair-btn { left: auto; right: 10px; z-index: 1; }
.zone-cats { margin-bottom: 8px; }
.zone-cats .chip i { background: var(--c); }
.zone-cats .chip[aria-pressed="true"] { background: var(--c); color: #fff; }
.zone-cats .chip[aria-pressed="true"] i { background: #fff; }
button.station { width: 100%; text-align: left; align-self: stretch; cursor: pointer; display: flex; align-items: flex-start; }
button.station:hover { border-color: var(--ink-3); }
.leaflet-popup-content { font-family: Archivo, Arial, sans-serif; margin: 9px 13px; }
@media (min-width: 800px) { .zone-map-wrap { margin: 0 0 8px; } #zone-map { border-radius: 12px; } }

/* Maquete da feira */
.fair-stage { position: relative; margin: 0 -16px 8px; background: linear-gradient(#EAF0F2, #F1EEE7 62%); overflow: hidden; }
#fair3d { line-height: 0; }
.fair-svg { width: 100%; height: auto; display: block; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.fair-btn { position: absolute; top: 10px; left: 10px; min-height: 34px; padding: 0 12px; border-radius: 17px; background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); }
#fair-skip { left: auto; right: 10px; }
.fair-btn.right { top: auto; bottom: 10px; left: 10px; }
#fair-extra[hidden] { display: none; }
.fair-btn[hidden] { display: none; }
.fair-site { fill: #FBFAF7; stroke: #CFCCC6; stroke-width: 2; }
.fair-ring { fill: none; stroke: #9A9A9A; stroke-width: 2.5; stroke-dasharray: 11 11; animation: fair-ring 2.4s linear infinite; }
@keyframes fair-ring { to { stroke-dashoffset: -44; } }
.fair-tree { fill: #A9C595; }
.fair-axis { fill: #E4E1DA; }
.fair-gate { font-size: 25px; font-weight: 800; fill: #4A4A4A; }
.fair-gate-dot { fill: #fff; stroke: #4A4A4A; stroke-width: 3.5; }
.fair-rail { stroke: #8E8E8E; stroke-width: 5; stroke-dasharray: 3 7; }
.fair-platform { fill: #DDD9D1; }
.fair-station { font-size: 25px; font-weight: 800; fill: #D8232A; }
.fair-person { fill: #4A4A4A; opacity: .75; }
.fair-hall { cursor: pointer; outline: none; }
.fair-hall .fair-roof { stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; transition: fill .25s; }
.fair-hall polygon { transition: fill .25s; }
.fair-hall:hover .fair-roof, .fair-hall:focus-visible .fair-roof { stroke: #1F1F1F; stroke-width: 3; }
.fair-hall.on .fair-roof { stroke: #1F1F1F; stroke-width: 3.5; }
.fair-ribs { stroke: rgba(0, 0, 0, .1); stroke-width: 1.5; fill: none; }
.fair-num { font-size: 31px; font-weight: 800; pointer-events: none; transition: opacity .25s; }
.fair-small { font-size: 17px; font-weight: 600; fill: #6E6E6E; }
.fair-vela { fill: rgba(150, 196, 222, .5); stroke: rgba(70, 120, 150, .75); stroke-width: 2; pointer-events: none; }
.fair-vela-ribs { stroke: rgba(70, 120, 150, .4); stroke-width: 1.5; fill: none; pointer-events: none; }
.fair-route { fill: none; stroke: #1F1F1F; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; pointer-events: none; }
.fair-route.draw { animation: fair-draw .9s ease-out forwards; }
@keyframes fair-draw { to { stroke-dashoffset: 0; } }
.fair-walker { fill: #fff; stroke: #1F1F1F; stroke-width: 3.5; pointer-events: none; }
.fair-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); }
.fair-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fair-legend i { width: 11px; height: 11px; border-radius: 2px; border: 1px solid rgba(0, 0, 0, .12); }
.hall-chip { min-width: 40px; justify-content: center; }
.hall-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.hall-panel { border-top: 4px solid var(--c); background: var(--card); border-radius: 0 0 10px 10px; padding: 14px; margin-top: 4px; animation: hall-in .28s ease-out; }
.hall-panel .kicker { color: var(--ink-2); margin: 0 0 3px; padding: 0; }
.hall-panel h2 { font-size: 24px; font-weight: 800; }
.hall-note { margin: 8px 0; font-size: 14.5px; }
@keyframes hall-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .fair-ring, .hall-panel { animation: none; }
  .fair-route.draw { animation: none; stroke-dashoffset: 0; }
}
@media (min-width: 800px) { .fair-stage { margin: 0 0 8px; border-radius: 12px; } }
.empty { color: var(--ink-2); padding: 26px 0; text-align: center; }

/* Detalhe */
.modal { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .42); display: flex; align-items: flex-end; justify-content: center; }
.modal .panel { background: var(--card); width: 100%; max-width: 620px; max-height: 88dvh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 18px 18px calc(22px + var(--safe-b)); position: relative; }
.close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; color: var(--ink-2); }
.kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; padding-right: 40px; }
.panel h2 { font-size: 24px; font-weight: 800; padding-right: 34px; overflow-wrap: anywhere; }
.panel .sub { color: var(--ink-2); margin: 5px 0 0; }
.panel .desc { margin: 12px 0 0; font-size: 15px; }
.panel .meta { margin: 12px 0 0; font-size: 14.5px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

/* Painel de edição */
.admin-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.admin-bar .input-search { flex: 1; min-width: 180px; margin: 0; }
.admin-bar select { padding: 10px; border-radius: 8px; border: 1px solid #CFCCC6; background: #fff; max-width: 100%; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.stat b { display: block; font-size: 22px; font-weight: 800; }
.stat span { font-size: 12.5px; color: var(--ink-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#pick-map { height: 230px; border-radius: 8px; margin-bottom: 6px; border: 1px solid var(--line); }
.zone-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.zone-checks label { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
#toast { position: fixed; z-index: 3000; left: 50%; bottom: 84px; transform: translateX(-50%); background: #222; color: #fff; padding: 9px 14px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 86vw; }
#toast.show { opacity: 1; }

@media (min-width: 900px) {
  #app { flex-direction: row; }
  .tabs { order: -1; flex-direction: column; width: 88px; height: auto; border-top: 0; border-right: 1px solid var(--line); padding: 12px 0; justify-content: flex-start; gap: 6px; }
  .tab { flex: none; height: 66px; }
  .sheet { left: 12px; right: auto; top: 150px; bottom: 16px; width: 340px; height: auto !important; max-height: none; border-radius: 12px; }
  .sheet-head::before { display: none; }
  #map { inset: 0; }
  .sheet:not(.open) .sheet-list { display: block; }
  .map-top { right: auto; width: 100%; padding-right: 72px; }
  .search { max-width: 360px; }
  .map-tools { bottom: 24px; }
  .modal { align-items: center; }
  .modal .panel { border-radius: 14px; }
}
