@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('/fonts/instrument.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #E8ECE5;      /* fundo: cinza-sálvia, herança do WhatsApp sem copiar o verde */
  --sheet: #F7F8F4;      /* superfícies */
  --white: #FFFFFF;
  --ink: #1C2A23;        /* texto principal, verde-escuro */
  --muted: #5D6B63;
  --line: #CDD4CA;
  --you: #F0B429;        /* turno: você (sol) */
  --you-soft: #FCEFC7;
  --bot: #27306B;        /* turno: assistente (noite) */
  --bot-soft: #DCDFF2;
  --danger: #B3261E;
  --accent: #C2185B;     /* muda com a empresa selecionada */
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--white));
  --accent-ink: color-mix(in srgb, var(--accent) 78%, black);
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --display: 'Bricolage', 'Segoe UI', system-ui, sans-serif;
  --ui: 'Instrument', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 2px; }
code { font-size: 0.92em; background: var(--paper); padding: 1px 5px; border-radius: 4px; }

.shell { display: grid; grid-template-columns: 76px 248px minmax(0, 1fr); height: 100vh; }

/* ---------- trilho de empresas ---------- */
.rail { background: var(--ink); display: flex; flex-direction: column; align-items: center; padding: 18px 0 16px; gap: 12px; }
.rail-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rail-co { position: relative; width: 48px; height: 48px; border: 0; border-radius: 16px; background: var(--c); color: #fff; font: 700 16px var(--display); letter-spacing: 0.02em; opacity: 0.55; transition: border-radius .18s, opacity .18s; }
.rail-co:hover { opacity: 0.85; border-radius: 13px; }
.rail-co.on { opacity: 1; border-radius: 13px; box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--c); }
.rail-co.on::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: #fff; }
.rail-badge { position: absolute; top: -6px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--you); color: var(--ink); font: 700 11px/20px var(--ui); font-style: normal; border: 2px solid var(--ink); }
.rail-add, .rail-ai { width: 48px; height: 48px; border-radius: 16px; border: 1.5px dashed #5f7468; background: transparent; color: #cfd9d2; font: 600 20px var(--display); }
.rail-ai { border-style: solid; font-size: 14px; }
.rail-ai.on { background: #fff; color: var(--ink); border-color: #fff; }
.rail-add:hover, .rail-ai:hover { border-color: #cfd9d2; color: #fff; }

/* ---------- coluna da empresa ---------- */
.side { background: var(--sheet); border-right: 1px solid var(--line); padding: 26px 18px 18px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.co-name { font-size: 27px; font-weight: 750; color: var(--accent-ink); line-height: 1.05; font-stretch: condensed; }
.co-phone { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.switch-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-m); background: var(--white); border: 1px solid var(--line); cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 40px; height: 24px; border-radius: 12px; background: #b9c2bb; position: relative; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch-row input:checked + .switch { background: var(--bot); }
.switch-row input:checked + .switch::after { transform: translateX(16px); }
.switch-row input:focus-visible + .switch { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 2px; }
.switch-row strong { display: block; font-size: 14px; }
.switch-row small { color: var(--muted); font-size: 12.5px; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu-item { display: flex; justify-content: space-between; align-items: center; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: var(--r-s); font-weight: 550; color: var(--muted); }
.menu-item:hover { background: var(--paper); color: var(--ink); }
.menu-item.on { background: var(--accent-soft); color: var(--accent-ink); }
.menu-item i { font-style: normal; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--you); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.menu-item i.soft { background: var(--accent); color: #fff; }
.side-foot { margin-top: auto; font-size: 13px; color: var(--ink); }
.side-foot p { margin: 0 0 8px; }
.muted { color: var(--muted); }

/* ---------- faixa de turno ---------- */
.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.shift { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.4fr) auto; gap: 28px; align-items: center; padding: 16px 28px; background: var(--white); border-bottom: 1px solid var(--line); }
.shift-text { display: flex; gap: 14px; align-items: center; }
.shift-icon { width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--bot); box-shadow: inset -9px -5px 0 0 var(--bot-soft); }
.shift.is-you .shift-icon { background: var(--you); box-shadow: 0 0 0 5px var(--you-soft); }
.shift.paused .shift-icon { background: #b9c2bb; box-shadow: none; }
.shift-text strong { display: block; font-family: var(--display); font-size: 19px; font-weight: 700; }
.shift-text small { color: var(--muted); font-size: 13.5px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { display: flex; flex-direction: column; gap: 5px; align-items: center; font-size: 11.5px; color: var(--muted); }
.day.today { color: var(--ink); font-weight: 700; }
.bar { position: relative; width: 100%; height: 16px; border-radius: 5px; background: var(--bot); overflow: hidden; }
.seg-you { position: absolute; top: 0; bottom: 0; background: var(--you); }
.needle { position: absolute; top: -2px; bottom: -2px; width: 3px !important; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); border-radius: 2px; }
.shift.paused .bar { background: #c5ccc6; }
.shift.paused .seg-you { background: #dde2dc; }
.legend { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.k-you::before { background: var(--you); }
.k-bot::before { background: var(--bot); }

/* ---------- área principal ---------- */
.view { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 26px 28px 40px; }
.view[data-view="conversas"] { padding: 0; overflow: hidden; }
.view-head { margin-bottom: 18px; max-width: 760px; }
.view-head h2 { font-size: 30px; font-weight: 750; }
.view-head p { margin: 6px 0 0; color: var(--muted); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.card + .card { margin-top: 16px; }
.narrow { max-width: 720px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 2px 0 14px; max-width: 70ch; }
.hint.accent { color: var(--accent-ink); background: var(--accent-soft); padding: 8px 12px; border-radius: var(--r-s); }
.row-end { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }

.btn { border: 0; border-radius: 999px; padding: 10px 18px; background: var(--accent); color: #fff; font-weight: 650; font-size: 14px; white-space: nowrap; }
.btn:hover { background: var(--accent-ink); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small { padding: 6px 13px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost.danger { color: var(--danger); }

.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: 13.5px; padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field textarea, .list-tools input { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; background: var(--sheet); resize: vertical; }
.field input:focus, .field textarea:focus, .list-tools input:focus { outline: none; border-color: var(--accent); background: var(--white); }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.seg-ctl { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-ctl button { border: 0; background: none; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg-ctl button.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 42, 35, .15); }
.seg-ctl i { font-style: normal; color: var(--muted); font-weight: 500; margin-left: 3px; }
.tabs { display: flex; gap: 22px; border-bottom: 1.5px solid var(--line); margin-bottom: 20px; }
.tabs button { border: 0; background: none; padding: 10px 0; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tabs button.on { color: var(--ink); border-color: var(--accent); }
.empty-note { color: var(--muted); padding: 20px 4px; max-width: 46ch; }

/* ---------- conversas ---------- */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: 100%; }
.threads { border-right: 1px solid var(--line); background: var(--sheet); display: flex; flex-direction: column; min-height: 0; }
.pane-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 18px 16px 12px; }
.pane-head h2 { font-size: 21px; font-weight: 700; }
.threads .seg-ctl { margin: 0 16px 10px; }
.thread-list { overflow-y: auto; flex: 1; padding: 0 8px 12px; }
.thread { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 10px; border-radius: var(--r-m); }
.thread:hover { background: var(--paper); }
.thread.on { background: var(--white); box-shadow: inset 3px 0 0 var(--accent), 0 1px 3px rgba(28, 42, 35, .08); }
.t-body { min-width: 0; }
.t-body strong { display: block; font-size: 14px; }
.t-body small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); font-size: 11.5px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font: 700 15px var(--display); flex: none; }
.avatar.big { width: 42px; height: 42px; }
.tag { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag.wait { background: var(--you); color: var(--ink); }
.tag.you { background: var(--paper); color: var(--ink); }

.chat { display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 12px 22px; background: var(--white); border-bottom: 1px solid var(--line); }
.chat-head div { flex: 1; }
.chat-head strong { display: block; }
.chat-head small { color: var(--muted); font-size: 12.5px; }
.log { flex: 1; overflow-y: auto; padding: 22px 7% 18px; display: flex; flex-direction: column; gap: 10px; }
.log-empty { color: var(--muted); text-align: center; margin: auto; }
.msg { display: flex; flex-direction: column; max-width: min(560px, 78%); }
.msg.in { align-self: flex-start; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 9px 13px 7px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.45; }
.msg.in .bubble { background: var(--white); border-top-left-radius: 4px; }
.msg.out .bubble { background: var(--bot); color: #EEF0FA; border-top-right-radius: 4px; }
.msg.out .bubble a { color: #C9CFF7; }
.msg.out.human .bubble { background: var(--you-soft); color: var(--ink); }
.msg.out.human .bubble a { color: var(--ink); }
.time { display: block; text-align: right; font-size: 10.5px; opacity: .6; margin-top: 2px; }
.src { font-size: 11.5px; color: var(--muted); margin: 3px 4px 0; }
.teach-inline { align-self: flex-start; margin-top: 6px; border: 1.5px dashed var(--accent); background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 650; }
.composer { background: var(--white); border-top: 1px solid var(--line); padding: 10px 22px 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { border: 1.5px solid var(--line); background: none; border-radius: 999px; padding: 3px 11px; font-size: 12.5px; color: var(--muted); }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.send { display: flex; gap: 10px; align-items: flex-end; }
.send textarea { flex: 1; border: 1.5px solid var(--line); border-radius: 20px; padding: 10px 16px; resize: none; background: var(--sheet); max-height: 160px; }
.send textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.opts { display: flex; gap: 18px; margin-top: 8px; color: var(--muted); }
.chat-empty { margin: auto; text-align: center; max-width: 380px; padding: 30px; }
.chat-empty h3 { font-size: 24px; margin-bottom: 8px; }
.chat-empty p { color: var(--muted); margin: 0 0 18px; }

/* ---------- ensinar ---------- */
.teach { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.composer-card { position: sticky; top: 0; min-width: 0; border: 2px solid var(--accent); }
.composer-card h3 { margin-bottom: 14px; }
.teach-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pending { background: var(--you-soft); border-color: #EBD48E; }
.pending h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.pending h3 i { font-style: normal; background: var(--you); border-radius: 999px; padding: 0 8px; font: 700 12px/20px var(--ui); }
.pending ul { list-style: none; margin: 10px 0 0; padding: 0; }
.pending li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid #EBD48E; }
.pending li small { display: block; color: var(--muted); font-size: 12px; }
.li-act { display: flex; gap: 6px; flex: none; }
.list-tools { display: flex; gap: 10px; align-items: center; }
.list-tools input { flex: 1; border-radius: 999px; padding: 9px 16px; background: var(--white); }
.qa { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px 10px; }
.qa.editing { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.qa h4 { font-family: var(--ui); font-size: 15px; font-weight: 700; }
.qa p { margin: 6px 0 8px; color: #3c4a42; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
.qa footer { display: flex; gap: 6px; align-items: center; border-top: 1px solid var(--paper); padding-top: 8px; }
.qa footer small { margin-right: auto; color: var(--muted); font-size: 12px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.plan { border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 14px 14px 10px; margin: 0 0 12px; }
.plan-top { display: grid; grid-template-columns: 1fr 130px auto; gap: 10px; align-items: end; }
.plan-top .btn { margin-bottom: 14px; }
.preview { margin-top: 14px; }
.preview summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--accent-ink); }
.out-prev { background: var(--bot); color: #EEF0FA; margin-top: 10px; max-width: 460px; border-top-right-radius: 4px; }
#content-form.teach { grid-template-columns: 1fr 1fr; }
#content-form .card + .card { margin-top: 0; }

/* ---------- horários ---------- */
.hours { max-width: 920px; }
.hrow { display: grid; grid-template-columns: 110px 250px minmax(160px, 1fr) 170px; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--paper); }
.day-name { font-weight: 650; font-size: 14.5px; }
.times { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.times input { min-width: 0; flex: 1; border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 6px 8px; background: var(--sheet); font-variant-numeric: tabular-nums; }
.times.off { opacity: .35; pointer-events: none; }
.bar.wide { height: 22px; border-radius: 6px; }
.who { color: var(--muted); font-size: 12.5px; }
.hrow.scale { border: 0; padding: 0; }
.bar-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- empresa / IA ---------- */
.swatches { display: flex; gap: 10px; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 34px; height: 34px; border-radius: 11px; background: var(--c); cursor: pointer; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--c); }
.swatch input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 4px; }
.ai-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1040px; margin-bottom: 16px; }
.ai-opts .row-end { grid-column: 1 / -1; justify-content: flex-start; margin-top: 0; }
.ai-opt { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0 !important; }
.ai-opt input { accent-color: var(--accent); margin-top: 4px; width: 18px; height: 18px; }
.ai-opt strong { display: block; font-family: var(--display); font-size: 17px; }
.ai-opt small { display: block; color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.ai-opt em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.ai-opt.locked { cursor: default; background: var(--sheet); }
.ai-opt.locked em { color: var(--muted); }
.ai-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.steps { padding-left: 20px; margin: 10px 0 14px; }
.steps li { margin-bottom: 8px; }

/* ---------- diálogo e aviso ---------- */
dialog { border: 0; border-radius: var(--r-l); padding: 26px; width: min(440px, calc(100vw - 32px)); background: var(--white); color: var(--ink); }
dialog::backdrop { background: rgba(28, 42, 35, .45); }
dialog h3 { font-size: 22px; margin-bottom: 4px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); z-index: 10; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
.toast.ok::before { content: '✓  '; color: var(--you); font-weight: 700; }

/* ---------- telas menores ---------- */
@media (max-width: 1180px) {
  .shift { grid-template-columns: 1fr; gap: 12px; }
  .legend { flex-direction: row; gap: 16px; }
  .teach, #content-form.teach { grid-template-columns: 1fr; }
  .composer-card { position: static; }
  .ai-opts { grid-template-columns: 1fr; }
  .hrow { grid-template-columns: 110px 1fr; }
  .hrow .bar, .hrow .who { grid-column: 2; }
  .hrow.scale { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto 1fr; height: auto; min-height: 100vh; }
  .rail { grid-row: 1 / span 2; padding-top: 14px; }
  .rail-co, .rail-add, .rail-ai { width: 44px; height: 44px; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; gap: 12px; }
  .menu { flex-direction: row; flex-wrap: wrap; }
  .side-foot { display: none; }
  .main { overflow: visible; }
  .view { overflow: visible; padding: 18px 16px 32px; }
  .shift { padding: 14px 16px; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .threads { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat { min-height: 70vh; }
  .log { padding: 16px; }
  .plan-top { grid-template-columns: 1fr 1fr; }
  .plan-top .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- login (modo publicado) ---------- */
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login { width: min(380px, 100%); display: flex; flex-direction: column; }
.login h1 { font-size: 26px; margin: 14px 0 2px; }
.login .btn { align-self: flex-start; }
.login-error { display: none; color: var(--danger); font-size: 13.5px; margin: -4px 0 12px; }
.login-error:target { display: block; }

/* ---------- conexão WhatsApp ---------- */
.conn-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; padding: 5px 12px; border-radius: 999px; background: var(--paper); margin-bottom: 14px; }
.conn-status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #9aa59e; }
.conn-status.live::before { background: #2E7D32; }
.conn-status.test::before { background: var(--you); }
.conn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.inline-btn { display: flex; gap: 8px; align-items: flex-end; }
.inline-btn .field { flex: 1; }
.inline-btn .btn { margin-bottom: 14px; }
.check-out { background: var(--sheet); border-radius: var(--r-s); padding: 12px 14px; font-size: 13.5px; margin-top: 12px; }
.check-out ul { margin: 6px 0 0; padding-left: 18px; }
.tag.wa { background: #DCEFE0; color: #1F5F2A; }
.co-wa { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 650; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.co-wa.live { background: #DCEFE0; color: #1F5F2A; }
.co-wa.test { background: var(--you-soft); color: #6b4e00; }
.logout { margin-top: 6px; }
@media (max-width: 860px) { .conn-grid { grid-template-columns: 1fr; } }

/* ---------- página pública (política de privacidade) ---------- */
.doc-page { display: flex; justify-content: center; padding: 32px 16px; height: auto; }
.doc { max-width: 720px; width: 100%; }
.doc h1 { font-size: 30px; margin-bottom: 6px; }
.doc h2 { font-size: 19px; margin: 22px 0 6px; }
.doc p { margin: 0 0 10px; max-width: 70ch; }
