/* Abas, funis (kanban), ficha do estabelecimento e dashboard. Usa as mesmas cores e fontes do radar (variáveis em index.html). */
:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --tabbar-h: 64px;
  --col-bg: #EDF5F3;
  --warn-bg: #FCEFD9;
  --warn-ink: #7A4B06;
  --bad-bg: #FCE8E6;
}
::selection { background: var(--mint); color: var(--ink); }
body.sheet-open { overflow: hidden; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- menu lateral Theo Dev ---------- */
:root { --side-w: 256px; }
.side {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 22; width: var(--side-w);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #05302C 0%, #04201E 100%); color: #fff;
  box-shadow: 1px 0 0 rgba(255, 255, 255, .06), 8px 0 30px rgba(2, 26, 24, .12);
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 18px; }
.logo {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: linear-gradient(145deg, var(--mint) 0%, #2DD4BF 100%); color: #04201E;
  font: 700 1.15rem/1 var(--display); letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px rgba(45, 212, 191, .25);
}
.side-brand b { display: block; font: 700 1.45rem/1 var(--display); letter-spacing: .01em; }
.side-brand small { display: block; margin-top: 3px; color: rgba(255, 255, 255, .6); font-size: .76rem; }
.side-nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.side-sec { margin: 16px 10px 6px; color: rgba(255, 255, 255, .42); font: 600 .68rem var(--body); letter-spacing: .12em; text-transform: uppercase; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; margin: 1px 0;
  border-radius: 10px; color: rgba(255, 255, 255, .74); text-decoration: none; font: 500 .92rem var(--body);
  transition: background-color .15s ease, color .15s ease, transform .12s var(--ease-out);
}
.side-nav a .ico { width: 20px; height: 20px; opacity: .85; }
@media (hover: hover) and (pointer: fine) { .side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; } }
.side-nav a:active { transform: scale(.98); }
.side-nav a.on {
  color: #fff; font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .08) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 12px rgba(0, 0, 0, .18);
}
.side-nav a.on::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mint); }
.side-nav a.on .ico { opacity: 1; color: var(--mint); }
.side-nav a:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
.tbadge {
  margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); font: 600 .72rem/20px var(--body); text-align: center; font-variant-numeric: tabular-nums;
}
.tbadge.hot { background: #F2B44B; color: #3A2400; }
.side-nav a.on .tbadge { background: var(--mint); color: #04201E; }
.side-foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .12); font: 700 1rem var(--display); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.side-foot b { display: block; font-size: .9rem; }
.side-foot small { display: block; color: rgba(255, 255, 255, .55); font-size: .74rem; }
.topbar { display: none; }
.side-scrim { display: none; }
@media (min-width: 1024px) {
  body { padding-left: var(--side-w); }
  .fxbtn { left: calc(var(--side-w) + 12px); }
}
@media (max-width: 1023px) {
  .topbar {
    position: sticky; top: 0; z-index: 19; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 10px;
    background: rgba(4, 32, 30, .92); color: #fff;
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  }
  .topbar .icobtn { color: #fff; }
  .topbar .icobtn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .tb-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.3rem var(--display); }
  .tb-brand .logo { width: 32px; height: 32px; border-radius: 9px; font-size: .95rem; }
  .side { transform: translateX(-100%); transition: transform .32s var(--ease-drawer), visibility 0s .32s; visibility: hidden; }
  body.side-open .side { transform: none; visibility: visible; transition: transform .32s var(--ease-drawer); }
  .side-scrim { position: fixed; inset: 0; z-index: 21; display: block; background: rgba(2, 26, 24, .5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.side-open .side-scrim { opacity: 1; pointer-events: auto; }
  body.side-open { overflow: hidden; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* aviso no canto */
.toastbox {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 10px;
  max-width: min(440px, calc(100vw - 36px)); padding: 10px 16px 10px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .78); color: var(--ink); font: 600 .9rem/1.35 var(--body); cursor: pointer;
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 16px 40px rgba(2, 40, 36, .22), inset 0 1px 0 #fff;
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .2s ease, transform .3s var(--ease-out);
}
.toastbox.on { opacity: 1; transform: none; }
.toastbox .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--brand); color: #fff; stroke-width: 2.4; }

/* início */
.hkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.hkpi {
  display: grid; gap: 3px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); text-align: left; cursor: pointer; font: inherit;
  transition: border-color .15s ease, box-shadow .2s ease, transform .15s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .hkpi:hover { border-color: var(--line-strong); box-shadow: 0 8px 22px rgba(3, 43, 40, .08); transform: translateY(-1px); } }
.hkpi:active { transform: scale(.99); }
.hk-l { color: var(--muted); font-size: .8rem; }
.hk-v { font: 700 1.9rem/1.05 var(--display); font-variant-numeric: tabular-nums; }
.hk-s { color: var(--muted); font-size: .76rem; }
.hgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 860px) { .hgrid { grid-template-columns: 1fr; } }
.hquick { display: grid; gap: 8px; margin-top: 10px; }
.hq {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); text-align: left; cursor: pointer; font: inherit;
  transition: background-color .15s ease, border-color .15s ease;
}
.hq b { font-weight: 600; font-size: .92rem; }
.hq span { grid-row: 2; color: var(--muted); font-size: .78rem; }
.hq .ico { grid-row: 1 / 3; grid-column: 2; width: 18px; height: 18px; color: var(--accent); transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hq:hover { background: var(--hot); border-color: var(--line-strong); } .hq:hover .ico { transform: translateX(3px); } }
.alist { list-style: none; margin: 10px 0 0; padding: 0; }
.alist li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; min-height: 40px; padding: 4px 6px; border-bottom: 1px solid var(--line); font-size: .88rem; border-radius: 6px; }
.alist li.link { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .alist li.link:hover { background: var(--hot); } }
.adot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.awhen { color: var(--muted); font-size: .76rem; white-space: nowrap; }

/* tarefas */
.tlist { list-style: none; margin: 10px 0 0; padding: 0; }
.trow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px; border-bottom: 1px solid var(--line); border-radius: 8px; }
.trow.link { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .trow.link:hover { background: var(--hot); } }
.tcheck {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s var(--ease-out);
}
.tcheck .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.tcheck:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .tcheck:hover { border-color: var(--good); color: var(--good); } }
.tcheck.done { background: var(--good); border-color: var(--good); color: #fff; }
.is-auto .tcheck { border-style: dashed; color: var(--accent); }
.tbody { flex: 1; min-width: 0; }
.ttitle { margin: 0; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.is-done .ttitle { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.tsub { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.tauto { padding: 0 6px; border-radius: 4px; background: var(--chip); color: var(--accent); font-weight: 600; font-size: .7rem; line-height: 1.6; }
.tdue { font-variant-numeric: tabular-nums; }
.is-late .tdue { color: var(--bad); font-weight: 600; }
.tadd { margin-bottom: 16px; }
.taddrow { display: grid; grid-template-columns: minmax(0, 1fr) 160px 200px auto; gap: 8px; align-items: center; }
.taddrow input, .taddrow select, .cbar input, .cbar select { min-height: 42px; border-radius: 6px; }
@media (max-width: 760px) { .taddrow { grid-template-columns: 1fr 1fr; } .taddrow input[type="text"] { grid-column: 1 / -1; } }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.tgroup.late h2 { color: var(--bad); }

/* clientes */
.cbar { display: grid; grid-template-columns: minmax(0, 1fr) 220px 170px auto; gap: 8px; align-items: center; }
@media (max-width: 760px) { .cbar { grid-template-columns: 1fr 1fr; } .cbar input { grid-column: 1 / -1; } }
.ctable .prow { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr); cursor: pointer; }
.ctable .prow:not(.phead):hover { background: var(--hot); }
.plink { color: var(--accent); font-weight: 600; text-decoration: none; }
.plink:hover { text-decoration: underline; }
.pill.st-fechado { background: #D6F2E6; color: #0B5E43; }
.pill.st-perdido { background: var(--chip); color: var(--muted); }
.pill.st-enviada, .pill.st-respondeu, .pill.st-negociando { background: var(--warn-bg); color: var(--warn-ink); }
body:not([data-view="radar"]) .totop, body:not([data-view="radar"]) .fxbtn { visibility: hidden; }
body.sheet-open .totop, body.sheet-open .fxbtn { visibility: hidden; }

/* ---------- cabeçalho das abas ---------- */
.view[hidden] { display: none !important; }
.vhead { background: linear-gradient(115deg, var(--brand) 0%, var(--brand-2) 100%); color: var(--on-brand); padding: 22px 16px 20px; }
.vwrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; max-width: 1568px; margin-inline: auto; }
.vtitle { min-width: 0; }
.vhead h1 { margin: 0; font: 700 clamp(2.2rem, 6vw, 3rem)/.95 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.vsub { margin: 8px 0 0; max-width: 62ch; color: rgba(255, 255, 255, .88); font-size: .92rem; }
.vacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (min-width: 700px) { .vacts { flex-wrap: nowrap; } }
.vacts input[type="search"] { width: min(260px, 100%); min-height: 44px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; }
.vacts input[type="search"]::placeholder { color: rgba(255, 255, 255, .7); }
.go.sm { min-height: 44px; padding: 0 18px; font-size: 1.2rem; background: var(--mint); color: var(--brand); }
.go.sm:hover:not(:disabled) { box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.vtip { max-width: 1600px; margin: 4px auto 0; padding: 0 16px 24px; color: var(--muted); font-size: .85rem; }
.vbody { max-width: 1280px; margin-inline: auto; padding: 22px 16px 40px; }
.mnav { gap: 6px; }
.mnav .btn { min-height: 40px; width: 40px; padding: 0; display: grid; place-items: center; color: #fff; border-color: rgba(255, 255, 255, .4); }
.mnav .btn:hover { background: rgba(255, 255, 255, .12); }
.mnav .btn:disabled { opacity: .35; cursor: default; }
.mlabel { min-width: 150px; text-align: center; font: 700 1.3rem var(--display); }

/* ---------- kanban ---------- */
.board {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(205px, 1fr); gap: 10px;
  max-width: 1600px; margin: 0 auto; padding: 18px 16px 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin;
}
.board::-webkit-scrollbar { height: 8px; }
.board::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
@media (max-width: 760px) { .board { grid-auto-columns: 82%; scroll-padding-inline: 16px; } }
.kcol {
  display: flex; flex-direction: column; min-width: 0; min-height: 300px;
  background: var(--col-bg); border: 1px solid var(--line); border-radius: 10px;
  scroll-snap-align: start;
  transition: background-color .15s ease, border-color .15s ease;
}
.kcol.over { background: var(--hot-strong); border-color: var(--accent); }
.khead { display: flex; align-items: baseline; gap: 8px; padding: 12px 12px 8px; }
.khead h2 { margin: 0; font: 700 1.15rem var(--display); letter-spacing: .03em; text-transform: uppercase; }
.kcount { min-width: 22px; padding: 0 7px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); font: 600 .78rem/20px var(--body); text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.ksum { margin-left: auto; font: 600 .82rem var(--body); color: var(--good); font-variant-numeric: tabular-nums; }
.kcol[data-stage="fechado"] .khead h2, .kcol[data-stage="entregue"] .khead h2 { color: var(--good); }
.kcol[data-stage="perdido"] .khead h2 { color: var(--muted); }
.kcards { list-style: none; margin: 0; padding: 0 8px 10px; display: grid; gap: 8px; align-content: start; flex: 1; }
.kempty { padding: 14px 10px; border: 1.5px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: .82rem; text-align: center; }
.kcard {
  padding: 11px 12px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(3, 43, 40, .06);
  cursor: grab; outline-offset: 2px;
  transition: box-shadow .18s ease, transform .18s var(--ease-out), border-color .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .kcard:hover { border-color: var(--line-strong); box-shadow: 0 6px 16px rgba(3, 43, 40, .1); transform: translateY(-1px); }
}
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: .45; transform: scale(.98); }
.kcol[data-stage="perdido"] .kcard { opacity: .7; }
.kname { margin: 0; font: 600 1.18rem/1.15 var(--display); overflow-wrap: anywhere; }
.kmeta { margin: 2px 0 0; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.kchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.kchip { padding: 1px 7px; border-radius: 4px; background: var(--chip); font: 500 .72rem/1.6 var(--body); font-variant-numeric: tabular-nums; }
.kchip.hot { background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }
.kchip.money { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.kfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.kago { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.kmove { width: auto; max-width: 62%; min-height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font: 500 .76rem var(--body); cursor: pointer; }

/* situação de pagamento */
.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; background: var(--chip); font: 600 .74rem/1.65 var(--body); white-space: nowrap; }
.pay-pago { background: #D6F2E6; color: #0B5E43; }
.pay-parcial { background: var(--warn-bg); color: var(--warn-ink); }
.pay-pendente { background: var(--bad-bg); color: #8A1C14; }

/* ---------- ficha (painel lateral) ---------- */
.sheet { position: fixed; inset: 0; z-index: 25; display: flex; justify-content: flex-end; background: rgba(2, 26, 24, 0); transition: background-color .24s ease; }
.sheet.open { background: rgba(2, 26, 24, .55); }
.shbox {
  display: flex; flex-direction: column; width: min(1120px, 100%); height: 100%;
  background: var(--bg); box-shadow: -18px 0 50px rgba(0, 0, 0, .25);
  transform: translateX(100%); transition: transform .4s var(--ease-drawer);
}
.sheet.open .shbox { transform: none; }
.shhead {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 18px;
  padding: 16px 20px 0; background: var(--brand); color: #fff;
}
.shid { min-width: 0; padding-bottom: 12px; }
.shid h2 { margin: 0; font: 700 1.9rem/1.05 var(--display); overflow-wrap: anywhere; }
.shid p { margin: 3px 0 0; color: rgba(255, 255, 255, .82); font-size: .86rem; }
.shtabs { display: flex; gap: 2px; align-self: end; }
.shtabs button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px 8px 0 0;
  background: transparent; color: rgba(255, 255, 255, .78); font: 700 1.08rem var(--display); letter-spacing: .03em; text-transform: uppercase; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.shtabs button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.shtabs button[aria-selected="true"] { background: var(--bg); color: var(--brand); }
.shtabs button:focus-visible { outline: 3px solid var(--mint); outline-offset: -3px; }
.shclose { align-self: start; color: #fff; border-color: rgba(255, 255, 255, .35); }
.shclose:hover { background: rgba(255, 255, 255, .12); }
.shbody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); overflow: hidden; }
.shleft { overflow-y: auto; padding: 18px 20px 40px; border-right: 1px solid var(--line); background: var(--surface); }
.shout { overflow-y: auto; padding: 18px 22px 40px; }
.fhead { margin: 0 0 6px; font: 700 1.05rem var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .shhead { grid-template-columns: minmax(0, 1fr) auto; }
  .shtabs { grid-column: 1 / -1; grid-row: 2; }
  .shtabs button { flex: 1; padding: 0 8px; }
  .shbody { display: block; overflow-y: auto; }
  .shleft, .shout { overflow: visible; }
  .shleft { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
}

.ficha { display: grid; gap: 6px; }
.fgroup { margin: 0; padding: 12px 0 4px; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.fgroup:first-child { border-top: 0; padding-top: 4px; }
.fgroup legend { padding: 0; margin-bottom: 8px; font: 600 .78rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.fgrid, .pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ff { display: grid; gap: 4px; min-width: 0; font-size: .8rem; color: var(--muted); }
.ff > span { font-weight: 500; }
.ff.wide { grid-column: 1 / -1; }
.ff.inline { display: inline-grid; grid-auto-flow: column; align-items: center; gap: 8px; }
body .ff input, body .ff select, body .ff textarea, body .ladd input, body .ladd select {
  width: 100%; min-height: 40px; padding: 8px 10px;
  border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); color: var(--ink);
  font: .92rem/1.4 var(--body);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ff textarea { resize: vertical; min-height: 64px; }
.ff input:focus, .ff select:focus, .ff textarea:focus, .ladd input:focus, .shout textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--hot-strong); outline: none; }
input.bad { border-color: var(--bad) !important; box-shadow: 0 0 0 3px rgba(168, 35, 27, .15) !important; }
.ff input::placeholder, .ff textarea::placeholder, .ladd input::placeholder { color: #6E8A86; }
body .ff.inline select { min-height: 36px; width: auto; padding: 0 8px; }
.saved { margin-left: 6px; font-style: normal; color: var(--good); font-weight: 600; opacity: 0; }
.saved.on { animation: savedFlash 1.6s ease-out; }
@keyframes savedFlash { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }

/* saída (proposta / prompt / projeto) */
.oblock { padding: 4px 0 18px; }
.oblock + .oblock { border-top: 1px solid var(--line); padding-top: 16px; }
.orow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.shout h3, .dpanel h2 { margin: 0; font: 700 1.2rem var(--display); letter-spacing: .03em; text-transform: uppercase; }
.ohint { margin: 6px 0 0; color: var(--muted); font-size: .83rem; max-width: 70ch; }
.orow .ohint { margin: 0; }
.gline { margin: 10px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--chip); font-size: .84rem; }
.sig { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.sig li { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 8px; border-radius: 99px; background: var(--chip); font-size: .78rem; }
.sig li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.sig li.ok::before { background: var(--good); }
.sig li.no { color: var(--muted); background: transparent; border: 1px dashed var(--line-strong); }
.oopts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px; }
.oopts .ff { flex: 1 1 170px; }
.shout textarea {
  width: 100%; margin-top: 10px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink);
  font: .95rem/1.55 var(--body); resize: vertical;
}
#prText { font-size: .86rem; line-height: 1.5; }
.shout textarea.pulse { animation: refresh .6s var(--ease-out); }
@keyframes refresh { 0% { border-color: var(--accent); box-shadow: 0 0 0 3px var(--hot-strong); } 100% { border-color: var(--line-strong); box-shadow: 0 0 0 0 transparent; } }
.obtns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.act { gap: 6px; transition: background-color .15s ease, transform .12s var(--ease-out), border-color .15s ease; }
.act .ico { width: 17px; height: 17px; }
.act.prim { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.act.prim:hover { background: var(--brand); }
.act.done { background: var(--good); color: #fff; border-color: var(--good); }
.act.sm { min-height: 32px; padding: 0 10px; font-size: .8rem; }
.act[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.act.danger { color: var(--bad); border-color: rgba(168, 35, 27, .45); }
.act.danger:hover { background: var(--bad-bg); }
.act.danger.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
.ofoot { padding-top: 18px; border-top: 1px solid var(--line); }
.oempty { padding: 24px 0; }
.icobtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .12s var(--ease-out);
}
.icobtn:hover { background: var(--chip); color: var(--ink); }
.icobtn:active, .act:active { transform: scale(.96); }
.lrows .icobtn { width: 34px; height: 34px; }
.lrows .icobtn:hover { color: var(--bad); background: var(--bad-bg); }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filebtn:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

/* projeto: resumo e lançamentos */
.psum { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin: 12px 0 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.psum > div, .dnums > div { padding: 10px 12px; background: var(--surface); }
.psum dt, .dnums dt { color: var(--muted); font-size: .76rem; }
.psum dd, .dnums dd { margin: 2px 0 0; font: 700 1.35rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
dd.neg { color: var(--bad); }
.lrows { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.lrows li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.lrows .lempty { color: var(--muted); font-size: .84rem; }
.ldate { width: 64px; flex: none; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8rem; }
.lnote { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lval { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.lval.pos { color: var(--good); }
.lval.neg { color: var(--bad); }
.ladd { display: grid; grid-template-columns: 150px 120px minmax(0, 1fr) auto auto; gap: 8px; margin-top: 10px; align-items: center; }
body .ladd select { width: auto; }
@media (max-width: 620px) { .ladd { grid-template-columns: 1fr 1fr; } .ladd input:nth-child(3) { grid-column: 1 / -1; } }

/* ---------- dashboard ---------- */
.dstrip { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 860px) { .dstrip { grid-template-columns: 1fr; } }
.dgoal { padding: 16px 18px; border-radius: 10px; background: var(--brand); color: #fff; }
.dlabel { margin: 0; color: rgba(255, 255, 255, .78); font-size: .82rem; }
.dbig { margin: 4px 0 10px; font: 700 clamp(2.4rem, 6vw, 3.2rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.gbar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.gbar i { display: block; height: 100%; background: var(--mint); transform-origin: left; border-radius: 4px; transform: scaleX(0); }
@keyframes grow-x { from { transform: scaleX(0); } }
.dnote { margin: 8px 0 0; color: rgba(255, 255, 255, .85); font-size: .82rem; }
.dgoal .linkbtn { color: var(--mint); }
.dnums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); align-content: stretch; }
@media (max-width: 560px) { .dnums { grid-template-columns: 1fr 1fr; } .dnums > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.dnums > div { display: flex; flex-direction: column; justify-content: center; padding: 14px 16px; }
.dgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 860px) { .dgrid { grid-template-columns: 1fr; } }
.dpanel { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.dpanel.wide { grid-column: 1 / -1; }
.dpanel > h2 { margin-bottom: 10px; }
.setgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.setgrid .pgrid { margin-top: 10px; }

.dchart .orow { align-items: flex-start; }
.cwrap { position: relative; margin-top: 8px; }
.chart {
  position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px;
  height: 230px; padding-top: 22px; border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 22px / 100% calc((100% - 22px) / 4);
}
.ccol {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; height: 100%;
  padding: 0; border: 0; border-radius: 6px 6px 0 0; background: transparent; color: inherit; cursor: pointer;
  transition: background-color .15s ease;
}
@media (hover: hover) and (pointer: fine) { .ccol:hover { background: var(--hot); } }
.ccol.cur { background: var(--hot); }
.ccol:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cbars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; min-height: 0; }
.bar { position: relative; display: block; width: min(20px, 34%); height: calc(var(--h) * 100%); min-height: 2px; }
.bar.off { visibility: hidden; }
.bar .fill { position: absolute; inset: 0; border-radius: 4px 4px 0 0; transform-origin: bottom; }
.cin .fill { background: var(--accent); }
.cout .fill { background: #D9877A; }
.ccol.cur .cin .fill { background: var(--brand); }
.cm { position: absolute; left: 0; right: 0; top: calc(100% + 6px); font-size: .76rem; color: var(--muted); text-align: center; }
.ccol.cur .cm { color: var(--ink); font-weight: 700; }
.chart { margin-bottom: 30px; }
.cgoal { position: absolute; left: 0; right: 0; bottom: calc(var(--g) * (100% - 22px)); border-top: 1.5px dashed var(--line-strong); pointer-events: none; }
.cgoal span { position: absolute; right: 0; top: -1.4em; padding: 0 4px; background: var(--surface); color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; }
.ctip {
  position: absolute; left: 0; top: 0; z-index: 2; display: grid; gap: 3px; min-width: 176px; padding: 9px 11px;
  border-radius: 8px; background: var(--ink); color: #fff; font-size: .8rem; font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 26px rgba(2, 26, 24, .28); pointer-events: none; opacity: 0;
}
.ctip b { font: 700 .95rem var(--display); letter-spacing: .02em; }
.ctip span { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .8); }
.ctip strong { margin-left: auto; color: #fff; font-weight: 600; }
.ctip strong.neg { color: #FFB3A8; }
.ctip i { width: 8px; height: 8px; border-radius: 2px; }
.ctip .t-inc i { background: var(--mint); }
.ctip .t-out i { background: #E8A398; }
.ctip .t-pro { padding-top: 4px; margin-top: 2px; border-top: 1px solid rgba(255, 255, 255, .15); padding-left: 14px; }
.clegend { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.clegend button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font: 500 .8rem var(--body); cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease, transform .12s var(--ease-out);
}
.clegend button:active { transform: scale(.96); }
.clegend button[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
.clegend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-inc i { background: var(--accent); }
.lg-out i { background: #D9877A; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 99px; background: var(--chip); }
.seg-pill { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 99px; background: var(--surface); box-shadow: 0 1px 3px rgba(3, 43, 40, .15); }
.seg button { position: relative; z-index: 1; min-height: 32px; padding: 0 14px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font: 600 .8rem var(--body); cursor: pointer; }
.seg button[aria-checked="true"] { color: var(--ink); }
.hrows { display: grid; gap: 4px; margin-top: 10px; }
.hrow {
  display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; min-height: 36px; padding: 2px 6px; border: 0; border-radius: 6px; background: none; color: var(--ink);
  font: .85rem var(--body); text-align: left;
}
button.hrow { cursor: pointer; transition: background-color .15s ease; }
@media (hover: hover) and (pointer: fine) { button.hrow:hover { background: var(--hot); } }
.hlab { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.htrack { height: 12px; border-radius: 6px; background: var(--chip); overflow: hidden; }
.hbar { position: relative; display: block; height: 100%; width: calc(var(--w) * 100%); }
.hbar .fill { position: absolute; inset: 0; border-radius: 6px; background: var(--accent); transform-origin: left; }
.st-fechado .hbar .fill { background: var(--good); }
.st-perdido .hbar .fill { background: var(--line-strong); }
.hval { min-width: 2.5ch; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.precv { display: grid; gap: 4px; }
.mini { display: block; width: 80%; height: 4px; border-radius: 2px; background: var(--chip); overflow: hidden; }
.mini .hbar .fill { border-radius: 2px; background: var(--good); }
.mrows { list-style: none; margin: 10px 0 0; padding: 0; }
.mrows li { display: flex; align-items: center; gap: 10px; min-height: 46px; border-bottom: 1px solid var(--line); }
.mrows .namebtn { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }

.ptable { margin-top: 10px; border-top: 1px solid var(--line); }
.prow {
  display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: center;
  width: 100%; min-height: 52px; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink);
  font: .88rem var(--body); text-align: left; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color .15s ease;
}
button.prow:hover { background: var(--hot); }
.phead { min-height: 36px; cursor: default; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pname { display: grid; min-width: 0; }
.pname b { font: 600 1.08rem/1.2 var(--display); overflow-wrap: anywhere; }
.pname small { color: var(--muted); font-size: .74rem; }
@media (max-width: 760px) {
  .phead { display: none; }
  .prow { grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 4px; }
  .prow .pname { grid-column: 1 / -1; }
  .prow [data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: .76rem; }
}
.dempty { padding: 28px 8px 12px; text-align: center; }
.dempty h3 { margin: 0; font: 700 1.3rem var(--display); }
.dempty p { margin: 6px auto 14px; max-width: 46ch; color: var(--muted); font-size: .9rem; }
.dempty .act { margin-inline: auto; }


@media (prefers-reduced-motion: reduce) {
  :root:not(.mo-force) .shbox { transition: none !important; }
}
.knext {
  display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 8px 0 10px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--accent); font: 600 .76rem var(--body); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .12s var(--ease-out);
}
.knext .ico { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .knext:hover { background: var(--accent); border-color: var(--accent); color: #fff; } .knext:hover .ico { transform: translateX(2px); } }
.knext:active { transform: scale(.95); }

/* ---------- contato rápido ---------- */
.qc { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(2, 26, 24, 0); transition: background-color .2s ease; }
.qc.open { background: rgba(2, 26, 24, .5); }
.qcbox {
  width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 20px 16px;
  border-radius: 16px; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3), inset 0 1px 0 #fff;
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s ease, transform .28s var(--ease-out);
}
.qc.open .qcbox { opacity: 1; transform: none; }
.qchead { display: flex; align-items: flex-start; gap: 10px; }
.qchead > div { flex: 1; min-width: 0; }
.qchead h2 { margin: 0; font: 700 1.6rem/1.1 var(--display); overflow-wrap: anywhere; }
.qchead p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.qchead .pill { margin-top: 6px; }
.qcopts { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 12px 0 6px; }
.qcopts .ff { gap: 6px; }
.qc-seg button:disabled { opacity: .4; cursor: not-allowed; }
.qcbox textarea { width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font: .95rem/1.55 var(--body); resize: vertical; }
.qcbox textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--hot-strong); }
.qcbox .obtns select { min-height: 36px; width: auto; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); font: .85rem var(--body); }
.qcacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.qcacts .qc-send { min-height: 46px; padding: 0 18px; font-size: .95rem; border-radius: 10px; }
.qcacts .act { min-height: 46px; border-radius: 10px; }
.qcfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; }
body.qc-open { overflow: hidden; }
.kcontact {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  border: 1px solid #BFE8D6; background: #E8F7F0; color: #128C4A; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .12s var(--ease-out);
}
.kcontact .ico { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .kcontact:hover { background: #25D366; border-color: #25D366; color: #fff; } }
.kcontact:active { transform: scale(.92); }
.kfoot .kcontact { margin-left: auto; }
.kfoot .kcontact + .knext { margin-left: 0; }
.pcontact { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.cbar { grid-template-columns: minmax(180px, 1fr) auto auto auto; }
.cbar select { width: auto; }

/* ---------- radar: cartões dos comércios ---------- */
#v-radar ol.leads { display: grid; gap: 10px; }
#v-radar .lead {
  margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(3, 43, 40, .05);
  transition: border-color .15s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) { #v-radar .lead:hover { background: var(--surface); border-color: var(--line-strong); box-shadow: 0 10px 26px rgba(3, 43, 40, .09); } }
#v-radar .lead.hot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--hot-strong); }
#v-radar .thumb { border-radius: 10px; }
#v-radar .name { font-size: 1.35rem; }
#v-radar .acts { gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
#v-radar .act { min-height: 38px; border-radius: 8px; gap: 6px; }
#v-radar .act .ico { width: 17px; height: 17px; }
#v-radar .act.prop { padding: 0 16px; background: #128C4A; border-color: #128C4A; color: #fff; box-shadow: 0 4px 10px rgba(18, 140, 74, .22); }
#v-radar .act.prop:hover { background: #0E7A40; filter: none; }
#v-radar .lead select { min-height: 38px; border-radius: 8px; margin-left: auto; }
.icoacts { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.icoact {
  position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .12s var(--ease-out);
}
.icoact .ico { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .icoact:hover { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(3, 43, 40, .12); } }
.icoact:active { transform: scale(.92); }
.icoact.known { color: var(--accent); }
.icoact.known::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 2px var(--bg); }
.icoact.done { background: var(--good); color: #fff; }
#v-radar .panel { border-radius: 14px; box-shadow: 0 1px 2px rgba(3, 43, 40, .05), 0 12px 30px rgba(3, 43, 40, .06); padding: 20px; }
#v-radar .go { border-radius: 10px; }
#v-radar input[type="text"], #v-radar input[type="search"], #v-radar select { border-radius: 8px; }
#v-radar .funnel button { border-radius: 10px; }
#v-radar .gnote { border-radius: 10px; }
@media (max-width: 560px) { #v-radar .lead select { margin-left: 0; } }

/* ---------- radar: barra de busca no topo ---------- */
#v-radar main { padding-top: 0; }
.searchbar { max-width: 1180px; margin: -34px auto 22px; position: relative; z-index: 2; }
#v-radar .band { padding-bottom: 52px; }
#v-radar .searchbar .panel {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.6fr) auto; align-items: end; gap: 12px 14px;
  padding: 18px 20px; border-radius: 16px; border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 18px 44px rgba(3, 43, 40, .14), 0 2px 6px rgba(3, 43, 40, .06);
}
#v-radar .searchbar .field.wide { grid-column: auto; }
#v-radar .searchbar .check { grid-column: 1 / 3; min-height: 32px; font-size: .88rem; }
#v-radar .searchbar .hint { grid-column: 3 / -1; text-align: right; }
#v-radar .searchbar .go { grid-column: auto; grid-row: 1; grid-column-start: 4; align-self: end; min-height: 46px; font-size: 1.3rem; padding: 0 22px; }
#v-radar .searchbar .field label { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 900px) {
  #v-radar .searchbar .panel { grid-template-columns: 1fr 1fr; }
  #v-radar .searchbar .field:nth-child(3) { grid-column: 1 / -1; }
  #v-radar .searchbar .go { grid-row: auto; grid-column: 1 / -1; justify-self: stretch; }
  #v-radar .searchbar .check, #v-radar .searchbar .hint { grid-column: 1 / -1; text-align: left; }
}
#v-radar .searchbar #status { margin: 14px 4px 0; }
#v-radar .searchbar .gnote { margin-top: 10px; }
#v-radar .shell { max-width: 1180px; }
@media (min-width: 900px) { #v-radar .shell { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; } #v-radar .radar-frame { width: min(100%, 300px); } }
#v-radar .lead .name { font: 600 1.4rem/1.12 var(--display); }
#v-radar .acts { flex-wrap: wrap; }
#v-radar .lead select { min-height: 36px; width: auto; padding: 0 28px 0 10px; font-size: .82rem; }
body .fxbtn { z-index: 23; }
@media (min-width: 1024px) { body .fxbtn { left: calc(var(--side-w) + 12px); } }

/* guia antes da primeira busca */
.howto { padding: 22px 24px; border: 1px dashed var(--line-strong); border-radius: 16px; background: rgba(255, 255, 255, .6); }
#results:not([hidden]) + .howto { display: none; }
.howto h2 { margin: 0 0 14px; font: 700 1.5rem var(--display); }
.howto ol { list-style: none; counter-reset: s; display: grid; gap: 14px; margin: 0; padding: 0; }
.howto li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.howto li::before { content: counter(s); grid-row: 1 / 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 1.1rem var(--display); }
.howto b { font-size: .98rem; }
.howto span { color: var(--muted); font-size: .88rem; }

/* ---------- WhatsApp automático ---------- */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .86rem; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span::before { content: ""; display: inline-block; width: 40px; height: 24px; margin-right: 8px; vertical-align: middle; border-radius: 12px; background: var(--line-strong); box-shadow: inset 0 0 0 2px transparent; transition: background-color .2s ease; }
.switch span { position: relative; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .22s var(--ease-out); }
.switch input:checked + span::before { background: #128C4A; }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span::before { box-shadow: 0 0 0 3px var(--hot-strong); }
.wastate { margin: 10px 0 0; padding: 10px 12px 10px 30px; border-radius: 8px; background: var(--chip); font-size: .88rem; position: relative; }
.wastate::before { content: ""; position: absolute; left: 12px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.wastate.ok { background: #E3F6EC; } .wastate.ok::before { background: #128C4A; }
.wastate.wait { background: var(--warn-bg); } .wastate.wait::before { background: #E0A12E; }
.wastate.bad { background: var(--bad-bg); } .wastate.bad::before { background: var(--bad); }
.waqr { display: block; width: 240px; max-width: 100%; margin: 12px auto 4px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(3, 43, 40, .15); }
.wasteps { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: .86rem; }
.sidewa { width: 10px; height: 10px; margin-left: auto; border-radius: 50%; flex: none; background: rgba(255, 255, 255, .25); }
.sidewa.ok { background: #25D366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .25); }
.sidewa.wait { background: #F2B44B; }
.sidewa.bad { background: #E5675B; }
