:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6e8ef;
  --brand: #6d28d9;
  --brand-ink: #5b21b6;
  --brand-soft: #f1ecff;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --gray-soft: #f1f5f9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .18);
  --top: 60px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { font-size: 15px; line-height: 1.45; }
#app { min-height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent;
  background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer;
  transition: transform .06s ease, background .15s, box-shadow .15s; white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(109, 40, 217, .3); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft:hover { background: #e7dfff; }
.btn-line { border-color: var(--line); }
.btn-line:hover { background: var(--gray-soft); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--gray-soft); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.btn-lg { min-height: 54px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }

/* ---------- formulário ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109, 40, 217, .12); }
textarea.input { min-height: 80px; resize: vertical; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--gray-soft); padding: 4px; border-radius: 14px; }
.seg button {
  border: 0; background: transparent; border-radius: 10px; padding: 10px 8px; font-weight: 600; color: var(--muted);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px;
}
.seg button.on { background: #fff; color: var(--brand-ink); box-shadow: var(--shadow); }
.seg button svg.i { width: 22px; height: 22px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.switch.field { flex-direction: row; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: #cbd5e1; position: relative; cursor: pointer; transition: background .15s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }
.hint { font-size: 12.5px; color: var(--muted); }

/* ---------- login ---------- */
.login-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, #ede4ff 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #e0e7ff 0, transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 400px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 32px 26px; }
.logo { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.logo-mark { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #7c3aed, #4f46e5); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 20px rgba(109, 40, 217, .35); }
.logo-mark svg.i { width: 24px; height: 24px; }
.logo b { display: block; font-size: 18px; }
.logo small { color: var(--muted); }
.erro { background: var(--red-soft); color: var(--red); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }

/* ---------- layout ---------- */
.topbar {
  position: sticky; top: 0; z-index: 500; height: var(--top); display: flex; align-items: center; gap: 12px;
  padding: 0 16px; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar .logo { margin: 0; }
.topbar .logo-mark { width: 36px; height: 36px; border-radius: 11px; }
.topbar .logo-mark svg.i { width: 19px; height: 19px; }
.topbar .logo b { font-size: 15px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; text-decoration: none; }
.nav a.on, .nav a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.spacer { flex: 1; }
.user-pill { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; }
.bottomnav { display: none; }
.page { max-width: 1200px; margin: 0 auto; padding: 22px 16px 100px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
.page-head p { margin: 2px 0 0; color: var(--muted); }

@media (max-width: 820px) {
  .nav, .user-pill .nome { display: none; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 0; border-radius: 10px; }
  .bottomnav a.on { color: var(--brand-ink); background: var(--brand-soft); }
  .bottomnav svg.i { width: 22px; height: 22px; }
}

/* ---------- cartões ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(15,23,42,.04); }
.card-pad { padding: 18px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rota-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: transform .1s, box-shadow .15s; }
.rota-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.rota-card h3 { margin: 0; font-size: 17px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13.5px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg.i { width: 15px; height: 15px; }
.progress { height: 8px; background: var(--gray-soft); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 99px; transition: width .3s; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 14px 16px; }
.stat small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg.i { width: 44px; height: 44px; color: #c4b5fd; margin-bottom: 8px; }

/* ---------- etiquetas ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--gray-soft); color: var(--ink-2); white-space: nowrap; }
.badge svg.i { width: 12px; height: 12px; }
.b-6i { background: var(--red-soft); color: var(--red); }
.b-5i { background: var(--amber-soft); color: #b45309; }
.b-deb { background: #fff1f2; color: #be123c; }
.b-ok { background: var(--green-soft); color: var(--green); }
.b-aprox { background: #fff7ed; color: #c2410c; }
.b-lock { background: var(--brand-soft); color: var(--brand-ink); }
.b-alta { background: #fae8ff; color: #a21caf; }
.b-baixa { background: var(--gray-soft); color: var(--muted); }
.b-blue { background: var(--blue-soft); color: var(--blue); }

/* ---------- filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
details.ms { position: relative; }
details.ms > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 99px;
  background: #fff; border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); user-select: none;
}
details.ms > summary::-webkit-details-marker { display: none; }
details.ms.ativo > summary { background: var(--brand-soft); border-color: #d8ccff; color: var(--brand-ink); }
details.ms[open] > summary { box-shadow: 0 0 0 4px rgba(109, 40, 217, .12); }
.ms-pop { position: absolute; z-index: 900; top: calc(100% + 6px); left: 0; min-width: 230px; max-height: 320px; overflow: auto; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; border: 1px solid var(--line); }
.ms-pop label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.ms-pop label:hover { background: var(--gray-soft); }
.ms-pop input { width: 18px; height: 18px; accent-color: var(--brand); }
.ms-pop .ms-acoes { display: flex; gap: 6px; padding: 6px 4px 2px; border-top: 1px solid var(--line); margin-top: 6px; position: sticky; bottom: -8px; background: #fff; }
.search { position: relative; flex: 1; min-width: 200px; }
.search svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 38px; min-height: 38px; border-radius: 99px; }

/* ---------- tabela/lista de consultoras ---------- */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.row:last-child { border-bottom: 0; }
.row.click { cursor: pointer; }
.row.click:hover { background: #fafaff; }
.row .main { flex: 1; min-width: 0; }
.row .nome { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- assistente de nova rota ---------- */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.steps { display: flex; gap: 8px; margin-bottom: 16px; }
.step { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.step b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-soft); font-size: 13px; flex: none; }
.step.on { border-color: var(--brand); color: var(--brand-ink); }
.step.on b { background: var(--brand); color: #fff; }
.step.feito b { background: var(--green); color: #fff; }
.map-box { height: calc(100vh - 140px); min-height: 380px; position: sticky; top: calc(var(--top) + 16px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lista-scroll { max-height: 52vh; overflow: auto; border-radius: 12px; border: 1px solid var(--line); }
.lugares { margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lugares button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; }
.lugares button:hover { background: var(--brand-soft); }
.ponto-escolhido { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--green-soft); border-radius: 12px; color: #166534; font-weight: 600; font-size: 14px; }
.wiz-foot { display: flex; gap: 10px; justify-content: space-between; margin-top: 16px; }
@media (max-width: 900px) {
  .wizard { grid-template-columns: 1fr; }
  .map-box { position: relative; top: 0; height: 42vh; min-height: 280px; order: -1; }
  .steps .step span { display: none; }
}

/* ---------- editor de rota ---------- */
.editor { display: grid; grid-template-columns: 440px 1fr; height: calc(100vh - var(--top)); }
.editor-side { display: flex; flex-direction: column; min-height: 0; background: var(--bg); border-right: 1px solid var(--line); }
.editor-head { padding: 14px 16px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.editor-head h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.editor-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.editor-list { flex: 1; overflow: auto; padding: 12px 12px 120px; }
.editor-map { position: relative; }
.editor-map #mapa { position: absolute; inset: 0; }
.resumo { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.resumo b { color: var(--ink); }
.dias-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chip { flex: none; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dia-bloco { margin-bottom: 14px; }
.dia-titulo { display: flex; align-items: center; gap: 8px; padding: 6px 4px 8px; font-weight: 700; font-size: 14px; }
.dia-titulo .cor { width: 12px; height: 12px; border-radius: 4px; }
.dia-titulo small { color: var(--muted); font-weight: 500; }
.daylist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 44px; border-radius: 12px; }
.daylist:empty { border: 2px dashed var(--line); }
.stop { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 6px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); border: 2px solid transparent; cursor: pointer; }
.stop.sel { border-color: var(--brand); }
.stop.feita { opacity: .6; }
.stop .drag { color: #cbd5e1; cursor: grab; padding: 6px 2px; touch-action: none; }
.stop .drag:active { cursor: grabbing; }
.num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; background: var(--amber); }
.num.s6 { background: var(--red); }
.num.ok { background: var(--green); }
.num.nf { background: #94a3b8; }
.stop .main { flex: 1; min-width: 0; }
.stop .nome { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop .sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sortable-ghost { opacity: .35; }
.sortable-chosen .stop, .stop.sortable-chosen { box-shadow: var(--shadow-lg); }
.aviso-recalc { position: sticky; bottom: 0; margin: 0 -12px -120px; padding: 12px; background: linear-gradient(transparent, var(--bg) 30%); }
.pin-bar { position: absolute; z-index: 800; left: 50%; top: 14px; transform: translateX(-50%); background: #fff; padding: 10px 12px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; max-width: calc(100% - 24px); }
.map-legend { position: absolute; z-index: 700; bottom: 14px; left: 14px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px 10px; font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; grid-template-rows: 38vh 1fr; height: auto; min-height: calc(100vh - var(--top)); }
  .editor-map { order: -1; height: 38vh; position: sticky; top: var(--top); z-index: 400; }
  .editor-side { border-right: 0; }
  .editor-list { overflow: visible; padding-bottom: 140px; }
}

/* ---------- marcadores ---------- */
.mk { width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); background: var(--amber); }
.mk span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 12px; }
.mk.s6 { background: var(--red); }
.mk.ok { background: var(--green); }
.mk.nf { background: #94a3b8; }
.mk.aprox { border-style: dashed; border-color: #1e293b; }
.mk.sel { outline: 3px solid var(--brand); outline-offset: 2px; }
.mk-start { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.mk-start svg.i { width: 18px; height: 18px; }
.mk-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); background: var(--amber); }
.mk-dot.s6 { background: var(--red); }
.mk-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #fff; font-weight: 800; font-size: 11px; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.4); }
.mk-num.s6 { background: var(--red); }
.mk-me { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37, 99, 235, .25); }
.leaflet-container { font-family: inherit; }
.leaflet-popup-content-wrapper { border-radius: 12px; }

/* ---------- folha (modal) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.sheet { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); animation: up .2s ease; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; position: sticky; top: 0; background: #fff; z-index: 2; }
.sheet-head h3 { margin: 0; font-size: 18px; flex: 1; }
.sheet-body { padding: 8px 18px 20px; }
.acoes-lista { display: flex; flex-direction: column; gap: 6px; }
.acoes-lista .btn { justify-content: flex-start; }
@media (max-width: 640px) {
  .sheet-bg { align-items: flex-end; padding: 0; }
  .sheet { border-radius: 22px 22px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

/* ---------- avisos ---------- */
#toasts { position: fixed; z-index: 3000; left: 50%; bottom: 90px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; animation: up .2s; display: flex; gap: 8px; align-items: center; }
.toast.erro { background: var(--red); }
.toast.ok { background: var(--green); }
#busy { position: fixed; inset: 0; z-index: 2500; background: rgba(255,255,255,.6); backdrop-filter: blur(2px); display: grid; place-items: center; }
.busy-box { background: #fff; padding: 18px 22px; border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-weight: 600; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- modo campo ---------- */
.campo { max-width: 640px; margin: 0 auto; padding: 14px 14px 120px; }
.campo-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.campo-top h1 { font-size: 19px; margin: 0; flex: 1; letter-spacing: -.01em; }
.campo-progress { padding: 14px 16px; margin-bottom: 12px; }
.campo-progress .linha { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; font-weight: 600; }
.campo-mapa { height: 280px; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); }
.proxima { padding: 18px; margin-bottom: 14px; border: 2px solid var(--brand); }
.proxima .rotulo { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.proxima h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.01em; }
.proxima .end { color: var(--ink-2); margin-bottom: 4px; }
.nota { background: var(--amber-soft); color: #92400e; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 10px 0; display: flex; gap: 8px; }
.acoes-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 10px; }
.acoes-3 .btn { flex-direction: column; gap: 4px; min-height: 64px; font-size: 13px; padding: 0 6px; }
.acoes-3 .btn svg.i { width: 22px; height: 22px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checks .btn { min-height: 58px; font-size: 15px; }
.ck-visitada { background: var(--green); color: #fff; }
.ck-reativada { background: #7c3aed; color: #fff; }
.ck-nao { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.ck-outro { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.fab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 35%); display: flex; gap: 8px; justify-content: center; }
.fab-bar .btn { box-shadow: var(--shadow-lg); flex: 1; max-width: 300px; }
.secao-titulo { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 18px 4px 8px; display: flex; align-items: center; gap: 8px; }

/* ---------- impressão ---------- */
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; font-size: 12px; color: #000; }
  .p-dia { page-break-before: always; }
  .p-dia:first-child { page-break-before: avoid; }
  .p-dia h2 { font-size: 16px; border-bottom: 2px solid #000; padding-bottom: 4px; }
  .p-item { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid #ccc; page-break-inside: avoid; }
  .p-num { font-weight: 800; width: 24px; }
  .p-box { width: 14px; height: 14px; border: 1.5px solid #000; margin-top: 2px; flex: none; }
}
