:root {
  --navy: #041a4a;
  --navy-2: #0a2a6e;
  --navy-3: #13398f;
  --navy-soft: #e8edf7;
  --amber: #ffc107;
  --amber-2: #ffcd3e;
  --amber-ink: #7a5400;
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --border: #dde2ea;
  --border-strong: #c5ccd8;
  --text: #121a2c;
  --text-2: #4a5468;
  --muted: #7a8396;
  --blue: #1d56b8;   --blue-bg: #e7eefb;
  --wait: #8a5a00;   --wait-bg: #fff3d1;
  --run: #0b5f7a;    --run-bg: #e2f2f7;
  --ok: #1d6b3a;     --ok-bg: #e4f3e9;
  --bad: #ad2318;    --bad-bg: #fbe9e7;
  --off: #5d6575;    --off-bg: #eceef2;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(4, 26, 74, .06), 0 2px 8px rgba(4, 26, 74, .05);
  --shadow-lg: 0 10px 40px rgba(4, 26, 74, .22);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy-3); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; height: 56px; padding: 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: .1px; white-space: nowrap; }
.brand-role {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px;
  color: var(--amber); white-space: nowrap;
}
.topbar .spacer { flex: 1; }
.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
}
.net-badge {
  font-size: 12px; background: var(--amber); color: var(--navy); border-radius: 999px;
  padding: 3px 10px; font-weight: 700; white-space: nowrap;
}

/* ---------- Navegação ---------- */
.tabs-top { background: var(--navy-2); }
.tabs-top-inner { max-width: 1080px; margin: 0 auto; display: flex; gap: 2px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.tabs-top button {
  background: none; border: 0; color: rgba(255,255,255,.72); padding: 12px 14px; cursor: pointer;
  font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs-top button[aria-current="page"] { color: #fff; border-bottom-color: var(--amber); }

.tabs-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface);
  border-top: 1px solid var(--border); display: flex; padding-bottom: var(--safe-b);
}
.tabs-bottom button {
  flex: 1; background: none; border: 0; padding: 8px 4px 9px; display: flex; flex-direction: column;
  align-items: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 600; cursor: pointer; position: relative;
}
.tabs-bottom button svg { width: 22px; height: 22px; }
.tabs-bottom button[aria-current="page"] { color: var(--navy); }
.tabs-bottom button[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; background: var(--amber); border-radius: 0 0 3px 3px;
}
.count {
  display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--amber); color: var(--navy); font-size: 11px; font-weight: 800; align-items: center; justify-content: center; margin-left: 6px;
}
.tabs-bottom .count { position: absolute; top: 4px; left: 54%; margin: 0; }
body.has-bottom-nav main { padding-bottom: calc(84px + var(--safe-b)); }
@media (min-width: 860px) {
  .tabs-bottom { display: none; }
  body.has-bottom-nav main { padding-bottom: 40px; }
}
@media (max-width: 859px) {
  .tabs-top { display: none; }
}

/* ---------- Layout ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 18px 16px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; margin: 0; letter-spacing: -.1px; }
.page-head p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 700; margin: 22px 0 10px; }
.grid { display: grid; gap: 12px; }
.grid > * { min-width: 0; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-pad { padding: 18px; }

/* ---------- Telas de acesso ---------- */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth-hero { background: var(--navy); color: #fff; padding: calc(36px + env(safe-area-inset-top, 0px)) 20px 64px; text-align: center; position: relative; overflow: hidden; }
.auth-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--amber);
}
.auth-hero .logo { width: 72px; height: 72px; display: block; margin: 0 auto 14px; }
.auth-hero h1 { margin: 0; font-size: 22px; letter-spacing: -.2px; }
.auth-hero p { margin: 6px 0 0; color: rgba(255,255,255,.72); font-size: 14px; }
.auth-body { flex: 1; width: 100%; max-width: 460px; margin: -40px auto 0; padding: 0 16px 32px; position: relative; z-index: 1; }
.auth-card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 22px 20px; border: 1px solid var(--border); }
.auth-card h2 { font-size: 18px; margin: 0 0 4px; }
.auth-card .sub { color: var(--text-2); margin: 0 0 18px; font-size: 14px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }

.role-list { display: grid; gap: 10px; }
.role-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
  transition: border-color .15s, background .15s;
}
.role-btn:hover, .role-btn:focus-visible { border-color: var(--navy-3); background: var(--navy-soft); outline: none; }
.role-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--navy); color: var(--amber); display: grid; place-items: center; flex: none; }
.role-ico svg { width: 24px; height: 24px; }
.role-txt strong { display: block; font-size: 15.5px; }
.role-txt span { color: var(--text-2); font-size: 13px; }
.role-btn .chev { margin-left: auto; color: var(--muted); }

.back-link { background: none; border: 0; color: var(--navy-3); font-weight: 600; padding: 0; margin: 0 0 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.links-row { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; align-items: center; }
.link-btn { background: none; border: 0; color: var(--navy-3); font-weight: 600; cursor: pointer; padding: 4px; font-size: 14px; }

/* ---------- Formulários ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span.lbl { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--text); }
.field > span.lbl em { font-style: normal; color: var(--muted); font-weight: 500; }
.field > span.lbl em.opc { color: var(--bad); font-weight: 700; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff;
  padding: 11px 12px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; min-height: 46px;
}
.textarea { resize: vertical; min-height: 76px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(19, 57, 143, .14); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.input-group .addon {
  display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--border-strong);
  border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); font-size: 14px; white-space: nowrap;
}
.input-money { font-size: 26px; font-weight: 700; text-align: center; letter-spacing: .3px; min-height: 60px; }

.segmented { display: flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.segmented label { flex: 1; position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 11px 8px; font-weight: 600; font-size: 14px; color: var(--text-2); border-right: 1px solid var(--border-strong); }
.segmented label:last-child span { border-right: 0; }
.segmented input:checked + span { background: var(--navy); color: #fff; }
.segmented input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--amber); }
.segmented.urg input[value="URGENTE"]:checked + span { background: var(--bad); }

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.check span { font-size: 14px; }

.form-msg { font-size: 13.5px; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.form-msg.err { background: var(--bad-bg); color: var(--bad); }
.form-msg.info { background: var(--blue-bg); color: var(--blue); }
.form-msg.warn { background: var(--wait-bg); color: var(--wait); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-sm);
  border: 1px solid transparent; padding: 10px 16px; font-weight: 700; font-size: 14.5px; cursor: pointer; min-height: 44px;
  text-decoration: none; transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-accent { background: var(--amber); color: var(--navy); }
.btn-accent:hover { background: var(--amber-2); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { background: #fff; color: var(--bad); border-color: #e7b9b4; }
.btn-danger:hover { background: var(--bad-bg); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 16px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1; }

/* ---------- Cartões de solicitação ---------- */
.req-list { display: grid; gap: 10px; }
@media (min-width: 860px) { .req-list.cols { grid-template-columns: 1fr 1fr; } }
.req {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; cursor: pointer; position: relative; text-align: left; width: 100%; display: block;
}
.req:hover { border-color: var(--border-strong); }
.req.urgent { border-left: 4px solid var(--bad); padding-left: 11px; }
.req-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.req-id { font-weight: 800; font-size: 13px; color: var(--navy); letter-spacing: .3px; }
.req-top .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.req-when { font-size: 12.5px; color: var(--text-2); }

.route { display: grid; grid-template-columns: 16px 1fr; column-gap: 10px; }
.route .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; justify-self: center; }
.route .dot.a { border: 3px solid var(--navy); background: #fff; }
.route .dot.b { background: var(--amber); border: 3px solid var(--amber-ink); }
.route .line { width: 2px; background: repeating-linear-gradient(var(--border-strong) 0 4px, transparent 4px 7px); justify-self: center; min-height: 14px; }
.route .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.route .place { font-weight: 600; font-size: 15px; word-break: break-word; }
.route .stop { padding-bottom: 8px; }

.req-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.req-meta b { color: var(--text); font-weight: 600; }
.req-value { font-size: 18px; font-weight: 800; color: var(--navy); }
.req-actions { margin-top: 12px; display: flex; gap: 8px; }
.req-actions .btn { flex: 1; }
.req-banner { margin-top: 10px; font-size: 13px; padding: 8px 10px; border-radius: var(--radius-sm); font-weight: 600; }
.req-banner.wait { background: var(--wait-bg); color: var(--wait); }
.req-banner.run { background: var(--run-bg); color: var(--run); }
.req-banner.pend { background: var(--off-bg); color: var(--off); }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .2px; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.s-ABERTA { background: var(--blue-bg); color: var(--blue); }
.chip.s-AGUARDANDO_APROVACAO { background: var(--wait-bg); color: var(--wait); }
.chip.s-EM_ATENDIMENTO { background: var(--run-bg); color: var(--run); }
.chip.s-CONCLUIDA { background: var(--ok-bg); color: var(--ok); }
.chip.s-RECUSADA { background: var(--bad-bg); color: var(--bad); }
.chip.s-OCORRENCIA { background: #fff4d6; color: #8a5a00; }
.chip.s-CANCELADA { background: var(--off-bg); color: var(--off); }
.chip.s-PENDENTE { background: var(--wait-bg); color: var(--wait); }
.chip.s-ATIVO { background: var(--ok-bg); color: var(--ok); }
.chip.s-INATIVO { background: var(--off-bg); color: var(--off); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: .5px; text-transform: uppercase; }
.tag.urg { background: var(--bad); color: #fff; }
.tag.dep { background: var(--navy-soft); color: var(--navy); }
.tag.queue { background: var(--amber); color: var(--navy); }
.tag.veic { background: var(--navy); color: #fff; }
.tag.ok { background: #1f7a3a; color: #fff; }
.pont { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.pont.bom { background: #e6f6ec; color: #136c34; }
.pont.medio { background: #fff4d6; color: #8a5a00; }
.pont.ruim { background: var(--bad-bg); color: var(--bad); }
.pont.novo { background: var(--navy-soft); color: var(--muted); }
.tag.atraso { background: #fff; color: var(--bad); border: 1.5px solid var(--bad); }
.contato-mot { display: inline-flex; gap: 6px; margin-left: 4px; vertical-align: middle; }
.mini-btn { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-decoration: none;
  background: var(--navy-soft); color: var(--navy); border: 1px solid transparent; line-height: 1.3; white-space: nowrap; }
.mini-btn.wa { background: #e6f6ec; color: #136c34; }
.mini-btn:hover { border-color: currentColor; }

/* ---------- Filtros ---------- */
.filters { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.filters .field { margin: 0; }
.filters .field > span.lbl { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.filters .input, .filters .select { min-height: 40px; padding: 8px 10px; font-size: 14px; }
@media (min-width: 860px) { .filters { grid-template-columns: repeat(6, 1fr); } }
.chips-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: thin; }
.chip-btn { border: 1px solid var(--border-strong); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--text-2); }
.chip-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Indicadores ---------- */
.kpis { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .kpis { grid-template-columns: repeat(6, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.kpi .k-lbl { font-size: 12px; color: var(--text-2); font-weight: 600; }
.kpi .k-val { font-size: 22px; font-weight: 800; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: 12px; color: var(--muted); }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) {
  table.data { font-size: 13px; }
  table.data th { white-space: normal; font-size: 10.5px; letter-spacing: .3px; padding: 8px; }
  table.data td { padding: 9px 8px; }
}

/* ---------- Usuários ---------- */
.user-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.user-row:last-child { border-bottom: 0; }
.user-main { flex: 1; min-width: 180px; }
.user-main strong { display: block; }
.user-main small { color: var(--text-2); font-size: 12.5px; }
.user-ctrl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 12px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { left: 19px; }
.select-sm { min-height: 34px; padding: 4px 8px; font-size: 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; }

/* ---------- Vazio ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--text-2); }
.empty svg { width: 44px; height: 44px; color: var(--border-strong); margin-bottom: 8px; }
.empty strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(8, 15, 32, .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal {
  background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto;
  border-radius: 16px 16px 0 0; padding: 18px 18px calc(18px + var(--safe-b)); animation: up .2s ease-out;
}
@media (min-width: 640px) { .modal-back { align-items: center; } .modal { border-radius: 14px; } }
.modal-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 18px; flex: 1; }
.modal-head p { margin: 2px 0 0; color: var(--text-2); font-size: 13.5px; }
.icon-btn { background: none; border: 0; width: 36px; height: 36px; border-radius: 8px; color: var(--text-2); cursor: pointer; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--surface-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }

.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; margin: 0; }
.dl dt { color: var(--text-2); }
.dl dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 420px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-3); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline .t-when { color: var(--muted); font-size: 12px; }
.timeline .t-what { font-weight: 700; }
.timeline .t-det { color: var(--text-2); }

/* ---------- Menu ---------- */
.menu { position: fixed; top: calc(60px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 40; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 250px; overflow: hidden; }
.menu-head { padding: 14px; border-bottom: 1px solid var(--border); }
.menu-head strong { display: block; }
.menu-head small { color: var(--text-2); }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; background: none; border: 0; padding: 12px 14px; text-align: left; cursor: pointer; font-size: 14px; }
.menu button:hover { background: var(--surface-2); }
.menu button svg { width: 18px; height: 18px; color: var(--text-2); }
.menu .danger { color: var(--bad); }
.menu .danger svg { color: var(--bad); }

/* ---------- Avisos ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(76px + var(--safe-b)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
@media (min-width: 860px) { .toasts { bottom: 24px; } }
.toast { background: #172038; color: #fff; padding: 11px 16px; border-radius: 8px; font-size: 14px; box-shadow: var(--shadow-lg); max-width: 460px; pointer-events: auto; animation: up .2s; }
.toast.err { background: var(--bad); }
.toast.ok { background: var(--ok); }

.strip { background: var(--wait-bg); color: var(--wait); font-size: 13px; font-weight: 600; text-align: center; padding: 7px 12px; }
.strip.demo { background: var(--amber); color: var(--navy); }
.faixa-versao { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 300;
  display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 10px 12px 10px 16px; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 14px; font-weight: 600; max-width: calc(100vw - 32px); }
.faixa-versao button { background: var(--amber); color: var(--navy); border: 0; border-radius: 8px; padding: 8px 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.info-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--muted); background: transparent; color: var(--muted); font: italic 700 11px/1 Georgia, serif;
  cursor: pointer; vertical-align: middle; }
.info-btn[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.info-pop { display: block; margin: 6px 0 2px; padding: 8px 10px; border-radius: 6px; background: var(--navy-soft); color: var(--text);
  font-size: 12.5px; font-weight: 400; line-height: 1.45; }
.info-pop[hidden] { display: none; }
.push-ok { color: #1f7a3a; font-weight: 700; }
.push-off { color: var(--bad); font-weight: 700; }
.aviso-texto { font-size: 15px; line-height: 1.5; background: var(--navy-soft); border-radius: 8px; padding: 14px 16px; }
.strip.vercomo { background: #6b21a8; color: #fff; position: sticky; top: 0; z-index: 50; }
.strip button { background: none; border: 0; color: inherit; text-decoration: underline; font-weight: 700; cursor: pointer; }

.install-card { display: flex; gap: 12px; align-items: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.install-card p { margin: 0; flex: 1; font-size: 13.5px; }
.install-card strong { display: block; font-size: 14.5px; }

.code-input { letter-spacing: 10px; text-align: center; font-size: 26px; font-weight: 700; }
.temp-pass { font-size: 34px; font-weight: 800; letter-spacing: 6px; text-align: center; color: var(--navy); background: var(--navy-soft); border-radius: var(--radius); padding: 16px; margin: 6px 0 14px; }
.lock-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; margin: 4px auto 14px; }
.lock-ico svg { width: 32px; height: 32px; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.mt { margin-top: 14px; }
.loading { display: flex; justify-content: center; padding: 40px; }
.loading .spin { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
.maplinks { display: flex; gap: 12px; font-size: 13px; margin-top: 2px; }
.maplinks a { font-weight: 600; text-decoration: none; }
