






.ps-convite {
  position: fixed; right: 16px; bottom: 84px; z-index: 390; width: min(340px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 12px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); color: var(--txt);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s;
}
.ps-convite.ps-on { opacity: 1; transform: none; }
.ps-conv-t { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.ps-conv-s { margin: 0; font-size: 13px; line-height: 1.45; color: var(--txt-2); }
.ps-conv-acoes, .ps-acoes { display: flex; align-items: center; gap: 8px; margin-top: 4px; }

.ps-bt {
  min-height: 36px; padding: 8px 14px; border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.ps-principal { background: var(--txt); color: var(--bg); }
.ps-principal:hover { background: var(--txt-2); }
.ps-principal:disabled { opacity: .6; cursor: default; }
.ps-texto { background: none; color: var(--txt-3); font-weight: 500; }
.ps-texto:hover { color: var(--txt); }
.ps-bt:focus-visible, .ps-opcao:focus-visible, .ps-nota:focus-visible, .ps-chip:focus-visible {
  outline: 2px solid var(--txt); outline-offset: 2px;
}


.ps-fundo {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .18s;
}
.ps-fundo.ps-on { opacity: 1; }
.ps-cartao:focus { outline: none; }
.ps-cartao {
  width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px; padding: 24px;
  border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); color: var(--txt);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.ps-titulo { margin: 0; font-size: 20px; line-height: 1.25; }
.ps-q { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ps-q legend { margin-bottom: 8px; }
.ps-q legend, .ps-aberta > span { padding: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.ps-aberta em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--txt-3); margin-left: 4px; }
.ps-opcoes { display: grid; gap: 6px; }
.ps-opcao, .ps-nota {
  border: 1px solid var(--line-2); background: var(--bg-3); color: var(--txt);
  font: inherit; cursor: pointer; border-radius: 9px;
}
.ps-opcao { padding: 9px 12px; text-align: left; font-size: 13.5px; }
.ps-opcao:hover, .ps-nota:hover { border-color: var(--txt-3); }
.ps-opcao[aria-pressed="true"], .ps-nota[aria-pressed="true"] {
  background: var(--txt); color: var(--bg); border-color: var(--txt); font-weight: 700;
}
.ps-notas { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.ps-nota { height: 36px; padding: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ps-notas-pe { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--txt-3); }
.ps-aberta textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 52px; padding: 8px 10px;
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); color: var(--txt);
  font: inherit; font-size: 13.5px; line-height: 1.45;
}
.ps-aberta textarea:focus { outline: none; border-color: var(--txt-3); }
.ps-erro { margin: 0; font-size: 13px; color: #ff8b8b; }
@media (max-width: 480px) {
  .ps-notas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ps-cartao { padding: 18px; }
}


.ps-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 4px 0 20px; }
.ps-kpi {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
}
.ps-kpi small { font-size: 12px; color: var(--txt-3); }
.ps-kpi b { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ps-kpi b.ps-bom { color: var(--ok); }
.ps-kpi span { font-size: 12px; color: var(--txt-3); }
.ps-h3 { margin: 18px 0 8px; font-size: 14px; }
.ps-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.ps-tab th, .ps-tab td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.ps-tab th { font-weight: 600; color: var(--txt-3); font-size: 12px; }
.ps-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.ps-dim { color: var(--txt-3); }
.ps-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ps-chip {
  padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: none;
  color: var(--txt-2); font: inherit; font-size: 12.5px; cursor: pointer;
}
.ps-chip b { color: var(--txt-3); font-weight: 600; margin-left: 2px; }
.ps-chip[aria-pressed="true"] { background: var(--bg-3); color: var(--txt); border-color: var(--txt-3); }
.ps-lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ps-lista li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.ps-lista p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ps-lista small { font-size: 11.5px; color: var(--txt-3); }
.ps-topo-acoes { display: flex; align-items: center; gap: 8px; }
@media (max-width: 480px) { .ps-convite { right: 8px; left: 8px; width: auto; } }
.ps-topo-acoes a.btn { color: var(--txt); text-decoration: none; }
