/* Ajustes do produto sobre o CSS aprovado — não altera layout/paleta. */
.hidden { display: none !important; }

button.participant {
  width: 100%;
  appearance: none;
  color: var(--bosia-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
button.participant:disabled { opacity: 0.6; cursor: not-allowed; }
button.participant:hover { border-color: var(--bosia-accent); }
button.participant:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.32); }

.participant-remove {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--bosia-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.participant-remove:hover,
.participant-remove:focus-visible {
  color: #ffb3b8;
  background: rgba(255, 92, 102, 0.16);
  outline: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 7, 12, 0.74);
  backdrop-filter: blur(2px);
}
.modal-card {
  width: min(440px, 100%);
  background: var(--bosia-panel);
  border: 1px solid var(--bosia-border-2);
  border-radius: var(--bosia-radius);
  padding: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.modal-card h3 { font-family: inherit; font-size: 19px; margin: 0 0 8px; }
.modal-card .page-sub { font-size: 13px; line-height: 1.55; color: var(--bosia-muted); margin: 0 0 20px; }
.modal-card .page-sub strong { color: var(--bosia-text); }
.modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #ffb3b8;
  background: rgba(255, 92, 102, 0.12);
  border: 1px solid rgba(255, 92, 102, 0.32);
}
.modal-icon svg { width: 20px; height: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.bosia-btn.modal-danger {
  background: rgba(255, 92, 102, 0.16);
  border-color: rgba(255, 92, 102, 0.5);
  color: #ffc2c6;
}
.bosia-btn.modal-danger:hover { background: rgba(255, 92, 102, 0.24); }

.empty-row td {
  text-align: center;
  color: var(--bosia-muted);
  padding: 28px 14px;
  font-size: 12.5px;
}

.msg-list { min-height: 220px; }
.msg.pending .msg-bubble,
.msg.pending .msg-loading { opacity: 0.92; }
.msg-error .retry-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.provider-logo.openrouter { background: linear-gradient(145deg, #4f8cff, #2a4f9e); }
.provider-logo.mistral { background: linear-gradient(145deg, #c46a2e, #7b3a14); }
.provider-logo.custom { background: linear-gradient(145deg, #3f6b78, #27434d); }

.secure-tag .bosia-badge { white-space: nowrap; }
.table-wrap .bosia-table { min-width: 680px; }

.ai-credential-cell { min-width: 128px; }
.ai-actions { white-space: nowrap; }
.ai-actions .link-btn { padding: 4px 7px; }

.form-inline-error {
  margin-bottom: 12px;
}

.export-note {
  color: var(--bosia-muted);
  font-size: 11px;
}

@media (max-width: 640px) {
  .table-wrap .bosia-table { min-width: 620px; }
  .composer-toolbar { gap: 6px; }
  .composer-toolbar .bosia-btn { margin-left: auto; }
  .login-card { padding: 24px 20px; }
}

@media (max-width: 380px) {
  .login-card { padding: 20px 16px; }
  .msg-list { padding-left: 10px; padding-right: 10px; }
}
