/* MeuSinal · visual estilo iOS (claro e escuro automáticos) */
:root {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --ink: #000000;
  --ink2: #3A3A3C;
  --muted: #6C6C70;
  --faint: #AEAEB2;
  --sep: #C6C6C8;
  --sep2: #E5E5EA;
  --fill: #E3E3E8;
  --fill2: #F2F2F7;
  --accent: #0062CC;      /* texto e ícones de ação */
  --accent-fill: #0062CC; /* fundo de botões, com texto branco */
  --accent-ink: #FFFFFF;
  --accent-soft: #E5F0FB;
  --ok: #248A3D; --ok-soft: #E8F7EC; --ok-ink: #1E7B34;
  --warn-soft: #FFF2E0; --warn-ink: #A34B00;
  --bad: #D70015;
  --q-ex: #34C759; --q-bo: #A3C40F; --q-re: #FFCC00; --q-ru: #FF9500; --q-ss: #FF3B30;
  --qi-ex: #1E7B34; --qi-bo: #55660A; --qi-re: #7A5C00; --qi-ru: #A34B00; --qi-mr: #B4001A;
  --qs-ex: #E8F7EC; --qs-bo: #F1F6DC; --qs-re: #FFF7D6; --qs-ru: #FFF2E0; --qs-mr: #FFE8E6;
  --shadow: 0 1px 3px rgba(0, 0, 0, .05);
  --r: 20px;
  --tabh: 58px;
  --f: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, system-ui, 'Segoe UI', Roboto, sans-serif;
  --f-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Inter, system-ui, sans-serif;
  --f-body: var(--f);
  --surface: var(--card); --line: var(--sep2); /* nomes usados pelo mapa e pelo admin */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --card: #1C1C1E; --ink: #FFFFFF; --ink2: #E5E5EA; --muted: #98989F; --faint: #636366;
    --sep: #38383A; --sep2: #2C2C2E; --fill: #2C2C2E; --fill2: #2C2C2E;
    --accent: #5AA9FF; --accent-fill: #0A6CDB; --accent-ink: #FFFFFF; --accent-soft: #0A2A4A;
    --ok: #30D158; --ok-soft: #10301A; --ok-ink: #30D158;
    --warn-soft: #3A2600; --warn-ink: #FFB340; --bad: #FF453A;
    --qi-ex: #30D158; --qi-bo: #C4E24A; --qi-re: #FFD60A; --qi-ru: #FF9F0A; --qi-mr: #FF6961;
    --qs-ex: #10301A; --qs-bo: #283212; --qs-re: #3A3000; --qs-ru: #3A2600; --qs-mr: #3A1210;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.35;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ícones (sprite) */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.fill { fill: currentColor; stroke: none; }
.ic.xs { width: 14px; height: 14px; }

/* ---------- estrutura ---------- */
#app { padding-bottom: calc(var(--tabh) + env(safe-area-inset-bottom, 0px) + 8px); }
.page {
  max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px));
}
.center-page { min-height: calc(100dvh - var(--tabh) - env(safe-area-inset-bottom, 0px) - 8px); align-items: stretch; }
.grow { flex: 1; }
.large-title { margin: 0; font: 800 34px/1.1 var(--f-display); letter-spacing: -0.02em; }
.top-gap { margin-top: 30px; }
.title1 { margin: 0; font: 800 28px/1.15 var(--f-display); letter-spacing: -0.01em; }
.title2 { margin: 0 4px; font: 700 20px/1.2 var(--f-display); }
.title3 { margin: 0; font: 700 19px/1.2 var(--f-display); }
.caption { margin: 0 4px; font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.foot { margin: 0 4px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.hint { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.eyebrow { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.group { display: flex; flex-direction: column; gap: 8px; }
.group-head { display: flex; align-items: center; justify-content: space-between; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.prose { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink2); line-height: 1.45; }
.prose p { margin: 0; }
.prose strong { color: var(--ink); }
.prose.small { font-size: 14px; }

/* ---------- botões ---------- */
.cta {
  min-height: 52px; border: 0; border-radius: 14px; background: var(--accent-fill); color: var(--accent-ink);
  font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; width: 100%;
}
.cta.big { min-height: 60px; border-radius: 16px; font-size: 19px; }
.cta:disabled { background: var(--fill); color: var(--muted); cursor: default; }
.cta[aria-busy=true] { opacity: .75; }
.btn-plain { border: 0; background: none; color: var(--accent); font-size: 17px; min-height: 44px; padding: 0 4px; }
.btn-plain.strong { font-weight: 600; }
.btn-plain.small { font-size: 15px; min-height: 36px; }
.btn-plain.wide { width: 100%; }
.btn-danger { border: 0; background: var(--bad); color: #fff; border-radius: 12px; min-height: 44px; padding: 0 18px; font-weight: 600; }
.link { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; font-size: 15px; text-align: left; }
.chip-btn { border: 0; background: var(--fill2); color: var(--ink2); border-radius: 999px; font-size: 12px; font-weight: 600; padding: 6px 10px; min-height: 30px; }
.pill { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--fill); color: var(--ink2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn-ink); }

/* ---------- navbar ---------- */
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: -6px; }
.navbar.end { justify-content: flex-end; }
.nav-back { border: 0; background: none; color: var(--accent); font-size: 17px; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0; margin-left: -6px; }
.nav-back .ic { width: 26px; height: 26px; stroke-width: 2.6; }

/* ---------- início ---------- */
.home-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 12px; }
.brand-line { display: flex; align-items: center; gap: 8px; }
.brand-bars { width: 26px; height: 21px; fill: var(--accent); flex: none; }
.sub-line { margin: 4px 0 0; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.net-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); white-space: nowrap; margin-top: 6px; }
.net-chip .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--faint); }
.net-chip[data-kind=cellular] .dot { background: var(--ok); }
.net-chip[data-kind=wifi] .dot { background: #FF9500; }
.net-chip[data-kind=offline] .dot { background: var(--q-ss); }
.hero { display: flex; flex-direction: column; gap: 16px; border-radius: 24px; padding: 20px; }
.hero-op { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-op-name { display: block; font: 700 22px/1.2 var(--f-display); margin-top: 2px; }
.hero-note { margin: -4px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { border: 0; background: var(--card); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; box-shadow: var(--shadow); min-height: 124px; }
.tile-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--t); color: #fff; display: grid; place-items: center; margin-bottom: 10px; }
.tile-t { font-size: 17px; font-weight: 600; }
.tile-s { font-size: 13px; color: var(--muted); }
.row-card { border: 0; width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; border-radius: 18px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-t { font-size: 17px; font-weight: 600; }
.row-s { font-size: 13px; color: var(--muted); }
.row-card .chev, .li .chev { width: 16px; height: 16px; color: var(--faint); stroke-width: 2.8; }
.badge { width: 46px; height: 46px; border-radius: 23px; display: grid; place-items: center; font-size: 17px; font-weight: 800; flex: none; background: var(--fill); color: var(--ink2); }
.badge[data-q=ex] { background: var(--qs-ex); color: var(--qi-ex); }
.badge[data-q=bo] { background: var(--qs-bo); color: var(--qi-bo); }
.badge[data-q=re] { background: var(--qs-re); color: var(--qi-re); }
.badge[data-q=ru] { background: var(--qs-ru); color: var(--qi-ru); }
.badge[data-q=mr] { background: var(--qs-mr); color: var(--qi-mr); }
.badge.sm { width: 40px; height: 40px; font-size: 15px; }

.rep-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rep { border: 0; background: var(--card); border-radius: 16px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); min-height: 76px; }
.rep[aria-busy=true] { opacity: .5; }
.bars4 { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.bars4 b { width: 5px; border-radius: 1.5px; background: var(--fill); }
.bars4 b:nth-child(1) { height: 6px; } .bars4 b:nth-child(2) { height: 10px; } .bars4 b:nth-child(3) { height: 15px; } .bars4 b:nth-child(4) { height: 20px; }
.bars4[data-n="4"] b { background: var(--q-ex); }
.bars4[data-n="3"] b:nth-child(-n+3) { background: var(--q-bo); }
.bars4[data-n="1"] b:nth-child(1) { background: var(--q-ru); }
.bars4[data-n="0"] { position: relative; }
.bars4[data-n="0"]::after { content: ''; position: absolute; left: -2px; right: -2px; top: 9px; height: 2px; background: var(--q-ss); transform: rotate(-35deg); }

.banner { border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.4; background: var(--accent-soft); color: var(--ink); }
.banner.warn { background: var(--warn-soft); color: var(--ink); }

/* ---------- medindo ---------- */
.test-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; color: var(--muted); margin-top: 12px; }
#view-teste .title1 { text-align: center; margin-top: 10px; }
.meter { position: relative; width: 100%; max-width: 340px; margin: 0 auto; }
.gauge { width: 100%; display: block; }
.g-track { fill: none; stroke: var(--fill); stroke-width: 18; stroke-linecap: round; }
.g-fill { fill: none; stroke: var(--accent); stroke-width: 18; stroke-linecap: round; transition: stroke-dashoffset .35s ease; }
.g-ticks line { stroke: var(--faint); stroke-width: 2; }
.g-ticks text { fill: var(--muted); font: 600 11px var(--f); }
.meter-read { position: absolute; left: 0; right: 0; top: 34%; display: flex; flex-direction: column; align-items: center; }
.meter-num { display: flex; flex-direction: column; align-items: center; }
.meter-num span { font: 800 58px/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.meter-num small { font-size: 16px; font-weight: 600; color: var(--muted); }
.meter-sub { font-size: 14px; color: var(--muted); margin-top: 6px; text-align: center; }
.steps { list-style: none; margin: 0; padding: 0 !important; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--sep2); }
.steps li:first-child { border-top: 0; }
.st { width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--faint); flex: none; display: grid; place-items: center; }
.st-t { flex: 1; color: var(--muted); }
.st-v { font-variant-numeric: tabular-nums; color: var(--muted); }
.steps li[data-s=run] .st { border: 3px solid var(--accent); }
.steps li[data-s=run] .st::after { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.steps li[data-s=run] .st-t { color: var(--ink); font-weight: 600; }
.steps li[data-s=done] .st { border: 0; background: var(--ok); }
.steps li[data-s=done] .st::after { content: ''; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.steps li[data-s=done] .st-t { color: var(--ink); }
.progress { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .3s; }

/* ---------- resultado ---------- */
.result { display: flex; flex-direction: column; gap: 16px; }
.score-card { display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 24px; padding: 22px 18px; }
.score { --p: 0; --c: var(--faint); width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 3.6deg), var(--fill) 0); }
.score[data-q=ex] { --c: var(--q-ex); } .score[data-q=bo] { --c: var(--q-bo); } .score[data-q=re] { --c: var(--q-re); }
.score[data-q=ru] { --c: var(--q-ru); } .score[data-q=mr] { --c: var(--q-ss); }
.score-in { width: 112px; height: 112px; border-radius: 50%; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-num { font: 800 44px/1 var(--f-display); letter-spacing: -0.02em; }
.score-of { font-size: 12px; font-weight: 600; color: var(--muted); }
.score-card .title1 { margin-top: 8px; }
.score-meta { margin: 0; font-size: 15px; color: var(--muted); text-align: center; }
.big3 { margin: 12px 0 0; align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.big3 > div { background: var(--fill2); border-radius: 14px; padding: 12px 6px; text-align: center; display: flex; flex-direction: column; }
.big3 dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.big3 dd { margin: 2px 0 0; display: flex; flex-direction: column; }
.big3 .v { font: 800 23px/1.15 var(--f-display); font-variant-numeric: tabular-nums; }
.big3 .u { font-size: 12px; color: var(--muted); }
.uses-line { margin: 6px 0 0; font-size: 14px; color: var(--ink2); text-align: center; }
.pin-card { display: flex; flex-direction: column; gap: 10px; border-radius: 22px; }
.pin-done, .pin-kept { display: flex; align-items: center; gap: 12px; border-radius: 22px; }
.pin-done { background: var(--ok-soft); }
.pin-ok { width: 40px; height: 40px; border-radius: 20px; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.pin-ok .ic { stroke-width: 2.8; }
.pin-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pin-txt span { font-size: 14px; color: var(--muted); }
.pin-done strong, .pin-done .link { color: var(--ok-ink); }

.sig-card { display: flex; flex-direction: column; gap: 14px; border-radius: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sig-main { display: flex; align-items: center; gap: 14px; }
.bars { display: inline-flex; align-items: flex-end; gap: 4px; height: 34px; }
.bars i { width: 8px; border-radius: 2px; background: var(--fill); }
.bars i:nth-child(1) { height: 10px; } .bars i:nth-child(2) { height: 17px; } .bars i:nth-child(3) { height: 25px; } .bars i:nth-child(4) { height: 34px; }
.bars[data-n="4"] i { background: var(--q-ex); }
.bars[data-n="3"] i:nth-child(-n+3) { background: var(--q-bo); }
.bars[data-n="2"] i:nth-child(-n+2) { background: var(--q-re); }
.bars[data-n="1"] i:nth-child(1) { background: var(--q-ru); }
.sig-val b { font: 800 26px var(--f-display); font-variant-numeric: tabular-nums; }
.sig-val .unit { font-weight: 700; }
.sig-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.sig-src { font-size: 13px; color: var(--muted); }
.kv { margin: 0; display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--sep2); font-size: 15px; }
.kv > div:first-child { border-top: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
#sigDetail:empty { display: none; }

.erb-card { display: flex; flex-direction: column; gap: 10px; }
.ruler { display: flex; flex-direction: column; gap: 6px; }
.ruler-line { display: flex; align-items: center; gap: 8px; }
.ruler-me { width: 14px; height: 14px; border-radius: 7px; background: var(--accent); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--accent); flex: none; }
.ruler-dash { flex: 1; height: 0; border-top: 3px dashed var(--c); }
.ruler-dist { font-size: 15px; font-weight: 800; color: var(--ink); background: var(--fill2); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ruler-sub { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.erb-map { height: 220px; border-radius: 14px; background: var(--fill); z-index: 0; }
.erb-title { font-size: 17px; font-weight: 600; }
.erb-addr { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { font-size: 13px; background: var(--fill2); border-radius: 999px; padding: 5px 10px; }
.erb-key { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); align-items: center; }
.erb-key span { display: inline-flex; align-items: center; gap: 6px; }
.me-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--sep); }
.sector-sw { width: 16px; height: 12px; background: color-mix(in srgb, var(--ink) 18%, transparent); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.erb-alt { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); display: grid; gap: 3px; }
.btn-soft { border: 0; background: var(--fill2); color: var(--accent); border-radius: 12px; min-height: 44px; font-size: 16px; font-weight: 600; width: 100%; }

.disclose summary { cursor: pointer; font-size: 16px; font-weight: 600; color: var(--accent); list-style: none; min-height: 28px; display: flex; align-items: center; }
.disclose summary::-webkit-details-marker { display: none; }
.disclose[open] summary { margin-bottom: 10px; }
.sig-card .disclose summary { font-size: 15px; font-weight: 500; }
.dbm-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.dbm-row input { width: 110px; min-height: 44px; border-radius: 10px; border: 1px solid var(--sep); background: var(--card); padding: 0 12px; font-size: 17px; }
.dbm-out { font-weight: 600; }
.uses { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.uses li { display: flex; justify-content: space-between; gap: 10px; }
.tag { font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--fill); }
.tag.q4, .tag.q3 { background: var(--qs-ex); color: var(--qi-ex); }
.tag.q2 { background: var(--qs-re); color: var(--qi-re); }
.tag.q1, .tag.q0 { background: var(--qs-mr); color: var(--qi-mr); }

.share-targets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.target { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 0; }
.t-ic { width: 58px; height: 58px; border-radius: 16px; background: var(--t); color: #fff; display: grid; place-items: center; }
.t-ic.gray { background: var(--fill); color: var(--ink2); }
.t-ic .ic { width: 28px; height: 28px; }
.t-ic.gray .ic { stroke-width: 3.2; }

/* ---------- listas estilo Ajustes ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 52px; border: 0; background: none; width: 100%; text-align: left; font-size: 17px; color: var(--ink); position: relative; }
.list > .li + .li::before { content: ''; position: absolute; top: 0; right: 0; left: 58px; height: 1px; background: var(--sep2); }
.list > .li.danger + .li.danger::before { left: 16px; }
.li-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--t); color: #fff; display: grid; place-items: center; flex: none; }
.li-ic .ic { width: 18px; height: 18px; stroke-width: 2.3; }
.li-t { flex: 1; display: flex; flex-direction: column; gap: 1px; padding: 10px 0; }
.li-t small { font-size: 13px; color: var(--muted); }
.li-v { color: var(--muted); font-size: 16px; text-align: right; }
.li.danger { color: var(--bad); }
.li-ok { color: var(--ok); }
.li-ok .ic { stroke-width: 2.8; }
.switch { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fill); position: relative; flex: none; margin: 0; cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* segmented control */
.seg { background: var(--fill); border-radius: 10px; padding: 3px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; }
.seg button { border: 0; background: transparent; border-radius: 8px; min-height: 34px; font-size: 14px; font-weight: 500; color: var(--ink2); }
.seg button[aria-checked=true] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (prefers-color-scheme: dark) { .seg button[aria-checked=true] { background: #636366; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; background: var(--card); border-radius: 999px; min-height: 40px; padding: 0 16px; font-size: 15px; font-weight: 600; box-shadow: var(--shadow); }
.chip[aria-checked=true] { background: var(--accent-fill); color: var(--accent-ink); }
.amb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.amb button { border: 2px solid transparent; background: var(--card); border-radius: 14px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow); }
.amb button[aria-checked=true] { border-color: var(--accent); }
.amb-ic { width: 38px; height: 38px; border-radius: 19px; background: var(--fill2); color: var(--ink2); display: grid; place-items: center; }
.amb button[aria-checked=true] .amb-ic { background: var(--accent-fill); color: #fff; }
.amb-ic .ic { width: 22px; height: 22px; }
.amb-t { font-size: 15px; font-weight: 600; }
.amb-s { font-size: 12px; color: var(--muted); }

/* ---------- marcações ---------- */
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.stat dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat dd { margin: 0; font: 800 22px var(--f-display); }
.stat dd small { font-size: 12px; color: var(--muted); font-weight: 600; }
#hist { display: flex; flex-direction: column; gap: 16px; }
.day { display: flex; flex-direction: column; gap: 6px; }
.hrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 62px; border: 0; background: none; width: 100%; text-align: left; position: relative; }
.hrow + .hrow::before { content: ''; position: absolute; top: 0; right: 0; left: 66px; height: 1px; background: var(--sep2); }
.hrow .pin-ic { color: var(--accent); width: 18px; height: 18px; }
.empty { text-align: center; color: var(--muted); font-size: 15px; }
.empty p { margin: 4px 0; }

/* compartilhar */
.srow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 58px; border: 0; background: none; width: 100%; text-align: left; position: relative; }
.list > li + li .srow::before { content: ''; position: absolute; top: 0; right: 0; left: 50px; height: 1px; background: var(--sep2); }
.list { list-style: none; margin: 0; padding: 0; }
.ck { width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--faint); display: grid; place-items: center; flex: none; color: #fff; }
.ck .ic { width: 14px; height: 14px; stroke-width: 3.4; opacity: 0; }
.srow[aria-checked=true] .ck { background: var(--accent-fill); border-color: var(--accent-fill); }
.srow[aria-checked=true] .ck .ic { opacity: 1; }
.preview { font-size: 14px; line-height: 1.45; color: var(--ink2); white-space: pre-line; max-height: 220px; overflow: auto; }

/* sobre */
.notice { display: flex; gap: 12px; align-items: flex-start; }
.notice-ic { width: 36px; height: 36px; border-radius: 10px; background: #FF9500; color: #fff; display: grid; place-items: center; flex: none; }
.notice-ic .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.notice strong { font-size: 17px; }
.notice p { margin: 4px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.acc details { border-top: 1px solid var(--sep2); }
.acc details:first-child { border-top: 0; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 13px 16px; font-size: 16px; font-weight: 600; min-height: 52px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2.5px solid var(--faint); border-bottom: 2.5px solid var(--faint); transform: rotate(-45deg); transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .num { width: 28px; height: 28px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 800; display: grid; place-items: center; flex: none; }
.acc p { margin: 0; padding: 0 16px 14px 56px; font-size: 14.5px; color: var(--ink2); line-height: 1.5; }

/* confirmação */
.confirm { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.confirm-btns { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- mapa ---------- */
.map-box { position: relative; height: calc(100dvh - var(--tabh) - env(safe-area-inset-bottom, 0px) - 120px); min-height: 380px; }
#map { position: absolute; inset: 0; background: var(--fill); z-index: 0; }
.map-float { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; z-index: 500; pointer-events: none; }
.map-filters { display: flex; gap: 8px; flex-wrap: wrap; pointer-events: auto; }
.sel-pill select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; min-height: 38px; padding: 0 30px 0 14px; font-size: 14px; font-weight: 600;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238E8E93' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12); color: var(--ink); }
.map-locate { position: absolute; right: 12px; bottom: 96px; z-index: 500; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--card); color: var(--accent); box-shadow: 0 2px 12px rgba(0, 0, 0, .15); display: grid; place-items: center; }
.map-locate .ic { width: 22px; height: 22px; }
.map-legend { position: absolute; left: 12px; right: 70px; bottom: 12px; z-index: 500; background: var(--card); border-radius: 16px; padding: 10px 14px; box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink2); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 10px; height: 10px; border-radius: 5px; display: inline-block; }
.map-legend .leg-note { flex-basis: 100%; color: var(--muted); }
.map-legend { flex-direction: column; flex-wrap: nowrap; }
.leg-row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.leg-row:empty { display: none; }
.leg-scale { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #FF3B30, #FF9500, #FFCC00, #A3C40F, #34C759); }
.map-legend .leg-scale { display: inline-block; }
.map-layers { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; pointer-events: auto; }
.ly { border: 0; border-radius: 999px; min-height: 34px; padding: 0 12px; font-size: 13px; font-weight: 600; background: var(--card); color: var(--muted);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12); display: inline-flex; align-items: center; gap: 6px; }
.ly[aria-pressed=true] { background: var(--accent-fill); color: var(--accent-ink); }
.ly-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 1.5px solid #fff; }
.ly-grad { width: 16px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #FF3B30, #FFCC00, #34C759); }
.tw-clu-ic { background: none; border: 0; }
.tw-clu { display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c) 88%, transparent); color: #fff; font-weight: 700; font-size: 12px;
  border: 2px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); box-sizing: border-box; letter-spacing: -.02em; }
.q-ex { background: var(--q-ex); } .q-bo { background: var(--q-bo); } .q-ru { background: var(--q-ru); } .q-ss { background: var(--q-ss); }
.tw-key { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c); border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--sep); vertical-align: -1px; margin: 0 2px 0 6px; }
.tbl-wrap { overflow-x: auto; }
.rank { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank th, .rank td { padding: 11px 14px; text-align: left; border-top: 1px solid var(--sep2); white-space: nowrap; }
.rank thead th { border-top: 0; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.leaflet-container { font-family: var(--f); }
.leaflet-popup-content { font-size: 14px; line-height: 1.45; }
.leaflet-popup-content-wrapper { border-radius: 14px; }

/* torres */
.tw-ic { background: none; border: 0; }
.tw { display: inline-grid; place-items: center; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); box-sizing: border-box; vertical-align: middle; }
.tw svg { width: 72%; height: 72%; }
.tw-on { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent), 0 2px 8px rgba(0, 0, 0, .4); }
.erb-key .tw { border-width: 1.5px; }

/* ---------- abas ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 0.5px solid var(--sep); }
.tabs button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.tabs .ic { width: 26px; height: 26px; color: #8E8E93; }
.tabs button[aria-current=page] { color: var(--accent); font-weight: 600; }
.tabs button[aria-current=page] .ic { color: var(--accent); }

/* ---------- folha "Antes de medir" ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 1500; background: rgba(0, 0, 0, .4); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; max-height: 94dvh; background: var(--bg); border-radius: 14px 14px 0 0; display: flex; flex-direction: column;
  padding: 6px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  animation: up .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--faint); align-self: center; margin-bottom: 4px; }
.sheet-nav { display: flex; align-items: center; justify-content: space-between; }
.sheet-nav h2 { margin: 0; font-size: 17px; font-weight: 600; }
.sheet-nav-pad { width: 70px; }
.sheet-body { overflow: auto; display: flex; flex-direction: column; gap: 18px; padding: 8px 0 16px; }
.sheet .cta { flex: none; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); z-index: 2000;
  background: rgba(30, 30, 32, .94); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; max-width: min(92vw, 520px); text-align: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }

/* ---------- termo (gate) ---------- */
.gate { position: fixed; inset: 0; z-index: 3000; background: var(--bg); overflow: auto; }
.gate-in { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px;
  padding: calc(28px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px)); }
.gate-in > div { display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 8px; font: 800 22px var(--f-display); }
.gate h1 { margin: 6px 0 0; font: 800 28px/1.15 var(--f-display); }
.lead { margin: 0; font-size: 17px; color: var(--ink2); line-height: 1.45; }
.term { background: var(--card); border-radius: 16px; padding: 4px 16px 14px; max-height: 42dvh; overflow: auto; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.term h2 { font-size: 15px; margin: 14px 0 4px; color: var(--ink); }
.term p, .term ul { margin: 0 0 6px; }
.term ul { padding-left: 18px; }
.term-ver { color: var(--muted); font-size: 13px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; background: var(--card); padding: 14px; border-radius: 14px; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
.fineprint { margin: 0; font-size: 13px; color: var(--muted); }
.howto { background: var(--card); border-radius: 16px; padding: 4px 16px 10px; font-size: 15px; }
.howto h2 { font-size: 16px; margin: 12px 0 6px; }
.howto ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.gate-err { margin: 0; color: var(--bad); font-size: 14px; }

@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.view-map .leaflet-top { top: calc(52px + env(safe-area-inset-top, 0px)); }

/* foco visível (teclado e leitores de tela) e resposta ao toque */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.switch:focus-visible { outline-offset: 3px; }
button:not(:disabled):active, a.btn-plain:active, .tile:active, .rep:active, .row-card:active, .hrow:active, .srow:active, .li:active { opacity: .6; transition: opacity 0s; }
button, .tile, .rep { transition: opacity .15s; }

/* sinal ruim: reclamar na Anatel */
.anatel { display: flex; flex-direction: column; gap: 12px; border-radius: 22px; }
.anatel-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.4; color: var(--ink2); }
.anatel-steps strong { color: var(--ink); }
.anatel-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.anatel-links a { text-decoration: none; display: inline-flex; align-items: center; }

/* assinatura */
.credit { margin-top: 8px; padding: 18px 4px 4px; border-top: 1px solid var(--sep2); text-align: center; }
.credit p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.credit strong { color: var(--ink2); font-weight: 600; white-space: nowrap; }
.author .small-note { font-size: 13px; color: var(--muted); }

/* melhor operadora aqui */
.best-entry { border: 0; width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; border-radius: 20px; }
.best-entry .tile-ic { margin: 0; flex: none; }
.best-list { display: flex; flex-direction: column; gap: 12px; }
.op-card { display: flex; flex-direction: column; gap: 12px; border-radius: 22px; padding: 16px; }
.op-card.win { box-shadow: 0 0 0 2px var(--accent-fill), var(--shadow); }
.op-head { display: flex; align-items: center; gap: 12px; }
.op-rank { width: 30px; height: 30px; border-radius: 15px; background: var(--fill2); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.op-dot { width: 12px; height: 12px; border-radius: 6px; background: var(--c); flex: none; }
.op-name { flex: 1; font: 700 20px var(--f-display); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.op-tag { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-fill); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.op-bar { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.op-bar span { display: block; height: 100%; border-radius: 4px; }
.op-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.op-facts > div { background: var(--fill2); border-radius: 12px; padding: 8px 10px; }
.op-facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.op-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.op-facts dd small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.op-basis { margin: 0; font-size: 12.5px; color: var(--muted); }
.best-summary { display: flex; flex-direction: column; gap: 4px; border-radius: 22px; }
.best-summary strong { font: 800 24px/1.2 var(--f-display); }
.best-win { display: flex; align-items: center; gap: 10px; }
.best-win .op-dot { width: 16px; height: 16px; border-radius: 8px; }

/* antenas na região */
.infra-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.crit { display: flex; flex-direction: column; gap: 10px; }
.crit-row { display: grid; grid-template-columns: 22px minmax(0, 76px) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 15px; }
.crit-row .op-rank { width: 22px; height: 22px; font-size: 12px; }
.crit-row .crit-op { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.crit-row .crit-v { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.chips-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-mini { font-size: 12.5px; background: var(--fill2); border-radius: 999px; padding: 4px 9px; }
.chip-mini b { font-weight: 700; }
.op-sec { display: flex; flex-direction: column; gap: 6px; }
.op-sec h3 { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.seg-scroll { overflow-x: auto; grid-auto-columns: minmax(max-content, 1fr); scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg-scroll button { padding: 0 12px; white-space: nowrap; }

/* antenas mais perto (ranking de antenas) */
.perto { background: var(--fill2); border-radius: 14px; padding: 10px 12px; }
.perto summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--accent); list-style: none; min-height: 32px; display: flex; align-items: center; }
.perto summary::-webkit-details-marker { display: none; }
.perto summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 2.5px solid var(--faint); border-bottom: 2.5px solid var(--faint); transform: rotate(45deg); transition: transform .2s; }
.perto[open] summary::after { transform: rotate(-135deg); }
.perto-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; }
.perto-list li + li { border-top: 1px solid var(--sep2); }
.perto-item { width: 100%; border: 0; background: none; display: flex; align-items: center; gap: 12px; padding: 9px 0; text-align: left; min-height: 52px; }
.perto-d { min-width: 58px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.perto-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.perto-t { font-size: 15px; font-weight: 600; }
.perto-t small { font-weight: 500; color: var(--muted); }
.perto-s { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.perto-item .chev { width: 18px; height: 18px; color: var(--accent); stroke-width: 2; }

/* ---------- Selos de Qualidade da Anatel ---------- */
.selo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-weight: 800; font-size: 16px; background: var(--fill); color: var(--ink2); flex: none; }
.selo[data-q=ex] { background: var(--qs-ex); color: var(--qi-ex); } .selo[data-q=bo] { background: var(--qs-bo); color: var(--qi-bo); }
.selo[data-q=re] { background: var(--qs-re); color: var(--qi-re); } .selo[data-q=ru] { background: var(--qs-ru); color: var(--qi-ru); }
.selo[data-q=mr] { background: var(--qs-mr); color: var(--qi-mr); }
.selo.none { color: var(--muted); font-weight: 600; }
.selo-card { display: flex; flex-direction: column; gap: 10px; border-radius: 22px; margin-top: 16px; }
.selo-list { display: flex; flex-direction: column; }
.selo-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--sep2); }
.selo-row:first-child { border-top: 0; }
.selo-op { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-width: 84px; }
.selo-est { flex: 1; font-size: 13px; color: var(--muted); }
.op-selo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.op-selo .selo { width: 24px; height: 24px; font-size: 13px; border-radius: 7px; }

/* ---------- Dicas para resultado ruim ---------- */
.dicas { display: flex; flex-direction: column; gap: 12px; border-radius: 22px; }
.dicas .title3 { display: inline-flex; align-items: center; gap: 8px; }
.dicas .title3 .ic { width: 22px; height: 22px; color: var(--warn-ink); }
.dicas-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 15px; line-height: 1.4; }
.dicas-list li { padding-left: 2px; }
.dicas-list strong { display: block; color: var(--ink); }
.dicas-list span { color: var(--ink2); }

/* ---------- Imagem do resultado ---------- */
.img-cta { width: 100%; border: 0; background: var(--fill2); border-radius: 16px; padding: 12px; margin-top: 12px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); }
.img-cta .t-ic { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.img-cta .t-ic .ic { width: 24px; height: 24px; }
.img-cta-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.img-cta-t span { font-size: 13px; color: var(--muted); }
.img-prev { display: grid; place-items: center; background: var(--fill); border-radius: 16px; padding: 12px; }
.img-prev img { display: block; max-width: 100%; max-height: 52dvh; border-radius: 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.img-prev img:not([src]) { width: 160px; height: 280px; }

/* ---------- Meus lugares ---------- */
.lug-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lug-card { border: 0; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; color: var(--ink); min-height: 120px; }
.lug-card .tile-ic { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 6px; }
.lug-card .tile-ic .ic { width: 22px; height: 22px; }
.lug-new { background: transparent; box-shadow: none; border: 1.5px dashed var(--sep); }
.lug-top { display: flex; width: 100%; justify-content: space-between; align-items: flex-start; }
.spark { width: 100%; height: 26px; margin-top: 6px; color: var(--accent); }
.lug-chart-card { display: flex; flex-direction: column; gap: 10px; }
.lug-svg { width: 100%; height: auto; display: block; }
.lug-svg text { font-size: 10.5px; fill: var(--muted); font-family: var(--f); }
.lug-svg .g { stroke: var(--sep2); stroke-width: 1; }
.lug-svg .ln { stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.lug-svg circle { stroke: var(--card); stroke-width: 2; }
.seg.sm button { min-height: 30px; font-size: 13px; padding: 0 10px; }
.lug-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.hint.pad { padding: 14px 16px; }

.map-box .leaflet-control-zoom { margin-bottom: 150px; }
.site-link { display: grid; place-items: center; text-align: center; text-decoration: none; padding: 10px 14px; line-height: 1.3; }
