/* ── FORMS ─────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
.field input, .field select, .select {
  width: 100%;
  padding: 11px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-strong);
  outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .select:focus {
  border-color: var(--accent);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
}
.checkbox input { width: 18px; height: 18px; accent-color: var(--accent); }
.attr-ico-label { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; }
.attr-ico-label svg { flex-shrink: 0; color: var(--text); }
.vol-attrs svg,
.origem-badge svg { color: var(--muted); }

.error { color: var(--danger); font-size: .85rem; font-weight: 600; }
.muted { color: var(--muted); font-size: .9rem; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px; /* botão do app da RED: 40px, 14px/600 (LOTE-4) */
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-family: inherit;
  font-size: .875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .1s, background .15s, border-color .15s, opacity .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 32px; padding: 6px 12px; font-size: .8125rem; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-danger { background: transparent; color: var(--accent-text); border-color: var(--accent-border); }
.btn-danger:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Team selector (forma pill) */
.team-selector { display: flex; gap: 6px; flex-wrap: wrap; }
.team-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: .85rem;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
/* Equipe = bolinha + nome, nunca fundo colorido (LOTE-4 §17.6).
   Selecionado: fundo neutro + borda forte. */
.team-btn::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.team-btn[data-team="amarelo"]::before  { background: var(--team-amarelo); }
.team-btn[data-team="azul"]::before     { background: var(--team-azul); }
.team-btn[data-team="verde"]::before    { background: var(--team-verde); }
.team-btn[data-team="vermelho"]::before { background: var(--team-vermelho); }
.team-btn.active {
  background: var(--surface);
  color: var(--text-strong);
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}
.team-btn-geral { flex-basis: 100%; }
.form-hint { font-size: .72rem; color: var(--muted); margin-top: 2px; }

