
/* Layout: app de mapa em tela cheia; navegação lateral no desktop, inferior no celular; painel de resultado à direita (desktop) ou painel inferior (celular). Tema claro, como na especificação EVSpot v1.0. */
:root {
  --ev-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ev-navy: #132c46; --ev-navy-active: #203f59; --ev-text: #142b45; --ev-text-muted: #596c83;
  --ev-primary: #007f83; --ev-primary-hover: #00676b; --ev-accent: #13c4be; --ev-primary-soft: #eaf8f7;
  --ev-background: #f4f7fa; --ev-surface: #ffffff; --ev-border: #d8e2eb; --ev-control-border: #7b8da0;
  --ev-success: #18764b; --ev-success-soft: #e6f6ec; --ev-warning: #8a5100; --ev-warning-soft: #fff0d6;
  --ev-danger: #b42332; --ev-danger-soft: #fdecef; --ev-focus: #1d63c6;
  --ev-orange: #d9661f; --ev-blue: #3a72c4;
  --map-land: #eef2ea; --map-block: #e4e9e0; --map-road: #ffffff; --map-road-edge: #d5dccf; --map-water: #cfe3ef; --map-park: #dcebd3; --map-br: #f3c98b; --map-br-edge: #d9a65a;
  --nav-fg: #c9d6e3;
  --ev-radius-control: 8px; --ev-radius-card: 12px; --ev-header-height: 64px; --ev-sidebar-width: 104px; --ev-control-height: 44px;
  --ev-shadow-card: 0 2px 8px rgb(19 44 70 / 5%); --ev-shadow-overlay: 0 12px 32px rgb(19 44 70 / 14%);
  color-scheme: light;
}
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
img { max-width: 100%; }
body { background: var(--ev-background); color: var(--ev-text); font-family: var(--ev-font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ev-focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--ev-sidebar-width) 1fr; grid-template-rows: var(--ev-header-height) 1fr; height: 100%; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; background: var(--ev-surface); border-bottom: 1px solid var(--ev-border); padding-block: 0; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; text-decoration: none; }
.brand .ev { color: var(--ev-primary); } .brand .spot { color: var(--ev-navy); }
.tagline { color: var(--ev-text-muted); font-size: 14px; padding-left: 16px; border-left: 1px solid var(--ev-border); }
.demo { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: var(--ev-warning-soft); color: var(--ev-warning); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ev-primary-soft); color: var(--ev-primary); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.sidebar { background: var(--ev-navy); display: flex; flex-direction: column; padding-block: 12px; z-index: 20; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; color: var(--nav-fg); text-decoration: none; font-size: 12px; font-weight: 500; text-align: center; line-height: 1.25; }
.nav a svg { width: 24px; height: 24px; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { background: var(--ev-navy-active); color: #fff; }
.nav a[aria-current="page"] svg { color: var(--ev-accent); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ev-accent); }
.side-user { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--nav-fg); font-size: 12px; padding: 12px 4px; text-align: center; line-height: 1.3; overflow-wrap: anywhere; }
.side-user { text-decoration: none; border-radius: 8px; } .side-user:hover { color: #fff; } .side-user:hover .avatar { outline: 2px solid var(--ev-accent); }
.side-user .avatar { background: var(--ev-navy-active); color: var(--ev-accent); }
main { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.view { position: absolute; inset: 0; overflow: auto; }
.page { max-width: 1440px; margin: 0 auto; padding-block: 32px 48px; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 32px; line-height: 1.2; }
.page-head p { color: var(--ev-text-muted); margin-top: 4px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ev-primary); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--ev-control-height); padding: 0 18px; border-radius: var(--ev-radius-control); border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ev-primary); color: #fff; }
.btn-primary:hover { background: var(--ev-primary-hover); }
.btn-primary:disabled { background: var(--ev-control-border); cursor: not-allowed; }
.btn-secondary { background: var(--ev-surface); color: var(--ev-primary); border-color: var(--ev-primary); }
.btn-secondary:hover { background: var(--ev-primary-soft); }
.btn-ghost { background: transparent; color: var(--ev-primary); padding: 0 10px; }
.btn-ghost:hover { background: var(--ev-primary-soft); }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--ev-radius-control); border: 1px solid var(--ev-border); background: var(--ev-surface); cursor: pointer; color: var(--ev-text); }
.icon-btn svg { width: 20px; height: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 14px; font-weight: 500; }
.field .help { font-size: 12px; color: var(--ev-text-muted); }
.input, .select { height: var(--ev-control-height); border: 1px solid var(--ev-control-border); border-radius: var(--ev-radius-control); background: var(--ev-surface); padding: 0 12px; font-size: 14px; width: 100%; min-width: 0; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23142b45' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 36px; }
.input[readonly] { background: var(--ev-background); color: var(--ev-text-muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--ev-border); border-radius: var(--ev-radius-control); font-size: 14px; background: var(--ev-surface); cursor: pointer; }
.seg input:checked + span { border-color: var(--ev-primary); background: var(--ev-primary-soft); color: var(--ev-primary); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--ev-focus); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ev-primary); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge svg { width: 14px; height: 14px; }
.b-ok { background: var(--ev-success-soft); color: var(--ev-success); }
.b-mid { background: var(--ev-primary-soft); color: var(--ev-primary); }
.b-warn { background: var(--ev-warning-soft); color: var(--ev-warning); }
.b-bad { background: var(--ev-danger-soft); color: var(--ev-danger); }
.b-neutral { background: var(--ev-background); color: var(--ev-text-muted); border: 1px solid var(--ev-border); }
.card { background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: var(--ev-radius-card); box-shadow: var(--ev-shadow-card); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; min-height: 44px; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--ev-control-border); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--ev-primary); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- map view ---------- */
#view-mapa { display: flex; overflow: hidden; }
.map-wrap { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--map-land); touch-action: none; }
#map { position: absolute; inset: 0; background: var(--map-land); }
#map.leaflet-container { font-family: var(--ev-font); cursor: crosshair; }
.map-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.search { position: relative; width: 360px; max-width: 100%; }
.search svg { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; color: var(--ev-text-muted); }
.search .input { padding-left: 40px; border-color: var(--ev-border); box-shadow: var(--ev-shadow-card); }
.search-results { position: absolute; top: 48px; left: 0; right: 0; background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: var(--ev-radius-control); box-shadow: var(--ev-shadow-overlay); overflow: hidden; z-index: 5; }
.search-results button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.search-results button:hover, .search-results button:focus-visible { background: var(--ev-primary-soft); }
.search-results small { display: block; color: var(--ev-text-muted); font-size: 12px; }
.layers { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: var(--ev-radius-control); border: 1px solid var(--ev-border); background: var(--ev-surface); font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: var(--ev-shadow-card); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.chip[aria-pressed="false"] { color: var(--ev-text-muted); background: var(--ev-background); }
.chip[aria-pressed="false"] .dot { opacity: .35; }
.zoom { position: absolute; right: 16px; bottom: 24px; display: flex; flex-direction: column; gap: 6px; }
.zoom .icon-btn { box-shadow: var(--ev-shadow-card); }
.legend { position: absolute; left: 16px; bottom: 24px; background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: var(--ev-radius-card); padding: 12px 14px; font-size: 12px; display: grid; gap: 6px; box-shadow: var(--ev-shadow-card); }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.attrib { position: absolute; right: 72px; bottom: 6px; font-size: 11px; color: var(--ev-text-muted); background: rgb(255 255 255 / 75%); padding: 1px 6px; border-radius: 4px; }
.hint { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); background: var(--ev-navy); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--ev-shadow-overlay); white-space: nowrap; pointer-events: none; }

/* popover / sheet */
.pop { position: absolute; width: 400px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); display: flex; flex-direction: column; background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: var(--ev-radius-card); box-shadow: var(--ev-shadow-overlay); z-index: 15; }
.pop-head { padding: 18px 20px 12px; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--ev-border); }
.pop-head h2 { font-size: 20px; line-height: 1.25; }
.pop-head p { font-size: 12px; color: var(--ev-text-muted); margin-top: 2px; }
.pop-head .icon-btn { margin-left: auto; border: 0; width: 36px; height: 36px; flex: none; }
.pop-body { padding: 16px 20px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.pop-foot { padding: 12px 20px 16px; border-top: 1px solid var(--ev-border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.loc-sum { display: flex; gap: 10px; align-items: flex-start; background: var(--ev-background); border-radius: var(--ev-radius-control); padding: 10px 12px; font-size: 13px; }
.loc-sum svg { width: 18px; height: 18px; color: var(--ev-primary); flex: none; margin-top: 2px; }
.loc-sum small { display: block; color: var(--ev-text-muted); font-size: 12px; }
.mode-road { background: var(--ev-warning-soft); color: var(--ev-warning); font-size: 13px; border-radius: var(--ev-radius-control); padding: 8px 12px; }
details.more { border: 1px solid var(--ev-border); border-radius: var(--ev-radius-control); }
details.more summary { cursor: pointer; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--ev-primary); list-style: none; display: flex; justify-content: space-between; }
details.more summary::after { content: "+"; font-size: 18px; line-height: 1; }
details.more[open] summary::after { content: "–"; }
details.more .inner { padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* result panel */
.panel { width: 420px; flex: none; background: var(--ev-surface); border-left: 1px solid var(--ev-border); display: flex; flex-direction: column; min-height: 0; z-index: 12; }
.panel-scroll { overflow: auto; flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.panel-foot { padding: 12px 24px 16px; border-top: 1px solid var(--ev-border); display: flex; gap: 8px; }
.panel-foot .btn { flex: 1; }
.panel-close { display: none; }
.p-title { display: flex; align-items: flex-start; gap: 8px; }
.p-title h2 { font-size: 24px; line-height: 1.25; margin-top: 4px; }
.p-title p { color: var(--ev-text-muted); font-size: 14px; }
.p-title .icon-btn { margin-left: auto; flex: none; border: 0; }
.stale { background: var(--ev-warning-soft); color: var(--ev-warning); border-radius: var(--ev-radius-control); padding: 10px 12px; font-size: 14px; display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sel-sum { padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; }
.sel-sum dt { color: var(--ev-text-muted); font-size: 12px; }
.sel-sum dd { margin: 0; font-weight: 500; }
.sel-sum .full { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.score-row { display: flex; align-items: center; gap: 20px; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring b { font-size: 40px; font-weight: 700; display: block; }
.ring small { display: block; font-size: 15px; font-weight: 600; color: var(--ev-text-muted); margin-top: -1px; }
.score-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.score-txt h3 { font-size: 18px; line-height: 1.35; }
.score-txt p { font-size: 14px; color: var(--ev-text-muted); }
.score-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.sec-title { font-size: 18px; font-weight: 600; line-height: 1.35; display: flex; justify-content: space-between; align-items: baseline; }
.sec-title small { font-size: 12px; font-weight: 400; color: var(--ev-text-muted); }
.pcards { display: flex; flex-direction: column; gap: 10px; }
.pcard { border: 1px solid var(--ev-border); border-radius: var(--ev-radius-card); background: var(--ev-surface); }
.pcard.sel { border: 2px solid var(--ev-primary); background: var(--ev-primary-soft); }
.pcard-main { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; width: 100%; text-align: left; border: 0; background: none; border-radius: var(--ev-radius-card); }
.pcard.sel .pcard-main { padding: 11px 13px; }
.kw { font-weight: 700; font-size: 20px; line-height: 1; }
.kw small { display: block; font-size: 11px; font-weight: 500; color: var(--ev-text-muted); margin-top: 4px; }
.pc-mid { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pc-mid .line1 { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pc-mid p { font-size: 13px; color: var(--ev-text-muted); line-height: 1.4; }
.pc-score { text-align: right; }
.pc-score b { font-size: 26px; font-weight: 700; line-height: 1; display: block; }
.pc-score small { display: block; font-size: 13px; font-weight: 600; color: var(--ev-text-muted); margin-top: 1px; }
.best-tag { font-size: 11px; font-weight: 700; color: var(--ev-primary); letter-spacing: 0.06em; text-transform: uppercase; }
.pcard-more { border-top: 1px solid var(--ev-border); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.pcard-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0 14px 12px; padding: 0 10px 0 8px; height: 32px; border: 1px solid var(--ev-border); border-radius: 999px; background: var(--ev-surface); color: var(--ev-primary); font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; transition: background .15s, border-color .15s; }
.pcard-toggle:hover { background: var(--ev-primary-soft); border-color: var(--ev-primary); }
.pcard-toggle small { font-weight: 400; color: var(--ev-text-muted); }
.pcard-toggle .chev { width: 14px; height: 14px; transform: rotate(180deg); transition: transform .15s; }
.pcard-toggle[aria-expanded="true"] .chev { transform: none; }
.ps-mini { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.ps-mini i { width: 4px; border-radius: 1px; background: var(--ev-primary); }
@media (max-width: 380px) { .pcard-toggle small { display: none; } }
.ps { display: flex; flex-direction: column; gap: 10px; }
.p-row { display: grid; grid-template-columns: 104px 1fr 32px; gap: 10px; align-items: center; font-size: 13px; }
.p-row .bar { height: 8px; background: var(--ev-border); border-radius: 999px; overflow: hidden; }
.p-row .bar i { display: block; height: 100%; background: var(--ev-primary); border-radius: 999px; }
.p-row b { text-align: right; }
.p-row .pn { font-weight: 600; }
.p-row .pn small { display: block; font-weight: 400; color: var(--ev-text-muted); font-size: 11px; }
.p-why { font-size: 12px; color: var(--ev-text-muted); grid-column: 2 / -1; margin-top: -6px; }
.alert-mini { font-size: 12px; background: var(--ev-warning-soft); color: var(--ev-warning); border-radius: 6px; padding: 6px 10px; }
.cars { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.cars svg { width: 28px; height: 28px; color: var(--ev-primary); flex: none; }
.cars b { font-size: 20px; }
.cars p { font-size: 13px; color: var(--ev-text-muted); }
.rede { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; }
.rede svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.rede b { font-size: 15px; }
.rede p { font-size: 13px; color: var(--ev-text-muted); }
.rede-boa { background: var(--ev-success-soft); border-color: transparent; } .rede-boa svg, .rede-boa b { color: var(--ev-success); }
.rede-possivel svg, .rede-possivel b { color: var(--ev-primary); }
.rede-obra { background: var(--ev-warning-soft); border-color: transparent; } .rede-obra svg, .rede-obra b { color: var(--ev-warning); }
.finds { display: grid; gap: 14px; }
.finds h4 { margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.finds h4 svg { width: 18px; height: 18px; }
.finds ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.finds li { padding-left: 14px; position: relative; }
.finds li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.f-good h4 { color: var(--ev-success); } .f-att h4 { color: var(--ev-warning); }
.note { font-size: 12px; color: var(--ev-text-muted); background: var(--ev-background); border-radius: var(--ev-radius-control); padding: 10px 12px; }
.skeleton { display: flex; flex-direction: column; gap: 12px; }
.sk { background: linear-gradient(90deg, var(--ev-background), var(--ev-border), var(--ev-background)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- saved ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { flex: 1 1 200px; max-width: 320px; }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ev-text-muted); background: var(--ev-background); padding: 12px 16px; border-bottom: 1px solid var(--ev-border); white-space: nowrap; }
table.list td { padding: 16px; border-bottom: 1px solid var(--ev-border); vertical-align: middle; }
table.list tr.sel td { background: var(--ev-primary-soft); }
table.list tr:last-child td { border-bottom: 0; }
.loc-cell { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.thumb { width: 56px; height: 56px; border-radius: 8px; flex: none; background: var(--map-land); border: 1px solid var(--ev-border); overflow: hidden; }
.loc-cell b { display: block; font-weight: 600; }
.loc-cell small { color: var(--ev-text-muted); font-size: 13px; }
.score-cell b { font-size: 18px; }
.score-cell small { color: var(--ev-text-muted); }
.sel-bar { position: sticky; bottom: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--ev-navy); color: #fff; border-radius: var(--ev-radius-card); padding: 10px 12px 10px 20px; box-shadow: var(--ev-shadow-overlay); font-size: 14px; }
.sel-bar .btn-ghost { color: #fff; }
.sel-bar .btn-ghost:hover { background: var(--ev-navy-active); }
.sel-bar .spacer { flex: 1; }
.saved-cards { display: none; }
.list-foot { padding: 12px 16px; font-size: 13px; color: var(--ev-text-muted); border-top: 1px solid var(--ev-border); }
.dash { color: var(--ev-text-muted); }

/* compare modal */
.modal-back { position: fixed; inset: 0; background: rgb(19 44 70 / 45%); z-index: 50; display: grid; place-items: center; padding: 24px; }
.modal { background: var(--ev-surface); border-radius: var(--ev-radius-card); box-shadow: var(--ev-shadow-overlay); width: min(960px, 100%); max-height: calc(100% - 16px); display: flex; flex-direction: column; }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--ev-border); display: flex; align-items: center; gap: 12px; }
.modal-head h2 { font-size: 22px; }
.modal-head .icon-btn { margin-left: auto; border: 0; }
.modal-body { overflow: auto; padding: 0 24px 24px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
table.cmp th, table.cmp td { padding: 12px 10px; border-bottom: 1px solid var(--ev-border); vertical-align: top; text-align: left; }
table.cmp th[scope="row"] { color: var(--ev-text-muted); font-weight: 500; width: 22%; font-size: 13px; }
table.cmp thead th { position: sticky; top: 0; background: var(--ev-surface); font-size: 16px; padding-top: 20px; }
table.cmp ul { margin: 0; padding-left: 16px; }
.cmp-diff { background: var(--ev-warning-soft); }

/* ---------- reports ---------- */
.rep-grid { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 24px; align-items: start; }
.rep-list { display: flex; flex-direction: column; }
.rep-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--ev-border); background: none; text-align: left; cursor: pointer; width: 100%; position: relative; }
.rep-item:hover { background: var(--ev-background); }
.rep-item.sel { background: var(--ev-primary-soft); }
.rep-item.sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ev-primary); }
.pdf-ico { width: 40px; height: 48px; flex: none; border-radius: 6px; background: var(--ev-danger-soft); color: var(--ev-danger); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.rep-item b { display: block; font-weight: 600; font-size: 14px; }
.rep-item small { color: var(--ev-text-muted); font-size: 12px; display: block; }
.rep-item .badge { margin-left: auto; }
.preview-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.preview-head h2 { font-size: 18px; }
.sheet-frame { background: #e9eef3; border-radius: 8px; padding: 16px; overflow: auto; position: relative; }
.sheet-frame.preview .sheet-scale { filter: blur(1.5px); user-select: none; }
.sheet-frame.preview::after { content: 'PRÉVIA · PLANO GRÁTIS'; position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(22px, 5vw, 44px)/1 Inter, sans-serif; letter-spacing: .08em; color: rgba(19, 44, 70, .28); transform: rotate(-28deg); pointer-events: none; }
.sheet-scale { transform-origin: top left; }
.preview-meta { font-size: 12px; color: var(--ev-text-muted); text-align: center; }
.back-btn { display: none; }

/* ---------- report sheet (A4) — mesma marcação do PDF ---------- */
.a4 { width: 794px; height: 1123px; background: #fff; color: #142b45; font-family: var(--ev-font); padding: 40px 44px 32px; display: flex; flex-direction: column; gap: 16px; font-size: 11.5px; line-height: 1.45; box-shadow: 0 2px 10px rgb(19 44 70 / 12%); }
.a4 h1, .a4 h2, .a4 h3 { margin: 0; }
.a4-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #132c46; padding-bottom: 12px; }
.a4-brand { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.a4-brand .ev { color: #007f83; } .a4-brand .spot { color: #132c46; }
.a4-brand small { display: block; font-size: 9.5px; font-weight: 500; color: #596c83; letter-spacing: 0; }
.a4-client { display: flex; align-items: center; gap: 10px; font-size: 10px; color: #596c83; text-align: left; }
.a4-client img { max-height: 44px; max-width: 150px; object-fit: contain; display: block; }
.a4-client b { display: block; font-size: 12px; color: #142b45; }
.a4-client span { display: block; }
.a4-brand-right { flex-direction: row-reverse; text-align: right; }
.a4-title { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
.a4-title .eyebrow { font-size: 9.5px; }
.a4-title h1 { font-size: 24px; line-height: 1.2; margin-top: 2px; }
.a4-title p { color: #596c83; font-size: 11px; }
.a4-meta { text-align: right; font-size: 10px; color: #596c83; }
.a4-hero { display: grid; grid-template-columns: 170px 1fr; gap: 18px; background: #eaf8f7; border-radius: 10px; padding: 16px 18px; align-items: center; }
.a4-rec { text-align: center; }
.a4-rec .lbl { font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #007f83; }
.a4-rec .kwbig { font-size: 40px; font-weight: 700; line-height: 1.05; color: #132c46; }
.a4-rec .sc { font-size: 13px; font-weight: 600; }
.a4-hero-txt h2 { font-size: 15px; line-height: 1.35; }
.a4-hero-txt p { margin-top: 4px; }
.a4-hero-txt .chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.a4-chip { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid #b9dcdc; color: #00676b; }
.a4-chip.w { background: #fff0d6; border-color: #f0d6a8; color: #8a5100; }
.a4-sec { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #596c83; margin-bottom: 6px; }
.a4-pw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.a4-pc { border: 1px solid #d8e2eb; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.a4-pc.best { border: 2px solid #007f83; padding: 9px 11px; }
.a4-pc .top { display: flex; justify-content: space-between; align-items: baseline; }
.a4-pc .top b { font-size: 16px; }
.a4-pc .top span { font-size: 20px; font-weight: 700; }
.a4-pc .selo { font-size: 10px; font-weight: 600; }
.a4-pc p { font-size: 10px; color: #596c83; }
.a4-3p { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.a4-p { background: #f4f7fa; border-radius: 8px; padding: 10px 12px; }
.a4-p .h { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; }
.a4-p .bar { height: 6px; background: #d8e2eb; border-radius: 99px; margin: 6px 0; overflow: hidden; }
.a4-p .bar i { display: block; height: 100%; background: #007f83; }
.a4-p p { font-size: 10px; color: #3d5068; }
.a4-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.a4 ul { margin: 0; padding-left: 14px; display: grid; gap: 3px; }
.a4-good li::marker { color: #18764b; } .a4-att li::marker { color: #8a5100; }
.a4-chk { border: 1px solid #d8e2eb; border-radius: 8px; padding: 10px 14px; }
.a4-chk ul { list-style: none; padding: 0; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.a4-chk li { padding-left: 16px; position: relative; }
.a4-chk li::before { content: ""; position: absolute; left: 0; top: 3px; width: 9px; height: 9px; border: 1.5px solid #7b8da0; border-radius: 2px; }
.a4-chk .dist { font-size: 10px; color: #596c83; margin-top: 6px; }
.a4-foot { margin-top: auto; border-top: 1px solid #d8e2eb; padding-top: 8px; font-size: 9px; color: #596c83; display: flex; justify-content: space-between; gap: 16px; }

/* ---------- settings / plans ---------- */
.set-grid { display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); gap: 24px; align-items: start; }
.set-col { display: flex; flex-direction: column; gap: 24px; }
.set-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.set-card h2 { font-size: 18px; font-weight: 600; }
.set-card .sub { font-size: 14px; color: var(--ev-text-muted); margin-top: -10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-row { display: flex; align-items: center; gap: 16px; }
.profile-row .avatar { width: 64px; height: 64px; font-size: 22px; }
.logo-drop { display: flex; align-items: center; gap: 16px; border: 1px dashed var(--ev-control-border); border-radius: var(--ev-radius-control); padding: 14px; }
.logo-box { width: 72px; height: 48px; border-radius: 6px; background: var(--ev-background); display: grid; place-items: center; font-size: 11px; color: var(--ev-text-muted); overflow: hidden; flex: none; }
.logo-box img { max-width: 100%; max-height: 100%; }
.plan-now { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--ev-primary-soft); border-radius: var(--ev-radius-control); padding: 14px 16px; }
.plan-now b { display: block; }
.plan-now small { color: var(--ev-text-muted); font-size: 13px; }
.save-bar { position: sticky; bottom: 0; background: var(--ev-surface); border-top: 1px solid var(--ev-border); padding: 12px 0; display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.save-bar .msg { margin-right: auto; font-size: 13px; color: var(--ev-text-muted); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.plan.rec { border: 2px solid var(--ev-primary); }
.plan h2 { font-size: 20px; }
.plan .for { color: var(--ev-text-muted); font-size: 14px; }
.plan .price { font-size: 14px; font-weight: 600; color: var(--ev-warning); background: var(--ev-warning-soft); border-radius: 6px; padding: 6px 10px; align-self: flex-start; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; }
.plan li { display: flex; gap: 8px; }
.plan li svg { width: 18px; height: 18px; color: var(--ev-success); flex: none; margin-top: 2px; }
.plan li.no { color: var(--ev-text-muted); }
.plan li.no svg { color: var(--ev-control-border); }
.plan .btn { margin-top: auto; }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--ev-navy); color: #fff; padding: 12px 18px; border-radius: var(--ev-radius-control); font-size: 14px; z-index: 80; box-shadow: var(--ev-shadow-overlay); max-width: calc(100% - 32px); }
.mobile-nav { display: none; }
.sheet-handle { display: none; }

/* Sem login: sem menu, só a tela de entrar */
body.guest .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
body.guest .sidebar, body.guest .mobile-nav { display: none !important; }

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
  .app { grid-template-columns: 72px 1fr; }
  .nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .side-user span { display: none; }
  .panel { width: 360px; }
  .page { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
  .rep-grid, .set-grid { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .tagline { display: none; }
}
/* ---------- celular ---------- */
@media (max-width: 767px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .topbar { flex-wrap: wrap; row-gap: 6px; padding-block: 6px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .brand { font-size: 22px; }
  .brand svg { width: 26px; height: 26px; }
  .demo { display: none; }
  .topbar .avatar { margin-left: auto; width: 32px; height: 32px; }
  .sidebar { display: none; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ev-navy); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); z-index: 40; }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; color: var(--nav-fg); font-size: 11px; text-decoration: none; min-height: 56px; justify-content: center; }
  .mobile-nav a svg { width: 22px; height: 22px; }
  .mobile-nav a[aria-current="page"] { color: #fff; }
  .mobile-nav a[aria-current="page"] svg { color: var(--ev-accent); }
  .page { padding-block: 20px 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 16px; }
  .page-head h1 { font-size: 24px; }
  .search { width: 100%; }
  .filters .field { max-width: none; flex-basis: 100%; }
  .map-top { top: 12px; left: 12px; right: 12px; }
  .layers { display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; max-width: 100%; }
  .layers .chip { flex: 1 1 auto; height: 36px; padding: 0 8px; gap: 5px; font-size: 12.5px; justify-content: center; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .hide-m { display: none; }
  @media (max-width: 359px) { .layers .chip { font-size: 12px; padding: 0 6px; gap: 4px; } }
  .layers .chip .dot { width: 8px; height: 8px; flex: none; }
  .chip { height: 36px; font-size: 13px; flex: none; }
  .legend { display: none; }
  .hint { top: auto; bottom: 88px; font-size: 10.5px; padding: 8px 13px; }
  .zoom { bottom: 16px; right: 12px; }
  .attrib { right: 64px; }
  .pop { position: fixed !important; left: 0 !important; right: 0; top: auto !important; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); width: 100%; max-width: 100%; max-height: calc(100% - 56px - 96px); border-radius: 16px 16px 0 0; z-index: 60; }
  .pop-foot .btn { flex: 1; }
  .sheet-handle { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--ev-border); margin: 8px auto 0; }
  /* Análise aberta ocupa a tela toda (o mapa fica atrás); o X volta para o mapa. */
  .panel { position: fixed; left: 0; right: 0; top: 0; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); width: 100%; padding-top: env(safe-area-inset-top, 0px); border-left: 0; z-index: 45; }
  #pExpand { display: none; }
  .panel-scroll { padding: 12px 16px 16px; }
  .panel-foot { padding: 10px 16px 12px; }
  .panel-close { display: grid; }
  .p-title h2 { font-size: 20px; }
  .ring { width: 96px; height: 96px; } .ring b { font-size: 34px; }
  .grid2, .checks, .form-grid { grid-template-columns: 1fr; }
  .table-wrap.desk { display: none; }
  .saved-cards { display: flex; flex-direction: column; }
  .saved-card { display: grid; grid-template-columns: auto 56px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--ev-border); align-items: start; }
  .saved-card.sel { background: var(--ev-primary-soft); }
  .saved-card .acts { grid-column: 2 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .rep-grid.showing .rep-list-card { display: none; }
  .rep-grid:not(.showing) .preview-card { display: none; }
  .back-btn { display: inline-flex; }
  .plans { grid-template-columns: 1fr; }
  .modal-back { padding: 0; }
  .modal { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .sel-bar { bottom: 8px; }
  .save-bar .btn { flex: 1; }
  .save-bar .msg { display: none; }
}

/* ---------- Leaflet e marcadores ---------- */
.leaflet-control-attribution { font-size: 11px; }
.leaflet-control-zoom { display: none; }
.mk-sel { width: 36px; height: 44px; }
.mk-charger { width: 20px; height: 20px; border-radius: 5px; background: var(--ev-orange); border: 2px solid #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); }
.mk-charger svg { width: 12px; height: 12px; }
.mk-saved { width: 18px; height: 18px; border-radius: 50%; background: var(--ev-navy); border: 3px solid #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 30%); }
.mk-poi { width: 10px; height: 10px; border-radius: 50%; background: var(--ev-blue); border: 1.5px solid #fff; }
.leaflet-tooltip { font-family: var(--ev-font); font-size: 12px; border-radius: 6px; }
.outside { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 360px; width: calc(100% - 32px); padding: 20px; z-index: 16; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; box-shadow: var(--ev-shadow-overlay); }
.err-box { background: var(--ev-danger-soft); color: var(--ev-danger); border-radius: var(--ev-radius-control); padding: 10px 12px; font-size: 14px; }
.crit { display: grid; gap: 6px; }
.crit-row { display: grid; grid-template-columns: 1fr 64px 28px; gap: 8px; align-items: center; font-size: 12px; color: var(--ev-text-muted); }
.crit-row .bar { height: 5px; background: var(--ev-border); border-radius: 99px; overflow: hidden; }
.crit-row .bar i { display: block; height: 100%; background: var(--ev-control-border); }
.crit-row b { text-align: right; color: var(--ev-text); font-weight: 600; }
.gaps { font-size: 12px; color: var(--ev-warning); margin: 0; padding-left: 16px; }
@media print { body * { visibility: hidden; } }
.a4-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.a4-facts div { background: #f4f7fa; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.a4-facts b { font-size: 15px; color: #132c46; }
.a4-facts span { font-size: 9.5px; color: #596c83; line-height: 1.3; }
.map-top, .legend, .zoom, .hint { z-index: 800; }
.pop, .outside { z-index: 900; }
@media (max-width: 767px) { .pop { z-index: 1100; } .panel { z-index: 1050; } }
@media (max-width: 767px) { .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* Sugestões de cidade */
.ac-wrap { position: relative; }
.ac-list { top: 48px; max-height: 280px; overflow: auto; z-index: 20; }
.ac-list button.on { background: var(--ev-primary-soft); }
.ac-list small { display: inline; margin-left: 6px; }
.search-results small { color: var(--ev-text-muted); font-size: 12px; }
.ac-empty { padding: 12px 14px; font-size: 14px; color: var(--ev-text-muted); }
.set-card { overflow: visible; }

/* Foto de perfil */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.photo-acts .help { flex-basis: 100%; font-size: 12px; color: var(--ev-text-muted); }
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-acts label.btn:has(+ .sr-file:focus-visible) { outline: 2px solid var(--ev-focus); outline-offset: 2px; }
.crop { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 0 4px; }
.crop-canvas { width: min(280px, 100%); aspect-ratio: 1; border-radius: 12px; touch-action: none; cursor: grab; }
.crop-canvas:active { cursor: grabbing; }
.crop-zoom { display: flex; align-items: center; gap: 10px; width: min(280px, 100%); font-size: 14px; font-weight: 500; }
.crop-zoom input { flex: 1; accent-color: var(--ev-primary); }
.crop .help { font-size: 12px; color: var(--ev-text-muted); text-align: center; }
.crop-actions { display: flex; gap: 8px; justify-content: flex-end; width: 100%; }
@media (min-width: 768px) { .modal.narrow { width: min(420px, 100%); } }
/* Leaflet usa z-index 400+; isola o mapa para não cobrir avisos e modais. */
.map-wrap { isolation: isolate; }
.toast { z-index: 3000; }
.modal-back { z-index: 2500; }
.btn.done { background: var(--ev-success); border-color: var(--ev-success); color: #fff; }

/* Conta */
.auth-page { min-height: 100%; justify-content: center; align-items: center; }
.auth-card { width: min(420px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-tabs label { flex: 1; } .auth-tabs span { width: 100%; justify-content: center; }
.top-out { height: 36px; padding-inline: 12px; }
.google-btn { gap: 10px; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--ev-text-muted); font-size: 13px; margin: -4px 0; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--ev-border); }
.ok-box { background: var(--ev-success-soft); color: var(--ev-success); border-radius: var(--ev-radius-control); padding: 10px 12px; font-size: 14px; }
.plan-btns { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.price small { font-weight: 500; }
a.avatar { text-decoration: none; }

/* ---------- animação "Analisando" ---------- */
.analyzing { display: flex; flex-direction: column; gap: 14px; }
.an-head { display: flex; align-items: center; gap: 12px; }
.an-head b { display: block; font-size: 16px; color: var(--ev-navy); }
.an-head small { color: var(--ev-text-muted); font-size: 13px; }
.an-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ev-primary-soft); border-top-color: var(--ev-primary); animation: an-rot .8s linear infinite; flex: none; }
.an-bar { height: 6px; background: var(--ev-primary-soft); border-radius: 999px; overflow: hidden; }
.an-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ev-primary), var(--ev-accent)); border-radius: inherit; transition: width .35s ease; }
.an-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.an-steps li { display: flex; gap: 10px; align-items: flex-start; opacity: .35; transition: opacity .25s; }
.an-steps li.on, .an-steps li.done { opacity: 1; }
.an-steps b { display: block; font-size: 14px; font-weight: 600; }
.an-steps small { color: var(--ev-text-muted); font-size: 12px; }
.an-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ev-border); flex: none; margin-top: 1px; position: relative; }
.an-steps li.on .an-dot { border-color: var(--ev-primary); border-top-color: transparent; animation: an-rot .7s linear infinite; }
.an-steps li.done .an-dot { background: var(--ev-primary); border-color: var(--ev-primary); }
.an-steps li.done .an-dot::after { content: ''; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes an-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .an-spin, .an-steps li.on .an-dot { animation: none; } }

.legal-links { text-align: center; font-size: 13px; color: var(--ev-text-muted); margin: 24px 0 8px; }
.legal-links a { color: var(--ev-text-muted); }

/* Fontes dos dados (login e planos) */
.sources { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; margin: 20px auto 0; max-width: 560px; font-size: 12px; color: var(--ev-text-muted); text-align: center; }
.sources span { flex-basis: 100%; }
.sources img { height: 28px; width: auto; }
.sources img.box { border-radius: 4px; }

/* Nada passa da largura da tela no celular */
.set-col, .set-card, .rep-grid > *, .profile-row > * { min-width: 0; }
.sheet-frame { overflow: hidden; }

/* Zoom com os dedos só no mapa; campos com 16px para o iPhone não aproximar ao tocar */
html, body { touch-action: pan-x pan-y; }
@media (max-width: 767px) { .input, .select, textarea { font-size: 16px; } }

/* Chave Mensal / Anual na assinatura */
.cycle-toggle { display: inline-flex; align-self: center; background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: 999px; padding: 4px; gap: 4px; }
.cycle-toggle label { position: relative; }
.cycle-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.cycle-toggle span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ev-text-muted); cursor: pointer; }
.cycle-toggle input:checked + span { background: var(--ev-primary); color: #fff; }
.cycle-toggle input:focus-visible + span { outline: 2px solid var(--ev-focus); outline-offset: 2px; }
.cycle-toggle .save { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--ev-success-soft, #e3f4ea); color: var(--ev-success, #18764b); }
.price-sub { margin: 4px 0 0; font-size: 13px; color: var(--ev-text-muted); }
@media (max-width: 767px) { .plans .plan.rec { order: -1; } }
