/* Círculos — perfil (folha sobreposta) */

.app-profile-btn {
  position: relative;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
}

.app-profile-btn__avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-profile-btn__avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-profile-avatar__initial {
  font-size: 0.95rem;
  font-weight: 700;
}

.app-profile-btn .app-profile-avatar__initial {
  color: #fff;
}

.app-home-account__avatar .app-profile-avatar__initial,
.hub-profile-avatar__initial {
  color: var(--accent);
}

.app-menu-sheet__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
  cursor: pointer;
}

.app-menu-sheet__avatar {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-menu-sheet__avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-menu-sheet__user-text {
  min-width: 0;
}

.hub-profile-sheet,
.hub-profile-skills-sheet {
  width: min(100%, 28rem);
  max-height: min(92vh, 44rem);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.hub-profile-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.65rem;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
}

.hub-profile-sheet__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2332;
}

.hub-profile-sheet__close {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(26, 35, 50, 0.06);
  color: #1a2332;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.hub-profile-sheet__body {
  flex: 1;
  overflow: auto;
  padding: 0.85rem 1rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.hub-profile-sheet__foot {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(26, 35, 50, 0.08);
}

.hub-profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.hub-profile-account {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hub-profile-account__email {
  margin: 0;
  font-size: 0.82rem;
  color: #5a6478;
}

.auth-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.profile-avatar {
  flex: 0 0 4rem;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-profile-avatar__initial {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #3d4659;
}

.profile-field input,
.profile-field textarea {
  width: 100%;
  border: 1px solid rgba(26, 35, 50, 0.14);
  border-radius: 0.55rem;
  padding: 0.55rem 0.65rem;
  font: inherit;
  color: #1a2332;
  background: #fff;
}

.profile-field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.account-public-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
}

.account-public-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a2332;
}

.account-public-control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.account-public-state {
  font-size: 0.75rem;
  color: #5a6478;
}

.account-public-state.is-on {
  color: #2e7d32;
  font-weight: 600;
}

.cer-switch {
  position: relative;
  display: inline-flex;
  width: 2.4rem;
  height: 1.35rem;
  cursor: pointer;
}

.cer-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cer-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(26, 35, 50, 0.18);
  transition: background 0.2s ease;
}

.cer-switch-track::after {
  content: '';
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.cer-switch input:checked + .cer-switch-track {
  background: var(--accent);
}

.cer-switch input:checked + .cer-switch-track::after {
  transform: translateX(1.05rem);
}

.profile-sync-note {
  margin: 0;
}

.hub-profile-site-link {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.hub-profile-site-link a {
  color: #4c51bf;
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  border: none;
  border-radius: 0.55rem;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: rgba(102, 126, 234, 0.12);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: #5a6478;
}

.home-section {
  margin-top: 1rem;
}

.home-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a2332;
}

.skills-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.skill-pill {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #3d4659;
  font-size: 0.75rem;
}

.skills-empty,
.empty-note {
  margin: 0;
  font-size: 0.82rem;
  color: #5a6478;
}

.profile-mural-card .profile-check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.35rem 0;
  font-size: 0.85rem;
  color: #1a2332;
}

.profile-mural-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: #5a6478;
}

.profile-gamification-card,
.profile-gamification {
  margin-top: 0.5rem;
}

.profile-badge-grid {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.45rem;
}

.profile-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem;
  border-radius: 0.55rem;
  background: rgba(26, 35, 50, 0.04);
  text-align: center;
}

.profile-badge__title {
  font-size: 0.72rem;
  font-weight: 600;
}

.skills-section {
  margin-bottom: 1rem;
}

.skills-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.skills-section-hint {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: #5a6478;
}

.app-menu-sheet__item[data-menu-profile] {
  font-weight: 600;
}

.tag-picker {
  border: 1px solid rgba(26, 35, 50, 0.14);
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.55rem 0.65rem;
}

.tag-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.tag-picker-chips:empty {
  display: none;
}

.tag-picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  cursor: pointer;
}

.tag-picker-chip-x {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.75;
}

.tag-picker-field {
  position: relative;
}

.tag-picker-input {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  color: #1a2332;
  padding: 0.15rem 0.1rem;
  outline: none;
}

.tag-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 20;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 12rem;
  overflow-y: auto;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.12);
}

.tag-picker-option {
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.tag-picker-option.is-active,
.tag-picker-option:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
