/* ============================================================
   Nymbo · Atendente IA
   Estrutura no estilo do kit DashStack (fundo #F5F6FA, Nunito Sans,
   menu branco com item ativo preenchido, barra superior, cartões
   com ícone colorido e linha de tendência), com o roxo da Nymbo.
   ============================================================ */
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('fonts/nunito.woff2') format('woff2'); font-weight: 200 1000; font-stretch: 75% 125%; font-display: swap; }

:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --ink: #202224;
  --ink-2: #4b4f58;
  --muted: #8a8f99;
  --line: #e6e8ee;
  --line-2: #d5d8e0;
  --head: #f1f4f9;

  /* Nymbo */
  --primary: #7b4dff;
  --primary-2: #6a3bf0;
  --primary-soft: #efe9ff;
  --primary-ink: #5326d9;
  --brand-grad: linear-gradient(135deg, #9b6bff 0%, #7b4dff 45%, #5b2be0 100%);

  /* cores do kit para ícones e situações */
  --c1: #8280ff; --c1-soft: rgba(130, 128, 255, .18);
  --c2: #fec53d; --c2-soft: rgba(254, 197, 61, .2);
  --c3: #4ad991; --c3-soft: rgba(74, 217, 145, .2);
  --c4: #ff9066; --c4-soft: rgba(255, 144, 102, .2);
  --ok: #00b69b;   --ok-soft: #d3f4ef;
  --wait: #ff9f43; --wait-soft: #ffeedd;
  --bad: #ef3826;  --bad-soft: #fcdedb;
  --info: #4880ff; --info-soft: #e3ecff;
  --up: #00b69b; --down: #f93c65;

  --shadow: 6px 6px 54px rgba(0, 0, 0, .05);
  --shadow-lg: 0 24px 60px -20px rgba(32, 34, 36, .3);
  --r: 8px; --r-lg: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --font: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --side: 240px;
  --top: 64px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 500 14px/1.5 var(--font); }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
::selection { background: var(--primary-soft); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: #cfd3dc transparent; }
[hidden] { display: none !important; }

/* ---------------- estrutura: menu + barra superior ---------------- */
/* tudo cabe numa tela: só as listas longas rolam, dentro do próprio cartão */
#root { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.app { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: var(--top) minmax(0, 1fr); }
.sidebar { grid-row: 1 / span 2; position: relative; min-height: 0; overflow-y: auto; background: var(--card); display: flex; flex-direction: column; padding: 0 0 14px; box-shadow: 1px 0 0 var(--line); z-index: 10; }
.brand { height: var(--top); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; flex-shrink: 0; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-grad); display: grid; place-items: center; flex-shrink: 0; color: #fff; font: 900 19px/1 var(--font); box-shadow: 0 6px 14px -6px rgba(123, 77, 255, .8); }
.brand-name { font-weight: 900; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.brand-name span { color: var(--primary); }
.brand-sub { font-size: 11.5px; color: var(--muted); font-weight: 700; white-space: nowrap; margin-top: -2px; }

nav.menu { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.menu-label { font-size: 12px; font-weight: 700; color: var(--muted); padding: 14px 40px 6px; }
.menu-sep { height: 1px; background: var(--line); margin: 10px 0; }
.menu a { position: relative; display: flex; align-items: center; gap: 14px; height: 42px; margin: 0 20px; padding: 0 14px; border-radius: 6px; color: var(--ink); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.menu a::before { content: ''; position: absolute; left: -20px; top: 0; bottom: 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary); transform: scaleY(0); transition: transform .3s var(--spring); }
.menu a:hover { background: #f6f3ff; color: var(--primary-ink); }
.menu a.active { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px rgba(123, 77, 255, .9); }
.menu a.active::before { transform: scaleY(1); }
.menu .ico { width: 20px; height: 20px; display: grid; place-items: center; flex-shrink: 0; }
.menu .ico svg { width: 20px; height: 20px; }
.count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 99px; background: var(--down); color: #fff; font: 800 11.5px/20px var(--font); text-align: center; animation: popIn .4s var(--spring); }
.menu a.active .count { background: #fff; color: var(--primary); }

.side-foot { margin-top: auto; display: grid; gap: 2px; }
.side-cta { margin: 6px 24px 10px; padding: 14px 16px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink); cursor: pointer; transition: background .2s; }
.side-cta:hover { background: #e4dbff; }
.side-cta b { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.side-cta b svg { width: 16px; height: 16px; }
.side-cta span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }

.topbar { grid-column: 2; position: relative; z-index: 9; height: var(--top); background: var(--card); display: flex; align-items: center; gap: 18px; padding: 0 30px; box-shadow: 0 1px 0 var(--line); }
.search { position: relative; width: min(388px, 40vw); }
.search input { width: 100%; height: 38px; border-radius: 19px; background: var(--bg); border: 0.6px solid var(--line-2); padding: 0 16px 0 42px; font-size: 14px; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search .results { position: absolute; top: 46px; left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; animation: pop .25s var(--ease); max-height: 360px; overflow: auto; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.bell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; color: var(--primary); border-radius: 10px; cursor: pointer; transition: background .15s; border: none; background: transparent; padding: 0; }
.bell:hover { background: var(--primary-soft); }
.bell svg { width: 24px; height: 24px; }
.bell b { position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--down); color: #fff; font: 800 11px/18px var(--font); text-align: center; padding: 0 4px; animation: popIn .4s var(--spring); }
.profile { display: flex; align-items: center; gap: 12px; position: relative; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 12px; transition: background .15s; }
.profile:hover { background: var(--bg); }
.profile .who-n { font-weight: 800; font-size: 14px; line-height: 1.2; }
.profile .who-s { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.profile .chev { width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.profile .chev svg { width: 11px; height: 11px; }
.menu-pop { position: absolute; right: 0; top: 52px; width: 220px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; animation: pop .22s var(--ease); }
.menu-pop button { width: 100%; justify-content: flex-start; border: none; background: transparent; height: 40px; font-weight: 700; }
.menu-pop button:hover { background: var(--bg); }
.wa-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--bg); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }

main { grid-column: 2; min-width: 0; min-height: 0; padding: 20px 26px 18px; display: flex; flex-direction: column; overflow: hidden; }
#view { width: 100%; max-width: 1440px; margin: 0 auto; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
#view.wide { max-width: none; }
#view.enter { animation: none; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.support-bar { position: relative; z-index: 30; flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 9px 30px; background: #202224; color: #fff; font-weight: 600; font-size: 13.5px; }
.support-bar .tile { width: 26px; height: 26px; border-radius: 8px; }
.support-bar button { margin-left: auto; height: 32px; background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
.support-bar button:hover { background: rgba(255,255,255,.22); }
.support-bar.danger { background: var(--bad); }
.support-bar.danger svg { width: 18px; height: 18px; flex-shrink: 0; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; flex-shrink: 0; }
.page-head h1 { font-size: 26px; }
.page-head p { margin: 3px 0 0; color: var(--ink-2); max-width: 70ch; font-weight: 500; }
.title-row { display: flex; align-items: center; gap: 14px; }

/* ---------------- superfícies ---------------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 22px 24px 10px; }
.card-head .sub { color: var(--muted); font-size: 13px; font-weight: 600; }
.card-body { padding: 6px 14px 16px; }
.tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--c-soft); color: var(--c); }
.tile svg { width: 20px; height: 20px; }
.c-violet { --c: var(--primary); --c-soft: var(--primary-soft); }
.c-sky { --c: var(--c1); --c-soft: var(--c1-soft); }
.c-amber { --c: #e5a50a; --c-soft: var(--c2-soft); }
.c-teal { --c: #23b26d; --c-soft: var(--c3-soft); }
.c-pink { --c: var(--c4); --c-soft: var(--c4-soft); }
.c-green { --c: var(--ok); --c-soft: var(--ok-soft); }
.grid { display: grid; gap: 24px; }
.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.cols-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 20px; }

/* ---------------- controles ---------------- */
input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 14px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #a6abb5; }
textarea { width: 100%; min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(123, 77, 255, .15); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; min-width: 18px; flex: none; margin: 0; padding: 0; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
label > input:not([type=checkbox]):not([type=radio]), label > select, label > textarea { font-weight: 600; width: 100%; color: var(--ink); background: var(--bg); border-color: var(--line); }
label > input:focus, label > select:focus, label > textarea:focus { background: #fff; }
.hint { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-top: -3px; }
.form { display: grid; gap: 18px; }
.form.two { grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.section-title { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; display: block; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #d5d8e0; transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--bg); }
.toggle-row b { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.toggle-row span { font-size: 13px; color: var(--ink-2); font-weight: 500; }

button, .btn { font: 700 14px/1 var(--font); height: 40px; padding: 0 18px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: var(--r); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform .16s var(--ease), background .15s, border-color .15s, box-shadow .2s; }
button:hover, .btn:hover { background: #fafbfd; border-color: #c4c8d2; }
button:active, .btn:active { transform: scale(.97); }
button svg, .btn svg { width: 17px; height: 17px; flex-shrink: 0; }
button.primary { border: none; background: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px rgba(123, 77, 255, .9); }
button.primary:hover { background: var(--primary-2); }
button.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
button.dark:hover { background: #33363a; }
button.ghost { border-color: transparent; background: transparent; }
button.ghost:hover { background: var(--primary-soft); color: var(--primary-ink); }
button.danger { color: var(--bad); }
button.big { height: 50px; font-size: 16px; padding: 0 24px; }
button.sm { height: 32px; padding: 0 12px; font-size: 13px; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn { width: 38px; padding: 0; border-color: transparent; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.tabs { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 14px; flex-shrink: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 6px; width: fit-content; max-width: 100%; }
.tabs button { height: 38px; border-radius: 8px; border: none; background: transparent; color: var(--ink-2); padding: 0 16px 0 10px; }
.tabs button:hover { background: var(--bg); }
.tabs button.on { background: var(--primary); color: #fff; }
.tabs button .tile { width: 26px; height: 26px; border-radius: 8px; }
.tabs button .tile svg { width: 15px; height: 15px; }
.tabs button.on .tile { background: rgba(255,255,255,.2); color: #fff; }

/* ---------------- situações (pílulas do kit) ---------------- */
.tag { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 88px; padding: 0 12px; border-radius: 13px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--primary-soft); color: var(--primary-ink); }
.tag.agendado { background: var(--info-soft); color: var(--info); }
.tag.confirmado, .tag.ok, .tag.concluido { background: var(--ok-soft); color: var(--ok); }
.tag.cancelado, .tag.faltou, .tag.off { background: var(--bad-soft); color: var(--bad); }
.tag.humano, .tag.warn { background: var(--wait-soft); color: #e07b12; }
.tag.plain { background: var(--bg); color: var(--ink-2); min-width: 0; }

/* ---------------- tabelas e listas ---------------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl-wrap { padding: 0 24px 18px; }
th { text-align: left; font-size: 14px; font-weight: 800; color: var(--ink); padding: 14px 16px; background: var(--head); }
th:first-child { border-radius: 12px 0 0 12px; } th:last-child { border-radius: 0 12px 12px 0; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr.click { cursor: pointer; } tr.click td { transition: background .12s; }
tr.click:hover td { background: #fafbfd; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font: 800 13px/1 var(--font); color: #fff; background: var(--hue); }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
.avatar.xl { width: 76px; height: 76px; font-size: 26px; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.list-item:hover { background: #fafbfd; }
.list-item + .list-item { border-top: 1px solid var(--line); }
.li-main { flex: 1; min-width: 0; }
.li-title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sub { color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time-pill { min-width: 62px; height: 46px; border-radius: 10px; display: grid; place-content: center; text-align: center; font: 800 15px/1 var(--font); font-variant-numeric: tabular-nums; background: var(--c-soft); color: var(--c); }
.time-pill small { display: block; font-size: 10.5px; font-weight: 700; opacity: .85; margin-top: 3px; }
.empty { text-align: center; color: var(--ink-2); padding: 30px 16px; font-weight: 500; }
.empty .art { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.empty .art svg { width: 28px; height: 28px; }
.empty b { display: block; color: var(--ink); font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--wait-soft); color: #9a4f00; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert.ok { background: var(--ok-soft); color: #00806d; }

/* ============================================================
   INÍCIO
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; flex-shrink: 0; }
.stats.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat { padding: 14px 14px 12px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; transition: transform .25s var(--ease), box-shadow .25s; }
.stat.click { cursor: pointer; } .stat.click:hover { transform: translateY(-3px); box-shadow: 6px 14px 54px rgba(0,0,0,.08); }
.stat .k { font-size: 15px; color: var(--ink-2); font-weight: 700; }
.stat .k { font-size: 14px !important; }
.stat .v { font-size: 24px; font-weight: 800; letter-spacing: .3px; margin-top: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; grid-column: 1; }
.stat .tile { grid-column: 2; grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 16px; }
.stat .tile svg { width: 22px; height: 22px; }
.stats.six .stat .tile { width: 38px; height: 38px; border-radius: 12px; }
.stats.six .stat .v { font-size: 20px; }
.stat .trend { grid-column: 1 / -1; margin-top: 8px; font-size: 12.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .trend b { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.stat .trend b svg { width: 18px; height: 18px; }
.stat .trend .up { color: var(--up); } .stat .trend .down { color: var(--down); } .stat .trend .flat { color: var(--muted); }

.brief-card { padding: 14px 20px; margin-bottom: 16px; flex-shrink: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; position: relative; overflow: hidden; }
.brief-card small { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 2px; }
.brief-card p { margin: 0; font-size: 15.5px; line-height: 1.55; font-weight: 600; color: var(--ink); max-width: 80ch; }
.brief-card p b { font-weight: 900; }
.brief-card .chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; flex-shrink: 0; }
.hello h1 { font-size: 26px; }
.hello .date { color: var(--ink-2); font-weight: 600; margin-top: 4px; }

/* primeiros passos */
.steps-card { padding: 24px; margin-bottom: 24px; display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
.steps-card .intro { text-align: center; }
.steps-card .intro h2 { margin-top: 14px; }
.steps-card .intro p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.ring { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring .bg { stroke: var(--primary-soft); }
.ring .fg { stroke: url(#ringGrad); transition: stroke-dashoffset 1.2s var(--ease); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .lbl b { font-size: 30px; font-weight: 900; line-height: 1; }
.ring .lbl span { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.steps { display: grid; gap: 10px; }
.step { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 12px; background: var(--bg); transition: transform .2s var(--ease), background .2s; }
.step.go { cursor: pointer; }
.step.go:hover { background: var(--primary-soft); transform: translateX(4px); }
.step .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #fff; color: var(--primary); border: 2px solid var(--line-2); flex-shrink: 0; }
.step.done .n { background: var(--ok); border-color: var(--ok); color: #fff; animation: popIn .5s var(--spring); }
.step.done .n svg { width: 16px; height: 16px; }
.step b { display: block; font-size: 14.5px; font-weight: 800; }
.step.done b { color: var(--ink-2); }
.step span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.step .arrow { margin-left: auto; color: var(--primary); display: flex; }
.step .arrow svg { width: 18px; height: 18px; }

.stagger > * { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   AGENDA
   ============================================================ */
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.cal-title { font-size: 24px; font-weight: 800; margin-right: 6px; }
.cal-title::first-letter { text-transform: uppercase; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); }
.seg button { height: 32px; border: none; background: transparent; color: var(--ink-2); border-radius: 7px; padding: 0 14px; }
.seg button:hover { background: var(--bg); }
.seg button.on { background: var(--primary); color: #fff; }
.cal { display: grid; grid-template-columns: 64px 1fr; overflow: hidden; }
.cal-heads { grid-column: 1 / -1; display: grid; grid-template-columns: 64px repeat(var(--cols), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cal-head { padding: 14px; display: flex; align-items: center; gap: 10px; font-weight: 800; min-width: 0; white-space: nowrap; overflow: hidden; border-left: 1px solid var(--line); }
.cal-head .d { font-size: 22px; font-weight: 900; }
.cal-head .w { color: var(--muted); font-weight: 700; }
.cal-head.today-col .d { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 16px; }
.cal-body { grid-column: 1 / -1; display: grid; grid-template-columns: 64px repeat(var(--cols), minmax(0, 1fr)); max-height: calc(100vh - 250px); overflow: auto; padding-top: 10px; }
.cal-gutter { position: relative; }
.cal-gutter span { position: absolute; right: 12px; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 69px; cursor: copy; transition: background-color .2s; }
.cal-col:hover { background-color: #fbfbfe; }
.cal-col.closed { background-color: #fafbfd; background-image: repeating-linear-gradient(-45deg, #eef0f4 0 2px, transparent 2px 10px); cursor: default; }
.cal-col .brk { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, #f0f1f6 0 2px, transparent 2px 10px); pointer-events: none; }
.ev { position: absolute; left: 5px; right: 5px; border-radius: 8px; padding: 6px 10px; overflow: hidden; cursor: pointer; background: var(--c-soft); color: var(--ink); border-left: 4px solid var(--c); transition: transform .2s var(--ease), box-shadow .2s; animation: evIn .5s var(--spring) both; animation-delay: calc(var(--i) * 40ms); }
.ev:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -14px rgba(0,0,0,.4); z-index: 3; }
.ev .et { font-weight: 900; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .es { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.cancelado { opacity: .5; } .ev.cancelado .et { text-decoration: line-through; }
@keyframes evIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--down); z-index: 4; pointer-events: none; }
.cal-now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 4px rgba(249, 60, 101, .18); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.slot { height: 38px; padding: 0 14px; border-radius: 8px; font-weight: 800; font-variant-numeric: tabular-nums; animation: slotIn .35s var(--ease) both; animation-delay: calc(var(--i) * 18ms); }
.slot:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.slot.sel { background: var(--primary); border-color: var(--primary); color: #fff; animation: pick .4s var(--spring); }
@keyframes slotIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pick { from { transform: scale(.85); } to { transform: none; } }

/* ============================================================
   CONVERSAS
   ============================================================ */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; flex: 1; min-height: 0; height: auto !important; overflow: hidden; }
.inbox > * { min-height: 0; }
.conv-col { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.conv-tools { padding: 18px 16px 10px; display: grid; gap: 10px; }
.conv-tools input { width: 100%; background: var(--bg); }
.conv-tools .seg { display: flex; } .conv-tools .seg button { flex: 1; padding: 0 6px; }
.conv-list { overflow: auto; padding: 4px 10px 10px; flex: 1; }
.conv { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.conv:hover { background: #fafbfd; }
.conv.sel { background: var(--primary-soft); }
.conv .avatar { grid-row: span 2; }
.conv .name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .when { font-size: 12px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.conv .last { color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .meta { display: flex; gap: 4px; justify-content: flex-end; }
.conv .meta .tag { height: 20px; font-size: 11px; padding: 0 8px; min-width: 0; }
.conv.unread .name { color: var(--primary-ink); }
.conv.unread .last { color: var(--ink); font-weight: 700; }

.chat { display: flex; flex-direction: column; min-width: 0; }
.chat-head { min-height: 72px; padding: 12px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-head .t { font-weight: 900; font-size: 16px; }
.chat-head .st { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; font-weight: 700; }
.chat-body { flex: 1; overflow: auto; padding: 24px 28px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.bubble { max-width: min(540px, 78%); padding: 11px 15px 8px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-weight: 600; }
.bubble.in { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px -4px rgba(0,0,0,.12); }
.bubble.out { align-self: flex-end; border-bottom-right-radius: 4px; color: #fff; background: var(--primary); }
.bubble.out.atendente { background: #202224; }
.bubble.in + .bubble.out, .bubble.out + .bubble.in { margin-top: 10px; }
.bubble .meta { font-size: 11px; margin-top: 4px; text-align: right; opacity: .7; font-weight: 700; font-variant-numeric: tabular-nums; }
.bubble .meta.err { color: #ffe1e1; opacity: 1; }
.bubble.in .meta.err { color: var(--bad); }
.bubble.sistema { align-self: center; background: var(--wait-soft); color: #9a4f00; font-size: 12.5px; font-weight: 700; text-align: center; padding: 6px 14px; border-radius: 99px; max-width: 90%; box-shadow: none; }
.bubble.fresh { animation: pop .4s var(--spring) both; }
.bubble.in.fresh { transform-origin: bottom left; } .bubble.out.fresh { transform-origin: bottom right; }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(8px); } to { opacity: 1; transform: none; } }
.day-sep { align-self: center; font-size: 12px; font-weight: 800; color: var(--ink-2); background: #fff; padding: 4px 12px; border-radius: 99px; margin: 10px 0 8px; box-shadow: 0 2px 6px -3px rgba(0,0,0,.15); }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 13px 15px; background: #fff; border-radius: 16px; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px -4px rgba(0,0,0,.12); margin-top: 8px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: bounce 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.composer { padding: 12px 16px 14px; border-top: 1px solid var(--line); background: #fff; }
.composer-box { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px 6px 6px 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.composer-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(123, 77, 255, .12); }
.composer-box textarea { border: none; box-shadow: none; padding: 9px 0; min-height: 22px; height: 38px; max-height: 140px; resize: none; background: transparent; }
.composer-box textarea:focus { box-shadow: none; }
.composer-box button { width: 40px; padding: 0; }
.composer .hint { margin-top: 8px; display: block; }
.handoff { display: flex; align-items: center; gap: 10px; padding: 10px 22px; background: var(--wait-soft); color: #9a4f00; font-size: 13.5px; font-weight: 700; }
.handoff svg { width: 17px; height: 17px; flex-shrink: 0; }
.ctx { border-left: 1px solid var(--line); overflow: auto; padding: 24px 18px; }
.ctx-top { text-align: center; padding-bottom: 18px; }
.ctx-top .avatar { margin: 0 auto 12px; }
.ctx-top .n { font-size: 18px; font-weight: 900; }
.ctx-top .p { color: var(--ink-2); font-size: 13px; margin-top: 2px; font-weight: 700; }
.ctx-sec { padding: 14px; border-radius: 12px; background: var(--bg); margin-bottom: 12px; }
.ctx-sec h4 { margin: 0 0 10px; font-size: 13.5px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.ctx-sec h4 .tile { width: 26px; height: 26px; border-radius: 8px; } .ctx-sec h4 .tile svg { width: 14px; height: 14px; }
.ctx-appt { padding: 10px 12px; border-radius: 10px; background: #fff; margin-bottom: 6px; cursor: pointer; transition: transform .2s var(--ease); }
.ctx-appt:hover { transform: translateX(3px); }
.ctx-appt .w { font-weight: 900; font-size: 13px; }
.ctx-appt .s { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.ctx-notes { font-size: 13px; white-space: pre-wrap; line-height: 1.5; font-weight: 600; }

/* ---------------- testar a IA: celular ---------------- */
.phone-wrap { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
.phone { width: 350px; height: min(720px, calc(100vh - 200px)); min-height: 480px; border-radius: 44px; padding: 11px; background: #202224; box-shadow: var(--shadow-lg); position: relative; }
.phone::before { content: ''; position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 99px; background: #0d0e10; z-index: 3; }
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); }
.phone-top { padding: 46px 16px 12px; background: var(--primary); color: #fff; display: flex; align-items: center; gap: 10px; }
.phone-top b { display: block; font-size: 14.5px; font-weight: 900; } .phone-top span { font-size: 12px; opacity: .88; font-weight: 700; }
.phone-top .avatar { background: #fff !important; color: var(--primary); }
.phone-top .icon-btn { margin-left: auto; color: #fff; } .phone-top .icon-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.phone .chat-body { padding: 16px 12px; }
.phone .bubble { max-width: 84%; font-size: 14px; }
.phone .composer { padding: 10px; border-top: none; background: var(--bg); }
.phone .composer-box { border-color: transparent; border-radius: 99px; }
.phone .composer-box button { border-radius: 50%; }
.ideas { display: grid; gap: 12px; }
.idea { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); cursor: pointer; font-weight: 700; transition: transform .25s var(--spring), box-shadow .2s; }
.idea:hover { transform: translateY(-3px); box-shadow: 6px 14px 54px rgba(0,0,0,.08); }

/* ============================================================
   LOGIN (fundo roxo com formas, cartão branco central)
   ============================================================ */
.auth { min-height: 100%; height: 100%; overflow: auto; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; background: #6a3bf0; isolation: isolate; }
.auth .shape { position: absolute; z-index: -1; border-radius: 50%; }
.auth .s1 { width: 720px; height: 720px; left: -260px; top: -320px; background: #7b4dff; animation: float1 16s ease-in-out infinite alternate; }
.auth .s2 { width: 520px; height: 520px; right: -180px; bottom: -220px; background: #5b2be0; animation: float2 18s ease-in-out infinite alternate; }
.auth .s3 { width: 300px; height: 300px; right: 16%; top: -120px; background: #8f66ff; animation: float1 20s ease-in-out infinite alternate-reverse; }
.auth .s4 { width: 180px; height: 180px; left: 12%; bottom: 8%; background: #8f66ff; animation: float2 14s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate(-30px, 30px) scale(1.06); } }
@keyframes float2 { to { transform: translate(40px, -20px) scale(.94); } }
.auth-card { width: min(520px, 100%); background: #fff; border-radius: 24px; padding: 48px 50px 40px; box-shadow: 0 40px 90px -30px rgba(20, 0, 70, .55); animation: authIn .7s var(--spring) both; text-align: center; }
@keyframes authIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.auth-card .brand { justify-content: center; height: auto; padding: 0 0 22px; }
.auth-card h1 { font-size: 30px; }
.auth-card p.lead { color: var(--ink-2); margin: 8px 0 28px; font-weight: 600; }
.auth-card .form { gap: 18px; text-align: left; }
.auth-card button.primary { width: 100%; margin-top: 8px; }
.auth-err { color: var(--bad); background: var(--bad-soft); padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; }
.shake { animation: shake .42s ease-out; }
@keyframes shake { 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.auth-foot { margin-top: 22px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.pw { position: relative; display: block; }
.pw input { width: 100%; padding-right: 46px; font-weight: 600; background: var(--bg); border-color: var(--line); }
.pw input:focus { background: #fff; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); height: 36px; width: 38px; padding: 0; border: none; background: transparent; color: var(--muted); }
.pw button:active { transform: translateY(-50%) scale(.95); }

/* ============================================================
   PLATAFORMA
   ============================================================ */
.company-card { padding: 22px; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.company-card:hover { transform: translateY(-4px); box-shadow: 6px 18px 54px rgba(0,0,0,.09); }
.company-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.company-card .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.company-card .nums div { padding: 10px 6px; border-radius: 10px; background: var(--bg); text-align: center; }
.company-card .nums b { display: block; font-size: 19px; font-weight: 900; }
.company-card .nums span { font-size: 11.5px; color: var(--ink-2); font-weight: 700; }
.company-card.off { opacity: .6; }
.add-card { border: 2px dashed var(--line-2); background: transparent; box-shadow: none; display: grid; place-items: center; align-content: center; text-align: center; color: var(--primary); font-weight: 800; min-height: 196px; cursor: pointer; border-radius: var(--r-lg); transition: background .2s, border-color .2s; }
.add-card:hover { background: #fff; border-color: var(--primary); }
.add-card .tile { margin: 0 auto 10px; width: 48px; height: 48px; border-radius: 50%; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--bg); padding: 10px 12px; border-radius: 8px; word-break: break-all; display: flex; align-items: center; gap: 10px; }
.code span { flex: 1; }
.howto { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.8; font-weight: 600; }

/* ---------------- janelas e avisos ---------------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(32, 34, 36, .45); backdrop-filter: blur(4px); animation: fade .2s var(--ease) both; }
.modal.closing { animation: fadeOut .19s var(--ease) both; }
.modal.closing .modal-card { animation: modalOut .19s var(--ease) both; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.modal-card { background: #fff; border-radius: 18px; width: min(660px, 100%); max-height: 90vh; overflow: auto; padding: 28px; box-shadow: var(--shadow-lg); animation: modalIn .4s var(--spring) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-head h3 { font-size: 22px; font-weight: 900; }
.modal-actions { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
#toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 80; }
.toast { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 12px 18px 12px 12px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 800; animation: toastIn .45s var(--spring) both; border-left: 4px solid var(--ok); }
.toast.err { border-left-color: var(--bad); }
.toast .tile { width: 28px; height: 28px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.toast.err .tile { background: var(--bad-soft); color: var(--bad); }
.toast .tile svg { width: 15px; height: 15px; }
.toast.out { animation: toastOut .25s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
.skeleton { height: 16px; border-radius: 8px; background: linear-gradient(90deg, #e9ebf0 0%, #f6f7fa 50%, #e9ebf0 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; margin: 12px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot .brand-mark { width: 56px; height: 56px; border-radius: 16px; font-size: 30px; animation: breathe 1.4s var(--ease) infinite; }
@keyframes breathe { 50% { transform: scale(.9); opacity: .7; } }

/* ---------------- responsivo ---------------- */
@media (max-width: 1300px) { .inbox { grid-template-columns: 290px minmax(0, 1fr); } .ctx { display: none; } }
@media (max-width: 1150px) { .split { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } .phone-wrap { grid-template-columns: 1fr; } .phone { margin: 0 auto; } .brief-card { grid-template-columns: auto 1fr; } .brief-card .chips { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .sidebar { grid-row: auto; position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; padding: 6px 8px; overflow-x: auto; }
  .brand { height: auto; padding: 0 6px; } .brand-name, .brand-sub, .side-foot, .menu-label, .menu-sep { display: none; }
  nav.menu { flex-direction: row; padding: 0; } .menu a { margin: 0 2px; padding: 0 12px; height: 42px; } .menu a::before { display: none; } .menu a .lbl, .menu a .count { display: none; }
  .topbar { grid-column: 1; position: static; padding: 0 14px; } .search { display: none; } .profile .who-n, .profile .who-s, .profile .chev, .wa-chip { display: none; }
  main { grid-column: 1; padding: 18px 14px 50px; }
  .steps-card { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .conv-col { max-height: 45vh; border-right: none; border-bottom: 1px solid var(--line); }
  .chat { height: 72vh; }
  .form.two { grid-template-columns: 1fr; }
  .phone { width: 100%; max-width: 370px; }
  .support-bar { padding: 8px 14px; } .has-support .sidebar { top: 0; }
  .auth-card { padding: 34px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------- botões e listas do WhatsApp ---------------- */
.bubble.has-opts { padding-bottom: 0; min-width: 230px; }
.wa-opts { margin: 8px -15px 0; border-top: 1px solid rgba(0,0,0,.08); }
.bubble.out:not(.in) .wa-opts { border-top-color: rgba(255,255,255,.22); }
.wa-opt { width: 100%; height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 0; background: transparent; color: var(--info); font: 700 14px/1 var(--font); white-space: normal; text-align: center; }
.wa-opt + .wa-opt { border-top: 1px solid rgba(0,0,0,.08); }
.wa-opt svg { width: 16px; height: 16px; }
.wa-opt:hover { background: rgba(72, 128, 255, .07); border-color: transparent; }
.wa-opt:active { transform: none; background: rgba(72, 128, 255, .14); }
.wa-opt.picked { background: rgba(72, 128, 255, .14); }
.bubble.out .wa-opt { color: #fff; pointer-events: none; }
.bubble.out .wa-opt + .wa-opt { border-top-color: rgba(255,255,255,.22); }
.bubble.in .wa-opt[tabindex="-1"] { pointer-events: none; }
.wa-peek { margin: 0; padding: 4px 16px 12px 34px; font-size: 13px; font-weight: 600; opacity: .92; }
.wa-peek li { padding: 2px 0; }
.wa-peek span { opacity: .75; font-weight: 500; }
.wa-sheet { position: absolute; inset: 11px; border-radius: 34px; overflow: hidden; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; z-index: 5; animation: fade .2s var(--ease) both; }
.phone-screen { position: relative; }
.wa-sheet-card { width: 100%; max-height: 75%; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 8px 0 18px; animation: sheetUp .35s var(--ease) both; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.wa-sheet-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.wa-row { width: 100%; height: auto; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; text-align: left; padding: 12px 20px; border: none; border-radius: 0; background: #fff; font-weight: 700; }
.wa-row + .wa-row { border-top: 1px solid var(--line); }
.wa-row b { font-size: 14.5px; font-weight: 700; }
.wa-row span { grid-column: 1; font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: normal; }
.wa-row i { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.wa-row.on i { border: 6px solid #00a884; }
.wa-row:hover { background: var(--bg); }

/* ---------------- equipe ---------------- */
.cal-sub { font-size: 13.5px; font-weight: 800; color: var(--primary); margin-top: 2px; }
.team-row { align-items: flex-start; padding: 16px 10px; }
.team-row .li-sub { display: flex; align-items: center; gap: 7px; margin-top: 4px; white-space: normal; }
.team-row .li-sub svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.team-row button { align-self: center; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { flex-direction: row; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; color: var(--ink-2); transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.pick input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.pick input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.hours-tbl th { padding: 10px 12px; font-size: 13px; }
.hours-tbl td { padding: 8px 12px; }
.hours-tbl input[type=time] { width: 100px; padding: 8px 8px; }

/* ============================================================
   UMA TELA SÓ: blocos que esticam e rolam por dentro
   ============================================================ */
.page-fit { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fit { flex: 1 1 0; min-height: 0; }
.col { display: flex; flex-direction: column; }
.col > .card-head { flex-shrink: 0; }
.gap { gap: 16px; }
.scroll { overflow: auto; }
.card-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.card-head { padding: 16px 20px 8px; }
.card-head h2 { font-size: 16px; }
.card-body { padding: 4px 12px 12px; }
.card-pad { padding: 20px; }
.tbl-wrap { padding: 0 16px 12px; }
th { position: sticky; top: 0; z-index: 1; padding: 11px 14px; font-size: 13px; }
td { padding: 11px 14px; }
.cols-home { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.cols-cash { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; }
.cols-cash > .col { min-height: 0; }
.cols-club { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 2fr); gap: 16px; }
.cols-club td .li-sub { white-space: normal; }
.cols-club td:last-child { white-space: nowrap; }
.cols-wb { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 16px; }
.cols-rep { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(260px, .8fr); gap: 16px; }
.cols-rep2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols-plan { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.7fr); gap: 16px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cols-3x { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.cols-home > .card, .cols-cash > *, .cols-club > *, .cols-wb > *, .cols-rep > *, .cols-rep2 > *, .cols-plan > *, .cols-3x > * { min-height: 0; }
#clientsCard, #winbackBox { min-height: 0; }
#winbackBox > .cols-wb { flex: 1; min-height: 0; }
#tabBody.fit { flex: 1 1 0; min-height: 0; padding-bottom: 4px; }

/* pares de rótulo e valor */
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; font-weight: 600; color: var(--ink-2); }
.kv + .kv { border-top: 1px solid var(--line); }
.kv b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.kv.warn { background: var(--wait-soft); color: #9a4f00; border-top-color: transparent; }
.kv.warn b { color: #9a4f00; }
.kv.okc { background: var(--ok-soft); color: #00806d; }
.kv.okc b { color: #00806d; }
.kv.big { background: var(--bg); padding: 14px; font-size: 15px; }
.kv.big b { font-size: 20px; }
.hist { padding: 8px 10px; border-left: 3px solid var(--primary-soft); margin: 4px 0 4px 4px; }
.hist b { display: block; font-size: 13px; font-weight: 700; }
.hist span { font-size: 12px; color: var(--muted); font-weight: 600; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 6px 0; }
.alert.bad { background: var(--bad-soft); color: #a3170a; }
.empty.small { padding: 18px 10px; font-size: 13px; }
.icon-btn.sm { width: 30px; height: 30px; }
.month-lbl { min-width: 160px; text-align: center; font-size: 15px; }
.total-line { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; }
.total-line b { font-size: 20px; }

/* valor em reais */
.money-in { position: relative; display: block; }
.money-in span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); font-size: 13px; }
.money-in input { width: 100%; padding-left: 38px; font-weight: 700; background: var(--bg); border-color: var(--line); font-variant-numeric: tabular-nums; }
.money-in input:focus { background: #fff; }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; }

/* medidor de mensagens */
.meter { height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; margin: 10px 0 8px; }
.meter.big { height: 14px; }
.meter.sm { height: 6px; margin: 2px 0 4px; width: 140px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .8s var(--ease); }
.meter i.warn { background: var(--wait); }
.meter i.over { background: var(--down); }

/* gráfico de barras */
.bars { height: 100%; min-height: 150px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: end; padding: 8px 6px 0; }
.bar-col { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.bar { width: 100%; max-width: 40px; height: max(var(--h), 3px); border-radius: 6px 6px 3px 3px; background: var(--c1-soft); transition: height .6s var(--ease); }
.bar-col.now .bar { background: var(--primary); }
.bar-col:hover .bar { background: var(--c1); }
.bar-v { font-size: 11.5px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-l { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: capitalize; }

/* início compacto */
.ring.sm { width: 52px; height: 52px; margin: 0; flex-shrink: 0; }
.ring.sm circle { stroke-width: 9; }
.ring.sm .lbl b { font-size: 13px; }
.steps.compact { display: grid; gap: 6px; align-content: start; }
.steps.compact .step { padding: 9px 12px; }
.steps.compact .step .n { width: 26px; height: 26px; font-size: 12px; }
.steps.compact .step b { font-size: 13.5px; }

/* planos */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; align-content: start; }
.plan-card { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.plan-card.hl { border-color: var(--primary); box-shadow: 0 10px 30px -18px rgba(123, 77, 255, .8); }
.plan-card.off { opacity: .55; }
.plan-card .tag { align-self: flex-start; min-width: 0; }
.plan-card h3 { font-size: 18px; font-weight: 900; }
.plan-card ul { margin: 6px 0 10px; padding-left: 18px; color: var(--ink-2); font-weight: 600; font-size: 13.5px; line-height: 1.7; flex: 1; }
.plan-card button { width: 100%; }
.price { font-size: 26px; font-weight: 900; margin: 6px 0; font-variant-numeric: tabular-nums; }
.price small { font-size: 13px; font-weight: 700; color: var(--muted); }
.price s { font-size: 14px; color: var(--muted); font-weight: 700; margin-right: 8px; }
.plan-grid .add-card { min-height: 220px; }

/* chame o cliente */
.wb-row { cursor: pointer; }
.wb-row input { margin-right: 2px; }
.wb-preview { background: #efeae2; border-radius: 12px; padding: 14px; margin-top: 12px; display: flex; }
.wb-preview .bubble { max-width: 92%; font-size: 13.5px; }

/* pré-cliente */
.portal { height: 100%; display: flex; flex-direction: column; }
.portal-top { height: var(--top); background: #fff; box-shadow: 0 1px 0 var(--line); display: flex; align-items: center; gap: 14px; padding: 0 24px; flex-shrink: 0; }
.portal-top .brand { padding: 0; }
.portal-main { flex: 1; min-height: 0; padding: 20px 26px; display: flex; flex-direction: column; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 16px; }
.portal-grid > * { min-height: 0; }
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; flex-shrink: 0; }
.stepper li { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-weight: 700; color: var(--muted); font-size: 13px; line-height: 1.2; }
.stepper li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); font-weight: 900; flex-shrink: 0; }
.stepper li span svg { width: 14px; height: 14px; }
.stepper li.now { color: var(--primary-ink); box-shadow: 0 0 0 2px var(--primary) inset, var(--shadow); }
.stepper li.now span { border-color: var(--primary); background: var(--primary); color: #fff; }
.stepper li.done { color: var(--ink); }
.stepper li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.pchat { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.pchat .bubble.out { background: var(--primary); }

@media (max-width: 1250px) {
  .cols-home { grid-template-columns: 1fr 1fr; }
  .cols-home > :last-child { display: none; }
  .cols-rep { grid-template-columns: 1fr 1fr; }
  .cols-rep > :last-child { display: none; }
  .stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* tela baixa ou celular: volta a rolar a página normalmente */
@media (max-height: 640px), (max-width: 860px) {
  #root { height: auto; overflow: visible; }
  .app { display: block; }
  main { overflow: visible; display: block; padding: 16px 14px 40px; }
  #view { overflow: visible; display: block; }
  .page-fit { display: block; }
  .fit { flex: none; }
  .scroll { max-height: 70vh; }
  .cols-home, .cols-cash, .cols-club, .cols-wb, .cols-rep, .cols-rep2, .cols-plan, .cols-2, .cols-3x, .portal-grid { grid-template-columns: 1fr; }
  .cols-home > :last-child, .cols-rep > :last-child { display: flex; }
  .stats, .stats.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper { flex-wrap: wrap; }
  .portal { height: auto; }
}

.wb-row { flex-direction: row !important; align-items: center !important; gap: 12px !important; font-weight: 600; color: var(--ink); }
.toggle-row span b { display: inline; font-size: inherit; }
.act-btns { display: inline-flex; gap: 4px; }
.act-btns .icon-btn { border: 1px solid var(--line-2); width: 32px; height: 32px; }
.co-grid { flex: 1 1 0; min-height: 0; overflow: auto; padding: 2px 4px 8px; align-content: start; }
.webhook-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; margin-top: 14px; flex-shrink: 0; }
.webhook-bar .li-sub { white-space: normal; }

/* testar a assistente: o celular ocupa a altura disponível */
.phone-wrap { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.phone-wrap > * { min-height: 0; }
.phone-wrap .phone { height: 100%; max-height: 720px; min-height: 0; }
.phone-wrap > :last-child { overflow: auto; }
.ideas .idea { padding: 11px 14px; }
.phone-wrap { align-items: stretch; }
.cols-home, .cols-cash, .cols-club, .cols-wb, .cols-rep, .cols-rep2, .cols-plan, .cols-3x, .portal-grid { grid-template-rows: minmax(0, 1fr); }

/* ---------- implantação ---------- */
.support-bar.info { background: var(--primary-ink); }
.support-bar.info svg { width: 18px; height: 18px; flex-shrink: 0; }
.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bg); font-weight: 700; color: var(--ink-2); font-size: 14px; }
.checklist li > span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; background: #fff; }
.checklist li > span svg { width: 12px; height: 12px; }
.checklist li.ok { color: var(--ink); background: var(--ok-soft); }
.checklist li.ok > span { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist li small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12px; }
.step-check { padding: 7px 6px; border-radius: 8px; font-weight: 600; }
.step-check:hover { background: var(--bg); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; min-height: 0; }
.kcol { display: flex; flex-direction: column; min-height: 0; background: var(--head); border-radius: var(--r-lg); padding: 12px; }
.kcol header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 8px; padding: 2px 4px 10px; }
.kcol header h2 { margin: 0; font-size: 15px; }
.kcol header b { background: #fff; border-radius: 99px; padding: 1px 9px; font-size: 13px; }
.kcol header p { grid-column: 1 / -1; margin: 3px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kdot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.kdot.wait { background: var(--wait); } .kdot.primary { background: var(--primary); } .kdot.info { background: var(--info); } .kdot.ok { background: var(--ok); }
.kbody { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px; }
.kcard { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 1px 2px rgba(32,34,36,.06); }
.kcard .who { display: flex; gap: 10px; align-items: flex-start; }
.kcard .li-title { color: var(--ink); text-decoration: none; }
.kcard .li-title:hover { color: var(--primary-ink); }
.kcard dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 10px 0 0; font-size: 12.5px; }
.kcard dt { color: var(--muted); font-weight: 700; }
.kcard dd { margin: 0; font-weight: 600; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.kcard .mono { font-family: ui-monospace, Consolas, monospace; }
.kact { margin-top: 10px; gap: 6px; flex-wrap: wrap; }
.kempty { color: var(--muted); font-weight: 600; font-size: 13px; text-align: center; margin: 18px 0; }

/* ---------- páginas públicas (pagamento e cadastro) ---------- */
.pub { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px 16px; background: radial-gradient(1200px 500px at 50% -10%, var(--primary-soft), transparent 70%), var(--bg); overflow-y: auto; }
#root:has(.pub) { height: auto; min-height: 100vh; overflow: visible; }
.pub-card { width: min(440px, 100%); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.pub-foot { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 13px; }
.pub-foot .brand-mark { width: 24px; height: 24px; font-size: 13px; border-radius: 7px; }
.pub-head { display: flex; align-items: center; gap: 12px; }
.pub-head small { color: var(--muted); font-weight: 700; font-size: 13px; }
.pub-head h1 { margin: 0; font-size: 20px; line-height: 1.2; }
.pub-amount { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; background: var(--primary-soft); }
.pub-amount span { font-weight: 700; color: var(--primary-ink); font-size: 14px; }
.pub-amount b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pub-amount small { color: var(--ink-2); font-weight: 600; font-size: 13px; }
.pub-pix { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pub-pix img { width: 220px; height: 220px; image-rendering: pixelated; border-radius: 12px; border: 1px solid var(--line); padding: 6px; background: #fff; }
.pub-pix p { margin: 0; }
.pix-code { width: 100%; min-height: 64px; resize: none; font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--ink-2); background: var(--bg); }
.pub-pix button.big, .pub-card > form button.big, .pub-alt { width: 100%; justify-content: center; }
.pub-alt { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.pub-wait { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: 13px; }
.dot-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--wait); animation: dotp 1.4s ease-in-out infinite; }
@keyframes dotp { 50% { opacity: .3; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .dot-pulse { animation: none; } }
.pub-check { align-self: center; }
.pub-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 0; }
.pub-done > svg { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.pub-done.bad > svg { background: var(--bad-soft); color: var(--bad); }
.pub-done h1, .pub-done h2 { margin: 6px 0 0; }
.pub-done p { margin: 0; color: var(--ink-2); }
.pub-plans { display: grid; gap: 8px; }
.pub-plan { position: relative; display: block; cursor: pointer; }
.pub-plan input { position: absolute; opacity: 0; }
.pub-plan > span { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); transition: border-color .15s, background .15s; }
.pub-plan input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.pub-plan input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.pub-plan b { font-size: 15px; }
.pub-plan em { font-style: normal; font-weight: 900; font-size: 16px; text-align: right; }
.pub-plan em small { font-weight: 600; color: var(--muted); font-size: 12px; }
.pub-plan i { grid-column: 1 / -1; font-style: normal; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pub-card .form label { font-weight: 700; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-y: auto; } .kcol { min-height: 320px; } }

.pub-card .form label.check { flex-direction: row; align-items: flex-start; font-weight: 600; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.pub-card .form label.check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--primary); }
#wbSeg { flex-shrink: 0; }
.step-check { align-items: flex-start; }
.step-check input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--primary); }

/* ---------- v3: busca, documentos, caixa, campanhas, avisos e administração ---------- */
.btn { text-decoration: none; }
.btn.primary { border: none; background: var(--primary); color: #fff; }
.btn.big { height: 50px; font-size: 16px; padding: 0 24px; }
.btn.sm, label.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
label.btn { flex-direction: row !important; cursor: pointer; }
label.btn.loading { opacity: .6; pointer-events: none; }
label.btn.loading::after { content: 'Enviando…'; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex-shrink: 0; margin-bottom: 14px; }
.search-in { position: relative; display: flex; align-items: center; flex: 1 1 260px; min-width: 200px; }
.search-in svg { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search-in input { width: 100%; padding-left: 38px; }
.seg button b { font-weight: 800; opacity: .7; margin-left: 4px; }
.toolbar { flex-shrink: 0; margin: -6px 0 14px; gap: 8px; }
label.inline { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); font-size: 13px; }
label.inline input { height: 36px; }
.picker { position: relative; }
.picker.picked .search-in input { border-color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.picker-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 280px; overflow: auto; padding: 4px; }
.picker-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.picker-item.on, .picker-item:hover { background: var(--primary-soft); }
.picker-empty { padding: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; cursor: pointer; }
.chip:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.chip input { accent-color: var(--primary); }
.modal-card.wide { width: min(820px, 100%); }
.tag.c-sky { background: var(--c1-soft); color: var(--c1); } .tag.c-violet { background: var(--primary-soft); color: var(--primary-ink); }
.tag.c-amber { background: var(--wait-soft); color: #c26a0a; } .tag.c-pink { background: var(--bad-soft); color: var(--bad); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* cadastro e documentos */
.pf-only { display: none !important; }
.is-pf .pf-only { display: flex !important; }
.is-pf .pj-only { display: none !important; }
span.pf-only, .is-pf span.pf-only { display: none !important; }
.is-pf span.pf-only { display: inline !important; }
.doc-list { display: grid; gap: 8px; margin-top: 14px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.doc.compact { padding: 8px 10px; border: none; border-radius: 10px; background: var(--bg); margin: 0 0 6px; gap: 8px; }
.doc.aceito { background: var(--ok-soft); border-color: transparent; }
.doc.recusado { border-color: var(--bad); }
.doc-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); flex-shrink: 0; }
.doc.aceito .doc-ico { background: var(--ok); color: #fff; }
.doc-ico svg { width: 18px; height: 18px; }

/* caixa */
tr.voided td { color: var(--muted); }
tr.voided .li-title, tr.voided td.num { text-decoration: line-through; }
table.conf { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
table.conf th { text-align: left; font-size: 12px; color: var(--muted); padding: 6px 4px; }
table.conf td { padding: 6px 4px; border-top: 1px solid var(--line); }
table.conf .money-in { max-width: 150px; }
.pay-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.pay-row select { flex: 1; }
.pay-row .money-in { max-width: 150px; }
.pay-row select[data-k="inst"] { flex: 0 0 76px; }
.total-line span { margin-left: 10px; font-weight: 700; }
.form:not(.is-out) .out-only, .form.is-out .in-only, .form:not(.is-credit) .credit-only { display: none !important; }
.daybars { display: flex; align-items: flex-end; gap: 3px; height: 100%; min-height: 160px; padding-top: 10px; }
.daybars .db { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1px; height: 100%; position: relative; padding-bottom: 18px; min-width: 0; }
.daybars .db i { width: 45%; max-width: 18px; border-radius: 4px 4px 0 0; min-height: 2px; }
.daybars.months .db i { width: 70%; max-width: 34px; }
.daybars i.in { background: var(--primary); } .daybars i.out { background: #ffb3c1; }
.daybars small { position: absolute; bottom: 0; font-size: 11px; color: var(--muted); font-weight: 700; }
.lgd { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
.lgd.in { background: var(--primary); } .lgd.out { background: #ffb3c1; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; gap: 10px; align-items: center; padding: 6px 10px; font-size: 13px; font-weight: 700; }
.bar-row span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.meter.hot i { background: var(--bad); }

/* campanhas */
.aud-preview { padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--ink); line-height: 1.5; }

/* avisos no painel da empresa */
#noticeBar:empty { display: none; }
#noticeBar { display: grid; gap: 8px; margin-bottom: 12px; }
.notice { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); border-left: 4px solid var(--c1); }
.notice.n-alerta { border-left-color: var(--bad); } .notice.n-manutencao { border-left-color: var(--wait); } .notice.n-novidade { border-left-color: var(--primary); }
.notice .li-main b { display: block; } .notice .li-main span { color: var(--ink-2); font-size: 13px; font-weight: 600; }

/* administração */
.cols-dash { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(260px, .9fr); gap: 16px; min-height: 0; }
.cols-dash > * { min-height: 0; }
.mini-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.mini-kpis div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.mini-kpis b { display: block; font-size: 17px; font-weight: 900; }
.mini-kpis span { font-size: 12px; color: var(--muted); font-weight: 700; }
.health { display: inline-flex; align-items: center; gap: 6px; min-width: 72px; }
.health .ht { width: 42px; height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.health .ht i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.health.h-atencao .ht i { background: var(--wait); } .health.h-risco .ht i { background: var(--bad); }
.health b { font-size: 12px; font-weight: 800; }
.health-big { display: flex; align-items: baseline; gap: 10px; padding: 6px 10px 12px; }
.health-big b { font-size: 44px; font-weight: 900; letter-spacing: -.02em; color: var(--ok); }
.health-big.h-atencao b { color: #e07b12; } .health-big.h-risco b { color: var(--bad); }
.health-big span { font-weight: 800; color: var(--ink-2); }
.dotk { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 8px; background: var(--ok); }
.dotk.warn { background: var(--wait); } .dotk.bad { background: var(--bad); }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; flex-shrink: 0; }
.svc { padding: 16px; border-top: 4px solid var(--ok); }
.svc.bad { border-top-color: var(--bad); }
.svc p { margin: 8px 0; }
table.perm th, table.perm td { text-align: center; }
table.perm td:first-child, table.perm th:first-child { text-align: left; }
table.perm tr.grp td { background: var(--head); font-weight: 800; font-size: 12px; color: var(--muted); }
table.perm .yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
table.perm .yes svg { width: 13px; height: 13px; }
.pager { padding: 10px 16px; border-top: 1px solid var(--line); flex-shrink: 0; }
#fBody { display: flex; flex-direction: column; min-height: 0; margin-top: 14px; }
#fBody > .cols-3x, #fBody > section { flex: 1; min-height: 0; }
.pay-tabs { margin-bottom: 4px; }
.pay-pane[hidden] { display: none; }
@media (max-width: 1280px) { .cols-dash { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .cols-dash > :last-child { display: none; } .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cols-2.fit { align-items: stretch; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.cols-2.fit > * { min-height: 0; }
.cols-dash .card-body.fit { display: flex; flex-direction: column; min-height: 0; }
.cols-dash .daybars { flex: 1; min-height: 60px; }
.cols-dash > .col.gap { overflow: auto; }
.cols-dash .bar-row { padding: 4px 10px; }

.mini-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.mini-kpis b { font-size: 16px; }
/* aviso compacto: uma linha só, para não roubar espaço da tela */
#noticeBar { gap: 6px; margin-bottom: 8px; flex-shrink: 0; }
.notice { padding: 5px 8px 5px 10px; gap: 10px; border-radius: 12px; min-height: 0; }
.notice .tile { width: 28px; height: 28px; border-radius: 8px; }
.notice .tile svg { width: 15px; height: 15px; }
.notice .li-main { display: flex; gap: 8px; align-items: baseline; min-width: 0; white-space: nowrap; overflow: hidden; }
.notice .li-main b { display: inline; font-size: 13.5px; }
.notice .li-main span { overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.notice button.sm { height: 28px; }
.bars { min-height: 96px; }
.cols-rep > .col, .cols-rep > .gap { overflow: auto; } .cols-rep .card-body.fit { min-height: 0; }
.notice .li-main { flex: 1; min-width: 0; }
.notice button { flex-shrink: 0; }
#noticeBar { grid-template-columns: minmax(0, 1fr); }

/* ---------- janela de pagamento e cartão ---------- */
.modal-card.pay { width: min(500px, 100%); }
.pay-modal { display: flex; flex-direction: column; gap: 14px; }
.pay-modal .pub-amount b { font-size: 30px; }
.pay-modal .pub-pix img { width: 200px; height: 200px; }
.rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto minmax(0, 1fr); gap: 16px; height: 100%; min-height: 0; }
.rec-grid .rec-stats { grid-column: 1 / -1; margin: 0; }
.rec-grid > section { min-height: 0; }
.bank-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--primary-soft); margin: 8px 0; }
.bank-card .li-main { display: flex; flex-direction: column; gap: 2px; }
.bank-card .li-main span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.payout-list { border-top: 1px solid var(--line); padding: 6px 10px; flex-shrink: 0; }
.cols-rep2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 16px; min-height: 0; }
.cols-rep2 > * { min-height: 0; }
.cols-rep2 > .col.gap { overflow: auto; }
.form.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.send-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.send-modes button { height: auto; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; text-align: left; border-radius: 14px; white-space: normal; }
.send-modes button svg { width: 20px; height: 20px; color: var(--primary); }
.send-modes button span { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.send-modes button.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.picked-list { margin-top: 8px; }
.chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.chip .x { border: none; background: none; height: auto; padding: 0 0 0 4px; font-size: 16px; line-height: 1; color: inherit; box-shadow: none; }

/* ============================================================
   Cartão premium em 3 etapas
   O cartão é a peça de destaque: violeta-noite com guilhoché fino,
   chip dourado e um brilho holográfico que segue o ponteiro.
   Todo o resto em volta fica quieto.
   ============================================================ */
:root {
  --cc-night: #1c0f4a; --cc-deep: #3b1aa8; --cc-violet: #7b4dff; --cc-gold: #e8cd7c;
  --mono: 'SF Mono', ui-monospace, 'Cascadia Mono', 'Roboto Mono', Menlo, monospace;
}
.cc-flow { display: flex; flex-direction: column; gap: 14px; }
.cc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cc-steps button { all: unset; display: flex; flex-direction: column; gap: 6px; width: 100%; cursor: pointer; }
.cc-steps button:disabled { cursor: default; }
.cc-steps button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.cc-steps .cc-bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.cc-steps .cc-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand-grad); transition: width .55s var(--ease); }
.cc-steps li.on .cc-bar i { width: 100%; }
.cc-steps .lbl { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); transition: color .25s; }
.cc-steps .lbl svg { width: 0; height: 13px; color: var(--ok); transition: width .3s var(--ease); }
.cc-steps li.done .lbl svg { width: 13px; }
.cc-steps li.done .lbl { color: var(--ink-2); } .cc-steps li.done button:hover .lbl { color: var(--primary-ink); }
.cc-steps li[class*=on]:not(.done) .lbl { color: var(--ink); }

.cc-alert { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: #b42318; font-weight: 700; font-size: 13px; animation: rise .3s var(--ease) both; }
.cc-alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

.cc-pane { display: flex; flex-direction: column; gap: 14px; }

/* o cartão */
.cc-stage { --rx: 0deg; --ry: 0deg; --mx: 30%; --my: 20%; perspective: 1100px; width: min(340px, 100%); margin: 2px auto 0; }
.cc { position: relative; aspect-ratio: 1.586; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .7s var(--ease); }
.cc-stage { animation: ccIn .7s var(--spring) backwards; }
.cc.flip { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); }
@keyframes ccIn { from { opacity: 0; transform: translateY(18px) scale(.94); } }
.cc-face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; color: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    repeating-radial-gradient(circle at 115% 120%, rgba(255,255,255,.055) 0 1px, transparent 1px 7px),
    radial-gradient(120% 140% at 0% 0%, #a37bff 0%, var(--cc-violet) 30%, var(--cc-deep) 62%, var(--cc-night) 100%);
  box-shadow: 0 22px 44px -18px rgba(59, 26, 168, .7), 0 2px 6px rgba(28, 15, 74, .25), inset 0 1px 0 rgba(255,255,255,.28); }
.cc[data-brand=amex] .cc-face { background: repeating-radial-gradient(circle at 115% 120%, rgba(255,255,255,.06) 0 1px, transparent 1px 7px), radial-gradient(120% 140% at 0% 0%, #6fb6ff, #2f6fe0 40%, #12306f 100%); }
.cc[data-brand=elo] .cc-face, .cc[data-brand=hipercard] .cc-face { background: repeating-radial-gradient(circle at 115% 120%, rgba(255,255,255,.05) 0 1px, transparent 1px 7px), radial-gradient(120% 140% at 0% 0%, #4b4b57, #26262f 45%, #0f0f15 100%); }
.cc-front { display: flex; flex-direction: column; justify-content: space-between; padding: 20px 22px; }
.cc-shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .9;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.55), transparent 42%),
              linear-gradient(115deg, transparent 30%, rgba(255, 214, 250, .22) 45%, rgba(165, 245, 255, .22) 52%, transparent 66%);
  transition: background-position .3s; }
.cc-row { position: relative; display: flex; align-items: center; gap: 10px; }
.cc-chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f8e9b8, var(--cc-gold) 45%, #b8913a 70%, #f1dc94); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); position: relative; flex-shrink: 0; }
.cc-chip i { position: absolute; inset: 7px 9px; border: 1px solid rgba(90, 64, 10, .35); border-radius: 4px; }
.cc-chip i::before { content: ''; position: absolute; left: -9px; right: -9px; top: 50%; border-top: 1px solid rgba(90, 64, 10, .35); }
.cc-chip.sm { width: 30px; height: 22px; border-radius: 5px; } .cc-chip.sm i { inset: 5px 6px; }
.cc-nfc { width: 22px; height: 22px; opacity: .8; transform: rotate(0deg); }
.cc-brand { margin-left: auto; font-weight: 900; font-size: 15px; letter-spacing: .01em; font-style: italic; opacity: .96; text-shadow: 0 1px 2px rgba(0,0,0,.2); min-height: 20px; animation: fade .3s both; }
.cc-num { position: relative; display: flex; gap: 14px; justify-content: space-between; font: 600 clamp(16px, 5.2vw, 21px)/1 var(--mono); letter-spacing: .06em; text-shadow: 0 1px 2px rgba(0,0,0,.25); white-space: nowrap; }
.cc-num .grp { display: flex; }
.cc-num i { font-style: normal; display: inline-block; width: .66em; text-align: center; opacity: .45; }
.cc-num i.on { opacity: 1; }
.cc-num i.new { animation: digitIn .32s var(--spring) both; }
@keyframes digitIn { from { opacity: 0; transform: translateY(-9px) scale(.6); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.cc-meta { justify-content: space-between; align-items: flex-end; }
.cc-meta small { display: block; font-size: 9.5px; font-weight: 700; opacity: .7; letter-spacing: .04em; }
.cc-meta b { display: block; font: 600 13.5px/1.3 var(--mono); letter-spacing: .05em; }
.cc-name { min-width: 0; } .cc-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; font-family: var(--font); font-weight: 800; letter-spacing: .06em; }
.cc-back { transform: rotateY(180deg); }
.cc-stripe { height: 42px; margin-top: 22px; background: linear-gradient(180deg, #0d0726, #1d1145); }
.cc-sig { margin: 18px 20px 0; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px;
  background: repeating-linear-gradient(-45deg, #fff 0 6px, #f1edff 6px 12px); color: var(--ink); font: 700 15px/1 var(--mono); letter-spacing: .25em; }
.cc-back small { display: block; text-align: right; margin: 7px 22px 0; font-size: 10px; opacity: .75; }
.cc-brand.back { position: absolute; right: 22px; bottom: 16px; }

/* campos */
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.cc-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cc-field.full { grid-column: 1 / -1; }
.cc-field input { height: 44px; transition: border-color .2s, box-shadow .2s, background .2s; }
.cc-field input:focus { box-shadow: 0 0 0 4px var(--primary-soft); }
.cc-field input.mono { font-family: var(--mono); letter-spacing: .06em; font-size: 15px; }
.cc-field input.upper { text-transform: uppercase; letter-spacing: .03em; }
.cc-field .f-err { font-style: normal; font-size: 12px; color: var(--bad); font-weight: 700; min-height: 0; }
.cc-field.bad input { border-color: var(--bad); background: #fff8f7; box-shadow: 0 0 0 4px var(--bad-soft); }
.cc-field.shake input { animation: shake .4s var(--ease); }

.cc-mini { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; color: #fff; animation: rise .4s var(--ease) backwards;
  background: radial-gradient(140% 220% at 0% 0%, #a37bff, var(--cc-violet) 30%, var(--cc-deep) 70%, var(--cc-night)); box-shadow: 0 14px 30px -16px rgba(59, 26, 168, .7); }
.cc-mini .mono { font-family: var(--mono); letter-spacing: .12em; font-size: 14px; }
.cc-mini .nm { margin-left: auto; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cc-mini .br { font-weight: 900; font-style: italic; font-size: 13px; }
.cc-q h4 { margin: 0; font-size: 15px; font-weight: 800; } .cc-q p { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }

.cc-recap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@container (max-width: 420px) { .cc-recap { grid-template-columns: 1fr; } }
.cc-recap .rc { display: flex; align-items: center; gap: 6px; padding: 10px 8px 10px 14px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fbfbfd; animation: rise .35s var(--ease) both; }
.cc-recap .rc + .rc { animation-delay: 60ms; }
.cc-recap .rc > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc-recap small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.cc-recap b { font-size: 14px; font-weight: 800; } .cc-recap span { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-inst { border: none; margin: 0; padding: 0; }
.cc-inst legend { font-weight: 800; font-size: 14px; margin-bottom: 8px; padding: 0; }
.cc-inst [role=radiogroup] { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 232px; overflow-y: auto; padding: 2px; }
.cc-inst [role=radio] { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font-weight: 600; color: var(--ink); animation: rise .35s var(--ease) both; animation-delay: var(--d); transition: border-color .2s, background .2s, box-shadow .2s; }
.cc-inst [role=radio]:hover { background: #fbfaff; }
.cc-inst [role=radio][aria-checked=true] { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.cc-inst .rd { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; transition: border-color .2s; flex-shrink: 0; }
.cc-inst .rd i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); transform: scale(0); transition: transform .3s var(--spring); }
.cc-inst [aria-checked=true] .rd { border-color: var(--primary); } .cc-inst [aria-checked=true] .rd i { transform: scale(1); }
.cc-inst .t { flex: 1; display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; } .cc-inst .t b { font-weight: 800; } .cc-inst .t b:first-child { font-size: 15px; }
.cc-inst .x { display: none; }
.cc-once { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.cc-once b { font-size: 20px; font-weight: 900; }

.cc-actions { display: flex; gap: 10px; }
.cc-actions [data-next] { flex: 1; justify-content: center; position: relative; overflow: hidden; }
.cc-actions [data-next] svg { width: 16px; height: 16px; }
.cc-actions [data-next]::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); }
.cc-actions [data-next]:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.cc-flow.busy .cc-actions [data-next] { background: var(--primary-2); }
.cc-actions .dot-pulse { background: #fff; margin-right: 8px; }
.cc-secure { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); font-weight: 600; }
.cc-secure svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ok); margin-top: 1px; }
.cc-note { padding: 12px 14px; border-radius: 12px; background: var(--bg); color: var(--ink-2); font-weight: 600; }

/* pagamento aprovado: o visto se desenha */
.pay-ok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 10px 0 4px; animation: fade .3s both; }
.ok-mark { width: 76px; height: 76px; }
.ok-mark circle { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; animation: drawC .7s var(--ease) forwards; transform-origin: center; }
.ok-mark path { fill: none; stroke: var(--ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: drawC .45s .55s var(--ease) forwards; }
@keyframes drawC { to { stroke-dashoffset: 0; } }
.pay-ok h2 { font-size: 22px; font-weight: 900; animation: rise .4s .5s var(--ease) both; }
.pay-ok p { margin: 0; color: var(--ink-2); font-weight: 600; max-width: 340px; animation: rise .4s .6s var(--ease) both; }
.pay-ok-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--bg); width: 100%; animation: rise .4s .7s var(--ease) both; }
.pay-ok-card small { color: var(--muted); font-weight: 700; } .pay-ok-card b { font-weight: 800; }
.pay-ok .big { width: 100%; justify-content: center; margin-top: 6px; animation: rise .4s .8s var(--ease) both; }

/* abas Pix / Boleto / Cartão com marcador que desliza */
.pay-tabs { position: relative; }
.pay-tabs .ind { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 7px; background: var(--primary); box-shadow: 0 6px 16px -6px rgba(123, 77, 255, .7); transition: transform .45s var(--ease), width .45s var(--ease); z-index: 0; }
.pay-tabs button { position: relative; z-index: 1; transition: color .3s; }
.pay-tabs.has-ind button.on { background: transparent; }
.pay-pane:not([hidden]) { animation: rise .35s var(--ease) both; }
.modal-card.pay { width: min(520px, 100%); }
.pay-modal .pub-amount { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.pay-modal .pub-amount span { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.pay-modal .pub-amount b { font-size: 24px; order: 2; white-space: nowrap; }
.pay-modal .pub-amount small { display: none; }

@media (prefers-reduced-motion: reduce) { .cc { transition: none; } .cc-shine { display: none; } }

/* cartão ao lado do formulário quando há espaço; em tela estreita ele fica em cima da etapa 1 */
[data-card] { container-type: inline-size; }
.cc-wrap { display: flex; flex-direction: column; gap: 14px; }
.cc-side { display: flex; flex-direction: column; gap: 14px; }
.cc-side-sum { display: none; }
.cc-wrap:not([data-step="0"]) .cc-side { display: none; }
.cc-wrap[data-step="0"] .cc-mini { display: none; }
@container (min-width: 700px) {
  .cc-wrap { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .cc-wrap .cc-side, .cc-wrap:not([data-step="0"]) .cc-side { display: flex; }
  .cc-wrap .cc-mini { display: none; }
  .cc-side-sum { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--bg); }
  .cc-side-sum small { color: var(--muted); font-weight: 700; font-size: 12.5px; line-height: 1.35; }
  .cc-side-sum b { font-size: 28px; font-weight: 900; letter-spacing: -.02em; }
  .cc-side-sum span { color: var(--ok); font-weight: 800; font-size: 12.5px; }
  .cc-stage { width: 100%; margin-top: 4px; }
}
.on-card .pub-wait, .on-card .pub-check { display: none; }
.modal-card.pay { transition: width .45s var(--ease); }
.modal-card.pay.pay-wide { width: min(860px, 100%); }
.pay-wide .pay-modal .pub-amount { display: none; }
.cc-inst .sj { font-style: normal; color: var(--muted); font-weight: 600; font-size: 12px; }
@container (max-width: 460px) { .cc-inst .sj { display: none; } .cc-inst [role=radiogroup] { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   Celular e tablet estreito (até 860px)
   Menu em gaveta, barra de atalhos embaixo, tudo em uma coluna.
   ============================================================ */
.nav-btn, .top-logo, .bottom-nav, .nav-scrim { display: none; }
@media (max-width: 860px) {
  body { font-size: 14.5px; }
  .app { display: block; }
  /* barra de cima: ☰, logo e o resto à direita */
  .topbar { position: sticky; top: 0; z-index: 30; height: 58px; padding: 0 10px 0 6px; gap: 6px; grid-column: auto; box-shadow: 0 1px 0 var(--line); background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); }
  .nav-btn { display: grid; place-items: center; width: 42px; height: 42px; border: none; background: none; box-shadow: none; }
  .nav-btn svg { width: 22px; height: 22px; }
  .top-logo { display: grid; width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
  .top-right { gap: 8px; }
  .search { display: none; }
  .profile .who-n, .profile .who-s, .profile .chev, .wa-chip { display: none; }

  /* gaveta */
  .sidebar { display: flex; position: fixed; inset: 0 auto 0 0; width: min(300px, 84vw); height: 100dvh; z-index: 60; flex-direction: column; align-items: stretch; padding: 0 0 18px; overflow-y: auto; transform: translateX(-104%); transition: transform .38s var(--ease); box-shadow: 20px 0 50px -20px rgba(32, 34, 36, .35); border-radius: 0 22px 22px 0; }
  .sidebar .brand { height: 66px; justify-content: flex-start; padding: 0 22px; }
  .sidebar .brand-name, .sidebar .brand-sub, .sidebar .side-foot, .sidebar .menu-sep, .sidebar .menu-label { display: revert; }
  .sidebar nav.menu { flex-direction: column; padding: 4px 0; }
  .sidebar .menu a { height: 46px; margin: 1px 14px; padding: 0 14px; }
  .sidebar .menu a .lbl, .sidebar .menu a .count { display: revert; }
  .sidebar .menu a::before { display: none; }
  .nav-open .sidebar { transform: none; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(32, 34, 36, .42); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
  .nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }

  /* atalhos embaixo */
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 -1px 0 var(--line); }
  .bottom-nav a, .bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; border: none; background: none; box-shadow: none; padding: 0; border-radius: 14px; color: var(--muted); font-size: 11px; font-weight: 700; }
  .bottom-nav svg { width: 22px; height: 22px; transition: transform .3s var(--spring); }
  .bottom-nav a.active { color: var(--primary); }
  .bottom-nav a.active::before { content: ''; position: absolute; inset: 4px 14px; border-radius: 14px; background: var(--primary-soft); z-index: -1; animation: popIn .35s var(--spring) both; }
  .bottom-nav a.active svg { transform: translateY(-1px) scale(1.06); }
  .bottom-nav .count { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; font-size: 10.5px; }

  /* conteúdo */
  main { padding: 14px 12px calc(86px + env(safe-area-inset-bottom)); grid-column: auto; }
  .has-support .sidebar { top: 0; }
  .page-head { margin-bottom: 12px; gap: 10px; }
  .page-head h1, h1 { font-size: 23px; }
  .page-head > .row, .page-head > div:last-child:not(:first-child) { flex-wrap: wrap; }
  .stats, .stats.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; } .stat .v { font-size: 21px; }
  .split, .cols-2, .cols-3, .cols-3x, .cols-home, .cols-cash, .cols-club, .cols-wb, .cols-rep, .cols-rep2, .cols-plan, .cols-dash, .rec-grid, .portal-grid, .form.three, .send-modes, .steps-card { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none !important; height: auto; }
  .cols-home > :last-child, .cols-rep > :last-child, .cols-dash > :last-child { display: revert; }
  .rec-grid .rec-stats { grid-column: auto; }
  .fit, .page-fit { flex: none; min-height: 0; height: auto; }
  .scroll { max-height: none; overflow: visible; }
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-height: none; }
  .tbl-wrap table { min-width: 560px; }
  .kanban { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; }
  .kanban > * { flex: 0 0 86%; scroll-snap-align: start; }
  .seg:not(.wide) { max-width: 100%; overflow-x: auto; }
  .tabs, .sub-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .card { border-radius: 16px; }
  #noticeBar .notice .li-sub { display: none; }

  /* janelas viram folhas que sobem de baixo */
  .modal { align-items: end; padding: 0; }
  .modal-card, .modal-card.wide, .modal-card.pay, .modal-card.pay.pay-wide { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); animation: sheetUp .42s var(--ease) both; }
  .modal-card::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--line-2); margin: -6px auto 12px; }
  .modal.closing .modal-card { animation: sheetDown .2s var(--ease) both; }
  .modal-head { margin-bottom: 14px; } .modal-head h3 { font-size: 19px; }
  .modal-actions { flex-wrap: wrap; } .modal-actions .spacer { display: none; } .modal-actions button { flex: 1; justify-content: center; }
  .form.two { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px; } /* evita o zoom automático do iPhone */
  #toasts { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); top: auto; }
}
@keyframes sheetDown { to { transform: translateY(100%); } }
@media (max-width: 380px) { .stats, .stats.six { grid-template-columns: 1fr 1fr; } .stat .v { font-size: 18px; } }
@media (max-width: 860px) {
  .row, .card-head, .head-row { flex-wrap: wrap; min-width: 0; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .seg::-webkit-scrollbar { display: none; }
  .seg button { flex-shrink: 0; }
  .stat { min-width: 0; overflow: hidden; }
  .stat .trend { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #root { overflow-x: clip; }
  main, #view { min-width: 0; max-width: 100vw; }
}
.chat-back { display: none; }
@media (max-width: 860px) {
  .inbox { display: block; height: calc(100dvh - 58px - 86px - 30px) !important; min-height: 420px; position: relative; overflow: hidden; }
  .inbox .conv-col { max-height: none; height: 100%; border: none; }
  .inbox .chat { display: none; height: 100%; }
  .inbox .ctx { display: none; }
  .inbox.has-chat .conv-col { display: none; }
  .inbox.has-chat .chat { display: flex; animation: paneIn .35s var(--ease) both; }
  @keyframes paneIn { from { opacity: 0; transform: translateX(24px); } }
  .chat-back { display: grid; margin-left: -8px; }
  .chat-head { padding: 10px 12px; gap: 8px; min-height: 60px; flex-wrap: wrap; }
  .chat-head > button:last-child { width: 100%; justify-content: center; height: 36px; }
  .chat-body { padding: 14px 12px 10px; }
  .bubble { max-width: 86%; }
}
@media (max-width: 860px) { .auth { min-height: 100dvh; height: auto; padding: 16px; } }
/* entrada em sequência dos cartões de resumo */
#view.enter .stats > .stat { animation: rise .5s var(--ease) both; }
#view.enter .stats > .stat:nth-child(2) { animation-delay: 50ms; }
#view.enter .stats > .stat:nth-child(3) { animation-delay: 100ms; }
#view.enter .stats > .stat:nth-child(4) { animation-delay: 150ms; }
#view.enter .stats > .stat:nth-child(5) { animation-delay: 200ms; }
#view.enter .stats > .stat:nth-child(6) { animation-delay: 250ms; }
.stat .v { font-variant-numeric: tabular-nums; }
.card { transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
@media (hover: hover) { .stat:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -18px rgba(32, 34, 36, .25); } }
.cc-inst .tot { font-style: normal; color: var(--muted); font-weight: 700; font-size: 12px; }
.cc-juros { display: flex; gap: 8px; margin: 8px 0 0; padding: 9px 12px; border-radius: 12px; background: var(--wait-soft); color: #8a4b00; font-size: 12.5px; font-weight: 600; line-height: 1.4; animation: rise .3s var(--ease) both; }
.cc-juros b { font-weight: 800; }

/* ============================================================
   Cardápio público (pedidos). Feito primeiro para o celular.
   A cor da loja (--acc) muda com o tipo de negócio; a peça de
   destaque é a barra da sacola, que pula quando entra um item.
   ============================================================ */
#root:has(.mn:not(.embed)) { height: auto; min-height: 100vh; overflow: visible; }
.mn { --acc: var(--primary); --acc-soft: color-mix(in srgb, var(--acc) 12%, white); min-height: 100vh; background: #f6f6f8; padding-bottom: 110px; }
.mn-load { max-width: 720px; margin: 0 auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mn-hero { background: var(--acc); color: #fff; position: relative; overflow: hidden; }
.mn-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.22), transparent 55%), linear-gradient(180deg, transparent 40%, rgba(0,0,0,.18)); pointer-events: none; }
.mn-hero-in { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 30px 18px 26px; display: flex; gap: 16px; align-items: center; }
.mn-logo { width: 64px; height: 64px; border-radius: 20px; background: #fff; color: var(--acc); display: grid; place-items: center; font-size: 30px; font-weight: 900; flex-shrink: 0; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.mn-id h1 { font-size: clamp(24px, 6vw, 32px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.mn-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; font-weight: 700; opacity: .95; }
.mn-open { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 99px; background: rgba(0,0,0,.22); }
.mn-open i { width: 8px; height: 8px; border-radius: 50%; background: #ffb4a8; }
.mn-open.on i { background: #7dffb3; box-shadow: 0 0 0 0 rgba(125,255,179,.7); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(125,255,179,0); } 100% { box-shadow: 0 0 0 0 rgba(125,255,179,0); } }
.mn-closed { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 18px 18px; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 700; }
.mn-closed svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.mn-cats { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 10px max(14px, calc((100vw - 720px) / 2 + 14px)); background: rgba(246,246,248,.92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); scrollbar-width: none; border-bottom: 1px solid var(--line); }
.mn-cats::-webkit-scrollbar { display: none; }
.mn-cats a { flex-shrink: 0; padding: 8px 14px; border-radius: 99px; font-weight: 800; font-size: 13.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s; }
.mn-cats a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mn-list { max-width: 720px; margin: 0 auto; padding: 6px 14px; }
.mn-sec { scroll-margin-top: 62px; padding-top: 14px; }
.mn-sec h2 { display: flex; align-items: baseline; gap: 10px; font-size: 19px; font-weight: 900; margin: 6px 4px 10px; }
.mn-sec h2 small { font-size: 12px; font-weight: 800; color: var(--acc); }
.mn-item { display: flex; align-items: center; gap: 14px; width: 100%; height: auto; padding: 14px 14px 14px 16px; margin-bottom: 8px; border: 1px solid transparent; border-radius: 16px; background: #fff; text-align: left; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.mn-item:hover { border-color: var(--line-2); box-shadow: 0 10px 24px -16px rgba(0,0,0,.3); }
.mn-item:active { transform: scale(.985); }
.mn-item .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mn-item .t b { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.mn-item .t span { font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mn-item .t em { font-style: normal; font-weight: 900; color: var(--ink); font-size: 15px; margin-top: 2px; }
.mn-item .add { width: 36px; height: 36px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; flex-shrink: 0; }
.mn-item .add svg { width: 18px; height: 18px; }
.mn-foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 12px; margin: 26px 0 0; }
.mn-foot .brand-mark { width: 22px; height: 22px; font-size: 11px; border-radius: 7px; }
/* barra da sacola */
.mn-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(246,246,248,0), #f6f6f8 40%); animation: rise .4s var(--spring) both; }
.mn-bag { display: flex; align-items: center; gap: 12px; width: min(692px, 100%); margin: 0 auto; height: 58px; padding: 0 18px 0 10px; border: none; border-radius: 18px; background: var(--acc); color: #fff; font-size: 16px; box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--acc) 80%, black); }
.mn-bag b { flex: 1; text-align: left; font-weight: 900; }
.mn-bag .n { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 11px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-weight: 900; }
.mn-bag span:last-child { font-weight: 900; font-variant-numeric: tabular-nums; }
.mn-bag.pop { animation: bagPop .5s var(--spring); }
@keyframes bagPop { 30% { transform: scale(1.05) translateY(-4px); } 60% { transform: scale(.98); } }
/* folhas (item, sacola, finalizar) */
.modal-card.mn-sheet { width: min(560px, 100%); }
.mi { display: flex; flex-direction: column; gap: 16px; }
.mi-desc { margin: -8px 0 0; color: var(--ink-2); font-weight: 600; }
.mi-g { display: flex; flex-direction: column; gap: 8px; }
.mi-g.shake { animation: shake .4s var(--ease); }
.mi-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mi-h b { font-size: 15px; font-weight: 900; }
.mi-h span { font-size: 12px; font-weight: 800; color: var(--muted); }
.mi-h span.req { color: var(--acc, var(--primary)); background: color-mix(in srgb, var(--acc, var(--primary)) 10%, white); padding: 2px 8px; border-radius: 99px; }
.mi-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.mi-sizes button { height: auto; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; text-align: left; }
.mi-sizes button b { font-weight: 800; } .mi-sizes button span { font-weight: 800; color: var(--muted); font-size: 13px; }
.mi-sizes button.on { border-color: var(--acc, var(--primary)); background: color-mix(in srgb, var(--acc, var(--primary)) 9%, white); box-shadow: 0 0 0 1px var(--acc, var(--primary)) inset; }
.mi-opts { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mi-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-weight: 700; cursor: pointer; transition: background .15s; }
.mi-opt + .mi-opt { border-top: 1px solid var(--line); }
.mi-opt:hover { background: #fafafb; }
.mi-opt input { width: 20px; height: 20px; accent-color: var(--acc, var(--primary)); flex-shrink: 0; }
.mi-opt span { flex: 1; } .mi-opt em { font-style: normal; color: var(--muted); font-weight: 800; font-size: 13px; }
.mi-note { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 13.5px; }
.mi-err { padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: #b42318; font-weight: 700; font-size: 13px; }
.mi-foot { position: sticky; bottom: -28px; display: flex; gap: 10px; padding: 12px 0 2px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); }
.mi-foot .big { flex: 1; justify-content: center; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.qty button { width: 44px; height: 48px; border: none; background: none; box-shadow: none; font-size: 22px; font-weight: 700; color: var(--acc, var(--primary)); padding: 0; justify-content: center; }
.qty b { min-width: 26px; text-align: center; font-size: 16px; font-weight: 900; }
.mn-sheet .primary { background: var(--acc, var(--primary)); border-color: var(--acc, var(--primary)); }
.bag { display: flex; flex-direction: column; gap: 14px; }
.bag-lines { display: flex; flex-direction: column; }
.bag-l { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); animation: rise .3s var(--ease) both; }
.bag-l .q { font-weight: 900; color: var(--acc, var(--primary)); min-width: 26px; }
.bag-l .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bag-l .t b { font-weight: 800; } .bag-l .t span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bag-l .act { display: flex; gap: 14px; margin-top: 2px; }
.bag-l .p { font-weight: 900; white-space: nowrap; }
.link { border: none; background: none; box-shadow: none; padding: 0; height: auto; color: var(--acc, var(--primary)); font-weight: 800; font-size: 13px; }
.link:last-child { color: var(--muted); }
.bag-sum, .ck-tot > div { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink-2); }
.bag-sum b { font-size: 18px; color: var(--ink); font-weight: 900; }
.bag .big, .ck .big { justify-content: center; }
.ck { display: flex; flex-direction: column; gap: 18px; }
.ck-sec { display: flex; flex-direction: column; gap: 10px; font-weight: 800; font-size: 13.5px; }
.ck-sec h4 { margin: 0; font-size: 15px; font-weight: 900; }
.ck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ck-grid label, .ck-sec > label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.ck-grid .full { grid-column: 1 / -1; }
.ck-mode button { gap: 8px; } .ck-mode button svg { width: 16px; height: 16px; }
.mn-sheet .seg button.on { background: var(--acc, var(--primary)); }
.ck-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.ck-pay button { height: auto; flex-direction: column; align-items: flex-start; gap: 1px; padding: 11px 14px; border-radius: 14px; text-align: left; }
.ck-pay button b { font-weight: 800; } .ck-pay button span { font-size: 12px; color: var(--muted); font-weight: 700; }
.ck-pay button.on { border-color: var(--acc, var(--primary)); background: color-mix(in srgb, var(--acc, var(--primary)) 9%, white); box-shadow: 0 0 0 1px var(--acc, var(--primary)) inset; }
.ck-tot { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.ck-tot .all { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line-2); color: var(--ink); }
.ck-tot .all b { font-size: 22px; font-weight: 900; }
/* acompanhamento */
.trk { display: grid; place-items: start center; padding: 24px 14px 40px; background: radial-gradient(900px 420px at 50% -10%, var(--acc-soft), transparent 70%), #f6f6f8; }
.trk-card { width: min(520px, 100%); background: #fff; border-radius: 24px; padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-lg); }
.trk-card.in { animation: authIn .5s var(--spring) both; }
.trk-head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.trk-head small { color: var(--muted); font-weight: 800; } .trk-head h1 { font-size: 30px; font-weight: 900; }
.trk-pay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--wait-soft); color: #8a4b00; font-weight: 700; }
.trk-pay svg { width: 18px; height: 18px; } .trk-pay span { flex: 1; } .trk-pay .primary { background: var(--acc); border-color: var(--acc); }
.trk-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.trk-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--muted); font-weight: 800; }
.trk-steps li + li::before { content: ''; position: absolute; left: 15px; top: -10px; height: 20px; width: 2px; background: var(--line); }
.trk-steps li.done + li::before, .trk-steps li.done + li.now::before { background: var(--acc); }
.trk-steps li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); background: #fff; font-size: 13px; flex-shrink: 0; transition: background .3s, border-color .3s; }
.trk-steps li span svg { width: 16px; height: 16px; }
.trk-steps li.done { color: var(--ink-2); } .trk-steps li.done span { background: var(--acc); border-color: var(--acc); color: #fff; }
.trk-steps li.now { color: var(--ink); } .trk-steps li.now span { border-color: var(--acc); color: var(--acc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 15%, white); animation: nowPulse 2s infinite; }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--acc) 6%, white); } }
.trk-eta { margin: -6px 0 0; color: var(--ink-2); font-weight: 600; }
.trk-items { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.trk-items > div { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.trk-items small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.trk-items .all { border-top: 1px dashed var(--line-2); padding-top: 8px; } .trk-items .all b { font-size: 19px; font-weight: 900; }
.trk-pay-l, .trk-addr { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 700; font-size: 13.5px; }
.trk-addr svg { width: 16px; height: 16px; flex-shrink: 0; }
.trk-card .big { justify-content: center; }
.tag.bad { background: var(--bad-soft); color: #b42318; } .tag.wait { background: var(--wait-soft); color: #8a4b00; }
@media (max-width: 860px) { .mn-sheet .mi-foot { bottom: -18px; } .ck-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- painel: quadro de pedidos e editor do cardápio ---------- */
.ord-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kcol { display: flex; flex-direction: column; min-height: 0; background: #eef0f5; border-radius: 16px; padding: 10px; }
.kcol-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.kcol-h .tile { width: 30px; height: 30px; border-radius: 10px; } .kcol-h b { flex: 1; font-weight: 900; }
.kcol-h .n { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 99px; background: #fff; display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.kcol-b { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px; }
.ord { background: #fff; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.05); border: 1px solid transparent; animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); transition: box-shadow .2s, border-color .2s, transform .2s var(--ease); }
.ord:hover { border-color: var(--line-2); box-shadow: 0 12px 26px -18px rgba(0,0,0,.35); transform: translateY(-1px); }
.ord.wait { opacity: .78; background: repeating-linear-gradient(-45deg, #fff, #fff 10px, #fbfaf6 10px, #fbfaf6 20px); }
.ord.off { opacity: .55; }
.ord header { display: flex; justify-content: space-between; align-items: baseline; } .ord header b { font-size: 17px; font-weight: 900; } .ord header span { font-size: 12px; color: var(--muted); font-weight: 700; }
.ord .who { font-weight: 800; }
.ord .its { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); font-weight: 600; } .ord .its i { font-style: normal; color: var(--muted); }
.ord .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ord footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; } .ord footer b { font-weight: 900; font-size: 15px; }
.ord-d { display: flex; flex-direction: column; gap: 10px; }
.ord-items { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--bg); }
.ord-items > div { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; } .ord-items small { display: block; color: var(--muted); font-size: 12px; }
.ord-items .all { border-top: 1px dashed var(--line-2); padding-top: 8px; font-weight: 800; } .ord-items .all b { font-size: 18px; font-weight: 900; }
.menu-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; align-content: start; padding-bottom: 6px; }
.me-cat { padding: 16px; display: flex; flex-direction: column; gap: 10px; animation: rise .4s var(--ease) both; }
.me-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .me-h h2 { font-size: 17px; }
.me-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.me-items { display: flex; flex-direction: column; }
.me-it { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); }
.me-it .li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; cursor: pointer; } .me-it .li-main b { font-weight: 800; }
.me-it .li-main span { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-it.off .li-main { opacity: .45; text-decoration: line-through; }
.sz-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 8px; margin-bottom: 8px; align-items: center; }
@media (max-width: 1100px) { .ord-board { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; } .ord-board > .kcol { flex: 0 0 300px; scroll-snap-align: start; } }
@media (max-width: 860px) { .ord-board > .kcol { flex-basis: 86%; max-height: 70vh; } .menu-ed { grid-template-columns: 1fr; } .sz-row { grid-template-columns: minmax(0, 1fr) 120px auto; } }
.mi .mi-opt { flex-direction: row; align-items: center; text-align: left; margin: 0; }
.mi .mi-opt input[type=radio], .mi .mi-opt input[type=checkbox] { width: 20px; height: 20px; min-width: 20px; flex: none; margin: 0; padding: 0; box-shadow: none; }
.mi .mi-opt span { text-align: left; }
/* no cardápio, os avisos aparecem em cima (embaixo fica a sacola) */
body:has(.mn:not(.embed)) #toasts { top: 12px; bottom: auto; }

/* ---------- menu lateral recolhível (computador) ---------- */
.side-toggle { display: none; }
@media (min-width: 861px) {
  .sidebar { position: relative; overflow: visible; transition: width .35s var(--ease); }
  .side-toggle { display: grid; place-items: center; position: absolute; top: 22px; right: -13px; z-index: 12; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); box-shadow: 0 4px 12px -4px rgba(32, 34, 36, .25); transition: transform .35s var(--ease), color .2s, background .2s; }
  .side-toggle:hover { color: var(--primary); background: var(--primary-soft); }
  .side-toggle svg { width: 14px; height: 14px; }
  .app { transition: grid-template-columns .35s var(--ease); }
  .side-mini { --side: 84px; }
  .side-mini .side-toggle { transform: rotate(180deg); }
  .side-mini .sidebar .brand { padding: 0; justify-content: center; }
  .side-mini .sidebar .brand > div:not(.brand-mark), .side-mini .sidebar .brand-name, .side-mini .sidebar .brand-sub { display: none; }
  .side-mini .menu a { margin: 0 14px; padding: 0; justify-content: center; }
  .side-mini .menu a .lbl { display: none; }
  .side-mini .menu a .count { position: absolute; top: 4px; right: 4px; margin: 0; min-width: 18px; height: 18px; font-size: 10.5px; }
  .side-mini .menu a::before { left: -14px; }
  .side-mini .menu-sep { margin: 10px 18px; }
  .side-mini .side-cta { margin: 6px 14px 10px; padding: 12px 0; display: grid; place-items: center; }
  .side-mini .side-cta span { display: none; } .side-mini .side-cta b { font-size: 0; gap: 0; } .side-mini .side-cta b svg { width: 20px; height: 20px; }
  .side-mini .sidebar .menu-label { display: none; }
}

/* ---------- portal do pré-cliente ---------- */
.portal-step { display: flex; align-items: center; gap: 10px; min-width: 0; }
.portal-step .ps-n { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.portal-step b { font-weight: 900; white-space: nowrap; }
.portal-step .ps-bar { width: 160px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.portal-step .ps-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand-grad); transition: width .6s var(--ease); }
.tour { display: flex; flex-direction: column; gap: 16px; }
.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tour-f { padding: 18px; display: flex; flex-direction: column; gap: 8px; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.tour-f h3 { font-size: 16px; font-weight: 900; } .tour-f p { margin: 0; color: var(--ink-2); font-weight: 600; font-size: 13.5px; line-height: 1.45; }
.tour-path { display: flex; flex-direction: column; gap: 12px; }
.tour-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tour-steps li { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.tour-steps li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); font-weight: 800; font-size: 13px; background: #fff; }
.tour-steps li span svg { width: 15px; height: 15px; }
.tour-steps li b { color: var(--ink-2); font-weight: 800; font-size: 13.5px; } .tour-steps li small { font-size: 12px; font-weight: 600; line-height: 1.35; }
.tour-steps li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.tour-steps li.now span { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.tour-path .primary { align-self: flex-start; }
.price-big { font-size: 34px; font-weight: 900; letter-spacing: -.02em; margin: 6px 0; } .price-big small { font-size: 14px; color: var(--muted); font-weight: 700; }
.plan-ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-weight: 600; line-height: 1.8; }
.portal-chat { min-height: 0; }
@media (max-width: 1100px) { .tour-grid { grid-template-columns: 1fr 1fr; } .tour-steps { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) { .portal-step .ps-bar, .portal-step .ps-n { display: none; } .tour-grid { grid-template-columns: 1fr; } .tour-steps { grid-template-columns: 1fr 1fr; } .portal-chat { height: calc(100dvh - 58px - 86px - 120px); } }

/* ---------- acessos de demonstração (só aparecem na demo) ---------- */
.demo-hint { margin: -8px 0 18px; padding: 12px; border-radius: 14px; background: #f4efff; }
.demo-hint > b { display: block; font-size: 12.5px; color: #5b21b6; margin-bottom: 8px; }
.demo-logins { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.demo-logins button { height: auto; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 10px; border-radius: 10px; text-align: left; background: #fff; }
.demo-logins button span { font-weight: 800; font-size: 13px; color: var(--ink); } .demo-logins button small { font-size: 11px; color: var(--muted); font-weight: 700; }
.demo-logins button:hover { border-color: var(--primary); }
.demo-logins code { font-family: var(--mono); color: var(--primary-ink); }
.tour-steps li > div { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 860px) {
  .stepper { display: flex !important; overflow-x: auto; scrollbar-width: none; gap: 8px; padding-bottom: 4px; }
  .stepper::-webkit-scrollbar { display: none; }
  .stepper li { flex: 0 0 auto; white-space: nowrap; }
  .portal-chat { display: flex; flex-direction: column; height: calc(100dvh - 58px - 86px - 150px) !important; }
  .portal-chat .pchat { flex: 1 1 auto !important; min-height: 0; overflow-y: auto; }
  /* tabelas do portal viram cartões no celular */
  .portal-app .tbl-wrap table { min-width: 0; }
  .portal-app .tbl-wrap thead { display: none; }
  .portal-app .tbl-wrap tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .portal-app .tbl-wrap td { padding: 0 !important; border: none !important; text-align: left !important; }
  .portal-app .tbl-wrap td:first-child { grid-column: 1 / -1; }
  .portal-app .tbl-wrap td:last-child { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
}

/* ---------- fotos no cardápio público ---------- */
.mn-hero.has-cover { background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.62)), var(--cover) center / cover, var(--acc); }
.mn-hero.has-cover .mn-hero-in { padding-top: 90px; }
.mn-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.mn-logo { overflow: hidden; }
.mn-tag { margin: 4px 0 0; font-weight: 700; opacity: .92; font-size: 14px; }
.mn-item .ph { position: relative; flex-shrink: 0; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; background: var(--bg); }
.mn-item .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mn-item:hover .ph img { transform: scale(1.05); }
.mn-item .ph .add { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 10px; background: #fff; box-shadow: 0 4px 10px -4px rgba(0,0,0,.35); }
.mi-photo { margin: -6px 0 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg); }
.mi-photo img { width: 100%; height: 100%; object-fit: cover; animation: fade .4s both; }

/* ---------- cardápio dentro do painel (como no celular do cliente) ---------- */
.mv-wrap { display: grid; grid-template-columns: auto minmax(260px, 360px); gap: 28px; justify-content: center; align-items: start; min-height: 0; }
.mv-phone { position: relative; width: 400px; height: 100%; max-height: calc(100vh - 210px); min-height: 480px; border-radius: 42px; padding: 12px; background: #15131c; box-shadow: 0 30px 60px -30px rgba(21, 19, 28, .55), inset 0 0 0 2px #2b2836; }
.mv-notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 22px; margin-left: -46px; border-radius: 99px; background: #15131c; z-index: 40; }
.mv-screen { width: 100%; height: 100%; border-radius: 32px; overflow-y: auto; overflow-x: hidden; background: #f6f6f8; position: relative; scrollbar-width: none; }
.mv-screen::-webkit-scrollbar { display: none; }
.mn.embed { min-height: 100%; padding-bottom: 90px; }
.mn.embed .mn-bar { position: sticky; bottom: 0; }
.mn.embed .mn-cats { padding: 10px 14px; }
.mn.embed .mn-hero-in { padding-top: 46px; }
.mn.embed .mn-hero.has-cover .mn-hero-in { padding-top: 96px; }
.mv-side { display: flex; flex-direction: column; gap: 10px; }
.mv-side .code span { word-break: break-all; }
@media (max-width: 1100px) { .mv-wrap { grid-template-columns: 1fr; } .mv-side { display: none; } }
@media (max-width: 860px) { .mv-phone { width: 100%; max-height: none; height: calc(100dvh - 210px); padding: 0; border-radius: 22px; background: none; box-shadow: none; } .mv-notch { display: none; } .mv-screen { border-radius: 22px; box-shadow: 0 0 0 1px var(--line); } }

/* ---------- editor: aparência e fotos ---------- */
.me-look { grid-column: 1 / -1; overflow: hidden; padding: 0; animation: rise .4s var(--ease) both; }
.me-cover { position: relative; height: 130px; background: var(--acc); }
.me-cover.has { background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35)), var(--cover) center / cover; }
.me-cover-btn { position: absolute; right: 12px; top: 12px; background: rgba(255,255,255,.92); }
.me-cover-del { position: absolute; right: 12px; top: 52px; background: rgba(255,255,255,.75); }
.me-logo { position: absolute; left: 20px; bottom: -34px; width: 76px; height: 76px; padding: 0; border-radius: 22px; border: 4px solid #fff; background: #fff; overflow: hidden; box-shadow: 0 10px 22px -12px rgba(0,0,0,.45); display: grid; place-items: center; }
.me-logo img { width: 100%; height: 100%; object-fit: cover; }
.me-logo b { font-size: 30px; font-weight: 900; color: var(--acc, var(--primary)); }
.me-logo span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; opacity: 0; transition: opacity .2s; }
.me-logo:hover span { opacity: 1; } .me-logo span svg { width: 20px; height: 20px; }
.me-look-b { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 44px 20px 18px; }
.me-sw { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sw { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line-2); transition: transform .2s var(--spring); }
.sw:hover { transform: scale(1.12); } .sw.on { box-shadow: 0 0 0 2px var(--c); transform: scale(1.1); }
.sw-pick { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; border: 1px dashed var(--line-2); position: relative; cursor: pointer; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.sw-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.me-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.me-thumb.none { display: grid; place-items: center; background: var(--bg); color: var(--muted); border: 1px dashed var(--line-2); cursor: pointer; }
.me-thumb.none svg { width: 16px; height: 16px; }
.it-photo { display: flex; gap: 14px; align-items: center; }
.it-photo > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.it-ph { width: 96px; height: 96px; border-radius: 16px; overflow: hidden; flex-shrink: 0; background: var(--bg); border: 1px dashed var(--line-2); display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.it-ph img { width: 100%; height: 100%; object-fit: cover; } .it-ph svg { width: 20px; height: 20px; }

/* ---------- perfil ---------- */
.avatar.photo { object-fit: cover; padding: 0; background: var(--bg); }
.prof-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.prof-photo { position: relative; padding: 0; border: none; background: none; box-shadow: none; height: auto; border-radius: 50%; }
.prof-photo .avatar.xl { width: 96px; height: 96px; font-size: 32px; }
.prof-photo .cam { position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; border: 3px solid #fff; transition: transform .25s var(--spring); }
.prof-photo:hover .cam { transform: scale(1.12); } .prof-photo .cam svg { width: 15px; height: 15px; }
.menu-ed { grid-auto-rows: max-content; }
.me-look { min-height: max-content; flex-shrink: 0; }
.msg-link { color: inherit; text-decoration: underline; word-break: break-all; font-weight: 700; }
.bubble.in .msg-link, .bubble:not(.out) .msg-link { color: var(--primary-ink); }

/* ============================================================
   Celular, passo 2: configurar pelo dedo sem confusão
   ============================================================ */
.aj-hub { display: flex; flex-direction: column; gap: 10px; }
.aj-hub a { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); animation: rise .4s var(--ease) both; animation-delay: calc(var(--i) * 40ms); transition: transform .15s var(--ease); }
.aj-hub a:active { transform: scale(.985); background: #fbfaff; }
.aj-hub a > span:not(.tile) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aj-hub b { font-weight: 800; font-size: 15.5px; } .aj-hub small { color: var(--muted); font-weight: 600; font-size: 12.5px; line-height: 1.35; }
.aj-hub > a > svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.aj-hub .tile { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; }
.aj-sub { flex-wrap: nowrap !important; align-items: center !important; justify-content: flex-start !important; gap: 10px !important; }
.aj-sub .icon-btn { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.06); flex-shrink: 0; color: var(--ink); }
.aj-sub .icon-btn svg { width: 18px; height: 18px; }
.aj-sub small { color: var(--muted); font-weight: 700; font-size: 12px; } .aj-sub h1 { font-size: 22px !important; }
.ord-tabs { margin-bottom: 10px; }
.ord-tabs button { flex-direction: column; height: 48px; gap: 0; font-size: 12px; padding: 0 4px; }
.ord-tabs button b { font-size: 15px; opacity: 1; margin: 0; }

@media (max-width: 860px) {
  /* botões do topo de cada tela: dois por linha, grandes para o dedo */
  .page-head > .row, .page-head > div.row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .page-head > .row > button, .page-head > .row > a.btn { width: 100%; justify-content: center; height: 42px; font-size: 13.5px; padding: 0 10px; }
  .page-head > .row > .tag { grid-column: 1 / -1; justify-self: start; }
  .page-head > .row > .primary:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .page-head > button.primary, .page-head > a.primary { width: 100%; justify-content: center; height: 44px; }
  button, .btn { min-height: 40px; }
  button.sm, .btn.sm { min-height: 36px; }
  .me-h { flex-wrap: wrap; } .me-h .row { width: 100%; justify-content: flex-start; }
  .me-look-b { padding: 44px 14px 16px; } .me-look-b form { min-width: 0 !important; width: 100%; }
  .card-head { flex-wrap: wrap; gap: 8px; }
  /* tabelas viram cartões: cada linha mostra o nome de cada informação */
  .tbl-wrap { overflow: visible; padding: 0 12px !important; }
  .tbl-wrap table:not(.keep) { min-width: 0 !important; width: 100%; }
  .tbl-wrap table:not(.keep) thead { display: none; }
  .tbl-wrap table:not(.keep), .tbl-wrap table:not(.keep) tbody, .tbl-wrap table:not(.keep) tr { display: block; }
  .tbl-wrap table:not(.keep) tr { padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .tbl-wrap table:not(.keep) tr:last-child { border-bottom: none; }
  .tbl-wrap table:not(.keep) td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 !important; border: none !important; text-align: right !important; min-height: 0; white-space: normal; }
  .tbl-wrap table:not(.keep) td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); text-align: left; flex-shrink: 0; max-width: 45%; }
  .tbl-wrap table:not(.keep) td[data-label=""]::before { display: none; }
  .tbl-wrap table:not(.keep) td[data-label=""] { justify-content: flex-end; }
  .tbl-wrap table:not(.keep) td:first-child { justify-content: flex-start; text-align: left !important; font-size: 15px; padding-bottom: 6px !important; }
  .tbl-wrap table:not(.keep) td:first-child::before { display: none; }
  .tbl-wrap table:not(.keep) td:empty { display: none; }
  .tbl-wrap table:not(.keep) td .row { justify-content: flex-end; flex-wrap: wrap; }
  /* quadro de pedidos: uma coluna por vez */
  .ord-board.one { display: block !important; overflow: visible; }
  .ord-board.one > .kcol { display: none; max-height: none; } .ord-board.one > .kcol.sel { display: flex; }
  .ord-board.one .kcol-h { display: none; }
  .ord-board.one .kcol { background: none; padding: 0; }
  /* abas que sobram de outras telas: deslizam e mostram que tem mais */
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  /* aviso no topo ocupa menos */
  #noticeBar .notice { padding: 8px 10px; } #noticeBar .notice .tile { display: none; }
}
@media (max-width: 860px) {
  .page-head > .row:has(> .icon-btn), .page-head > .row:has(> button.icon-btn) { display: flex !important; width: auto; }
  .tbl-wrap table:not(.keep) td input[type=time] { width: 100% !important; max-width: 150px; min-width: 0; }
  .tbl-wrap table:not(.keep) td:has(.row) { flex-wrap: wrap; }
  .tbl-wrap table:not(.keep) td:has(.row)::before { max-width: none; width: 100%; }
  .tbl-wrap table:not(.keep) td:has(.row) .row { width: 100%; justify-content: space-between !important; flex-wrap: nowrap !important; }
}
@media (max-width: 860px) {
  .page-head > .row:has(> .icon-btn) { flex-direction: row !important; align-items: center; gap: 10px; }
  .page-head > .row:has(> .icon-btn) > .icon-btn { width: 40px !important; height: 40px; flex: 0 0 40px; }
}
.aj-hub a > span:not(.tile) { flex: 1; }
.aj-hub a > span.tile { flex: 0 0 44px !important; display: grid; place-items: center; }

/* ============================================================
   Celular, passo 3: nada estoura a tela, nem com letra grande
   ============================================================ */
.side-cta { display: block; }
@media (max-width: 860px) {
  .card, .grid > *, .split > *, .stats > *, .li-main, .row > *, .form > *, label { min-width: 0; }
  .li-sub, .li-title { overflow-wrap: anywhere; }
  .li-sub { white-space: normal !important; }
  /* aviso no topo: uma linha só; tocar no texto abre o aviso inteiro */
  #noticeBar .notice { gap: 8px; }
  #noticeBar .notice > .tag, #noticeBar .notice [data-more] { display: none; }
  #noticeBar .notice .li-main { flex: 1; cursor: pointer; }
  #noticeBar .notice .li-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  #noticeBar .notice [data-ok] { flex-shrink: 0; }
  /* botões do topo: dividem a linha sem estourar, o texto quebra se precisar */
  .page-head > .row, .page-head > div.row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head > .row > button, .page-head > .row > a.btn, .page-head > .row > label.btn { white-space: normal; line-height: 1.2; height: auto; min-height: 42px; padding: 8px 10px; }
  .page-head > .row > :only-child { grid-column: 1 / -1; }
  /* números do painel */
  .stat { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 12px 10px 14px; gap: 2px 8px; }
  .stat .tile { width: 32px; height: 32px; border-radius: 10px; } .stat .tile svg { width: 16px; height: 16px; }
  .stat .v { font-size: 19px; overflow-wrap: anywhere; }
  /* ícones dentro de tabelas e listas nunca crescem */
  .tbl-wrap td > svg, td > svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }
  /* listas com botões no fim (documentos, empresas...): os botões descem para a linha de baixo */
  .doc, .list-item, .li { flex-wrap: wrap; }
  .doc .li-main { flex: 1 1 calc(100% - 60px); }
  .doc > .tag, .doc > .btn, .doc > button, .doc > label { margin-left: auto; }
  /* cardápio: capa e cores */
  .me-look, .me-cover { max-width: 100%; }
  .me-cover-btn { right: 10px !important; left: auto; max-width: calc(100% - 20px); }
  .me-look .swatches, .me-sw { flex-wrap: wrap; }
  /* entrada */
  .auth-card { padding: 28px 18px 22px; }
  .auth-card h1 { font-size: 26px; }
  .demo-logins button { min-width: 0; } .demo-logins button span, .demo-logins button small { white-space: normal; overflow-wrap: anywhere; }
  /* textos longos em inputs e etiquetas */
  input, select, textarea { min-width: 0; max-width: 100%; }
  .tabs, .seg { max-width: 100%; }
}
@media (max-width: 340px) {
  .demo-logins { grid-template-columns: 1fr; }
  .stats, .stats.six { gap: 8px; }
  .stat .tile { display: none; }
}
@media (max-width: 860px) {
  .doc-list { grid-template-columns: minmax(0, 1fr); }
  .doc { min-width: 0; }
  .doc .li-main { flex: 1 1 160px; }
}
.idea-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px 2px; scrollbar-width: none; flex-shrink: 0; }
.idea-chips::-webkit-scrollbar { display: none; }
.idea-chips button { flex-shrink: 0; height: 34px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid #ddd6fe; color: var(--primary-ink); font-weight: 700; font-size: 13px; white-space: nowrap; }
@media (max-width: 860px) {
  /* aviso: só o título, inteiro */
  #noticeBar .notice .li-main { display: block; }
  #noticeBar .notice .li-main span { display: none; }
  /* números: a legenda pode quebrar em duas linhas em vez de sumir */
  .stat .trend, .stat .s, .stat > small, .stat > span:not(.tile) { white-space: normal; overflow: visible; }
  .stat .v { white-space: normal; }
  /* campo de busca ocupa a linha toda */
  #clientsCard .card-head input[type=search], .card-head input[type=search] { flex: 1 1 100% !important; max-width: none !important; width: 100%; }
  /* testar: o celular de mentira ocupa a altura da tela */
  .phone-wrap .phone { height: calc(100dvh - 230px); min-height: 420px; }
  /* meu cardápio: sem moldura, nada cortado */
  .mv-phone { height: calc(100dvh - 250px); overflow: hidden; }
  .mv-screen { width: 100%; overflow-x: hidden; }
}
@media (max-width: 860px) {
  /* texto comprido numa tabela: o nome em cima, o texto embaixo, na largura toda */
  .tbl-wrap table:not(.keep) td.td-long { display: block; text-align: left !important; }
  .tbl-wrap table:not(.keep) td.td-long::before { display: block; max-width: none; margin-bottom: 2px; }
  /* barra de baixo: rótulos nunca se encostam */
  .bottom-nav a span, .bnav a span, .mnav a span { font-size: 10.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottom-nav a, .bnav a, .mnav a { min-width: 0; }
}
@media (max-width: 860px) {
  .tbl-wrap table:not(.keep) td:first-child { display: block; }
  .tbl-wrap table:not(.keep) td:not(:first-child):has(> .li-sub) { display: block; text-align: left !important; }
  .tbl-wrap table:not(.keep) td:not(:first-child):has(> .li-sub)::before { display: block; max-width: none; margin-bottom: 2px; }
}
/* ============================================================
   Aplicativo instalado: tela cheia, respeita o entalhe e a barra de gestos
   ============================================================ */
.app-install { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 0 16px 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid #ddd6fe; background: #fff; text-align: left; height: auto; }
.app-install img { border-radius: 9px; flex-shrink: 0; }
.app-install span { display: flex; flex-direction: column; min-width: 0; }
.app-install b { font-size: 14px; font-weight: 800; color: var(--ink); } .app-install small { font-size: 12px; color: var(--muted); font-weight: 600; }
.inst { text-align: left; } .inst img { border-radius: 16px; display: block; margin: 0 auto 12px; }
.inst p { color: var(--ink-2); font-weight: 600; text-align: center; margin: 0 0 14px; }
.inst ol { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 8px; font-weight: 600; }
@media (max-width: 860px) {
  .bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
  .topbar { padding-top: env(safe-area-inset-top); height: calc(var(--top) + env(safe-area-inset-top)); box-sizing: border-box; }
  .sidebar { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .modal-card { padding-bottom: calc(env(safe-area-inset-bottom) + 8px); }
}
.is-app body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
.is-app button, .is-app a { -webkit-touch-callout: none; }
@media (max-width: 860px) { .phone-wrap { grid-template-columns: minmax(0, 1fr) !important; } .phone-wrap .phone { width: 100% !important; max-width: 420px; } }

/* ============================================================
   CEP automático, endereço de saída, raio, jeitos de cobrar, simulador
   ============================================================ */
.cep-hint { min-height: 0; transition: color .2s; }
.cep-hint.busy { color: var(--primary-ink); } .cep-hint.ok { color: #0f766e; font-weight: 700; } .cep-hint.bad { color: var(--bad); font-weight: 700; }
.cep-hint.busy::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -1px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
input.filled { animation: cepFill 1.1s var(--ease); }
@keyframes cepFill { 0% { background: #ede9fe; box-shadow: 0 0 0 3px #ddd6fe; } 100% { background: var(--bg); box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { input.filled { animation: none; } .cep-hint.busy::before { animation: none; } }
.cep-assist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 120px); gap: 10px; }
.addr-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.addr-grid > label { grid-column: span 2; } .addr-grid > label.wide { grid-column: span 4; }
.addr-grid.sim > label { grid-column: span 3; } .addr-grid.sim > label.wide { grid-column: span 3; }
.origin-st { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #b45309; background: #fffbeb; border-radius: 10px; padding: 9px 12px; }
.origin-st.ok { color: #0f766e; background: #f0fdfa; }
.origin-st svg { width: 16px; height: 16px; flex-shrink: 0; }
.radius { background: var(--bg); border-radius: 14px; padding: 14px 16px 10px; }
.radius-top { display: flex; align-items: baseline; justify-content: space-between; font-weight: 700; color: var(--ink-2); }
.radius-top b { font-size: 26px; color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.radius input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; margin: 14px 0 6px; padding: 0; border: none;
  background: linear-gradient(90deg, var(--primary) var(--p, 20%), #e4e1ef var(--p, 20%)); }
.radius input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 4px 12px -2px rgba(91, 43, 224, .45); cursor: grab; }
.radius input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: grab; }
.radius-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.radius .hint { margin-top: 8px; }
.fee-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fee-modes button { height: auto; min-height: 64px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 12px; border-radius: 12px; text-align: left; background: #fff; border: 1.5px solid var(--line); white-space: normal; }
.fee-modes button b { font-size: 14px; font-weight: 800; color: var(--ink); } .fee-modes button small { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.fee-modes button.on { border-color: var(--primary); background: #f7f4ff; box-shadow: 0 0 0 3px #ede9fe; }
.fee-modes button.on b { color: var(--primary-ink); }
.band-row { display: grid; grid-template-columns: auto minmax(0, 90px) auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; color: var(--ink-2); font-size: 13.5px; }
.km-in { display: flex; align-items: center; background: var(--bg); border-radius: 10px; padding-right: 10px; } .km-in input { background: transparent; border: none; min-width: 0; } .km-in span { color: var(--muted); font-size: 12.5px; }
.sim-res { margin-top: 14px; border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; animation: rise .35s var(--ease) both; }
.sim-res.ok { background: #f0fdfa; } .sim-res.ok > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sim-res.ok span { color: var(--ink-2); font-weight: 700; font-size: 13px; } .sim-res.ok b { font-size: 18px; font-weight: 800; } .sim-res.ok s { color: var(--muted); font-size: 13px; font-weight: 600; margin-left: 6px; }
.sim-res.bad { background: #fef2f2; color: var(--bad); display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: 13.5px; } .sim-res.bad svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.sim-res.busy { background: var(--bg); color: var(--muted); font-weight: 700; }
@media (max-width: 860px) {
  .addr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .addr-grid > label, .addr-grid.sim > label { grid-column: span 1; } .addr-grid > label.wide, .addr-grid.sim > label.wide { grid-column: 1 / -1; }
  .band-row { grid-template-columns: auto minmax(0, 1fr) auto; } .band-row > span:nth-of-type(2) { display: none; } .band-row .money-in { grid-column: 1 / 3; } .band-row > span:first-child { display: none; } .band-row .km-in { grid-column: 1 / 3; }
  .band-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .band-row .km-in, .band-row .money-in { grid-column: auto; }

  /* caixa (e outras telas com barra de ferramentas): o dia numa linha, os botões em pares embaixo */
  .toolbar { flex-wrap: wrap; }
  .toolbar > .spacer { flex-basis: 100%; height: 0; margin: 0; }
  .toolbar > input[type=date] { flex: 1; min-width: 0; }
  .toolbar > button:not(.icon-btn), .toolbar > a.btn { flex: 1 1 calc(50% - 4px); justify-content: center; min-width: 0; }
  /* abas com até 4 opções: dividem a largura toda, sem nenhuma cortada */
  .tabs:not(:has(> :nth-child(5))) { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .tabs:not(:has(> :nth-child(5))) > * { white-space: normal; text-align: center; justify-content: center; line-height: 1.15; padding-left: 6px; padding-right: 6px; font-size: 13px; min-height: 40px; }
  .page-head > .row:has(> .tabs) { display: block !important; }
}
.mn-free { color: #bbf7d0; }
.mn-free-bar { margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: #f0fdf4; color: #166534; font-size: 13px; font-weight: 700; display: grid; gap: 7px; }
.mn-free-bar i { display: block; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #16a34a var(--p), #dcfce7 var(--p)); }
.mn-free-bar.ok { text-align: center; }
@media (max-width: 860px) {
  /* seletores de 2 a 4 opções: tudo à vista, sem rolar de lado (4 viram 2×2) */
  .seg:not(.ord-tabs):not(:has(> :nth-child(5))) { display: grid; grid-template-columns: repeat(var(--segc, 3), minmax(0, 1fr)); width: 100%; max-width: 100%; overflow: visible; -webkit-mask-image: none; mask-image: none; gap: 4px; height: auto; }
  .seg:not(.ord-tabs):not(:has(> :nth-child(3))) { --segc: 2; }
  .seg:not(.ord-tabs):has(> :nth-child(4)) { --segc: 2; }
  /* abas de pagamento: o marcador deslizante (.ind) também é filho e não pode contar como opção */
  .seg.pay-tabs:has(> .ind):not(:has(> button:nth-of-type(3))) { --segc: 2; }
  .seg.pay-tabs:has(> .ind):has(> button:nth-of-type(3)):not(:has(> button:nth-of-type(4))) { --segc: 3; }
  .seg:not(.ord-tabs):not(:has(> :nth-child(5))) > button { white-space: normal; line-height: 1.15; min-height: 40px; height: auto; padding: 8px 6px; font-size: 13px; text-align: center; justify-content: center; }
  .seg:not(.ord-tabs) > .seg-ind, .seg:not(.ord-tabs) > .ind { display: none; }
}
@media (max-width: 860px) { .tabs:not(:has(> :nth-child(5))) .tile, .tabs:not(:has(> :nth-child(5))) > * > svg { display: none; } }

/* ============================================================
   Assistente (jeito da IA) e Sistema › IA / Cópias de segurança
   ============================================================ */
.aj-link { display: flex; flex-direction: column; gap: 12px; align-self: start; }
.tone-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tone-opts button, .prov-grid button { height: auto; min-height: 62px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 10px 12px; border-radius: 12px; text-align: left; background: #fff; border: 1.5px solid var(--line); white-space: normal; }
.tone-opts b, .prov-grid b { font-size: 14px; font-weight: 800; color: var(--ink); } .tone-opts small { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.tone-opts button.on, .prov-grid button.on { border-color: var(--primary); background: #f7f4ff; box-shadow: 0 0 0 3px #ede9fe; }
.tone-opts button.on b, .prov-grid button.on b { color: var(--primary-ink); }
.lbl-s { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.faq-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; padding: 10px; border-radius: 12px; background: var(--bg); margin-bottom: 8px; animation: rise .3s var(--ease) both; }
.faq-row input { background: #fff; font-weight: 700; } .faq-row textarea { grid-column: 1; background: #fff; min-height: 56px; resize: vertical; }
.faq-row .icon-btn { grid-row: 1 / span 2; grid-column: 2; align-self: start; }
.chip-btn { border-radius: 99px; background: #fff; border: 1px dashed #c4b5fd; color: var(--primary-ink); font-weight: 700; }
.row.wrap { flex-wrap: wrap; gap: 8px; }
.assist-prev { align-self: start; position: sticky; top: 12px; }
.ap-phone { margin-top: 12px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #efeae2; }
.ap-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #075e54; color: #fff; }
.ap-head small { display: block; opacity: .8; font-size: 11.5px; font-weight: 600; } .ap-head b { font-size: 14px; }
.ap-body { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 260px; }
.ap-msg { max-width: 82%; padding: 8px 11px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: rise .3s var(--ease) both; }
.ap-msg.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.ap-msg.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.prov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prov-grid button { min-height: 58px; flex-direction: row; flex-wrap: wrap; align-items: center; align-content: center; gap: 4px 6px; }
.prov-grid b { width: 100%; }
.prov-grid .tag { font-size: 10.5px; padding: 1px 7px; }
.prov-free { font-size: 13px; color: var(--ink-2); font-weight: 600; background: var(--bg); border-radius: 10px; padding: 9px 12px; margin: 0; }
.test-box { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 11px 13px; font-size: 13.5px; animation: rise .3s var(--ease) both; }
.test-box svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.test-box div { display: flex; flex-direction: column; gap: 2px; } .test-box span { font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.test-box.ok { background: #f0fdfa; color: #0f766e; } .test-box.warn { background: #fffbeb; color: #b45309; } .test-box.bad { background: #fef2f2; color: var(--bad); } .test-box.busy { background: var(--bg); color: var(--muted); font-weight: 700; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 110px; align-items: end; }
.mini-bars > div { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.mini-bars i { display: block; width: 100%; max-width: 34px; height: max(4px, var(--h)); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #a78bfa, var(--primary)); transform-origin: bottom; animation: growUp .6s var(--ease) both; }
.mini-bars span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
@keyframes growUp { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .mini-bars i, .faq-row, .ap-msg { animation: none; } }
.bad-t { color: var(--bad); }
@media (max-width: 860px) {
  .tone-opts { grid-template-columns: minmax(0, 1fr); } .tone-opts button { min-height: 0; }
  .prov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .stats.three .stat .tile { display: none; }
  .assist-prev { position: static; }
}

/* ============================================================
   Planos e limites
   ============================================================ */
.ai-cost { display: flex; align-items: center; gap: 22px; padding: 14px 18px; margin-bottom: 14px; flex-wrap: wrap; }
.ac-main { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; min-width: 0; }
.ac-main small, .ac-num small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.ac-main b { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.ac-num { display: flex; flex-direction: column; min-width: 130px; }
.ac-num b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; } .ac-num span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.plans-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-content: start; padding: 2px; }
.plan-ed { padding: 16px; display: flex; flex-direction: column; gap: 10px; animation: rise .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.plan-ed.off { opacity: .65; }
.pe-h { display: flex; align-items: center; gap: 10px; }
.pe-name { flex: 1; font-size: 17px !important; font-weight: 800; background: transparent !important; border: 1.5px dashed transparent !important; padding: 4px 8px !important; margin-left: -8px; }
.pe-name:hover, .pe-name:focus { border-color: #ddd6fe !important; background: #fff !important; }
.pe-sec { font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 2px; }
.pe-mode button { font-size: 12.5px; white-space: normal; line-height: 1.15; height: auto; min-height: 36px; padding: 6px 8px; }
.pe-calc { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; font-size: 13px; }
.pe-calc > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pe-calc span { color: var(--ink-2); font-weight: 600; } .pe-calc b { font-weight: 800; text-align: right; } .pe-calc small { color: var(--muted); font-weight: 700; }
.pe-calc .neg b { color: var(--bad); }
.switch.sm { transform: scale(.85); }
.cu-row { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 5px; }
.cu-row:last-child { border-bottom: none; }
.cu-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .cu-h b { font-size: 14.5px; font-weight: 800; }
.cu-l { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; } .cu-l span { color: var(--ink-2); font-weight: 600; } .cu-l b { font-variant-numeric: tabular-nums; }
.cu-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ubar { height: 7px; border-radius: 99px; background: #eceaf4; overflow: hidden; }
.ubar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #a78bfa, var(--primary)); transition: width .6s var(--ease); }
.ubar.warn i { background: linear-gradient(90deg, #fb923c, #e11d48); }
.price-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.price-row .km-in span { padding-left: 10px; }
.limit-note.pausada { border-left: 4px solid var(--bad); } .limit-note.excedente { border-left: 4px solid #fb923c; } .limit-note.alerta { border-left: 4px solid #f59e0b; }
.limit-note .li-main span { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
@media (max-width: 860px) {
  .plans-cols { grid-template-columns: minmax(0, 1fr); }
  .plans-grid { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .ai-cost { gap: 12px 18px; } .ai-cost > button { width: 100%; }
  .price-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .price-row > input[name=pm] { grid-column: 1 / -1; }
  #noticeBar .limit-note .li-main span { display: block; }
}
@media (max-width: 860px) {
  #noticeBar .limit-note { flex-wrap: wrap; }
  #noticeBar .limit-note .li-main { flex: 1 1 calc(100% - 60px); }
  #noticeBar .limit-note .li-main b { white-space: normal; overflow: visible; }
  #noticeBar .limit-note .li-main span { display: block; }
  #noticeBar .limit-note > .btn, #noticeBar .limit-note > button { margin-left: auto; }
  #noticeBar .limit-note > .tile { display: grid; }
}
#noticeBar .limit-note .li-main span { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
.pe-box { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; display: grid; gap: 8px; }
.pe-box .pe-sec { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink); font-size: 13.5px; }
.pe-box .pe-sec .tile { width: 26px; height: 26px; border-radius: 8px; } .pe-box .pe-sec .tile svg { width: 14px; height: 14px; }
.pe-box .pe-sec small { width: 100%; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: -4px; padding-left: 34px; }
.pe-box.mk { background: #fffafd; }
.pe-calc .pc-t { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.pe-calc .sub span, .pe-calc .sub b { font-size: 12px; color: var(--muted); font-weight: 600; }
.pe-calc .tot { border-top: 1px dashed #d8d4e6; padding-top: 5px; margin-top: 2px; } .pe-calc .tot b { font-size: 15px; }
.pe-calc s { color: var(--muted); font-weight: 600; }
.pc-warn { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 0; color: var(--bad); font-weight: 700; font-size: 12.5px; } .pc-warn svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.ac-btns { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 860px) { .ac-btns { flex-direction: row; width: 100%; } .ac-btns button { flex: 1; } }
@media (min-width: 861px) {
  .ai-cost { flex-wrap: nowrap; gap: 18px; }
  .ac-main { flex: 1 1 0; }
  .ac-num { min-width: 0; max-width: 200px; }
  .ac-btns { flex-shrink: 0; }
  .ac-btns button { white-space: nowrap; }
}
@media (max-width: 860px) { .ac-btns { flex-wrap: wrap; } .ac-btns button { flex: 1 1 130px; min-width: 0; white-space: normal; line-height: 1.15; } }

/* ============================================================
   Notas fiscais
   ============================================================ */
.nf-off { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.nf-off > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nf-off b { font-size: 14.5px; } .nf-off span { color: var(--ink-2); font-weight: 600; font-size: 13px; }
.nf-off.test { border-left: 4px solid #f59e0b; }
.nf-err { color: var(--bad) !important; white-space: normal; max-width: 280px; }
.nf-cert { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: #fffbeb; color: #b45309; }
.nf-cert.ok { background: #f0fdfa; color: #0f766e; } .nf-cert.warn { background: #fff7ed; color: #c2410c; }
.nf-cert svg { width: 18px; height: 18px; flex-shrink: 0; }
.nf-cert > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .nf-cert b { font-size: 14px; } .nf-cert span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.nf-reg, .nf-em { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.nf-svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nf-svc { display: flex; flex-direction: column; gap: 10px; } .nf-svc h2 { font-size: 16px; }
pre.code { background: #17142b; color: #e9e5ff; border-radius: 12px; padding: 12px 14px; font-size: 13px; overflow-x: auto; margin: 10px 0; white-space: pre-wrap; word-break: break-all; }
.nf-info p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; }
.form.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) {
  .nf-svcs { grid-template-columns: minmax(0, 1fr); }
  .nf-off { flex-wrap: wrap; } .nf-off > button { width: 100%; }
  .form.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .form.three > label:first-child { grid-column: 1 / -1; }
}
.my-nf { margin-top: 6px; line-height: 1.6; } .my-nf a { color: var(--brand, #6d4aff); font-weight: 700; white-space: nowrap; }
.handoff.merge { flex-wrap: wrap; } .handoff.merge > span:first-of-type { flex: 1; min-width: 180px; } .handoff.merge .row { gap: 6px; }

/* ============================================================
   Monitor: registros ao vivo, histórico e conexões
   ============================================================ */
.mon-live { min-height: 0; }
.mon-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mon-bar select { width: auto; min-width: 150px; height: 38px; }
.mon-q { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; max-width: 360px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--bg-2, #f4f3fa); border: 1px solid var(--line); }
.mon-q svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }
.mon-q input { border: none; background: none; height: 100%; padding: 0; box-shadow: none; min-width: 0; }
.mon-q input:focus { outline: none; box-shadow: none; }
.mon-q:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.live-b { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; font-weight: 800; font-size: 13px; }
.live-b svg { width: 14px; height: 14px; }
.live-b.on { background: #ecfdf5; color: #047857; }
.live-b.on i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.live-b.on i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #10b981; animation: livePing 1.6s ease-out infinite; }
@keyframes livePing { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }
.live-b.paused { background: var(--bg-2, #f1f0f7); color: var(--ink-2); }
.live-b.warn { background: #fffbeb; color: #b45309; }
.mon-kinds { display: flex; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mon-kinds button { flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; box-shadow: none; }
.mon-kinds button b { font-size: 11.5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bg-2, #f1f0f7); color: var(--ink-2); display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.mon-kinds button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.mon-kinds button.on b { background: rgba(255,255,255,.22); color: #fff; }
.mon-kinds button.has-err:not(.on) b { background: #fee2e2; color: #b91c1c; }
.lg-list { list-style: none; margin: 0; padding: 0; }
.lg { border-bottom: 1px solid var(--line); }
.lg.new { animation: lgIn 1.2s ease-out; }
@keyframes lgIn { from { background: var(--primary-soft); } to { background: transparent; } }
.lg.erro { background: #fef2f2; }
.lg-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; height: auto; min-height: 44px; padding: 8px 16px; border: none; border-radius: 0; background: none; box-shadow: none; text-align: left; font-weight: 600; color: var(--ink); cursor: pointer; }
.lg-row:hover { background: #f8f7fd; }
.lg-row:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.lg-t { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-2, #f1f0f7); color: var(--ink-3); }
.lg-ic svg { width: 14px; height: 14px; }
.lg-ic.aviso { background: #fffbeb; color: #d97706; }
.lg-ic.erro { background: #fee2e2; color: #dc2626; }
.lg-m { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.lg-m b { color: var(--ink); }
.lg.erro .lg-txt { color: #b91c1c; }
.lg-co { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-ink); font-size: 11.5px; font-weight: 800; vertical-align: 1px; }
.lg-ms { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lg-ms.slow { color: #d97706; font-weight: 800; }
.lg-ms svg { width: 14px; height: 14px; transition: transform .2s; }
.lg.open .lg-ms svg { transform: rotate(90deg); }
.lg-det { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 20px; margin: 0; padding: 10px 16px 14px 58px; background: #faf9fe; font-size: 12.5px; }
.lg-det div { display: flex; gap: 8px; min-width: 0; } .lg-det .full { grid-column: 1 / -1; }
.lg-det dt { color: var(--ink-3); font-weight: 700; flex-shrink: 0; } .lg-det dd { margin: 0; font-weight: 700; word-break: break-word; }
.lg-empty { padding: 30px 16px; list-style: none; }
.mon-hf { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.mon-hf > label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); min-width: 140px; }
.mon-hf > label.grow { flex: 1 1 220px; }
.mon-hf select, .mon-hf input { height: 38px; }
.mon-sum { display: flex; gap: 18px; margin: 12px 2px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.mon-sum b { color: var(--ink); } .mon-sum .bad b { color: #dc2626; } .mon-sum .warn b { color: #d97706; }

.cn-server { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 14px; }
.cn-srv-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #17142b; color: #c4b5fd; }
.cn-srv-ic svg { width: 20px; height: 20px; }
.cn-server > div { display: flex; flex-direction: column; min-width: 0; }
.cn-server > div span { font-size: 11.5px; font-weight: 800; color: var(--ink-3); }
.cn-server > div b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.cn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.cn-card { display: flex; flex-direction: column; gap: 14px; }
.cn-h { display: flex; align-items: flex-start; gap: 12px; }
.cn-h > div { flex: 1; min-width: 0; } .cn-h h2 { font-size: 17px; margin: 0 0 2px; }
.cn-pill { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; height: 28px; padding: 0 11px; border-radius: 99px; font-size: 12.5px; font-weight: 800; }
.cn-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cn-pill.ok { background: #ecfdf5; color: #047857; } .cn-pill.bad { background: #fef2f2; color: #b91c1c; } .cn-pill.idle { background: var(--bg-2, #f1f0f7); color: var(--ink-3); }
.cn-copy { display: flex; gap: 8px; } .cn-copy input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cn-copy button { flex-shrink: 0; }
.cn-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; justify-content: flex-end; }
.cn-meta b { color: var(--ink); font-size: 14px; }
.cn-env { align-self: flex-start; }
.cn-small { gap: 12px; } .cn-small .btn { align-self: flex-start; }
.cn-wide { grid-column: 1 / -1; min-height: 200px; }
.row.wrap { flex-wrap: wrap; }

/* formas de pagamento: cartões com ícone */
.pm-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pm-opt { position: relative; display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.pm-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pm-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2, #f1f0f7); color: var(--ink-3); flex-shrink: 0; transition: background .15s, color .15s; }
.pm-ic svg { width: 18px; height: 18px; }
.pm-t { display: flex; flex-direction: column; min-width: 0; } .pm-t b { font-size: 14.5px; color: var(--ink); } .pm-t small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; line-height: 1.3; }
.pm-ck { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; background: #fff; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.pm-ck svg { width: 12px; height: 12px; }
.pm-opt:hover { border-color: #c4b5fd; }
.pm-opt:has(input:checked) { border-color: var(--primary); background: #faf8ff; box-shadow: 0 0 0 3px var(--primary-soft); }
.pm-opt:has(input:checked) .pm-ic { background: var(--primary); color: #fff; }
.pm-opt:has(input:checked) .pm-ck { background: var(--primary); border-color: var(--primary); color: #fff; }
.pm-opt:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

/* caixinhas dentro das pílulas (filtros): bolinha com visto, no lugar da caixa do navegador */
.chip input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; display: inline-grid; place-content: center; flex-shrink: 0; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.chip input[type=checkbox]::after { content: ''; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.chip input[type=checkbox]:checked { background: var(--primary); border-color: var(--primary); }
.chip input[type=checkbox]:checked::after { opacity: 1; }
.chip:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 860px) {
  .cn-grid { grid-template-columns: minmax(0, 1fr); }
  .cn-server { gap: 12px 18px; } .cn-server .spacer { display: none; } .cn-server > button { width: 100%; }
  .mon-bar select { flex: 1 1 140px; min-width: 0; } .mon-q { max-width: none; flex-basis: 100%; }
  .lg-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 9px 12px; }
  .lg-t { grid-column: 1 / -1; grid-row: 1; font-size: 11.5px; }
  .lg-ic { grid-row: 2; } .lg-m { grid-row: 2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .lg-ms { grid-row: 2; }
  .lg-det { grid-template-columns: minmax(0, 1fr); padding-left: 16px; }
  .mon-hf > label { flex: 1 1 140px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .live-b.on i::after, .lg { animation: none; } }
.mon-q { flex-direction: row !important; }
.mon-bar select, .mon-hf select { height: 40px; padding: 0 34px 0 12px; line-height: 38px; }
.mon-hf input { height: 40px; }
@media (max-width: 860px) { .mon-live .stats, #monKpi { gap: 10px; } }
@media (max-width: 860px) {
  #monKpi .stat { padding: 12px 14px; min-height: 0; } #monKpi .stat .trend { display: none; } #monKpi .stat .tile { width: 30px; height: 30px; }
  #monKpi .stat .v { font-size: 20px; }
}
.upd-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 4px 0 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink); font-size: 13.5px; font-weight: 600; text-align: left; }
.upd-note svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   Menu em categorias (sanfona) e subcategorias
   ============================================================ */
.menu[data-grouped] { display: flex; flex-direction: column; gap: 2px; }
.m-group { display: flex; flex-direction: column; }
.m-top { margin-bottom: 6px; }
.m-bottom { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.m-head { display: flex; align-items: center; gap: 12px; height: 40px; margin: 0 20px; padding: 0 12px 0 14px; border: none; border-radius: 6px; background: none; box-shadow: none; color: var(--ink-2); font-weight: 800; font-size: 13.5px; text-align: left; cursor: pointer; }
.m-head > svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--ink-3); }
.m-head span:not(.m-chev) { flex: 1; }
.m-head:hover { background: #f6f3ff; color: var(--primary-ink); }
.m-head:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.m-chev { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: auto; color: var(--ink-3); transition: transform .2s ease; }
.m-chev svg { width: 14px; height: 14px; }
.m-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: 0; transition: opacity .2s; }
.m-group.here:not(.open) .m-dot { opacity: 1; }
.m-group.here > .m-head { color: var(--ink); } .m-group.here > .m-head > svg { color: var(--primary); }
.m-group.open > .m-head .m-chev { transform: rotate(90deg); }
.m-items { display: flex; flex-direction: column; overflow: hidden; max-height: 0; transition: max-height .26s ease; }
.m-group.open > .m-items { max-height: 640px; }
.m-items > a, .m-items > .m-item > a { margin-left: 30px; height: 38px; font-size: 13.5px; }
.m-items > a::before, .m-items > .m-item > a::before { left: -30px; }
.m-item { display: flex; flex-direction: column; }
.m-parent .m-chev { margin-right: -4px; border-radius: 6px; }
.m-parent .m-chev:hover { background: rgba(0,0,0,.06); }
.m-parent.active .m-chev { color: #fff; }
.m-parent.active .m-chev:hover { background: rgba(255,255,255,.18); }
.m-item.open > .m-parent .m-chev { transform: rotate(90deg); }
.m-subs { display: none; flex-direction: column; margin: 2px 20px 4px 51px; padding-left: 12px; border-left: 2px solid var(--line); }
.m-item.open > .m-subs { display: flex; }
.menu a.m-sub { height: 32px; margin: 0; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); gap: 0; }
.menu a.m-sub::before { display: none; }
.menu a.m-sub.active { background: var(--primary-soft); color: var(--primary-ink); box-shadow: none; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .m-items, .m-chev { transition: none; } }
/* menu recolhido (só ícones, no computador): sem títulos nem subitens */
.side-mini .m-head, .side-mini .m-subs, .side-mini .m-chev { display: none !important; }
.side-mini .m-items { max-height: none !important; }
.side-mini .m-items > a, .side-mini .m-items > .m-item > a { margin-left: 14px; }
.side-mini .m-items > a::before, .side-mini .m-items > .m-item > a::before { left: -14px; }
.side-mini .m-group[data-group] { padding-top: 6px; margin-top: 6px; border-top: 1px solid var(--line); }
/* a barra lateral rola quando tudo estiver aberto */
.sidebar .menu { overflow-y: auto; scrollbar-width: thin; }

/* ============================================================
   Visão geral (sistema)
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ov-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ov-k { padding: 14px 16px; min-height: 0; }
.ov-k .k { font-size: 12.5px; } .ov-k .v { font-size: 24px; margin-top: 2px; } .ov-k .trend { font-size: 11.5px; margin-top: 2px; }
.ov-k .tile { width: 32px; height: 32px; top: 12px; right: 12px; } .ov-k .tile svg { width: 16px; height: 16px; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: minmax(150px, 1fr) minmax(0, 1.25fr); gap: 12px; min-height: 0; }
.ov-chart { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-height: 0; }
.ov-chart .card-head { flex-wrap: wrap; gap: 8px 12px; }
.ov-server { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.ov-cos { grid-column: 1; grid-row: 2; }
.ov-act { grid-column: 2; grid-row: 2; }
.seg.sm button { height: 30px; padding: 0 11px; font-size: 12.5px; }
.ov-plot { position: relative; flex: 1; min-height: 100px; padding: 0 12px 6px 4px; }
.ov-plot svg { display: block; width: 100%; height: 100%; }
.ov-grid-l { stroke: var(--line); stroke-width: 1; }
.ov-ax { font-size: 10.5px; fill: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-area { fill: var(--primary); fill-opacity: .1; }
.ov-line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ov-cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.ov-dot { fill: var(--primary); stroke: #fff; stroke-width: 2; }
.ov-tip { position: absolute; top: 4px; transform: translateX(-50%); padding: 6px 10px; border-radius: 10px; background: #17142b; color: #fff; font-size: 12.5px; white-space: nowrap; pointer-events: none; display: flex; flex-direction: column; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.ov-tip small { color: #c4b5fd; font-size: 11px; }
.ov-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0; padding: 4px 18px 10px; }
.ov-kv div { display: flex; flex-direction: column; min-width: 0; }
.ov-kv dt { font-size: 11.5px; color: var(--ink-3); font-weight: 700; } .ov-kv dd { margin: 0; font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-build { font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--bg-2, #f1f0f7); padding: 1px 6px; border-radius: 6px; vertical-align: 1px; }
.ov-conns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 14px 14px; border-top: 1px solid var(--line); }
.ov-conn { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; color: var(--ink); min-width: 0; }
.ov-conn:hover { background: #f8f7fd; }
.ov-conn .cn-pill { width: 10px; height: 10px; padding: 0; grid-row: span 2; } .ov-conn .cn-pill i { width: 10px; height: 10px; }
.ov-conn b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ov-conn small { font-size: 11px; color: var(--ink-3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-on { color: #059669; font-weight: 700; }
.ov-feed { list-style: none; margin: 0; padding: 0 4px; }
.ov-feed li { padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; display: flex; flex-wrap: wrap; gap: 0 4px; }
.ov-feed li span { color: var(--ink-2); } .ov-feed li small { flex-basis: 100%; color: var(--ink-3); font-size: 11.5px; font-weight: 600; }
.card-head .link { color: var(--primary-ink); font-weight: 800; font-size: 12.5px; }
@media (max-width: 1280px) { .ov-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ov-k .trend { display: none; }
  .ov-grid { display: flex; flex-direction: column; }
  .ov-chart { min-height: 240px; } .ov-plot { min-height: 170px; }
  .ov-cos, .ov-act { min-height: 260px; }
}
.ov-chart .card-head { flex-wrap: nowrap; padding-bottom: 6px; }
.ov-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 1500px) { .ov-sub { display: none; } }
.ov-kv { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 2px 18px 8px; gap: 4px 12px; }
.ov-kv div:first-child { grid-column: span 2; }
.ov-conns { padding: 6px 12px 10px; gap: 2px 6px; }
.ov-conn { padding: 4px 8px; }
.ov-server .card-head { padding-bottom: 4px; }
@media (max-width: 860px) { .ov-chart .card-head { flex-wrap: wrap; } .ov-kv { grid-template-columns: 1fr 1fr; } .ov-kv div:first-child { grid-column: span 2; } }
.ov-grid > * { min-height: 0; }
.ov-cos, .ov-act { overflow: hidden; }
.ov-plot { overflow: hidden; }
.ov-kv div:first-child { grid-column: auto; }
.ov-grid { grid-template-rows: minmax(170px, 1.05fr) minmax(0, 1fr); }
.ov-conns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ov-server { overflow: hidden; }
.ov-server .ov-kv dd { font-size: 13.5px; }

/* =====================================================================
   NYMBO · VISUAL PREMIUM (camada final, vale sobre tudo acima)
   Base neutra e calma, uma cor de destaque só (verde-petróleo) para o que
   está ativo ou é a ação principal, bordas finas no lugar de sombras,
   tipografia firme em 14px, números alinhados, sem gradientes nem brilhos.
   ===================================================================== */
:root {
  --shadow: none; --shadow-lg: 0 18px 44px -14px rgba(32, 34, 36, .28), 0 0 0 1px rgba(32, 34, 36, .06);
  --r: 7px; --r-lg: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg); letter-spacing: -.003em; }
b, strong { font-weight: 600; }
.num, td.num, .stat .v, .lg-t, .lg-ms, .ov-kv dd, table td { font-variant-numeric: tabular-nums; }

/* títulos */
.page-head h1, h1 { font-size: 22px; font-weight: 650; letter-spacing: -.018em; line-height: 1.25; }
.page-head p { font-size: 13.5px; color: var(--ink-3); font-weight: 400; max-width: 72ch; }
h2, .card-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.section-title { font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; text-transform: none; }

/* superfícies: borda fina, sem sombra */
.card, .tabs, .stat, .modal-card, .notice, .seg { box-shadow: none !important; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-head { padding: 16px 18px 8px; } .card-pad { padding: 18px; }
.card-head .sub { font-weight: 500; }
.modal-card { border-radius: 12px; box-shadow: var(--shadow-lg) !important; }

/* ícones: neutros, sem quadradinho colorido */
.stat .stat .k { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.stat .v { font-weight: 600; letter-spacing: -.02em; }
.stat .trend { font-weight: 500; color: var(--ink-3); }

/* botões */
button, .btn { font-family: var(--font); font-weight: 600; font-size: 13.5px; height: 36px; padding: 0 14px; border-radius: var(--r); border-color: var(--line-2); box-shadow: none !important; transition: background .12s, border-color .12s, color .12s, transform .08s; }
button:hover, .btn:hover { background: var(--head); border-color: #c4c8d2; }
button:active, .btn:active { transform: translateY(1px); }
button.primary, .btn.primary { background: var(--primary); border: 1px solid var(--primary); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--primary-2); border-color: var(--primary-2); }
button.ghost:hover, .btn.ghost:hover { background: var(--head); color: var(--ink); }
button.sm, .btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
button.big { height: 44px; font-size: 15px; }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* campos */
input, select, textarea { background: #fff; border-color: var(--line-2); border-radius: var(--r); font-size: 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(123, 77, 255, .16); outline: none; }
input:disabled { background: var(--head); }
label { font-weight: 500; }

/* abas e seletores: fundo neutro, a escolhida em branco (sem bloco colorido) */
.seg { background: var(--head); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { height: 30px; border: none; border-radius: 6px; background: transparent; color: var(--ink-2); font-weight: 500; font-size: 13px; }
.seg button:hover { background: rgba(255,255,255,.6); }
.tabs { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px; }
.tabs button { height: 32px; font-weight: 500; font-size: 13.5px; border-radius: 6px; }
/* etiquetas: retângulo discreto, cor só no texto */
.tag { border-radius: 6px; font-size: 12px; font-weight: 600; padding: 2px 8px; letter-spacing: 0; }

/* tabelas */
table th { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--head); letter-spacing: 0; text-transform: none; }
table td { border-color: var(--line); }
tr.click:hover td, tbody tr:hover td { background: #fafbfd; }

/* barra lateral */
.sidebar { background: var(--card); border-right: 1px solid var(--line); }
.brand { justify-content: flex-start; padding: 0 18px; gap: 10px; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.025em; }
.brand-sub { font-weight: 500; font-size: 11.5px; }
.menu a { height: 34px; margin: 0 10px; padding: 0 10px; gap: 10px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.menu a .ico svg, .menu a > svg { width: 17px; height: 17px; }
.menu a .ico { color: var(--ink-3); }
.menu a:hover { background: var(--head); color: var(--ink); }
.menu a::before { left: -10px; width: 2px; border-radius: 0 2px 2px 0; background: var(--primary); }
.menu a.active { background: var(--primary); color: #fff; font-weight: 600; box-shadow: none; }
.menu a.active .ico { color: #fff; }
.topbar { background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: saturate(1.2) blur(6px); }

/* menu em seções fixas (sem abrir e fechar, sem subitens) */
.m-sec { display: flex; flex-direction: column; gap: 1px; }
.m-sec + .m-sec { margin-top: 14px; }
.m-label { padding: 0 20px 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.m-sec.m-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.menu[data-grouped] { display: flex; flex-direction: column; padding-top: 4px; flex: 1; }
.side-mini .m-label { display: none; }
.side-mini .m-sec + .m-sec { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }

/* tela de entrada: limpa, sem formas decorativas */
.auth-card h1 { font-size: 24px; }

/* avisos e notas */
.toast { background: var(--ink); border-radius: 9px; box-shadow: var(--shadow-lg); font-weight: 500; }
.notice { border: 1px solid var(--line); }

/* gráficos e barras: cor plana */

/* ---------- fluidez ---------- */
/* a tela nova entra suave (só opacidade e 4px), sem piscar em branco */
#view > * { animation: none; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }
/* enquanto a próxima tela carrega, a atual fica levemente apagada */
#view.busy { opacity: .9; transition: opacity .2s .35s; pointer-events: none; }
#view { transition: opacity .12s; }
/* barra fina de progresso no topo */
#navProg { position: fixed; z-index: 1000; top: 0; left: 0; height: 2px; width: 0; background: var(--primary); opacity: 0; transition: width .25s var(--ease), opacity .3s; pointer-events: none; }
#navProg.on { opacity: 1; }
.skeleton { background: linear-gradient(90deg, #e9ebf0 0%, #f6f7fa 50%, #e9ebf0 100%); background-size: 200% 100%; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { #view > * { animation: none; } #navProg { transition: none; } }

.empty .art svg { width: 24px; height: 24px; }
.empty b { font-weight: 600; font-size: 15px; }
.avatar { font-weight: 600; }

/* =====================================================================
   ACABAMENTO PREMIUM, COM A PALETA DO NYMBO (nenhuma cor nova)
   Mesmos roxos, neutros e cores de situação; muda só o jeito de usar:
   menos blocos cheios, sem formas decorativas, sem gradientes nos dados.
   ===================================================================== */
/* menu: item ativo em roxo claro com texto roxo e barrinha, no lugar do bloco roxo cheio */
.menu a.active { background: var(--primary-soft); color: var(--primary-ink); }
.menu a.active .ico { color: var(--primary); }
.menu a::before { left: -10px; width: 3px; border-radius: 0 3px 3px 0; }
.menu a.active::before { transform: scaleY(.6); }
.menu a .count { font-weight: 600; }
.side-cta { margin: 6px 12px 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid #ddd6fe; }
.brand { justify-content: flex-start; padding: 0 18px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; box-shadow: none; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.025em; }

/* abas e seletores: trilho neutro, a escolhida em branco com texto roxo */
.seg { background: var(--head); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg button { color: var(--ink-2); font-weight: 500; }
.seg button.on { background: #fff; color: var(--primary-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(32, 34, 36, .08), 0 0 0 1px rgba(32, 34, 36, .06) !important; }
.tabs button.on { background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.tabs button.on .tile { background: #fff; color: var(--primary); }
.mon-kinds button.on { background: var(--primary-soft); border-color: #ddd6fe; color: var(--primary-ink); }
.mon-kinds button.on b { background: #fff; color: var(--primary-ink); }

/* estados vazios */
.empty .art { width: 52px; height: 52px; }
.empty .art svg { width: 24px; height: 24px; }
.empty b { font-weight: 600; font-size: 15px; }
.avatar { font-weight: 600; }

/* dados: cor sólida, sem gradiente */
.ubar i, .mini-bars i { background: var(--primary); }
.ubar.warn i { background: var(--bad); }
.cc-actions [data-next]::after { display: none; }

/* tela de entrada: o roxo da marca, liso, sem as bolas decorativas */
.auth { background: var(--primary-2); }
.auth .shape { display: none; }
.auth-card { border-radius: 16px; padding: 40px 44px 32px; box-shadow: 0 24px 60px -24px rgba(20, 0, 70, .45); animation: viewIn .25s var(--ease) both; }
@media (max-width: 560px) { .auth-card { padding: 28px 22px 24px; } }

/* respiros mais justos */
.page-head { margin-bottom: 14px; }
.toast { border-radius: 9px; }
.modal-card { border: 1px solid var(--line); }
.app-install { height: auto !important; min-height: 52px; padding: 8px 12px !important; }
.app-install span { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; text-align: left; }
.app-install small { font-weight: 500; }

/* Cartões de números: ícone sempre no canto de cima, alinhado em todos os cartões */
.stat { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: start; align-content: start; }
.stat .k { grid-column: 1; grid-row: 1; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; align-self: start; }
.stat .tile { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; }
.stat .v { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================
   NYMBO PREMIUM · efeitos (referência: Untitled UI, Linear, Vercel)
   Mesma paleta: só --primary, --primary-soft, --primary-ink e as cores
   que cada ícone já usa. Nada de cor nova.
   ===================================================================== */
:root {
  --sh-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --sh-md: 0 12px 24px -8px rgba(16, 24, 40, .10), 0 4px 8px -4px rgba(16, 24, 40, .05);
  --sh-lg: 0 24px 48px -12px rgba(16, 24, 40, .18);
  --ring-brand: 0 0 0 4px rgba(123, 77, 255, .16);
  --spring: cubic-bezier(.32, .72, 0, 1);
}

/* cartões: profundidade em camadas, borda de 1px, brilho que segue o mouse */
.card { position: relative; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--sh-xs) !important; transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--spring); }
/* (brilho que seguia o mouse removido: mexia na posição do conteúdo dos cartões, como a agenda) */
.stat { overflow: hidden; }
.stat:hover, .stat.click:hover { transform: translateY(-2px); box-shadow: var(--sh-md) !important; border-color: #e4defa; }

/* ícones em destaque: anel suave da própria cor do ícone */
.stat .tile { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-soft, #efe9ff) 55%, transparent); transition: transform .35s var(--spring); }
.stat:hover .tile { transform: scale(1.06) rotate(-3deg); }

/* números com algarismos de mesma largura (não pulam enquanto sobem) */
.stat .v { font-variant-numeric: tabular-nums; }

/* menu: marcador que desliza até a tela escolhida */
.sidebar .menu { position: relative; }
.sidebar .menu .m-sec { position: static; }
.m-ind { position: absolute; left: 10px; right: 10px; top: 0; height: 34px; border-radius: 8px; background: var(--primary-soft); pointer-events: none; z-index: 0; opacity: 0;
  transition: transform .38s var(--spring), height .38s var(--spring), opacity .2s; }
.m-ind::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.menu.has-ind a { z-index: 1; }
.menu.has-ind a.active { background: transparent !important; }
.menu.has-ind a.active::before { display: none; }
.menu.has-ind a:not(.active):hover { background: rgba(16, 24, 40, .035); }
.menu a .ico svg { transition: transform .3s var(--spring); }
.menu a:hover .ico svg { transform: translateX(1px) scale(1.06); }
.side-mini .m-ind { left: 8px; right: 8px; }

/* botões: brilho interno, borda fina e leve afundada ao clicar */
button, .btn { transition: background-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease), border-color .18s; }
button:active:not(:disabled), .btn:active { transform: scale(.975); }
button.primary, .btn.primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(83, 38, 217, .3), 0 4px 10px -4px rgba(123, 77, 255, .55) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0));
}
button.primary:hover, .btn.primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 2px 4px rgba(83, 38, 217, .3), 0 8px 18px -6px rgba(123, 77, 255, .6) !important; }
button:not(.primary):not(.danger):not(.ghost):not(.link):not(.m-hd), .btn:not(.primary) { box-shadow: var(--sh-xs); }
:focus-visible { outline: none !important; box-shadow: var(--ring-brand), 0 0 0 1px var(--primary) !important; }
input:focus, select:focus, textarea:focus { border-color: var(--primary) !important; box-shadow: var(--ring-brand) !important; }

/* abas e segmentos: troca macia */
.tabs button, .seg button { transition: background-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease); }

/* tabelas: destaque da linha ao passar o mouse */
table tbody tr { transition: background-color .15s var(--ease); }
table tbody tr:hover { background: #faf8ff; }

/* janelas: fundo desfocado e entrada com mola */
#modal { backdrop-filter: blur(6px) saturate(120%); -webkit-backdrop-filter: blur(6px) saturate(120%); }
.modal-card { border-radius: 16px !important; box-shadow: var(--sh-lg), 0 0 0 1px rgba(16, 24, 40, .06) !important; }
#modal:not(.closing) .modal-card { animation: fxModal .32s var(--spring) both !important; }
@keyframes fxModal { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* entrada da tela: cartões de números aparecem em sequência, só na primeira abertura */
#view.fx-in .stats > .stat { animation: none; }
#view.fx-in .stats > .stat:nth-child(2) { animation-delay: .04s; } #view.fx-in .stats > .stat:nth-child(3) { animation-delay: .08s; }
#view.fx-in .stats > .stat:nth-child(4) { animation-delay: .12s; } #view.fx-in .stats > .stat:nth-child(5) { animation-delay: .16s; }
#view.fx-in .stats > .stat:nth-child(6) { animation-delay: .2s; }
@keyframes fxRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* carregando: brilho que corre no esqueleto */
.skel, .skeleton { background: linear-gradient(90deg, #f1eff7 25%, #f8f6fd 37%, #f1eff7 63%) !important; background-size: 400% 100% !important; animation: fxShimmer 1.3s ease infinite !important; }
@keyframes fxShimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* topo: barra fina de vidro só quando a página rola */
.topbar { transition: box-shadow .2s var(--ease), background-color .2s; }
.topbar.fx-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 16px -12px rgba(16, 24, 40, .25); }

@media (hover: none) { .stat:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .m-ind, .card, .stat .tile, button, .btn { transition: none !important; }
  #view.fx-in .stats > .stat, #modal .modal-card, .skel, .skeleton { animation: none !important; }
}

/* =====================================================================
   ACABAMENTO NEXUSAI (modelo do Envato), no tema claro e só com o roxo
   do Nymbo: degradê = --brand-grad (roxo claro → roxo escuro).
   ===================================================================== */
@font-face { font-family: 'Space Grotesk'; src: url('fonts/space-grotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
:root {
  --font: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nx-bd: rgba(123, 77, 255, .10);
  --nx-bd2: rgba(123, 77, 255, .22);
  --nx-grad: var(--brand-grad);
}
body, button, input, select, textarea { font-family: var(--font); }

/* cartões e painéis: cantos de 16px, borda levemente roxa, sombra só no hover */
.card { border-radius: 16px; border-color: var(--nx-bd); box-shadow: none !important; }

/* cartões de números: linha em degradê embaixo, número grande */
.stat { padding: 20px 22px 18px !important; border-radius: 16px; transition: border-color .3s, box-shadow .3s, transform .3s var(--spring); }
.stat::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--nx-grad); opacity: .6; pointer-events: none; }
.stat:hover, .stat.click:hover { transform: translateY(-2px); border-color: var(--nx-bd2); box-shadow: 0 8px 32px rgba(32, 16, 80, .08) !important; }
.stat .k { font-size: 12.5px !important; font-weight: 500; color: var(--ink-3); }
.stat .v { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.stats.six .stat .v { font-size: 24px; }
.stat .tile { width: 40px; height: 40px; border-radius: 11px; box-shadow: none; }
.stat .tile svg { width: 19px; height: 19px; }
.stat:hover .tile { transform: none; }
.stat .trend { font-size: 12px !important; font-weight: 600; }

/* menu: título das seções pequeno em maiúsculas, item ativo com fundo roxo suave e barrinha em degradê */
.m-label { padding: 6px 20px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.menu a { height: 38px; border-radius: 10px; font-weight: 500; font-size: 14px; }
.menu a:hover { background: rgba(123, 77, 255, .07) !important; color: var(--ink); }
.menu.has-ind a:not(.active):hover { background: rgba(123, 77, 255, .07); }
.m-ind { border-radius: 10px; background: rgba(123, 77, 255, .12); }
.m-ind::before { left: 0; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: var(--nx-grad); }
.menu.has-ind a.active, .menu a.active { color: var(--primary-ink) !important; font-weight: 600; }
.menu a.active .ico { color: var(--primary); }

/* botões: principal em degradê roxo, cantos de 12px */
button, .btn { border-radius: 12px; }
button.sm, .btn.sm { border-radius: 10px; }
button.primary, .btn.primary { background: var(--nx-grad) !important; border: none !important; font-weight: 600;
  box-shadow: 0 1px 2px rgba(83, 38, 217, .25), 0 6px 16px -8px rgba(123, 77, 255, .7) !important; }
button.primary:hover, .btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(83, 38, 217, .25), 0 10px 22px -8px rgba(123, 77, 255, .75) !important; }
button.primary:active, .btn.primary:active { transform: scale(.975); }

/* topo: claro e translúcido, busca com cantos de 12px */
.topbar { background: rgba(255, 255, 255, .88) !important; backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); border-bottom: 1px solid var(--nx-bd) !important; }
.search input { border-radius: 12px; border: 1px solid var(--nx-bd2); background: #fff; }
.search input:focus { border-color: var(--primary); }

/* abas e etiquetas */
.tabs { border-radius: 14px; border-color: var(--nx-bd); }
.tabs button { border-radius: 10px; }
.tag { border-radius: 100px; padding: 2px 9px; font-size: 11.5px; }

/* tabelas: cabeçalho discreto */
table thead th { font-weight: 600; color: var(--ink-3); }

/* títulos das telas com a nova fonte */
.page-head h1, .view-title, h1 { letter-spacing: -.02em; font-weight: 700; }
.stats.six .stat .v { font-size: 21px; }
.stats.six .stat { padding: 18px 16px 16px !important; }
.menu a { height: 35px; }
.m-label { padding: 4px 20px 4px; }

/* Agenda: cor do agendamento sólida (mesma cor por cima do branco) e sempre por cima das listras de "não atende" */
.ev { background: linear-gradient(var(--c-soft), var(--c-soft)), var(--card, #fff); z-index: 2; }
.ev:hover { z-index: 4; }
.cal-col .brk { z-index: 0; }
.cal-now { z-index: 5; }
/* legenda das listras da agenda */
.legend .lg-off { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.legend .lg-off i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); background: #fafbfd repeating-linear-gradient(-45deg, #dfe2ea 0 2px, transparent 2px 6px); }

/* =====================================================================
   CONSUMO DE MENSAGENS (Meu plano e ficha da empresa)
   ===================================================================== */
.cu-bar { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; flex-wrap: wrap; }
.cu-bar select { width: auto; min-width: 190px; }
.cu-grid { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 16px; flex: 1; min-height: 0; }
.cu-side, .cu-main { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.cu-side { overflow: auto; }
.cu-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cu-h h2 { font-size: 15px; }
.cu-q + .cu-q { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cu-q-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 14px; }
.cu-q-h span { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cu-q-h small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.cu-q-f { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.bad-t { color: var(--bad); font-weight: 600; } .warn-t { color: #b45309; font-weight: 600; } .ok-t { color: var(--ok, #0f9f6e); }
.cu-rule-t { font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.cu-adm .kv { padding: 6px 0; }
.cu-main { min-width: 0; }
.cu-chart { display: flex; flex-direction: column; flex: 1 1 52%; min-height: 190px; }
.cu-plot { position: relative; flex: 1; min-height: 140px; margin: 0 14px 10px; }
.cu-plot svg { display: block; }
.cu-a { fill: var(--primary); }
.cu-m { fill: #14b8a6; }
.cu-ref { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.cu-leg { display: inline-flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.cu-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -6px; }
.cu-leg i.a { background: var(--primary); } .cu-leg i.m { background: #14b8a6; }
.cu-leg i.r { width: 14px; height: 0; border-top: 2px dashed var(--ink-3); border-radius: 0; }
.cu-plot .ov-tip { position: absolute; top: 4px; transform: translateX(-50%); pointer-events: none; }
.cu-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; flex: 1 1 48%; min-height: 0; }
.cu-row > .card { display: flex; flex-direction: column; min-height: 0; }
.cu-kl { flex: 1; min-height: 0; padding: 0 12px 6px; overflow: auto; }
.cu-k { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; padding: 8px 8px 10px; border: 0; background: none; box-shadow: none !important; text-align: left; border-radius: 10px; height: auto; font-weight: 500; }
.cu-k:hover { background: rgba(123, 77, 255, .06); }
.cu-k span small { color: var(--ink-3); font-size: 11px; margin-left: 4px; }
.cu-k b { font-variant-numeric: tabular-nums; }
.cu-k i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--primary); opacity: .55; }
.cu-inv table td, .cu-inv table th { padding-top: 8px; padding-bottom: 8px; }
.cu-inv .r, .cu-st .r { text-align: right; }
.cu-tot td { font-weight: 700; border-top: 1px solid var(--line-2); }
.cu-opts { display: grid; gap: 8px; }
.cu-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.cu-opt:has(input:checked) { border-color: var(--primary); background: rgba(123, 77, 255, .05); }
.cu-opt input { width: auto; margin-top: 3px; }
.cu-opt span { display: grid; gap: 2px; } .cu-opt small { color: var(--ink-3); font-size: 12.5px; }
.cu-st-bar { flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
.cu-st-bar select, .cu-st-bar input { width: auto; min-width: 150px; height: 36px; }
.cu-pv { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
@media (max-width: 1100px) { .cu-grid { grid-template-columns: 1fr; } .cu-side { overflow: visible; } .cu-chart { min-height: 220px; } }
@media (max-width: 760px) { .cu-row { grid-template-columns: 1fr; } .cu-bar select { min-width: 0; width: 100%; } .cu-st-bar > * { flex: 1 1 140px; } .cu-pv { max-width: 180px; } }
.cu-grid { grid-template-rows: minmax(0, 1fr); }
.cu-main { overflow: hidden; }
.cu-chart { flex: 1 1 0; min-height: 170px; }
.cu-row { flex: 1.15 1 0; }
.cu-inv .tbl-wrap { flex: 1; min-height: 0; overflow: auto; }
.cu-inv table { table-layout: fixed; width: 100%; }
.cu-inv table th:first-child, .cu-inv table td:first-child { width: 52%; }
.cu-inv td .muted.small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cu-k { padding: 8px 8px 12px; }
.cu-k::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 6px; height: 4px; border-radius: 4px; background: var(--line); }
.cu-k i { position: absolute; left: 8px; bottom: 6px; height: 4px; z-index: 1; opacity: .8; max-width: calc(100% - 16px); }
@media (max-width: 1100px) { .cu-main { overflow: visible; } .cu-chart, .cu-row { flex: none; } .cu-row { min-height: 320px; } }
.cu-chart { flex: 0 0 210px; min-height: 0; }
.cu-row { flex: 1 1 0; }
.cu-inv td, .cu-inv th { padding-top: 7px !important; padding-bottom: 7px !important; }
.cu-inv td .muted.small { display: none; }
.cu-inv td b { font-weight: 600; }
.cu-st-bar select, .cu-st-bar input { height: 40px; padding-top: 0; padding-bottom: 0; line-height: 40px; }
@media (max-width: 1100px) { .cu-chart { flex: none; height: 230px; } .cu-inv td .muted.small { display: block; white-space: normal; } }
.cu-main { overflow: auto; padding-bottom: 2px; }
.cu-chart { flex: 0 0 200px; }
.cu-row { flex: 0 0 auto; }
.cu-row > .card { min-height: 230px; }
.cu-inv .tbl-wrap { flex: 0 0 auto; overflow: visible; }
.cu-kl { max-height: 260px; }
@media (max-width: 1100px) { .cu-main { overflow: visible; } }
.cu-k { justify-content: stretch; justify-items: start; align-items: baseline; }
.cu-k b { justify-self: end; }
.cu-k { grid-template-columns: minmax(0, 1fr) auto; min-width: 0; max-width: 100%; box-sizing: border-box; white-space: normal; }
.cu-k span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-kl { overflow-x: hidden; }
.cu-k { display: flex !important; align-items: center; justify-content: space-between !important; gap: 10px; }
.cu-k span { flex: 1; text-align: left; }
.cu-k b { flex: none; }

/* =====================================================================
   MONITOR › DESEMPENHO
   ===================================================================== */
.pf-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; }
.pf-scroll { min-height: 0; padding-bottom: 4px; }
.pf-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 16px; }
.pf-stats .stat .v { font-size: 24px; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pf-card { display: flex; flex-direction: column; min-width: 0; }
.pf-wide { grid-column: 1 / -1; }
.pf-plot { position: relative; height: 210px; margin: 0 14px 12px; }
.pf-plot svg { display: block; }
.pf-plot .ov-tip { position: absolute; top: 2px; transform: translateX(-50%); pointer-events: none; display: grid; gap: 2px; min-width: 150px; }
.pf-tl { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.pf-tl i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pf-tl b { margin-left: auto; padding-left: 10px; }
.pf-end { font-size: 11.5px; fill: var(--ink-2); font-weight: 600; }
.pf-down { fill: #eef0f4; }
.pf-tbl .tbl-wrap { max-height: 320px; overflow: auto; }
.pf-tbl .r { text-align: right; }
.pf-tbl code { font: 600 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: #f5f3fe; padding: 2px 6px; border-radius: 6px; }
.pf-det { max-width: 280px; white-space: normal; }
.pf-pill { display: inline-block; padding: 2px 8px; border-radius: 100px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pf-pill.ok { background: #e7f8f1; color: #0b7a54; } .pf-pill.warn { background: #fff4e0; color: #9a5b00; }
.pf-pill.bad { background: #ffe8ec; color: #c21f43; } .pf-pill.idle { background: #f1f2f6; color: var(--ink-2); }
@media (max-width: 1280px) { .pf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .pf-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .pf-stats { grid-template-columns: 1fr 1fr; } .pf-plot { height: 190px; margin: 0 8px 10px; } .pf-det { max-width: 160px; } }
@media (max-width: 400px) { .pf-stats { grid-template-columns: 1fr; } }
.pf-tbl td.num, .pf-tbl th { white-space: nowrap; }
.pf-tbl code { white-space: nowrap; display: inline-block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.pf-tbl td:first-child { white-space: nowrap; }
.pf-card .card-head { flex-wrap: wrap; row-gap: 2px; }
.pf-card .card-head .sub { flex-basis: 100%; margin-left: 0; }
.pf-stats .stat .trend, .pf-stats .stat small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* atalho para o cinza de texto discreto da paleta original (não é cor nova) */
:root { --ink-3: var(--muted); }

/* =====================================================================
   FINANCEIRO › CONSUMO (plataforma)
   ===================================================================== */
.co-scroll { min-height: 0; padding-bottom: 4px; }
.co-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 16px; }
.co-stats .stat .v { font-size: 24px; }
.co-stats .stat .trend, .co-stats .stat small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; margin-bottom: 16px; }
.co-chart { display: flex; flex-direction: column; }
.co-chart .cu-plot { height: 200px; flex: none; }
.co-att { display: flex; flex-direction: column; min-height: 0; max-height: 262px; }
.co-att-l { flex: 1; min-height: 0; overflow: auto; padding: 0 10px 10px; }
.co-att-i { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.co-att-i:hover { background: rgba(123, 77, 255, .06); }
.co-att-i > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.co-att-i small { color: var(--ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-att-i .pf-pill { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 9px; }
.co-att-i .pf-pill svg { width: 15px; height: 15px; }
.co-att-i > svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.co-tbar { flex-wrap: wrap; gap: 10px; padding-bottom: 12px; }
.co-tbar input { width: 240px; height: 38px; }
.co-tbl .tbl-wrap { overflow: auto; }
.co-tbl th.r, .co-tbl td.r { text-align: right; }
.co-tbl th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.co-tbl th.sortable:hover, .co-tbl th.sortable.on { color: var(--primary-ink); }
.co-tbl td { vertical-align: middle; }
.co-use { min-width: 150px; }
.co-use .meter { height: 6px; margin: 5px 0 2px; }
@media (max-width: 1280px) { .co-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .co-grid { grid-template-columns: 1fr; } .co-att { max-height: none; } }
@media (max-width: 760px) { .co-stats { grid-template-columns: 1fr 1fr; } .co-tbar input { width: 100%; } }
@media (max-width: 400px) { .co-stats { grid-template-columns: 1fr; } }
.co-tbl td .small, .co-tbl td small, .co-tbl td.small { white-space: nowrap; }
.co-tbl td:first-child { min-width: 170px; }
.co-tbl table { min-width: 900px; }
/* menu da plataforma com um item a mais: um pouco mais justo para "Minha conta" caber sem rolar */
.sidebar .menu a { height: 33px; }
.sidebar .m-label { padding-top: 3px; padding-bottom: 3px; }
.co-tbl td.num, .co-tbl td.num b { white-space: nowrap; }
/* Planos: resumo do mês no lugar da lista por empresa (que fica em Financeiro › Consumo) */
.pl-sum { align-self: start; }
.pl-sum-b { display: grid; gap: 4px; padding: 0 16px 10px; }
.pl-sum-i { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.pl-sum-i:last-child { border-bottom: 0; }
.pl-sum-i b { font-size: 22px; min-width: 34px; font-variant-numeric: tabular-nums; }
.rep-plan { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.rep-plan b { margin-left: auto; font-variant-numeric: tabular-nums; } .rep-plan b small { color: var(--ink-3); font-weight: 500; }
.rep-plan .link { color: var(--primary); font-weight: 600; font-size: 13px; }
.rep-plan:hover { border-color: var(--nx-bd2, var(--line-2)); }

/* ===== CRM · Funil (Clientes › Funil) ===== */
.crm { padding: 0; }
.crm-head { gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.crm-head input[type=search] { flex: 1 1 220px; max-width: 320px; }
.crm-head button.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.crm-head button b { font-variant-numeric: tabular-nums; }
.crm-head .sub { max-width: 460px; text-align: right; }
.crm-board { display: grid; grid-template-columns: repeat(5, minmax(188px, 1fr)); gap: 10px; padding: 12px; overflow-x: auto; min-height: 0; }
.crm-col { display: flex; flex-direction: column; min-height: 0; background: var(--bg, #f6f6fb); border: 1px solid var(--line); border-radius: 12px; }
.crm-col.drop { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.crm-col header { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px; }
.crm-col header .tile { width: 26px; height: 26px; border-radius: 8px; }
.crm-col header .tile svg { width: 15px; height: 15px; }
.crm-col h3 { font-size: 13.5px; font-weight: 700; margin: 0; }
.crm-n { margin-left: auto; font: 700 12px/1 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.crm-list { flex: 1; overflow-y: auto; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.crm-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: grab; display: flex; flex-direction: column; gap: 4px; }
.crm-card:hover { border-color: var(--line-2); }
.crm-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.crm-card.drag { opacity: .5; }
.crm-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crm-top b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.crm-top .avatar { flex: none; }
.crm-top .tag { flex: none; min-width: 0; height: 20px; padding: 0 7px; font-size: 11px; }
.crm-tags .tag { min-width: 0; height: 20px; padding: 0 7px; }
.crm-line { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.crm-next { display: flex; align-items: flex-start; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--bg, #f6f6fb); border-radius: 6px; padding: 4px 6px; }
.crm-next svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
.crm-next.due { color: #b42318; background: #fef0ef; }
.crm-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.crm-tags .tag { font-size: 11px; }
.crm-empty { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0; }
.crm-form { display: flex; flex-direction: column; gap: 12px; }
.crm-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.crm-pair { display: grid; grid-template-columns: 160px 1fr; gap: 10px; }
.crm-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crm-actions .spacer { flex: 1; }
@media (max-width: 760px) {
  .crm-head .sub { display: none; }
  .crm-board { grid-template-columns: repeat(5, 82%); scroll-snap-type: x mandatory; padding: 10px; }
  .crm-col { scroll-snap-align: start; }
  .crm-pair { grid-template-columns: 1fr; }
}

/* ===== Agendamento online (página pública) ===== */
.bk .pub-card { width: min(480px, 100%); }
.bk-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
.bk-addr { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.bk-h { font-size: 16px; margin: 2px 0 0; }
.bk-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; font-size: 13px; }
.bk-list { display: flex; flex-direction: column; gap: 8px; }
.bk-opt { height: auto; min-height: 56px; justify-content: flex-start; text-align: left; padding: 10px 14px; gap: 12px; white-space: normal; font-weight: 600; }
.bk-opt > span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.bk-opt small { color: var(--muted); font-weight: 500; font-size: 12.5px; line-height: 1.35; }
.bk-opt em { font-style: normal; color: var(--muted); font-size: 12.5px; font-weight: 700; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.bk-opt:hover, .bk-time:hover { border-color: var(--primary); }
.bk-sum { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13.5px; line-height: 1.5; }
.bk-sum > div { flex: 1; min-width: 0; }
.bk-sum button { flex: none; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.bk-day { flex: none; height: auto; flex-direction: column; gap: 2px; padding: 8px 12px; min-width: 84px; scroll-snap-align: start; }
.bk-day small { font-weight: 600; color: var(--muted); font-size: 11.5px; }
.bk-day.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bk-time { padding: 0 8px; font-variant-numeric: tabular-nums; }
.bk-form { display: flex; flex-direction: column; gap: 12px; }
.bk-err { margin: 0; color: var(--bad); font-weight: 600; font-size: 13px; }
.bk-wa { margin: 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.bkl { display: flex; flex-direction: column; gap: 14px; }
.bkl-url { display: flex; gap: 8px; }
.bkl-url input { flex: 1; min-width: 0; font-weight: 600; }
.bkl .check-row { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 600; }
.st-roles { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.st-roles > div { display: flex; align-items: center; gap: 10px; }
.st-roles .tag { min-width: 96px; }
.legend .lg-link { height: auto; padding: 0; border: 0; background: none; color: var(--primary); font-weight: 700; font-size: 12.5px; gap: 5px; margin-left: 14px; }
.legend .lg-link svg { width: 14px; height: 14px; }
.legend .lg-link:hover { text-decoration: underline; transform: none; }

/* ===== Avaliações (Relatórios) e relacionamento ===== */
.rv-dist { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.rv-row { display: grid; grid-template-columns: 82px 1fr 34px; align-items: center; gap: 12px; font-size: 13px; }
.rv-n { color: var(--muted); font-weight: 600; }
.rv-row b { text-align: right; font-variant-numeric: tabular-nums; }
.rv-bar { height: 10px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.rv-bar i { display: block; height: 100%; border-radius: 0 5px 5px 0; background: var(--primary); min-width: 2px; }
.rv-low { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
.rv-low a { color: var(--primary); font-weight: 600; text-decoration: none; }
.lo-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); }
.lo-dots { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.lo-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary); background: #fff; }
.lo-dots i.on { background: var(--primary); }
.lo-card b { color: var(--primary-ink); font-size: 13px; }
.es-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--primary-soft); margin-bottom: 14px; }
.es-box > div { display: flex; flex-direction: column; gap: 3px; flex: 1; font-size: 13px; }
.es-box b { font-size: 14.5px; color: var(--primary-ink); }
.es-box span { color: var(--ink-2, var(--muted)); }
.es-btn { flex: none; }
.es-manual { margin-bottom: 6px; }
.es-manual > summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13px; margin-bottom: 12px; }
@media (max-width: 760px) { .es-box { flex-direction: column; align-items: stretch; } }
.ck-back { align-self: flex-start; height: auto; padding: 4px 0; border: 0; background: none; color: var(--primary); font-weight: 700; font-size: 13.5px; gap: 6px; }
.ck-back svg { width: 16px; height: 16px; }
.ck-back:hover { text-decoration: underline; transform: none; background: none; }

/* ===== Aviso (toast): título + mensagem legível ===== */
#toasts .toast { display: flex; align-items: flex-start; gap: 12px; width: min(380px, calc(100vw - 32px)); padding: 14px 12px 16px 14px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-left: 0; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(21, 19, 28, .35); font-weight: 500; position: relative; overflow: hidden; }
#toasts .toast::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ok); }
#toasts .toast.err::before { background: var(--bad); }
#toasts .toast .tile { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
#toasts .toast.err .tile { background: var(--bad-soft); color: var(--bad); }
#toasts .toast .tile svg { width: 16px; height: 16px; }
#toasts .toast .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
#toasts .toast .tx b { font-size: 14px; font-weight: 700; color: var(--ink); }
#toasts .toast .msg { font-size: 13.5px; line-height: 1.45; color: var(--ink); opacity: .78; overflow-wrap: anywhere; }
#toasts .toast .t-x { flex: none; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--muted); border-radius: 8px; display: grid; place-items: center; }
#toasts .toast .t-x:hover { background: var(--bg); color: var(--ink); }
#toasts .toast .t-x svg { width: 14px; height: 14px; }
#toasts .toast .t-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ok); opacity: .35; transform-origin: left; animation: toastBar var(--t, 3400ms) linear forwards; }
#toasts .toast.err .t-bar { background: var(--bad); }
#toasts .toast.hold .t-bar { animation-play-state: paused; }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { #toasts .toast .t-bar { display: none; } }

/* campos com formato: aviso embaixo do campo */
.fmt-hint { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.fmt-hint.ok { color: var(--ok); }
.fmt-hint.bad { color: var(--bad); }
input.fmt-bad { border-color: var(--bad) !important; box-shadow: 0 0 0 3px var(--bad-soft) !important; }

/* contrato no portal do pré-cliente */
.doc.ct { align-items: flex-start; flex-wrap: wrap; border: 1.5px solid color-mix(in srgb, var(--primary) 30%, var(--line)); }
.doc.ct .li-title { font-size: 15px; }
.ct-steps { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ct-steps li { display: flex; align-items: center; gap: 6px; }
.ct-steps i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; border: 1.5px solid var(--line-2, var(--line)); background: #fff; }
.ct-steps li.ok { color: var(--ok); }
.ct-steps li.ok i { background: var(--ok); border-color: var(--ok); color: #fff; }
.ct-steps i svg { width: 12px; height: 12px; }
.ct-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) { .doc.ct .ct-act { width: 100%; } .doc.ct .ct-act > * { flex: 1; justify-content: center; } }
.ct-tpl { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin: 6px 0 4px; flex-wrap: wrap; }
.ct-tpl .li-main { flex: 1; min-width: 200px; }
.ct-tpl a, .ct-adm a { color: var(--primary); font-weight: 600; }
.ct-adm-act { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.ct-adm-act .link { display: inline-flex; align-items: center; gap: 5px; height: auto; padding: 0; border: 0; background: none; color: var(--primary); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.ct-adm-act .link svg { width: 14px; height: 14px; }
.doc.ct { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ico main tag" ". act act"; column-gap: 14px; row-gap: 12px; align-items: start; }
.doc.ct > .doc-ico { grid-area: ico; }
.doc.ct > .li-main { grid-area: main; min-width: 0; }
.doc.ct > .tag { grid-area: tag; }
.doc.ct > .ct-act { grid-area: act; }
.doc.ct .li-sub { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.45; }
.doc.ct .ct-act:empty { display: none; }
@media (max-width: 760px) { .doc.ct { grid-template-areas: "ico main main" "tag tag tag" "act act act"; } .doc.ct > .tag { justify-self: start; } }
.doc.compact.ct-adm { flex-wrap: wrap; row-gap: 8px; }
.doc.compact.ct-adm > .li-main { flex: 1 1 100%; }
.doc.compact.ct-adm .li-sub { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.45; }
.ct-adm-act .link { flex-direction: row !important; white-space: nowrap; }

/* ===== Usuários › Perfis ===== */
.pf-split { display: grid; grid-template-columns: 260px 1fr; gap: 14px; min-height: 0; }
.pf-list .fit { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.pf-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 10px 12px; height: auto; }
.pf-item b { font-size: 14px; font-weight: 700; color: var(--ink); }
.pf-item span { font-size: 12.5px; color: var(--ink-3, var(--muted)); font-weight: 500; }
.pf-item:hover { background: var(--bg); }
.pf-item.on { background: var(--primary-soft, #f1ecff); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.pf-edit .card-head { gap: 10px; align-items: flex-end; }
.pf-name { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-3, var(--muted)); min-width: 0; flex: 0 1 300px; }
.pf-grid { display: flex; flex-direction: column; }
.pf-row { display: flex; align-items: center; gap: 16px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.pf-row:last-child { border-bottom: none; }
.pf-row > div:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pf-row b { font-size: 13.5px; font-weight: 700; }
.pf-row span { font-size: 12.5px; color: var(--ink-3, var(--muted)); }
.pf-row .seg button { height: 30px; padding: 0 12px; font-size: 12.5px; white-space: nowrap; }
.pf-row .seg button[data-v="nao"].on { background: var(--line); color: var(--ink); }
.pf-row .seg button[data-v="ver"].on { background: var(--primary-soft); color: var(--primary-ink); }
.pf-row .seg button[data-v="mudar"].on { background: var(--primary); color: #fff; }
.pf-own { margin-top: 12px; }
.ro-note { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); font-weight: 500; }
.ro-note svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 860px) {
  .pf-split { grid-template-columns: 1fr; }
  .pf-list .fit { flex-direction: row; overflow-x: auto; }
  .pf-item { flex: none; }
  .pf-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .pf-row .seg { display: flex; } .pf-row .seg button { flex: 1; padding: 0 6px; }
}

/* folga/bloqueio na agenda */
.cal-col .blk { position: absolute; left: 3px; right: 3px; z-index: 1; border-radius: 8px; border: 1px dashed var(--line-2); background: repeating-linear-gradient(-45deg, #eef0f5 0 3px, #f8f9fb 3px 9px); cursor: pointer; overflow: hidden; }
.cal-col .blk span { display: block; padding: 4px 8px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-col .blk:hover, .cal-col .blk:focus-visible { border-color: var(--primary); outline: none; }

/* áudio na conversa e gravação no celular de teste */
.bubble.has-audio { min-width: 240px; }
.msg-audio { display: block; width: 100%; max-width: 280px; height: 36px; }
.msg-tr { margin-top: 6px; font-size: 13px; line-height: 1.4; opacity: .9; }
.msg-tr span { display: block; font-size: 11px; font-weight: 700; opacity: .7; margin-bottom: 1px; }
.composer-box .mic-btn { background: transparent; border: none; color: var(--ink-2); box-shadow: none; }
.composer-box .mic-btn:hover { color: var(--primary); background: var(--bg); }
.composer-box .mic-btn svg { width: 20px; height: 20px; }
.rec-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line-2); font-size: 13px; }
.rec-bar b { font-variant-numeric: tabular-nums; }
.rec-bar span { color: var(--ink-2); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; animation: recPulse 1.2s ease-in-out infinite; }
@keyframes recPulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.rec-bar .sm { height: 32px; }

/* Ajustes › Seu negócio: pino do mapa */
.loc-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.loc-head { display: flex; flex-direction: column; gap: 2px; }
.loc-head b { font-size: 13.5px; }
.loc-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.loc-row .sm { height: 40px; white-space: nowrap; }
@media (max-width: 560px) { .loc-row { grid-template-columns: 1fr 1fr; } .loc-row .sm { grid-column: 1 / -1; } }

.legend .lg-acts { margin-left: auto; display: inline-flex; align-items: center; gap: 0; white-space: nowrap; }
@media (max-width: 1540px) { .legend .lg-hint { display: none; } }

/* ===== Ícones em tom neutro =====
   Antes cada ícone tinha uma cor (roxo, rosa, azul, âmbar, verde) e o painel ficava colorido demais.
   Agora os ícones são cinza; o roxo da marca fica só no que está ativo (menu, aba escolhida, botão principal).
   As cores das agendas e dos serviços continuam: lá a cor diz de quem é o horário. */
.tile, .tile[class*="c-"] { background: #f2f3f6; color: var(--ink-2); box-shadow: none !important; }
.card .tile, .card .tile[class*="c-"] { background: #f4f5f8; }
.stat .tile, .stat .tile[class*="c-"] { background: transparent; color: var(--ink-3, var(--muted)); border: 1px solid var(--line); }
.stat::before { display: none; }
.tabs button .tile, .tabs button .tile[class*="c-"] { background: transparent; color: var(--muted); }
.tabs button.on .tile, .tabs button.on .tile[class*="c-"] { background: transparent; color: var(--primary); }
.empty .art { background: #f2f3f6; color: var(--ink-3, var(--muted)); }
.idea .tile, .idea .tile[class*="c-"] { background: #f4f5f8; color: var(--ink-2); }
.aj-hub .tile, .aj-hub .tile[class*="c-"] { background: #f4f5f8; color: var(--ink-2); }
/* avisos com significado mantêm a cor: deu certo, deu erro, atenção */
#toasts .toast .tile { background: var(--ok-soft); color: var(--ok); }
#toasts .toast.err .tile { background: var(--bad-soft); color: var(--bad); }

/* =====================================================================
   REDESENHO 2026-11 (modo de trabalho): ver DESIGN.md.
   Mesma paleta. Uma família de letra, cantos menores, sem degradê nos botões,
   sem sombra em repouso, sem barrinha lateral, foco visível, roxo só no que está ativo.
   ===================================================================== */
:root {
  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #f6f6f8; --card: #ffffff; --side-bg: #fbfbfc;
  --ink: #18181b; --ink-2: #45474f; --ink-3: #6b6e78; --muted: #6b6e78;
  --line: #e6e6eb; --line-2: #d6d7de; --head: #f7f7f9;
  --primary-soft: #f1ecff;
  --nx-bd: var(--line); --nx-bd2: var(--line-2);
  --r: 8px; --r-lg: 12px;
  --pop: 0 12px 32px -12px rgba(24, 24, 27, .22), 0 2px 6px rgba(24, 24, 27, .06);
  --t: 160ms cubic-bezier(.2, .8, .2, 1);
  accent-color: var(--primary);
}
html { -webkit-tap-highlight-color: transparent; }
body, button, input, select, textarea { font-family: var(--font); }
body { font-size: 14px; color: var(--ink); background: var(--bg); letter-spacing: 0; font-feature-settings: 'ss01' off; }
::selection { background: color-mix(in srgb, var(--primary) 22%, transparent); color: var(--ink); }
input, textarea { caret-color: var(--primary); }
* { scrollbar-width: thin; scrollbar-color: #cfd0d7 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; } *::-webkit-scrollbar-thumb { background: #cfd0d7; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* títulos e números */
h1, .page-head h1, .view-title { font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; text-wrap: balance; }
h2, .card-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
h3 { font-size: 14px; font-weight: 600; }
.page-head p { font-size: 13.5px; color: var(--ink-3); font-weight: 400; }
b, strong { font-weight: 600; }
.stat .v { font-size: 28px !important; font-weight: 600 !important; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats.six .stat .v { font-size: 22px !important; }
.stat .k { font-size: 13px !important; color: var(--ink-3); font-weight: 500 !important; }
.stat .trend { font-weight: 500 !important; color: var(--ink-3); }
td, .num, .kv b, .money, .price { font-variant-numeric: tabular-nums; }

/* menu lateral: segunda camada neutra, item ativo em roxo suave, sem barrinha */
.sidebar { background: var(--side-bg) !important; box-shadow: none !important; border-right: 1px solid var(--line); }
.m-label { font-size: 11.5px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink-3) !important; }
.menu a { font-weight: 500 !important; color: var(--ink-2); border-radius: 8px !important; transition: background-color var(--t), color var(--t); }
.menu a:hover { background: #f0f0f3 !important; color: var(--ink) !important; }
.menu a.active, .menu.has-ind a.active { background: var(--primary-soft) !important; color: var(--primary-ink) !important; font-weight: 600 !important; }
.m-ind { display: none !important; }
.m-ind::before, .menu a.active::before { display: none !important; }
.menu a .ico { color: var(--ink-3); } .menu a.active .ico { color: var(--primary) !important; }
.side-cta { background: #fff !important; border: 1px solid var(--line); color: var(--ink) !important; border-radius: 12px; transition: border-color var(--t); }
.side-cta:hover { border-color: var(--primary) !important; background: #fff !important; }
.side-cta b { font-weight: 600 !important; color: var(--primary-ink); } .side-cta span { font-weight: 400 !important; color: var(--ink-3) !important; }

/* barra de cima: sólida, sem vidro */
.topbar { background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; border-bottom: 1px solid var(--line) !important; }
.search input { border-radius: 8px !important; border: 1px solid var(--line-2) !important; background: #fff !important; }

/* cartões: borda fina, sem sombra em repouso */
.card { border: 1px solid var(--line) !important; border-radius: 12px !important; box-shadow: none !important; }
.stat { border-radius: 12px !important; padding: 18px 20px 16px !important; }
.stat:hover, .stat.click:hover, .card.click:hover { transform: none !important; box-shadow: none !important; border-color: var(--line-2) !important; }
.stat:hover .tile { transform: none !important; }
.card-head .sub { font-weight: 400 !important; color: var(--ink-3) !important; }

/* botões: sólidos, sem degradê nem brilho */
button, .btn { font-weight: 500 !important; font-size: 14px; height: 36px; padding: 0 14px; border-radius: 8px !important; border: 1px solid var(--line-2); background: #fff; color: var(--ink); box-shadow: none !important; transition: background-color var(--t), border-color var(--t), color var(--t); }
button:hover, .btn:hover { background: #f6f6f8; border-color: #c7c8d0; transform: none !important; filter: none !important; }
button:active, .btn:active { transform: none !important; background: #efeff2; }
button.primary, .btn.primary { background: var(--primary) !important; border: 1px solid var(--primary) !important; color: #fff !important; font-weight: 600 !important; box-shadow: none !important; }
button.primary:hover, .btn.primary:hover { background: var(--primary-2) !important; border-color: var(--primary-2) !important; transform: none !important; filter: none !important; box-shadow: none !important; }
button.primary:active, .btn.primary:active { background: var(--primary-ink) !important; transform: none !important; }
button.dark { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
button.dark:hover { background: #2c2c31 !important; }
button.ghost, .btn.ghost { border-color: transparent; background: transparent; }
button.ghost:hover { background: #f0f0f3; color: var(--ink); }
button.sm, .btn.sm { height: 32px; padding: 0 10px; font-size: 13px; border-radius: 7px !important; }
button.big { height: 44px; font-size: 15px; }
button:disabled, .btn[aria-disabled=true] { opacity: .45; }
.icon-btn { border-radius: 8px !important; }

/* campos: brancos com borda; foco em roxo */
input, select, textarea { border: 1px solid var(--line-2) !important; background: #fff !important; border-radius: 8px !important; box-shadow: none; font-size: 14px; transition: border-color var(--t), box-shadow var(--t); }
input:hover, select:hover, textarea:hover { border-color: #c2c3cc !important; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent) !important; }
input::placeholder, textarea::placeholder { color: #8b8e98; }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: #f6f6f8 !important; color: var(--ink-2); }
label { font-weight: 500; }
.hint { color: var(--ink-3) !important; font-weight: 400 !important; }
input[type=checkbox], input[type=radio] { box-shadow: none !important; }

/* abas: sublinhado roxo na escolhida */
.tabs { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 2px !important; width: auto !important; max-width: 100%; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { height: 40px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--ink-3) !important; font-weight: 500 !important; padding: 0 10px !important; margin-bottom: -1px; border-bottom: 2px solid transparent !important; white-space: nowrap; flex: none; }
.tabs button:hover { color: var(--ink) !important; background: transparent !important; }
.tabs button.on { color: var(--ink) !important; font-weight: 600 !important; border-bottom-color: var(--primary) !important; background: transparent !important; }
.tabs button .tile { width: 20px !important; height: 20px !important; background: transparent !important; border: 0 !important; }
.tabs button .tile svg { width: 16px !important; height: 16px !important; }

/* seletor em segmentos (Dia/Semana etc.) */
.seg { background: #f0f0f3 !important; border: 1px solid transparent !important; border-radius: 8px !important; padding: 3px !important; }
.seg button { border-radius: 6px !important; height: 30px !important; color: var(--ink-2) !important; border: 0 !important; background: transparent; }
.seg button.on { background: #fff !important; color: var(--ink) !important; font-weight: 600 !important; box-shadow: 0 1px 2px rgba(24, 24, 27, .1) !important; }

/* tabelas: cabeçalho discreto, linhas finas */
th { background: var(--head) !important; font-size: 12.5px !important; font-weight: 500 !important; color: var(--ink-3) !important; }
th:first-child, th:last-child { border-radius: 0 !important; }
td { font-weight: 400 !important; border-bottom-color: var(--line) !important; }
td b { font-weight: 600; }

/* etiquetas: pequenas, cantos de 6px */
.tag { height: 22px !important; min-width: 0 !important; padding: 0 8px !important; border-radius: 6px !important; font-size: 12px !important; font-weight: 500 !important; }

/* listas e linhas de chave/valor */
.list-item { border-radius: 8px; }
.list-item:hover { background: #f7f7f9; }
.toggle-row { background: #f7f7f9 !important; border: 1px solid var(--line); border-radius: 10px !important; }
.toggle-row b { font-weight: 600 !important; }

/* avisos: borda inteira e fundo tingido, sem faixa de um lado só */
.notice { border: 1px solid var(--line) !important; border-left-width: 1px !important; border-radius: 10px !important; box-shadow: none !important; background: #fff !important; }
.notice::before, .notice::after { display: none !important; }
.alert { border-radius: 10px !important; font-weight: 500 !important; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); }

/* janelas e menus que flutuam: a única sombra do painel */
.modal-card { border-radius: 14px !important; box-shadow: var(--pop) !important; border: 1px solid var(--line); animation-duration: .18s !important; animation-timing-function: ease-out !important; }
.dropdown, .menu-pop, .user-menu, .pop { box-shadow: var(--pop) !important; border-radius: 10px !important; }
#toasts .toast { box-shadow: var(--pop) !important; border-radius: 12px !important; }

/* estado vazio */
.empty b { font-weight: 600 !important; }
.empty { color: var(--ink-3); }

/* movimento: curto e só para estado */
#view.enter .stats > .stat, #view.fx-in .stats > .stat { animation: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; } }
/* abas só com texto (o ícone ocupava espaço e virava enfeite) */
.tabs button .tile { display: none !important; }
.tabs button { padding: 0 12px !important; }
/* ícone dos cartões de número: sem caixa, só o traço */
.stat .tile, .stat .tile[class*="c-"] { border: 0 !important; background: transparent !important; width: 28px !important; height: 28px !important; color: var(--ink-3) !important; }
/* avatares: tom suave da cor da pessoa, letra na mesma cor (antes: círculo de cor forte com letra branca) */
.avatar:not(.photo) { background: color-mix(in srgb, var(--hue) 14%, #fff) !important; color: color-mix(in srgb, var(--hue) 78%, #000) !important; font-weight: 600 !important; }
td { padding-top: 10px !important; padding-bottom: 10px !important; }
/* agenda: horário com fundo e borda da cor do serviço (sem a faixa grossa de um lado só), sem pular no hover */
.ev { border: 1px solid color-mix(in srgb, var(--c) 32%, transparent) !important; border-left-width: 1px !important; animation: none !important; transition: border-color var(--t), box-shadow var(--t) !important; }
.ev:hover { transform: none !important; border-color: var(--c) !important; box-shadow: 0 4px 12px -6px rgba(24, 24, 27, .25) !important; }
.ev .et { font-weight: 600 !important; } .ev .es { font-weight: 400 !important; }
.cal-head { font-weight: 600 !important; }
/* avisos de limite e de teste: borda inteira tingida */
.limit-note.pausada, .limit-note.excedente, .limit-note.alerta, .nf-off.test { border-left-width: 1px !important; border-left-style: solid; }
.limit-note.pausada { border-color: color-mix(in srgb, var(--bad) 35%, transparent) !important; }
.limit-note.excedente, .limit-note.alerta, .nf-off.test { border-color: color-mix(in srgb, #f59e0b 40%, transparent) !important; }
/* tela de entrada: fundo neutro, o roxo fica no símbolo e no botão */
.auth { background: var(--bg) !important; }
.auth .shape { display: none !important; }
.auth-card { border: 1px solid var(--line); border-radius: 16px !important; box-shadow: 0 1px 2px rgba(24, 24, 27, .04) !important; animation: none !important; padding: 40px 44px 32px !important; }
.auth-card h1 { font-size: 24px !important; }
.auth-card p.lead { font-weight: 400 !important; color: var(--ink-3) !important; }
.auth-foot { font-weight: 500 !important; }
/* janelas longas: os botões do rodapé ficam sempre à vista */
@media (min-width: 761px) { .modal-card #modalBody > .modal-actions, .modal-card #modalBody > form > .modal-actions { position: sticky; bottom: -28px; z-index: 2; margin: 20px -28px -28px; padding: 14px 28px 20px; background: #fff; border-top: 1px solid var(--line); } }
#modalTitle, .modal-card h2 { font-size: 18px !important; font-weight: 600 !important; letter-spacing: -.01em; }
/* toque: sem atraso de duplo toque; janelas e gavetas não arrastam a página de trás */
button, a, .btn, [role=button], input, select, label { touch-action: manipulation; }
.modal-card, .sidebar, .wa-sheet-card, #view { overscroll-behavior: contain; }

/* ===== Tudo na tela sem rolar: densidade de painel de trabalho ===== */
/* avisos lado a lado (antes um embaixo do outro, cada um com uma linha inteira) */
#noticeBar .notice { padding: 5px 8px 5px 10px !important; min-height: 0; }
#noticeBar .notice .li-main { min-width: 0; } #noticeBar .notice .li-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#noticeBar .notice .tile { width: 26px !important; height: 26px !important; }
#noticeBar .notice button { height: 28px; font-size: 12.5px; padding: 0 10px; }
/* cabeçalho da tela mais justo */
.page-head { margin-bottom: 10px !important; }
.page-head p { margin-top: 1px !important; }
.tabs { margin-bottom: 12px !important; }
/* formulários: campos de 36px, menos ar entre eles */
.form { gap: 12px !important; }
.form.two, .form .form.two { gap: 12px 14px !important; }
input, select { padding: 7px 11px; min-height: 36px; }
textarea { padding: 8px 11px; min-height: 64px; }
label { gap: 5px !important; }
.card-pad { padding: 18px !important; }
.card-head { padding: 14px 18px 6px !important; }
.toggle-row { padding: 10px 12px !important; gap: 12px !important; }
.split, .cols-2 { gap: 14px !important; }
.section-title { margin-top: 2px; }
hr.sep { margin: 10px 0 !important; }
/* cartões de número mais baixos (mesma leitura, menos altura) */
.stat { padding: 12px 16px 12px !important; gap: 2px 10px !important; }
.stat .v { font-size: 24px !important; line-height: 1.15 !important; }
.stats.six .stat .v { font-size: 20px !important; }
.stats { margin-bottom: 12px !important; gap: 12px !important; }
.stat .tile, .stat .tile[class*="c-"] { width: 22px !important; height: 22px !important; }
.stat .tile svg { width: 17px !important; height: 17px !important; }
/* resumo da assistente no Início: uma faixa */
.brief-card { padding: 10px 16px !important; margin-bottom: 12px !important; gap: 14px !important; }
.brief-card .avatar.lg { width: 40px; height: 40px; font-size: 15px; }
.brief-card p { font-size: 14px !important; line-height: 1.45 !important; font-weight: 500 !important; }
.brief-card p b { font-weight: 600 !important; }
.brief-card small { font-weight: 500 !important; color: var(--ink-3) !important; font-size: 12px !important; }
/* Início: primeiros passos em linhas baixas */
.steps.compact .step { padding: 7px 10px !important; min-height: 0 !important; gap: 10px !important; border-radius: 8px !important; }
.steps.compact .step b { font-size: 13px !important; font-weight: 500 !important; line-height: 1.3; }
.steps.compact .step .n { width: 22px !important; height: 22px !important; font-size: 11.5px !important; }
.steps.compact { gap: 6px !important; display: flex; flex-direction: column; }
.card-head .ring.sm { width: 40px !important; height: 40px !important; }
.hello { margin-bottom: 10px !important; }
.hello h1 { font-size: 22px !important; }
.stat { align-content: start; }
.stat .k { margin-bottom: 2px; }
/* partes de um formulário longo */
.sect-nav { margin-bottom: 4px; flex-shrink: 0; }
.sect-nav button { flex: 1 1 0; min-width: 0; height: auto !important; min-height: 30px; padding: 5px 8px !important; white-space: normal; line-height: 1.2; font-size: 13px; }
.sect-part { display: contents; }
.sect-part[hidden] { display: none; }
.sect-part > .sect-title { display: none; }

/* Ajustes › WhatsApp: conexão, modelos e passo a passo lado a lado */
.wa-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.wa-grid .howto { font-size: 13px; line-height: 1.45; padding-left: 18px; margin: 6px 0 0; }
.wa-grid .howto li + li { margin-top: 4px; }
.wa-grid .code { font-size: 12px; }
@media (max-width: 1150px) { .wa-grid { grid-template-columns: 1fr 1fr; } .wa-grid > :last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .wa-grid { grid-template-columns: 1fr; } }
.wa-grid .es-box { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 10px !important; padding: 14px !important; }
.wa-grid .es-box .es-btn { width: 100%; justify-content: center; }
.wa-grid .howto { font-size: 12.5px; line-height: 1.4; }
.wa-grid .section-title.mt { margin-top: 8px !important; }
.wa-grid .code { padding: 6px 6px 6px 10px !important; gap: 8px; } .wa-grid .code span { font-size: 11.5px; word-break: break-all; }
.wa-grid p.hint.mt { margin-top: 8px !important; }
/* avisos: com dois avisos, ficam lado a lado numa linha só (cada um corta o texto e abre inteiro em "Ler") */
@media (min-width: 1200px) {
  #noticeBar:has(> .notice + .notice) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  #noticeBar .notice { flex-wrap: nowrap !important; }
  #noticeBar .notice .li-main { display: flex !important; align-items: baseline; gap: 6px; min-width: 0; flex: 1 1 auto; overflow: hidden; white-space: nowrap; }
  #noticeBar .notice .li-main b { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  #noticeBar .notice .li-main span, #noticeBar .limit-note .li-main span { display: block !important; min-width: 0 !important; flex: 1 1 auto !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; color: var(--ink-3); }
  #noticeBar .limit-note .li-main { flex: 1 1 auto !important; }
  #noticeBar .notice > :not(.li-main):not(.tile) { flex: none; }
}
/* Ajustes › Seu negócio: localização na coluna da direita */
.aj-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.loc-box.plain { border: 0 !important; padding: 0 !important; }
/* Ajustes › Horários: horário da casa e folgas lado a lado */
.hours-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 14px; align-items: start; height: 100%; min-height: 0; }
.hours-grid td { padding-top: 6px !important; padding-bottom: 6px !important; }
.hours-grid td, .hours-grid th { padding-left: 8px !important; padding-right: 6px !important; }
.hours-grid td input[type=time] { width: 96px !important; min-height: 32px; padding: 4px 6px; font-size: 13px; }
.hours-grid .tbl-wrap { overflow-x: hidden; }
.hours-grid .hours-off { max-height: 100%; min-height: 0; }
.hours-grid .hours-off .form.two { grid-template-columns: 1fr !important; gap: 10px !important; }
.hours-grid .hours-off input[type=datetime-local] { width: 100%; }
@media (max-width: 1150px) { .hours-grid { grid-template-columns: 1fr; height: auto; } }
/* Usuários › Perfis: telas em duas colunas, descrição vira dica ao passar o mouse */
@media (min-width: 1200px) {
  .pf-grid { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .pf-row { padding: 6px 0 !important; gap: 10px !important; }
  .pf-row > div:first-child span { display: none; }
  .pf-row b { font-size: 13px !important; }
  .pf-row .seg button { padding: 0 8px !important; font-size: 12px !important; height: 26px !important; }
}
/* Testar a assistente: ideias em linhas baixas */
.ideas .idea { padding: 8px 12px !important; min-height: 0 !important; gap: 10px !important; font-size: 13.5px; }
.ideas .idea .tile { width: 30px !important; height: 30px !important; }
.ideas { gap: 6px !important; }
@media (min-width: 1200px) { .pf-grid { row-gap: 0 !important; } .pf-row .seg { padding: 2px !important; } }
.pf-own { margin-top: 8px !important; }
/* celular de teste: o campo de mensagem continua sem borda */
.composer-box textarea, .composer-box input { border: 0 !important; box-shadow: none !important; background: transparent !important; min-height: 0 !important; }
/* Recebimentos: números baixos, taxa e prazos recolhidos, conta em três colunas */
.rec-stats .stat { padding: 10px 14px !important; }
.rec-stats .stat .v { font-size: 20px !important; }
.mini-info { font-size: 13px; margin: 2px 0 8px; }
.mini-info summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.mini-info p { margin: 6px 0 0; }
@media (min-width: 1200px) {
  .rec-grid { grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) !important; gap: 14px !important; }
  .rec-grid .rec-stats { grid-column: auto !important; display: flex !important; flex-direction: column; gap: 10px !important; margin: 0 !important; min-height: 0; overflow: auto; }
  .rec-grid .rec-stats .stat { flex: 1 1 0; min-height: 0; }
  .rec-grid .sect-part .row > h2 { display: none; }
}
.rec-grid .alert { padding: 8px 12px !important; font-size: 13px; }
@media (min-width: 1200px) {
  /* com o formulário aberto, o aviso "cadastre o banco" sobra: o próprio formulário diz isso */
  .rec-grid .alert:has(~ #bf:not([hidden])) { display: none !important; }
  .rec-grid #bf .hint { font-size: 12px; }
  .rec-grid #bf label .hint { display: none; }
  .rec-grid .tbl-wrap table { table-layout: fixed; width: 100%; }
  .rec-grid .tbl-wrap th:nth-child(1) { width: auto; } .rec-grid .tbl-wrap th:nth-child(2) { width: 104px; } .rec-grid .tbl-wrap th:nth-child(3) { width: 84px; }
  .rec-grid .tbl-wrap td .li-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1200px) {
  .rec-grid #bf, .rec-grid #bf .form.two { gap: 8px 12px !important; }
  .rec-grid #bf label { gap: 3px !important; font-size: 13px; }
  .rec-grid .tbl-wrap td.num { white-space: nowrap; }
}
/* ajustes finos para caber */
#af textarea[name=ai_instructions] { min-height: 72px !important; }
#af textarea[name=ai_handoff] { min-height: 56px !important; }
.wa-grid p.hint.mt { display: none; }
.wa-grid .howto li + li { margin-top: 2px; }
.avatar.xl { width: 64px !important; height: 64px !important; font-size: 22px !important; }
.cu-chart { min-height: 150px !important; } .cu-plot { min-height: 110px !important; }
/* Plataforma › Equipe e perfis: permissões de um perfil por vez, em colunas */
.perm-cols { columns: 2; column-gap: 22px; overflow: hidden; }
@media (max-width: 520px) { .perm-cols { columns: 1; } }
.perm-g { break-inside: avoid; margin-bottom: 10px; }
.perm-g > b { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 4px; }
.perm-i { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.3; padding: 2px 0; }
.perm-i svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.perm-i.yes svg { color: var(--ok); } .perm-i.no { color: var(--ink-3); } .perm-i.no svg { color: #c2c3cc; }
.perm-pick .seg button { font-size: 12.5px; padding: 0 6px !important; }
@media (min-width: 1101px) { .cols-2.fit:has(.perm-pick) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; } }
@media (max-width: 1100px) { .cols-2.fit:has(.perm-pick) { grid-template-columns: minmax(0, 1fr) !important; } }
.cols-2.fit:has(.perm-pick) > * { min-width: 0; }
.perm-pick .seg { overflow: hidden; }
/* Plataforma › Planos: um plano por vez, escolhido no seletor */
.plans-wrap { min-height: 0; gap: 10px; }
.plans-grid { display: block !important; }
.plans-grid .plan-ed:not(.cur) { display: none !important; }
.plans-grid .plan-ed { width: 100%; max-width: none; margin: 0; }
.plan-pick button small { font-weight: 400; color: var(--ink-3); }
.plan-ed .section-title { margin-top: 4px; }
.plan-ed { padding: 14px 16px !important; gap: 10px !important; }
.plan-ed .pe-box { padding: 10px 12px !important; gap: 8px !important; }
.plan-ed .pe-sec small { display: none; }
.plan-ed .pe-h { margin: 0 !important; }

/* Caber sem rolar: Assistente, WhatsApp e Meu plano */
.af-name { grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); }
@media (max-width: 760px) { .af-name { grid-template-columns: 1fr; } }
.tf-end { align-items: end; }
.cu-main { overflow: hidden; }
.cu-chart { flex: 1 1 0; min-height: 150px; }
.cu-row { flex: 0 0 auto; margin-top: 0; }
.cu-row > .card { min-height: 0; }
.cu-kl { max-height: none; }
.cu-inv td:first-child b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cu-inv td, .cu-inv th { padding-top: 6px !important; padding-bottom: 6px !important; }
.cu-q + .cu-q { margin-top: 12px; padding-top: 10px; }
.cu-quotas .hint { margin-top: 10px; }
@media (max-width: 1100px) { .cu-main { overflow: visible; } .cu-chart { flex: none; height: 230px; } }
.cu-row { padding: 0; }
.cu-inv table th:first-child, .cu-inv table td:first-child { width: auto; }
.cu-inv table th:not(:first-child), .cu-inv table td:not(:first-child) { width: 96px; }
.cu-quotas .cu-h { margin-bottom: 6px; }
.cu-quotas .hint { font-size: 12px; line-height: 1.4; }
.cu-rule .cu-h { margin-bottom: 4px; }
@media (min-width: 1101px) {
  .cu-grid { grid-template-columns: 330px minmax(0, 1fr); }
  .cu-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}
.cu-inv table th:not(:first-child), .cu-inv table td:not(:first-child) { width: 88px; }
.cu-inv td:first-child b { font-size: 13.5px; }
.cu-inv table th:not(:first-child), .cu-inv table td:not(:first-child) { width: 82px; font-size: 13px; padding-left: 4px; padding-right: 8px; }
.cu-inv td:first-child b { font-size: 13px; }
.cu-inv table td:first-child, .cu-inv table th:first-child { padding-right: 4px; }
.cu-rule .cu-h h2 { font-size: 14px; }
@media (min-width: 1101px) { .cu-rule .cu-h h2 { white-space: nowrap; } }
.cu-quotas .cu-q-h span { font-size: 20px; }
@media (min-width: 1200px) {
  .cols-club { grid-template-columns: minmax(330px, 1fr) minmax(0, 2.1fr) !important; }
  .rec-grid .rec-stats .stat { padding: 12px 14px !important; }
  .rec-grid .rec-stats .stat .stat-value, .rec-grid .rec-stats .stat .value { font-size: 20px !important; margin: 4px 0 2px !important; }
  .rec-grid .rec-stats .stat .stat-sub, .rec-grid .rec-stats .stat .sub { white-space: normal !important; font-size: 12px; line-height: 1.35; }
}
@media (min-width: 1200px) {
  .cols-club { grid-template-columns: minmax(300px, .9fr) minmax(0, 2.3fr) !important; }
  .cols-club td:nth-child(2), .cols-club td:nth-child(2) .li-sub { white-space: nowrap; }
  .rec-grid .rec-stats .stat .v { font-size: 20px !important; margin: 2px 0 !important; }
  .rec-grid .rec-stats .stat .trend { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; font-size: 12px; line-height: 1.35; }
}
.wb-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 10px 16px; }
.cols-wb .card-head .seg { flex: 0 0 auto; }
.cols-wb #wbText { min-height: 72px !important; }
.wb-preview { padding: 12px; margin-top: 10px; }
@media (min-width: 1101px) {
  .cols-wb > .col > .card:first-child { flex: 0 0 auto !important; overflow: visible !important; }
  .cols-wb > .col > .card:last-child { min-height: 96px !important; }
  .cols-wb .wb-preview + .hint { margin-top: 8px; font-size: 12px; }
}

/* Acabamento: profundidade leve, números alinhados, atalho da busca */
.card { box-shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 1px 1px rgba(24, 24, 27, .02) !important; }
.card:has(:focus-visible) { border-color: #d9d4f5 !important; }
.stat .v, .num, td.r, .kv b, .cu-q-h span { font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .search { position: relative; }
  .search::after { content: '/'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 500 11px/1 var(--font, inherit); color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; background: #fff; pointer-events: none; }
  .search:focus-within::after { opacity: 0; }
}

/* Notas fiscais: prévia da nota */
.nf-sheet { border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px; margin-top: 12px; }
.nf-kv { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nf-kv:last-child { border-bottom: 0; }
.nf-kv > span { color: var(--ink-3); flex: none; }
.nf-kv > b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.nf-kv > b small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12px; }
.nf-kv { padding: 6px 0; font-size: 13.5px; }
.nf-sheet { margin-top: 10px; }
#modalBody .alert + .nf-sheet { margin-top: 10px; }
.sm-host { grid-template-columns: minmax(0, 1fr) 90px; }
/* Notas fiscais › Configuração: o formulário cabe na tela (rola por dentro e vira partes) */
@media (min-width: 1101px) {
  .page-fit > .split.nf-cfg { flex: 1 1 0; min-height: 0; align-items: stretch; }
  .page-fit > .split.nf-cfg > * { min-height: 0; max-height: 100%; }
}
.sm-pass-hint { font-weight: 400; color: var(--ink-3); }

/* Notas fiscais › Como emitir: certificado, ambiente e automático */
.nf-nac { display: grid; gap: 12px; }
.nf-panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.nf-panel-h { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.nf-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #f4f4f6; color: var(--ink-2); flex: none; }
.nf-ic svg { width: 18px; height: 18px; }
.nf-panel.is-ok .nf-ic { background: #ecfdf5; color: #047857; }
.nf-panel.is-warn .nf-ic, .nf-panel.is-missing .nf-ic { background: #fff7ed; color: #c2410c; }
.nf-panel-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nf-panel-t b { font-size: 14px; font-weight: 600; color: var(--ink); }
.nf-panel-t span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-panel-warn { margin: 0 14px 10px; font-size: 12.5px; color: #c2410c; }
.nf-up { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 0 14px 12px; }
.nf-up .pw input { width: 100%; }
.nf-file { display: flex; align-items: center; gap: 0; min-height: 38px; border: 1px dashed #cfd0d8; border-radius: 8px; background: #fafafb; cursor: pointer; overflow: hidden; }
.nf-file:hover { border-color: #b9bac4; background: #f6f6f8; }
.nf-file:focus-within { outline: 2px solid var(--brand, #7b4dff); outline-offset: 2px; }
.nf-file-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 36px; font-size: 13px; font-weight: 600; color: var(--ink); border-right: 1px solid var(--line); background: #fff; flex: none; }
.nf-file-btn svg { width: 15px; height: 15px; }
.nf-file-name { padding: 0 12px; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nf-file-name.has { color: var(--ink); font-weight: 500; }
.nf-up #certUp { height: 38px; }
.nf-panel-f { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--line); background: #fafafb; }
.nf-panel-f .hint { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; }
.nf-panel-f .hint svg { width: 13px; height: 13px; flex: none; }
.nf-env { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, .8fr); gap: 12px; align-items: end; }
.nf-amb { display: flex; flex-direction: column; gap: 6px; }
.nf-lbl { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.nf-amb .seg { display: grid; grid-template-columns: 1fr 1fr; height: 38px; }
.nf-amb .seg button { justify-content: center; }
.nf-amb-hint { margin: -4px 0 0; }
.nf-amb-hint.prod { color: #b45309; }
.nf-auto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.nf-auto.one { grid-template-columns: minmax(0, 1fr); }
.nf-auto .toggle-row span { font-size: 12.5px; }
@media (max-width: 760px) {
  .nf-up, .nf-env, .nf-auto { grid-template-columns: minmax(0, 1fr); }
  .nf-up #certUp { width: 100%; }
}
.nf-fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form .nf-file, .nf-file { flex-direction: row !important; align-items: center !important; gap: 0 !important; font-weight: 400; }
.nf-file-btn { height: 36px; }
@media (max-width: 760px) {
  .nf-panel-h { flex-wrap: wrap; }
  .nf-panel-h .tag { margin-left: 46px; }
  .nf-panel-t span { white-space: normal; }
  .nf-panel-f { flex-wrap: wrap; }
  .nf-panel-f .hint { flex: 1 1 100%; }
  .nf-panel-f .spacer { display: none; }
}

/* Cobrança: faixa de aviso e tela de bloqueio */
.support-bar.warn { background: #b45309; }
.support-bar.warn svg { width: 18px; height: 18px; flex-shrink: 0; }
.lock-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
.lock-card { width: min(560px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 18px; box-shadow: 0 1px 2px rgba(24,24,27,.04), 0 12px 32px -18px rgba(24,24,27,.18); display: grid; gap: 16px; }
.lock-head { display: flex; align-items: center; gap: 14px; }
.lock-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fef2f2; color: #b91c1c; flex: none; }
.lock-ic svg { width: 22px; height: 22px; }
.lock-head h1 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.lock-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 13.5px; }
.lock-lead { margin: 0; color: var(--ink-2); line-height: 1.55; }
.lock-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lock-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.lock-row + .lock-row { border-top: 1px solid var(--line); }
.lock-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lock-row-t b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lock-row-t span { font-size: 12.5px; color: var(--ink-3); }
.lock-row .num { font-variant-numeric: tabular-nums; }
.lock-paid { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lock-sec { padding: 12px 14px; border-radius: 12px; background: #f7f7f9; font-size: 13.5px; color: var(--ink-2); }
.lock-dl { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.lock-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 420px) { .lock-card { padding: 20px 16px 14px; } .lock-row { flex-wrap: wrap; } .lock-row-t { flex-basis: 100%; } .lock-row .primary { margin-left: auto; } }

/* Suporte: chamados e chat */
.sup-grid { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 16px; min-height: 0; }
.sup-grid.wide { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
.sup-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.sup-sec { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 12px 10px 4px; }
.sup-none { padding: 4px 10px; }
.sup-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 10px; border-radius: 10px; background: transparent; border: 1px solid transparent; height: auto; font-weight: 400; color: var(--ink); }
.sup-item:hover { background: #f6f6f8; }
.sup-item.on { background: #f4f0ff; border-color: #e4dbff; }
.sup-item-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #f1f1f4; color: var(--ink-2); flex: none; }
.sup-item-ic svg { width: 16px; height: 16px; }
.sup-item-ic.urgente { background: #fef2f2; color: #b91c1c; } .sup-item-ic.alta { background: #fff7ed; color: #c2410c; }
.sup-item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sup-item-t > b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-item-t > span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-item-t .tag { font-size: 11px; padding: 1px 6px; }
.sup-item .count { margin-top: 2px; }
.sup-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sup-head-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sup-head-t h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-head select { height: 32px; width: auto; min-height: 32px; padding: 4px 28px 4px 10px; font-size: 13px; }
.sup-msgs { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: #fafafb; min-height: 0; }
.sup-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.sup-msg.me { align-self: flex-end; align-items: flex-end; }
.sup-bub { background: #fff; border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 9px 12px; font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.sup-msg.me .sup-bub { background: #f1ecff; border-color: #e2d8ff; border-radius: 12px 12px 4px 12px; }
.sup-msg.note .sup-bub { background: #fffbeb; border-color: #fde68a; }
.sup-note-l { display: block; font-size: 11.5px; font-weight: 600; color: #a16207; margin-bottom: 2px; }
.sup-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; padding: 0 4px; }
.sup-img img { display: block; max-width: 240px; max-height: 180px; border-radius: 8px; margin-top: 6px; }
.sup-file { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--primary-ink, #5b34d6); }
.sup-file svg { width: 14px; height: 14px; }
.sup-empty { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-3); max-width: 300px; }
.sup-empty svg { width: 28px; height: 28px; color: #b9bac4; margin-bottom: 6px; }
.sup-empty b { color: var(--ink); }
.sup-comp { border-top: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 8px; background: #fff; }
.sup-comp.is-note { background: #fffdf5; }
.sup-comp-row { display: flex; align-items: flex-end; gap: 8px; }
.sup-comp textarea { flex: 1; resize: none; min-height: 38px; max-height: 140px; padding: 8px 11px; line-height: 1.45; }
.sup-comp button[type=submit] { width: 38px; height: 38px; padding: 0; justify-content: center; flex: none; }
.sup-att { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; flex: none; border: 1px solid var(--line); background: #fff; }
.sup-att:hover { background: #f6f6f8; } .sup-att:focus-within { outline: 2px solid var(--brand, #7b4dff); outline-offset: 2px; }
.sup-att svg, .sup-comp button svg { width: 17px; height: 17px; }
.sup-att-name { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.sup-att-name svg { width: 13px; height: 13px; }
.sup-mode { justify-self: start; height: 30px; }
.sup-mode button { height: 26px; font-size: 12.5px; }
.sup-rate { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.sup-rate span { margin-right: 6px; }
.sup-rate.done { color: var(--ink-3); }
.sup-star { width: 30px; height: 30px; padding: 0; justify-content: center; background: transparent; border-color: transparent; color: #c9cad3; }
.sup-star:hover, .sup-star:hover ~ .sup-star { color: #f59e0b; }
.sup-rate:hover .sup-star { color: #f59e0b; } .sup-rate .sup-star:hover ~ .sup-star { color: #c9cad3; }
.sup-star svg { width: 20px; height: 20px; }
.sup-kpis { display: flex; gap: 16px; font-size: 13px; color: var(--ink-3); }
.sup-kpis b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.sup-filt { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.sup-filt .seg { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
.sm-search { width: 100%; }
.sup-modal { display: grid; gap: 0; }
.sup-modal .sup-msgs { height: min(46vh, 380px); overflow: auto; border: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.sup-modal .sup-comp { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; }
@media (max-width: 1100px) { .sup-grid, .sup-grid.wide { grid-template-columns: minmax(0, 1fr); } .sup-grid > .card:first-child { max-height: 260px; } .sup-grid > #supPane, .sup-grid > #psPane { min-height: 480px; } .sup-msg { max-width: 92%; } .sup-kpis { flex-wrap: wrap; gap: 10px; } }
.bill-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) !important; } @media (max-width: 1100px) { .bill-cols { grid-template-columns: minmax(0, 1fr) !important; } }
.sm-search::after { display: none !important; }
.sup-att, .nf-file { position: relative; overflow: hidden; }
.sup-att input[type=file], .nf-file input[type=file] { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; left: 0; top: 0; }
.lock-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; } .lock-card { min-width: 0; box-sizing: border-box; }
/* telas baixas (768 px): menu um pouco mais justo para caber inteiro, sem rolar */
@media (min-width: 761px) and (max-height: 820px) {
  .sidebar .menu a { height: 31px !important; min-height: 31px !important; }
  .sidebar .m-label { padding-top: 2px !important; padding-bottom: 2px !important; }
}
/* botão de ver a senha: centrado sem transform (o hover geral dos botões zera o transform e ele descia para fora do campo) */
.pw button, .pw button:hover, .pw button:active { top: 0 !important; bottom: 0 !important; margin: auto 0 !important; transform: none !important; height: 32px; width: 34px; right: 4px; border-radius: 6px; border-color: transparent !important; }
.pw button { background: transparent !important; }
.pw button:hover { background: #ededf1 !important; color: var(--ink); }
.pw button:focus-visible { outline: 2px solid var(--brand, #7b4dff); outline-offset: 1px; }
form.plan-ed { row-gap: 9px !important; }
/* planos: dólar sob o custo por resposta, e "informar" para servidor e imposto ainda vazios */
.ac-num .ac-usd { display: block; margin-top: 2px; color: var(--muted, #6b6b80); }
.ac-num .ac-usd.err { color: #c2410c; }
.pe-calc .pc-set { color: var(--brand, #7b4dff); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
/* Planos e limites: o cartão de custos se arruma pela largura que tem (janela menor ou menu aberto), não pela tela */
.ai-cost { container-type: inline-size; display: block !important; }
.ai-cost > .ac-in { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.ac-in > .ac-main { flex: 1 1 100%; }
.ac-in > .ac-num { flex: 1 1 140px; min-width: 0; max-width: none; }
.ac-in > .ac-btns { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; }
.ac-in > .ac-btns button { flex: 1 1 150px; min-width: 0; white-space: normal; line-height: 1.15; }
@container (min-width: 1000px) {
  .ai-cost > .ac-in { flex-wrap: nowrap; }
  .ac-in > .ac-main { flex: 1 1 0; }
  .ac-in > .ac-num { flex: 0 1 auto; max-width: 200px; }
  .ac-in > .ac-btns { flex: 0 0 auto; flex-direction: column; }
  .ac-in > .ac-btns button { flex: 0 0 auto; white-space: nowrap; }
}
/* "Este mês": o botão desce quando o cartão fica estreito */
.pl-sum .card-head { flex-wrap: wrap; row-gap: 8px; }
.pl-sum .card-head h2 { white-space: nowrap; }
/* cabeçalhos de número e datas curtas não quebram em várias linhas quando a tabela aperta */
table th.num { white-space: nowrap; }
.extrato-t td.small:last-child { white-space: nowrap; }
.extrato-t td:last-child, .extrato-t th:last-child { padding-left: 6px; padding-right: 10px; }

/* ---------- Resultado (Faturamento › Resultado e a tela de cada empresa) ---------- */
.res-grid { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.7fr) minmax(260px, 1fr); gap: 16px; min-height: 0; }
.res-grid > .card { min-width: 0; }
.wf { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.wf-row { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 6px 0 9px; color: var(--ink-2, #3a3a4a); }
.wf-row b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.wf-row small { color: var(--muted); font-size: 11.5px; }
.wf-row i { position: absolute; left: 0; bottom: 3px; height: 3px; border-radius: 2px; background: #e9e4ff; }
.wf-row.wf-in { color: var(--ink, #15151f); }
.wf-row.wf-in b { font-weight: 800; }
.wf-row.wf-in i { background: #c9b8ff; }
.wf-sec { margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.wf-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line, #e6e6ef); }
.wf-total span { font-weight: 700; }
.wf-total b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand, #7b4dff); }
.wf-total small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.wf-total.neg b { color: var(--bad); }
.res-foot { display: flex; justify-content: space-between; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--soft, #f6f6fa); font-size: 13px; }
.res-foot.bad b { color: var(--bad); }
.rbars { display: flex; flex-direction: column; gap: 4px; }
.rbars svg { width: 100%; height: 110px; display: block; overflow: visible; }
.rb-g { fill: #d8cdff; }
.rb-n { fill: #7b4dff; }
.rb-n.neg { fill: var(--bad, #e5484d); }
.rb-hit { fill: transparent; }
.rbars g:hover .rb-g { fill: #c4b3ff; }
.rbars g:hover .rb-n { filter: brightness(1.1); }
.rb-axis { stroke: var(--line, #e6e6ef); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rb-months { display: flex; }
.rb-months small { flex: 1; text-align: center; color: var(--muted); font-size: 11px; }
.rb-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.rb-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.rb-legend i.g { background: #d8cdff; } .rb-legend i.n { background: #7b4dff; }
.res-t td.num, .res-t th.num { text-align: right; white-space: nowrap; }
.ins { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #e6e6ef); font-size: 13px; }
.ins > svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; color: var(--muted); }
.ins div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ins span { color: var(--muted); line-height: 1.4; }
.ins-bad { border-color: #f6c7c9; background: #fff6f6; } .ins-bad > svg { color: var(--bad, #e5484d); }
.ins-warn { border-color: #f5dfb3; background: #fffaf0; } .ins-warn > svg { color: #c2410c; }
.ins-ok { border-color: #c6ead8; background: #f4fbf7; } .ins-ok > svg { color: var(--ok, #16a34a); }
.ins.click { cursor: pointer; } .ins.click:hover { border-color: #c9b8ff; }
.gap-s { gap: 8px; }
.sel-cols { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.6fr) !important; }
.list-item.on { background: #f3efff; }
.li-end { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.li-end small { color: var(--muted); font-size: 11.5px; }
.sel-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px 10px; }
.sel-kpis div { padding: 10px 12px; border-radius: 12px; background: var(--soft, #f6f6fa); display: flex; flex-direction: column; }
.sel-kpis b { font-size: 17px; font-variant-numeric: tabular-nums; } .sel-kpis span { color: var(--muted); font-size: 12px; }
.sel-link { padding: 0 16px 8px; } .sel-link label { display: flex; align-items: center; gap: 10px; font-size: 13px; } .sel-link select { flex: 1; max-width: 320px; }
.sel-cos { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line, #e6e6ef); }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--soft, #f6f6fa); font-size: 12px; color: inherit; text-decoration: none; }
.chip:hover { background: #f3efff; }
.sel-pick select { width: 100%; }
@media (max-width: 1100px) { .res-grid { grid-template-columns: minmax(240px, 1fr) minmax(0, 1.6fr); } .res-grid > .card:last-child { grid-column: 1 / -1; } }
@media (max-width: 860px) { .res-grid, .sel-cols { grid-template-columns: 1fr !important; } .sel-kpis { grid-template-columns: 1fr 1fr; } }
.fx-list { display: flex; flex-direction: column; gap: 6px; }
.fx-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 36px; gap: 8px; align-items: center; }
.res-t th, .res-t td { padding: 9px 8px !important; font-size: 13px; }
.res-t th:first-child, .res-t td:first-child { padding-left: 14px !important; }
.res-t td:first-child { min-width: 140px; }
.res-t td:last-child, .res-t th:last-child { padding-right: 14px !important; }
.res-t .tag { white-space: nowrap; }
.sel-link label { flex-direction: row !important; justify-content: flex-start; }
.res-grid .card-head .seg.sm button { padding: 5px 9px; font-size: 12.5px; }
/* janela média (1101 a 1250 px): os 6 resumos continuam numa linha, mais compactos, para sobrar altura embaixo */
@media (min-width: 1101px) and (max-width: 1250px) {
  .stats.six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .stats.six .stat { padding: 12px 12px; }
  .stats.six .stat .tile { display: none; }
  .stats.six .stat .v { font-size: 17px; }
  .stats.six .stat .k, .stats.six .stat .trend { font-size: 11.5px; }
}
@media (max-width: 1280px) and (min-width: 1101px) { .res-grid { grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.5fr) minmax(220px, 0.9fr) !important; } .res-grid > .card:last-child { grid-column: auto; } }
/* tabela do resultado em cartão estreito: some a coluna do meio (custos/descontos); o líquido continua */
.res-grid > .card { container-type: inline-size; }
@container (max-width: 470px) { .res-t:not(.pay-t) th:nth-child(3), .res-t:not(.pay-t) td:nth-child(3) { display: none; } }
@container (max-width: 420px) { .pay-t th:nth-child(2), .pay-t td:nth-child(2) { display: none; } }
.sel-cols > .card { container-type: inline-size; min-width: 0; }
@container (max-width: 480px) { .sel-cols .res-t td:nth-child(2), .sel-cols .res-t th:nth-child(2) { display: none; } }
.pay-t td.num { white-space: normal; }
.pay-t td.num b { white-space: nowrap; }
.pay-t td.num .li-sub { font-size: 11.5px; }
.pay-t td:first-child { min-width: 0; }
.sel-cols .res-t td.num { white-space: normal; }
@media (min-width: 861px) and (max-width: 1150px) {
  .stats.res-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .stats.res-stats .stat { padding: 12px; } .stats.res-stats .stat .tile { display: none; } .stats.res-stats .stat .v { font-size: 18px; }
}
.pay-t .li-sub .tag { font-size: 11px; padding: 1px 7px; }
/* opção de escolha (rádio) com texto longo: o texto quebra ao lado, alinhado pelo topo */
label.check:has(> input[type=radio]) { align-items: flex-start; line-height: 1.4; }
label.check > input[type=radio] { margin-top: 1px; }

/* Mercado Pago: quem recebe cada forma de pagamento e o botão na tela de pagamento */
.rt-list { display: flex; flex-direction: column; gap: 8px; }
.rt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.rt-row > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 160px; }
.rt-row b { font-size: 14px; } .rt-row small { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.rt-row .seg { flex: 0 0 auto; max-width: 100%; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.pub-mp p { margin: 0; max-width: 34ch; }
.pub-mp-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #f3effe; color: var(--ink-2); }
.pub-mp-ic svg { width: 24px; height: 24px; }
/* celular: o selo de situação desce para baixo do título em vez de espremer o texto */
@media (max-width: 480px) { .cn-h { flex-wrap: wrap; } .cn-h > div { flex: 1 1 calc(100% - 56px); } .cn-h > .cn-pill { margin-left: 52px; } }
.pay-tabs button { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Faturamento › Pagamentos e regras: Asaas, Mercado Pago e quem recebe, em partes */
.gw-card { display: flex; flex-direction: column; gap: 12px; }
.gw-card > [data-gwp] { display: flex; flex-direction: column; gap: 12px; }
.gw-card > [data-gwp][hidden] { display: none; }
.gw-card > [data-gwp] > p.muted { margin: 0; }
.gw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.gw-head h2 { margin: 0; }
.gw-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c9c9d1; margin-right: 6px; flex: 0 0 auto; }
.gw-dot.ok { background: #16a34a; }
/* parcelas no celular: fieldset tem largura mínima do conteúdo por padrão; sem isso as colunas passam da tela */
.cc-inst { min-width: 0; }
.cc-inst [role=radiogroup] { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.cc-inst [role=radio] { min-width: 0; }
.cc-inst .t { min-width: 0; } .cc-inst .t b, .cc-inst .t i { overflow-wrap: anywhere; }
/* resultado de "Conferir conexão" (ícone + frase): o ícone fica do tamanho do texto em qualquer tela */
.sim-res.ok:has(> svg) { display: flex; align-items: flex-start; gap: 8px; color: #0f766e; font-weight: 700; font-size: 13.5px; }
.sim-res.ok:has(> svg) > span { color: inherit; font-size: inherit; }
.sim-res > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
/* Mercado Pago: as duas chaves lado a lado quando cabe; o cartão de Pagamentos rola por dentro se precisar */
.mp-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.gw-card { min-height: 0; overflow-y: auto; }
/* Configurações › Conexões: lista à esquerda com a situação de cada conexão; a configuração escolhida abre ao lado */
.cn-split { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.cn-rail { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; }
.cn-grp { display: flex; flex-direction: column; gap: 2px; }
.cn-grp + .cn-grp { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.cn-grp-t { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 2px 10px 4px; }
.cn-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; color: var(--ink); cursor: pointer; transition: background .15s; height: auto; min-height: 0; font-weight: 400; }
.cn-item:hover { background: #f6f6f8; }
.cn-item:focus-visible { outline: 2px solid #7b4dff; outline-offset: -2px; }
.cn-item.on { background: #f1ecff; }
.cn-ic { flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; color: var(--ink-3); }
.cn-ic svg { width: 18px; height: 18px; }
.cn-item.on .cn-ic { color: #7b4dff; }
.cn-it { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cn-it b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cn-item.on .cn-it b { color: #5326d9; }
.cn-it small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; overflow-wrap: anywhere; }
.cn-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #c9c9d1; }
.cn-dot.ok { background: #16a34a; } .cn-dot.bad { background: #dc2626; }
.cn-panes { min-height: 0; display: flex; flex-direction: column; }
.cn-panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.cn-panel.cn-small { flex: 0 0 auto; }
.cn-panel[hidden] { display: none !important; }
.cn-panel .cn-h > .tile { display: none; }
.cn-tbl { display: flex; flex-direction: column; }
.cn-tbl .tbl-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
/* janela estreita no computador: lista mais fina */
@media (max-width: 1199px) and (min-width: 861px) { .cn-split { grid-template-columns: 220px minmax(0, 1fr); } }
/* celular: a lista vem primeiro, em cartões que cabem na largura; a configuração escolhida fica embaixo */
@media (max-width: 860px) {
  .cn-split { display: block; }
  .cn-rail { margin-bottom: 14px; }
  .cn-grp { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 2px; }
  .cn-grp-t { grid-column: 1 / -1; }
  .cn-panel { overflow: visible; scroll-margin-top: 72px; }
}
.cn-item { justify-content: flex-start; white-space: normal; }
.cn-it { flex: 1 1 auto; } .cn-it small { white-space: normal; align-items: baseline; } .cn-it small .cn-dot { transform: translateY(-1px); }
@media (max-width: 1199px) and (min-width: 861px) { .cn-server { gap: 14px; flex-wrap: nowrap; } .cn-server > div b { max-width: 220px; } .cn-item { padding: 7px 10px; } }
@media (max-width: 480px) { .cn-panel .cn-h > .cn-pill { margin-left: 0; } }
.cn-rail-foot { margin-top: auto; padding: 10px 2px 2px; border-top: 1px solid var(--line); }
.cn-rail-foot button { width: 100%; justify-content: center; }
/* Ajustes › WhatsApp: conectar pelo número (oficial) ou pelo QR Code; conectado mostra o número */
.wa-grid.wa-grid2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.wa-conn { display: flex; flex-direction: column; gap: 14px; }
.wa-conn > h2 { margin: 0; } .wa-conn > p.muted { margin: -8px 0 0; }
.wa-conn [data-wp] { display: flex; flex-direction: column; gap: 14px; } .wa-conn [data-wp][hidden] { display: none; }
.wa-on { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 12px; }
.wa-on.warn { border-color: #fecaca; background: #fef2f2; }
.wa-on-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #dcfce7; color: #15803d; flex: 0 0 auto; }
.wa-on.warn .wa-on-ic { background: #fee2e2; color: #b91c1c; }
.wa-on-ic svg { width: 18px; height: 18px; }
.wa-on > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .wa-on b { font-size: 15px; } .wa-on span { color: var(--ink-2); font-size: 13.5px; }
.wa-how { border: 0; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; min-width: 0; }
.wa-how legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.wa-code { font-size: 22px; letter-spacing: .3em; font-variant-numeric: tabular-nums; max-width: 220px; }
.wa-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 280px; padding: 16px; border: 1px dashed var(--line-2, #d6d7de); border-radius: 12px; text-align: center; }
.wa-qr img { width: 240px; height: 240px; image-rendering: pixelated; background: #fff; border-radius: 8px; }
@media (max-width: 1100px) { .wa-grid.wa-grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) { .wa-qr { min-height: 0; padding: 10px; } .wa-qr img { width: 200px; height: 200px; } }
.cn-sub { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; } .cn-sub b { font-size: 14px; font-weight: 600; } .cn-sub span { font-size: 12.5px; color: var(--ink-3); }
.wa-how { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wa-how > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.wa-how .check { margin: 0; }
.wa-qrrow { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 16px; align-items: center; }
.wa-qrrow .howto { margin: 0; }
.wa-qr { min-height: 264px; padding: 12px; }
.wa-qr img { width: 220px; height: 220px; }
.wa-conn { max-height: 100%; overflow-y: auto; }
@media (max-width: 620px) { .wa-qrrow { grid-template-columns: minmax(0, 1fr); } }
.wa-qrrow { grid-template-columns: minmax(0, 1fr) 232px; }
.wa-qr { min-height: 232px; padding: 10px; gap: 4px; } .wa-qr img { width: 196px; height: 196px; } .wa-qr p { margin: 0; }
.form.wa-app3 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, .7fr); gap: 12px; }
@media (max-width: 860px) { .form.wa-app3 { grid-template-columns: minmax(0, 1fr); } }
/* Empresa › WhatsApp: lista de conversas à esquerda, conversa aberta à direita */
.wz-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; min-height: 0; }
.wz-list, .wz-chat { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.wz-search { display: flex; align-items: center; gap: 8px; margin: 10px; padding: 0 10px; height: 38px; border: 1px solid var(--line-2, #d6d7de); border-radius: 8px; color: var(--ink-3); }
.wz-search:focus-within { border-color: #7b4dff; box-shadow: 0 0 0 3px #f1ecff; }
.wz-search svg { width: 16px; height: 16px; flex: 0 0 auto; }
.wz-search input { border: 0; outline: 0; padding: 0; height: 100%; flex: 1; min-width: 0; background: transparent; box-shadow: none; }
.wz-chats { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 6px 8px; }
.wz-pad { padding: 14px; margin: 0; }
.wz-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; height: auto; color: var(--ink); font-weight: 400; cursor: pointer; transition: background .15s; }
.wz-item:hover { background: #f6f6f8; } .wz-item.on { background: #f1ecff; }
.wz-item:focus-visible { outline: 2px solid #7b4dff; outline-offset: -2px; }
.wz-av { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #ececf1; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.wz-av svg { width: 18px; height: 18px; }
.wz-it { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wz-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.wz-row b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-row small { font-size: 11.5px; color: var(--ink-3); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.wz-last { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wz-badge { flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #7b4dff; color: #fff; font-size: 11.5px; font-style: normal; font-weight: 600; display: grid; place-items: center; }
.wz-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.wz-head > div { display: flex; flex-direction: column; min-width: 0; } .wz-head b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wz-head small { font-size: 12.5px; color: var(--ink-3); }
.wz-back { display: none; }
.wz-msgs { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; background: #f6f6f8; }
.wz-day { display: flex; justify-content: center; margin: 10px 0 6px; } .wz-day span { font-size: 12px; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; }
.wz-msg { align-self: flex-start; max-width: min(78%, 560px); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px 5px; display: flex; flex-direction: column; gap: 4px; }
.wz-msg.me { align-self: flex-end; background: #f1ecff; border-color: #e2d8ff; }
.wz-msg p { margin: 0; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.wz-who { font-size: 12px; font-weight: 600; color: #5326d9; }
.wz-meta { align-self: flex-end; font-size: 11px; color: var(--ink-3); display: flex; gap: 6px; font-variant-numeric: tabular-nums; }
.wz-img { display: block; max-width: 280px; max-height: 320px; width: 100%; height: auto; border-radius: 8px; background: #ececf1; }
.wz-img.sticker { max-width: 140px; background: transparent; }
.wz-msg audio { width: 260px; max-width: 100%; }
.wz-doc { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .04); color: var(--ink); text-decoration: none; font-size: 13.5px; }
.wz-doc svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--ink-3); }
.wz-send { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.wz-send textarea { flex: 1; min-height: 38px; max-height: 140px; resize: none; padding: 8px 12px; line-height: 1.4; }
.wz-send .primary { width: 40px; height: 38px; padding: 0; display: grid; place-items: center; }
.wz-att { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; cursor: pointer; }
.wz-att svg, .wz-send .primary svg { width: 18px; height: 18px; }
.wz-file { display: flex; align-items: center; gap: 8px; padding: 0 12px 10px; font-size: 13px; color: var(--ink-2); } .wz-file svg { width: 16px; height: 16px; } .wz-file[hidden] { display: none; }
.wz-empty { flex: 1; display: grid; place-items: center; padding: 20px; }
@media (max-width: 1199px) and (min-width: 861px) { .wz-grid { grid-template-columns: 280px minmax(0, 1fr); } }
/* celular: uma coisa por vez (lista ou conversa) */
@media (max-width: 860px) {
  .wz-grid { display: block; }
  .wz .wz-chat { display: none; } .wz.open .wz-chat { display: flex; height: calc(100dvh - 150px); } .wz.open .wz-list { display: none; }
  .wz-list { max-height: none; } .wz-chats { max-height: none; overflow: visible; }
  .wz-back { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; } .wz-back svg { width: 18px; height: 18px; }
  .wz-msg { max-width: 88%; } .wz-img { max-width: 220px; }
}
.wz-search { flex: 0 0 auto; }
.wz-search input[type=search] { height: 36px; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
@media (max-width: 860px) {
  .wz.open .page-head { display: none; }
  .wz.open .wz-chat { height: calc(100dvh - 210px); min-height: 360px; }
}

/* WhatsApp: QR Code liberado ou não pela plataforma */
label.check.cn-qr { align-items: flex-start; gap: 10px; font-weight: 400; }
label.check.cn-qr input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
label.check.cn-qr span { display: grid; gap: 2px; min-width: 0; }
label.check.cn-qr b { font-weight: 600; color: var(--ink); }
label.check.cn-qr small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.wa-official { display: flex; align-items: center; gap: 8px; margin: -4px 0 4px; font-size: 13.5px; }
.wa-official svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ok, #16a34a); }
