/* Painel do Robô de Ofertas · identidade Oficina do Saber
   Estrutura de app (lateral com ícones + topo com trilha), amarelo ferramenta + grafite.
   Títulos de página e números em Barlow Condensed; o resto em Source Sans 3. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fontes/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fontes/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 200 900; font-display: swap; src: url("fontes/source-sans-3-var.woff2") format("woff2"); }

:root {
  --amarelo: #f5be24;
  --amarelo-forte: #e0a80d;
  --grafite: #22252a;
  --grafite-2: #33373d;
  --zap: #1fa855;
  --azul-casa: #4a90c8;
  --tit: "Barlow Condensed", "Arial Narrow", sans-serif;
  --txt: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --r-pequeno: 8px;
  --r-painel: 12px;
  --lateral: 252px;
  --topo: 68px;
}
[data-tema="claro"] {
  --fundo: #f3f4f6;
  --superficie: #ffffff;
  --superficie-2: #f0f1f3;
  --linha: #e1e4e8;
  --linha-forte: #cfd3d8;
  --texto: #1f2226;
  --texto-2: #5d656e;
  --texto-3: #8a929b;
  --ok: #178c45;
  --erro: #c2382f;
  --ativo: color-mix(in srgb, var(--amarelo) 22%, transparent);
  --bolha: #e3f6d6;
  --sombra: 0 1px 2px rgba(20, 22, 26, .05);
  --foco: 0 0 0 3px rgba(224, 168, 13, .45);
}
[data-tema="escuro"] {
  --fundo: #15171a;
  --superficie: #1c1f23;
  --superficie-2: #24282d;
  --linha: #2b2f35;
  --linha-forte: #3a3f46;
  --texto: #eceef0;
  --texto-2: #a3abb3;
  --texto-3: #747c85;
  --ok: #3cc579;
  --erro: #f07468;
  --ativo: color-mix(in srgb, var(--amarelo) 14%, transparent);
  --bolha: #1d3527;
  --sombra: none;
  --foco: 0 0 0 3px rgba(245, 190, 36, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 15.5px/1.5 var(--txt); }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: none; box-shadow: var(--foco); border-radius: var(--r-pequeno); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- títulos (três níveis bem diferentes) ---------- */
.pagina-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.pagina-cab h1 { font: 700 2.25rem/1 var(--tit); letter-spacing: .005em; }
.pagina-cab p { color: var(--texto-2); margin-top: .35rem; max-width: 70ch; }
h2 { font: 700 1.06rem/1.25 var(--txt); }
h3 { font: 700 1rem/1.3 var(--txt); }
.rotulo { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); }

/* ---------- controles ---------- */
.botao {
  display: inline-flex; align-items: center; gap: .45rem; font: 600 .93rem/1 var(--txt); padding: .68rem 1rem;
  border-radius: var(--r-pequeno); border: 1px solid var(--linha-forte); background: var(--superficie); color: var(--texto);
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.botao svg { width: 17px; height: 17px; }
.botao:hover { border-color: var(--texto-3); }
.botao:disabled { opacity: .55; cursor: progress; }
.botao-primario { background: var(--amarelo); border-color: var(--amarelo); color: var(--grafite); }
.botao-primario:hover { background: var(--amarelo-forte); border-color: var(--amarelo-forte); }
.botao-perigo { color: var(--erro); }
.botao-zap { background: var(--zap); border-color: var(--zap); color: #fff; }
.botao-texto { font: 600 .9rem var(--txt); background: none; border: 0; color: inherit; cursor: pointer; padding: .3rem 0; text-decoration: underline; text-underline-offset: 3px; }
.botoes { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.icone-botao { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-pequeno); border: 1px solid var(--linha); background: var(--superficie); color: var(--texto); cursor: pointer; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .32rem; }
.dica { color: var(--texto-2); font-size: .86rem; margin-top: .28rem; }
input[type="text"], input[type="password"], input[type="number"], input[type="time"], input[type="url"], select, textarea {
  width: 100%; font: 400 .98rem var(--txt); color: var(--texto); background: var(--superficie);
  border: 1px solid var(--linha-forte); border-radius: var(--r-pequeno); padding: .62rem .75rem;
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--amarelo-forte); }
.campo { margin-bottom: 1rem; }
.campos-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 1rem; }

/* chave liga/desliga */
.chave { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; font-weight: 600; margin: .55rem 0; }
.chave input, .robo-chave { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--superficie-2); border: 1px solid var(--linha-forte); position: relative; cursor: pointer; flex: none; margin: 0; padding: 0; }
.chave input::after, .robo-chave::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--texto-3); transition: transform .15s; }
.chave input:checked, .robo-chave[aria-checked="true"] { background: var(--amarelo); border-color: var(--amarelo); }
.chave input:checked::after, .robo-chave[aria-checked="true"]::after { transform: translateX(18px); background: var(--grafite); }
.chave small { display: block; font-weight: 400; color: var(--texto-2); }
.msg-erro { color: var(--erro); font-size: .92rem; min-height: 1.3em; margin: .3rem 0; }

/* ---------- entrada ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-caixa { width: min(380px, 100%); background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--r-painel); padding: 2rem 1.75rem; box-shadow: var(--sombra); }
.login-logo { width: 96px; height: 96px; border-radius: 18px; background: #fff; margin: 0 auto 1.1rem; }
.login h1 { font: 700 2.2rem/1 var(--tit); text-align: center; }
.login-sub { text-align: center; color: var(--texto-2); margin: .4rem 0 1.5rem; }
.login .botao { width: 100%; justify-content: center; margin-top: .4rem; padding: .85rem; }

/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: var(--lateral) 1fr; min-height: 100vh; transition: grid-template-columns .2s; }
[data-menu="recolhido"] .app { grid-template-columns: 76px 1fr; }

.lateral { background: var(--superficie); border-right: 1px solid var(--linha); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
/* bloco da marca: um "quadro" mais alto que o topo, separado por linha */
.marca { display: flex; align-items: center; gap: .8rem; height: calc(var(--topo) + 18px); padding: 0 1.1rem; border-bottom: 1px solid var(--linha); text-decoration: none; flex: none; }
.marca img { width: 44px; height: 44px; border-radius: 11px; background: #fff; border: 1px solid var(--linha); flex: none; }
.marca strong { display: block; font: 700 1.3rem/1.05 var(--tit); letter-spacing: .01em; }
.marca small { display: block; color: var(--texto-2); font-size: .82rem; margin-top: .1rem; }
.lateral nav { display: flex; flex-direction: column; gap: 2px; padding: .4rem .7rem; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--linha-forte) transparent; }
.nav-grupo { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--texto-3); padding: 1.05rem .65rem .4rem; white-space: nowrap; }
.lateral nav a, .nav-botao {
  display: flex; align-items: center; gap: .75rem; text-decoration: none; padding: .58rem .65rem; border-radius: var(--r-pequeno);
  color: var(--texto-2); font: 600 .95rem var(--txt); position: relative; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; white-space: nowrap;
}
.lateral nav a:hover, .nav-botao:hover { background: var(--superficie-2); color: var(--texto); }
.lateral nav a[aria-current="page"] { background: var(--ativo); color: var(--texto); }
.lateral nav a[aria-current="page"]::before { content: ""; position: absolute; left: -.7rem; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amarelo); }
.lateral nav a[aria-current="page"] svg { color: var(--amarelo-forte); }
[data-tema="escuro"] .lateral nav a[aria-current="page"] svg { color: var(--amarelo); }
.lateral nav a span { flex: 1; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--linha-forte); flex: none; }
.ponto[data-estado="ok"] { background: var(--ok); }
.ponto[data-estado="erro"] { background: var(--erro); }
.ponto[data-estado="espera"] { background: var(--amarelo); }
.lateral-pe { border-top: 1px solid var(--linha); padding: .6rem .7rem; display: grid; gap: 2px; }

/* menu recolhido: só ícones */
[data-menu="recolhido"] .marca { justify-content: center; padding: 0; }
[data-menu="recolhido"] .marca-texto, [data-menu="recolhido"] .lateral nav a span, [data-menu="recolhido"] .nav-botao span, [data-menu="recolhido"] .nav-grupo { display: none; }
[data-menu="recolhido"] .lateral nav a, [data-menu="recolhido"] .nav-botao { justify-content: center; }
[data-menu="recolhido"] .lateral nav a .ponto { position: absolute; top: 6px; right: 10px; width: 7px; height: 7px; }
[data-menu="recolhido"] .lateral nav { padding-top: 1rem; }
[data-menu="recolhido"] #recolher svg { transform: rotate(180deg); }

.corpo { min-width: 0; display: flex; flex-direction: column; }
.topo { position: sticky; top: 0; z-index: 20; height: var(--topo); display: flex; align-items: center; gap: 1rem; padding: 0 clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--linha); background: color-mix(in srgb, var(--fundo) 88%, transparent); backdrop-filter: blur(8px); }
.trilha { display: flex; align-items: center; gap: .45rem; color: var(--texto-2); font-size: .93rem; }
.trilha svg { width: 15px; height: 15px; color: var(--texto-3); }
.trilha b { color: var(--texto); font-weight: 700; }
.topo-direita { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.tema-chave { display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--superficie-2); border: 1px solid var(--linha); }
.tema-chave button { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 999px; border: 0; background: none; color: var(--texto-3); cursor: pointer; }
.tema-chave button svg { width: 17px; height: 17px; }
.tema-chave button[aria-pressed="true"] { background: var(--superficie); color: var(--texto); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.tema-chave button[data-tema="claro"][aria-pressed="true"] { color: var(--amarelo-forte); }
.usuario { display: flex; align-items: center; gap: .6rem; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--amarelo); color: var(--grafite); font: 700 1.1rem var(--tit); }
.usuario b { display: block; font-size: .92rem; line-height: 1.1; }
.usuario small { color: var(--texto-2); font-size: .8rem; }
.menu-celular { display: none; }
.conteudo { padding: 1.6rem clamp(1rem, 3vw, 2rem) 3rem; width: 100%; max-width: 1240px; outline: none; }
.conteudo:focus-visible { box-shadow: none; }

.faixa-pausa {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: 1rem clamp(1rem, 3vw, 2rem) 0; padding: .75rem 1rem; border-radius: var(--r-painel);
  color: var(--grafite); font-weight: 700;
  background: repeating-linear-gradient(-45deg, var(--amarelo) 0 16px, #ffd862 16px 32px);
}
.faixa-pausa .botao { background: var(--grafite); color: #fff; border-color: var(--grafite); }

/* ---------- painéis ---------- */
.painel { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--r-painel); padding: 1.25rem 1.35rem; box-shadow: var(--sombra); }
.painel + .painel { margin-top: 1rem; }
.painel-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.painel-cab p { color: var(--texto-2); font-size: .9rem; margin-top: .15rem; }
.grade { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 1rem; align-items: start; margin-top: 1rem; }
.coluna { display: grid; gap: 1rem; }
.coluna > .painel + .painel { margin-top: 0; }
.vazio { color: var(--texto-2); padding: .8rem 0; }

/* ---------- números do topo (cartões) ---------- */
.numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.numero { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--r-painel); padding: 1.05rem 1.15rem; box-shadow: var(--sombra); min-height: 128px; display: flex; flex-direction: column; }
.numero .valor { font: 700 2.15rem/1 var(--tit); font-variant-numeric: tabular-nums; margin: .55rem 0 .45rem; letter-spacing: .01em; }
.numero .sub { color: var(--texto-2); font-size: .86rem; margin-top: auto; }
.numero-robo { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .55rem 0 .45rem; }
.numero-robo .valor { margin: 0; }
.numero.destaque { background: var(--amarelo); border-color: var(--amarelo); color: var(--grafite); }
.numero.destaque .rotulo, .numero.destaque .sub { color: rgba(34, 37, 42, .72); }
.numero.destaque .robo-chave[aria-checked="true"] { width: 52px; height: 30px; background: var(--grafite); border-color: var(--grafite); }
.numero.destaque .robo-chave[aria-checked="true"]::after { width: 24px; height: 24px; transform: translateX(22px); background: var(--amarelo); }
.selo { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; padding: .14rem .5rem; border-radius: 6px; background: var(--superficie-2); color: var(--texto-2); white-space: nowrap; }
.selo.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.selo.erro { background: color-mix(in srgb, var(--erro) 15%, transparent); color: var(--erro); }
.selo.espera { background: color-mix(in srgb, var(--amarelo) 26%, transparent); color: var(--texto); }

/* ---------- agenda do dia (estilo calendário) ---------- */
.agenda { position: relative; height: 300px; overflow: hidden; border: 1px solid var(--linha); border-radius: var(--r-pequeno); background: var(--fundo); transition: height .25s ease; }
.agenda[data-expandida="true"] { height: min(68vh, 720px); overflow-y: auto; }
.ag-grade { position: relative; margin: 14px 0; }
.ag-hora { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--linha); }
.ag-hora span { position: absolute; left: 0; top: -.62rem; width: 62px; padding-right: 10px; text-align: right; font: 600 .8rem/1.2 var(--txt); color: var(--texto-3); background: var(--fundo); font-variant-numeric: tabular-nums; }
.ag-trilha { position: absolute; left: 70px; right: 12px; top: 0; bottom: 0; }
.ag-bloco {
  position: absolute; left: 0; right: 0; height: 21px; display: flex; align-items: center; gap: .55rem;
  padding: 0 .65rem; border-radius: 6px; font-size: .82rem; line-height: 1; overflow: hidden; white-space: nowrap;
  background: var(--superficie); border: 1px solid var(--linha); border-left-width: 4px;
}
.ag-bloco b { font: 700 .86rem/1 var(--tit); font-variant-numeric: tabular-nums; flex: none; }
.ag-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ag-valor { color: var(--texto-2); flex: none; }
.ag-bloco.saiu { border-left-color: var(--amarelo); background: color-mix(in srgb, var(--amarelo) 13%, var(--superficie)); }
.ag-bloco.casa { border-left-color: var(--azul-casa); background: color-mix(in srgb, var(--azul-casa) 13%, var(--superficie)); }
.ag-bloco.manual { border-left-color: var(--zap); background: color-mix(in srgb, var(--zap) 13%, var(--superficie)); }
.ag-bloco.futuro { background: transparent; border-style: dashed; border-left-style: solid; border-left-color: var(--linha-forte); color: var(--texto-2); }
.ag-bloco.proximo { background: var(--amarelo); border-color: var(--amarelo); color: var(--grafite); font-weight: 700; }
.ag-bloco.perdido { background: transparent; border-color: transparent; border-left-color: var(--erro); color: var(--texto-3); font-style: italic; }
.ag-agora { position: absolute; left: 64px; right: 0; height: 0; border-top: 2px solid var(--erro); z-index: 2; pointer-events: none; }
.ag-agora::before { content: ""; position: absolute; left: -6px; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--erro); }
.ag-agora span { position: absolute; right: 0; top: -1.35rem; font-size: .75rem; font-weight: 700; color: var(--erro); background: var(--fundo); padding: 0 .3rem; border-radius: 4px; }
.ag-rodape { display: flex; justify-content: space-between; align-items: center; gap: .8rem 1.2rem; flex-wrap: wrap; margin-top: .85rem; }
.ag-legenda { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--texto-2); font-size: .83rem; }
.ag-legenda .leg { display: inline-block; width: 14px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: .35rem; border: 1px solid var(--linha-forte); border-left-width: 3px; }
.leg.saiu { border-left-color: var(--amarelo); background: color-mix(in srgb, var(--amarelo) 30%, transparent); }
.leg.casa { border-left-color: var(--azul-casa); background: color-mix(in srgb, var(--azul-casa) 30%, transparent); }
.leg.manual { border-left-color: var(--zap); background: color-mix(in srgb, var(--zap) 30%, transparent); }
.leg.futuro { border-style: dashed; border-left-style: solid; }
.leg.perdido { border-color: transparent; border-left-color: var(--erro); }

/* ---------- listas ---------- */
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; gap: .8rem; align-items: center; padding: .62rem 0; border-top: 1px solid var(--linha); }
.lista li:first-child { border-top: 0; padding-top: 0; }
.lista .hora { font: 700 1rem var(--tit); font-variant-numeric: tabular-nums; min-width: 2.9rem; color: var(--texto-2); }
.lista .nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista .valor { color: var(--texto-2); white-space: nowrap; font-size: .88rem; }
.conexoes-resumo li { justify-content: space-between; }
.conexoes-resumo a { display: flex; align-items: center; gap: .6rem; font-weight: 600; text-decoration: none; }
.conexoes-resumo a svg { color: var(--texto-3); width: 18px; height: 18px; }

/* ---------- mandar oferta ---------- */
.mandar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
.abas { display: flex; gap: .3rem; padding: 3px; border-radius: 10px; background: var(--superficie-2); margin-bottom: 1rem; width: fit-content; flex-wrap: wrap; }
.abas button { font: 600 .9rem var(--txt); background: none; border: 0; color: var(--texto-2); padding: .5rem .85rem; cursor: pointer; border-radius: 8px; }
.abas button[aria-selected="true"] { background: var(--superficie); color: var(--texto); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.celular { background: var(--superficie-2); border-radius: 18px; padding: .8rem; border: 1px solid var(--linha); position: sticky; top: calc(var(--topo) + 1rem); }
.celular-cab { font-weight: 700; font-size: .85rem; padding: .1rem .3rem .6rem; color: var(--texto-2); }
.bolha { background: var(--bolha); border-radius: 10px 10px 10px 2px; padding: .35rem; font-size: .9rem; line-height: 1.38; color: var(--texto); }
.bolha img { border-radius: 8px; width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.bolha p { padding: .45rem .4rem .2rem; white-space: pre-wrap; word-break: break-word; }
.bolha-vazia { color: var(--texto-2); text-align: center; padding: 2.5rem 1rem; font-size: .9rem; }
.marcador { margin-top: 1rem; padding: .9rem 1rem; border: 1px dashed var(--linha-forte); border-radius: var(--r-pequeno); }
.marcador p { color: var(--texto-2); font-size: .88rem; margin-top: .3rem; }
.marcador-botao { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; padding: .5rem .85rem; border-radius: 999px; background: var(--grafite); color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; cursor: grab; }
[data-tema="escuro"] .marcador-botao { background: var(--amarelo); color: var(--grafite); }

.fila-item { display: grid; grid-template-columns: 52px 1fr auto; gap: .9rem; align-items: center; padding: .72rem 0; border-top: 1px solid var(--linha); }
.fila-item:first-child { border-top: 0; padding-top: 0; }
.fila-item img, .fila-item .sem-foto { width: 52px; height: 52px; border-radius: var(--r-pequeno); object-fit: cover; background: var(--superficie-2); }
.fila-item .sem-foto { display: grid; place-items: center; color: var(--texto-3); font-size: .72rem; text-align: center; }
.fila-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-item small { color: var(--texto-2); }

/* ---------- tabelas ---------- */
.tabela { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tabela th { text-align: left; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); padding: .55rem .6rem; border-bottom: 1px solid var(--linha); }
.tabela td { padding: .62rem .6rem; border-bottom: 1px solid var(--linha); vertical-align: top; }
.tabela tr:hover td { background: var(--superficie-2); }
.tabela td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela a { word-break: break-all; }

/* ---------- agenda e filtros ---------- */
.minutos { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: .35rem; }
.minutos button { font: 600 .88rem var(--txt); padding: .45rem 0; border-radius: var(--r-pequeno); border: 1px solid var(--linha); background: var(--superficie); color: var(--texto-2); cursor: pointer; }
.minutos button[aria-pressed="true"] { background: var(--amarelo); border-color: var(--amarelo); color: var(--grafite); }
.etiquetas { display: flex; flex-wrap: wrap; gap: .4rem; border: 1px solid var(--linha-forte); border-radius: var(--r-pequeno); padding: .5rem; background: var(--superficie); }
.etiquetas span { display: inline-flex; align-items: center; gap: .3rem; background: var(--superficie-2); border: 1px solid var(--linha); border-radius: 999px; padding: .18rem .3rem .18rem .7rem; font-size: .88rem; }
.etiquetas span button { border: 0; background: none; color: var(--texto-2); cursor: pointer; font-size: 1rem; line-height: 1; padding: .1rem .35rem; border-radius: 50%; }
.etiquetas input { border: 0; flex: 1; min-width: 160px; padding: .3rem; background: transparent; }
.salvar-barra { position: sticky; bottom: 0; background: color-mix(in srgb, var(--fundo) 92%, transparent); backdrop-filter: blur(6px); padding: .9rem 0; margin-top: 1rem; border-top: 1px solid var(--linha); display: flex; gap: .8rem; align-items: center; z-index: 5; }

/* ---------- conexões ---------- */
.conexao-cab { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .4rem; }
.conexao-cab svg { width: 26px; height: 26px; color: var(--texto-2); }
.passos { margin: 1.1rem 0 0; padding: 0; list-style: none; counter-reset: passo; }
.passos li { counter-increment: passo; position: relative; padding: 0 0 1.3rem 2.7rem; }
.passos li:not(:last-child)::after { content: ""; position: absolute; left: .9rem; top: 2rem; bottom: .3rem; width: 1px; background: var(--linha-forte); }
.passos li::before {
  content: counter(passo); position: absolute; left: 0; top: -.1rem; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  display: grid; place-items: center; font: 700 1rem var(--tit); background: var(--superficie-2); border: 1px solid var(--linha-forte);
}
.passos li.feito::before { content: "✓"; background: var(--amarelo); border-color: var(--amarelo); color: var(--grafite); }
.passos li h3 { margin-bottom: .3rem; }
.passos li p { color: var(--texto-2); margin-bottom: .6rem; max-width: 62ch; }
.qr { width: 240px; height: 240px; background: #fff; border-radius: var(--r-painel); padding: 10px; border: 1px solid var(--linha); }
.codigo-par { font: 700 2rem var(--tit); letter-spacing: .18em; }
.espera-nota { border-left: 3px solid var(--amarelo); background: var(--ativo); border-radius: 0 var(--r-pequeno) var(--r-pequeno) 0; padding: .6rem .9rem; color: var(--texto); margin: .9rem 0; max-width: 70ch; }

/* ---------- avisos (toasts) ---------- */
.avisos { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 50; }
.aviso { background: var(--grafite); color: #fff; padding: .75rem 1rem; border-radius: var(--r-pequeno); max-width: 380px; border-left: 4px solid var(--amarelo); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.aviso.erro { border-left-color: var(--erro); }

/* ---------- telas menores ---------- */
@media (max-width: 1100px) { .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .app, [data-menu="recolhido"] .app { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .lateral.aberta { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
  #recolher { display: none; }
  .menu-celular { display: inline-grid; }
  .usuario-texto { display: none; }
  .grade, .mandar { grid-template-columns: 1fr; }
  .celular { position: static; }
}
@media (max-width: 560px) { .numeros { grid-template-columns: 1fr; } .trilha span, .trilha svg { display: none; } }

/* Grupos do WhatsApp: lista com uma chave por grupo */
.area-grupos { margin-top: .8rem; max-width: 520px; }
.lista-grupos { display: grid; border: 1px solid var(--linha); border-radius: var(--r-pequeno); background: var(--superficie); max-height: 360px; overflow-y: auto; margin-top: .6rem; }
.lista-grupos .grupo-item { padding: .7rem .9rem; border-bottom: 1px solid var(--linha); margin: 0; }
.lista-grupos .grupo-item:last-child { border-bottom: 0; }
.lista-grupos .grupo-item[hidden] { display: none; }
.grupos-rodape { margin-top: .8rem; align-items: center; }
